Information sharing method, electronic equipment, readable storage medium and chip
By displaying animations and enabling information sharing when electronic devices collide, the problem of complex information sharing operations and user non-perception of information sharing between electronic devices is solved, achieving rapid sharing and enhanced user interactivity.
Patent Information
- Application Number
- CN202411140530.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-16
- Publication Date
- 2026-03-03
AI Technical Summary
In existing technologies, information sharing between electronic devices is complex, and users cannot fully perceive the sharing process, resulting in a poor user experience.
By detecting the collision area of electronic devices, corresponding animations are displayed, and information can be quickly shared in the event of a collision. Users can perceive the sharing process through swiping.
It enables rapid information sharing and provides users with a clear understanding of the sharing process, enhancing user interactivity and experience.
Smart Images

Figure CN121603597A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of terminal technology, and in particular to an information sharing method, electronic device, readable storage medium, and chip. Background Technology
[0002] With the development of communication technology, electronic devices can share information such as pictures, audio, video, contacts, web pages, and documents. For example, mobile phone A can establish a Bluetooth connection with mobile phone B and share information with mobile phone B through the Bluetooth connection; or, mobile phone A can share information with mobile phone B through Huawei's sharing technology. However, the above information sharing processes are not only complex to operate and lack real-time performance, but also the user cannot fully perceive the sharing process, and the interactivity between users is weak, resulting in a poor user experience. Summary of the Invention
[0003] This application provides an information sharing method, electronic device, readable storage medium, and chip to solve the problems in the prior art where the information sharing process is complex to operate and users cannot fully perceive the sharing process.
[0004] To achieve the above objectives, this application adopts the following technical solution:
[0005] In a first aspect, embodiments of this application provide an information sharing method applied to a first electronic device. The method includes: detecting a collision in a first area of the first electronic device; displaying a first animation corresponding to the first area in response to the collision; wherein different areas of the first electronic device that collide with the collision correspond to different animations; sending target information to a second electronic device; the second electronic device being the electronic device that collided with the first electronic device; wherein the target information is preset information, or information displayed or selected when the first electronic device collides with the collision.
[0006] For example, after the right side of the first electronic device collides with the second electronic device, the first electronic device displays the animation corresponding to the right side and sends the target information to the second electronic device.
[0007] The information sharing method provided in this application embodiment enables the first electronic device to quickly share target information with the second electronic device when a collision event is triggered, and also displays the corresponding animation of the collision area during the sharing process, so that the user can clearly perceive the information sharing process, the interactivity between users is strong, and the user experience is good.
[0008] In some embodiments, the animation in the first motion effect moves toward a first region. The first motion effect includes motion effects corresponding to target information and / or preset motion effects. Specifically, any movement of the animation toward any position within the first region is considered movement toward the first region.
[0009] It is understandable that since the first area of the first electronic device is collided with by the second electronic device, the first motion effect moving towards the first area can also be considered as moving towards the second electronic device. Therefore, in this embodiment, the first motion effect can clearly indicate the direction of information sharing, providing a better user experience.
[0010] In other embodiments, the first animation effect may also be displayed near the first region, for example, within a range of less than a threshold (e.g., 5 cm) from the first region. For instance, after the right side of the first electronic device collides with the second electronic device, the first electronic device displays the first animation effect within 5 cm of its right side.
[0011] In some embodiments, in response to a collision, displaying a first animation effect corresponding to a first region includes: in response to a collision, displaying a first prompt message, the first prompt message being used to prompt the user to input a first swipe operation toward the first region; and in response to the first swipe operation, displaying a first animation effect corresponding to the first region.
[0012] It can be understood that the first swipe operation towards the first area is equivalent to a swipe operation towards the second electronic device. Therefore, through the method provided in this application embodiment, the user can share information with the second electronic device by swiping towards it, allowing the user to fully perceive the sharing process.
[0013] In some embodiments, detecting a collision in a first region of a first electronic device includes: acquiring the first acceleration of the first electronic device along each coordinate axis at different times, wherein the first direction of the first coordinate axis points towards the first region; if the first acceleration meets a collision condition within a preset time, then it is determined that a collision has occurred in the first region of the first electronic device. The collision condition includes: the number of direction changes of the first acceleration is greater than a threshold; the maximum value of the first acceleration is greater than the maximum value of the acceleration along other coordinate axes; and, in the first M sampling points within the preset time, the number of acceleration sampling points towards the second direction is greater than the number of acceleration sampling points towards the first direction, the first direction and the second direction are opposite, and M ≥ 10.
[0014] In some embodiments, a first pressure sensor is provided in a first region of the first electronic device; detecting a collision in the first region of the first electronic device includes: if the first pressure data detected by the first pressure sensor is greater than a pressure threshold, then determining that a collision has occurred in the first region of the first electronic device.
[0015] In some embodiments, the method further includes: stopping the display of the first animation effect when the target information is sent; or stopping the display of the first animation effect at a preset time before / after the target information is sent.
[0016] In this embodiment, the display duration of the first animation is combined with the sending process of the target information. Therefore, users can perceive the duration of information sharing through the display duration of the first animation, which provides a better user experience.
[0017] In some embodiments, sending target information to a second electronic device includes: sending a first broadcast message, the first broadcast message being used to discover and verify the first electronic device; receiving a second broadcast message, the second broadcast message being a response message sent by the second electronic device after the first electronic device has passed the verification according to the first broadcast message; establishing a wireless connection with the second electronic device according to the second broadcast message; and sending the target information to the second electronic device through the wireless connection.
[0018] In this embodiment, the second electronic device establishes a wireless connection with the first electronic device only after verifying the first electronic device, in order to share information. Therefore, this information sharing process has good security.
[0019] In some embodiments, the second broadcast information includes a second collision feature of the second electronic device. Accordingly, establishing a wireless connection with the second electronic device based on the second broadcast information includes: acquiring a first collision feature of the first electronic device and a second collision feature of the second electronic device; determining that the verification of the second electronic device is successful if the first collision feature matches the second collision feature; and establishing a wireless connection with the second electronic device after determining that the verification of the second electronic device is successful.
[0020] In the above embodiments, both the first collision feature and the second collision feature include at least one of acceleration and collision time during the collision process. For example, the first moment and / or the first acceleration when the first electronic device collides, or the second moment and / or the second acceleration when the second electronic device collides. Based on this, matching the first collision feature with the second collision feature includes: the time difference between the first moment and the second moment is less than or equal to a time threshold, and / or the first acceleration and the second acceleration have the same change pattern, or the difference is less than or equal to an acceleration threshold.
[0021] In this embodiment, the first electronic device establishes a wireless connection with the second electronic device only after verifying the second electronic device, in order to share information. Therefore, this information sharing process also has good security.
[0022] Secondly, embodiments of this application provide an information sharing method applied to a second electronic device. The method includes: detecting a collision in a second region of the second electronic device; responding to the collision by displaying a second motion effect corresponding to the second region, wherein different regions of the second electronic device that collide with the collision correspond to different motion effects; receiving target information from a first electronic device; wherein the first electronic device is the electronic device that collides with the second electronic device; and the target information is preset information or information displayed or selected when the first electronic device collides with the collision.
[0023] For example, after the left side of the second electronic device collides with the first electronic device, the second electronic device displays the corresponding animation on the right side and receives the target information sent by the first electronic device.
[0024] Through the information sharing method provided in this application embodiment, the second electronic device can not only receive the target information shared by the second electronic device through the triggering of the collision event, but also display the corresponding dynamic effects of the collision area during the process, so that the user can clearly perceive the information sharing process, the interactivity between users is strong, and the user experience is good.
[0025] In some embodiments, the animation in the second motion effect moves toward the second region or moves away from the second region; wherein the first motion effect includes motion effects corresponding to the target information and / or preset motion effects.
[0026] It can be understood that when the animation in the second motion effect moves in a direction away from the second region, it can be interpreted as the second motion effect moving from the first electronic device to the second electronic device. Therefore, in this embodiment, the second motion effect can clearly indicate the direction from which the information comes, providing a better user experience.
[0027] In other embodiments, the second animation effect may also be displayed near the second region, for example, within a range of less than a threshold (e.g., 5 cm) from the second region. For instance, after the left side of the second electronic device collides with another device, the second electronic device displays an animation effect within 5 cm of its left side.
[0028] In some embodiments, in response to a collision, displaying a second animation effect corresponding to the second area includes: in response to a collision, displaying a second prompt message, the second prompt message being used to prompt the user to input a second swipe operation moving towards or away from the second area; and in response to the second swipe operation, displaying the second animation effect corresponding to the second area. Through the method provided in this application embodiment, the receiving end user can fully perceive the information receiving process.
[0029] In some embodiments, the method further includes: stopping the display of the second animation effect when the target information reception ends; or stopping the display of the second animation effect at a preset time before / after the target information reception ends.
[0030] In this embodiment, the display duration of the second animation is combined with the receiving process of the target information. Therefore, users can perceive the duration of information sharing through the display duration of the second animation, which provides a better user experience.
[0031] In some embodiments, receiving target information from a first electronic device includes: receiving first broadcast information, the first broadcast information being used to discover and verify the first electronic device; verifying the identity of the first electronic device based on the first broadcast information; sending second broadcast information after the second electronic device has passed verification; establishing a wireless connection with the first electronic device; and receiving target information from the first electronic device through the wireless connection.
[0032] In this embodiment, the second electronic device establishes a wireless connection with the first electronic device only after verifying the first electronic device, in order to share information. Therefore, this information sharing process has good security.
[0033] In some embodiments, the first broadcast information includes the actual transmission power of the first broadcast information; verifying the identity of the first electronic device based on the first broadcast information includes: determining the received signal strength of the first broadcast information; determining the distance between the first electronic device and the second electronic device based on the actual transmission power and the received signal strength of the first broadcast information; and determining that the identity verification of the first electronic device is successful if the distance is less than a distance threshold.
[0034] In some embodiments, the first broadcast information includes a first collision feature of the first electronic device; the identity of the first electronic device is verified according to the first broadcast information, including: obtaining the first collision feature of the first electronic device and the second collision feature of the second electronic device; wherein the first collision feature and the second collision feature both include at least one of acceleration and collision time during the collision process; if the first collision feature matches the second collision feature, it is determined that the verification of the first electronic device has passed; after determining that the verification of the first electronic device has passed, a wireless connection is established with the first electronic device.
[0035] In some embodiments, the second broadcast information further includes: a second collision feature when the second electronic device is collided, wherein the second collision feature includes at least one of acceleration and collision time during the collision process of the second electronic device.
[0036] In some embodiments, detecting a collision in the second region of the second electronic device includes: acquiring the second acceleration of the second electronic device along each coordinate axis at different times, wherein the first direction of the first coordinate axis points to the second region; if the second acceleration satisfies the collision condition within a preset time, then it is determined that a collision has occurred in the second region of the second electronic device.
[0037] The collision conditions include: the number of times the direction of the second acceleration changes is greater than a threshold; the maximum value of the second acceleration is greater than the maximum value of the acceleration of other coordinate axes; and in the first M sampling points of a preset time, the number of acceleration sampling points towards the second direction is greater than the number of acceleration sampling points towards the first direction, the first direction is opposite to the second direction, and M≥10.
[0038] Thirdly, embodiments of this application provide an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the methods shown in the first or second aspect above.
[0039] Fourthly, embodiments of this application provide a computer-readable storage medium storing a computer program that, when executed by a processor, implements the methods shown in the first or second aspect above.
[0040] Fifthly, embodiments of this application provide a chip including a processor and a memory, wherein the memory stores a computer program that, when executed by the processor, implements the methods shown in the first or second aspect above.
[0041] Sixthly, embodiments of this application provide a computer program product, which includes a computer program that, when run by an electronic device, causes the electronic device to implement the methods shown in the first or second aspect above.
[0042] It is understood that the beneficial effects of the third to sixth aspects mentioned above can be found in the relevant descriptions in the first and second aspects mentioned above, and will not be repeated here. Attached Figure Description
[0043] Figure 1 This is a schematic diagram illustrating an information sharing process provided in one embodiment of this application;
[0044] Figure 2 This is a schematic diagram of an information sharing process provided in another embodiment of this application;
[0045] Figure 3 This is a schematic diagram of the communication system to which the information sharing method provided in the embodiments of this application is applicable;
[0046] Figure 4 This is a schematic diagram of the area of the electronic device provided in the embodiments of this application;
[0047] Figure 5 This is a schematic diagram of the structure of an electronic device provided in one embodiment of this application;
[0048] Figure 6 This is a schematic flowchart illustrating an embodiment of an information sharing method provided in this application;
[0049] Figure 7 This is a schematic diagram of a collision scenario between devices provided in one embodiment of this application;
[0050] Figures 8A to 8C These are schematic diagrams illustrating different collision methods provided in the embodiments of this application;
[0051] Figure 9 This is a schematic diagram of the information acceleration coordinate system provided in the embodiments of this application;
[0052] Figure 10 This is a schematic diagram of the acceleration data list provided in the embodiments of this application;
[0053] Figure 11 This is a schematic diagram of acceleration provided in an embodiment of this application;
[0054] Figure 12A This is a schematic diagram of the water ripple animation effect at the top edge of the transmitting end provided in an embodiment of this application;
[0055] Figure 12B This is a schematic diagram of the transmission wormhole animation effect at the top edge of the transmitting end provided in an embodiment of this application;
[0056] Figure 13A This is a schematic diagram of the water ripple animation effect on the top edge of the receiving end provided in the embodiments of this application;
[0057] Figure 13B This is a schematic diagram of the transmission wormhole animation effect on the top edge of the receiving end provided in the embodiment of this application;
[0058] Figures 14A to 14C These are schematic diagrams illustrating the motion effects under different collision methods provided in the embodiments of this application;
[0059] Figure 15 This is a schematic flowchart illustrating an information sharing method provided in another embodiment of this application;
[0060] Figure 16A This is a schematic diagram of the second prompt information provided in an embodiment of this application;
[0061] Figure 16B This is a schematic diagram of the first prompt information provided in an embodiment of this application;
[0062] Figure 17 This is a schematic flowchart illustrating an information sharing method provided in another embodiment of this application;
[0063] Figure 18 This is a schematic flowchart illustrating the information sharing method provided in other embodiments of this application;
[0064] Figure 19 This is a schematic diagram of an information sharing device provided in one embodiment of this application;
[0065] Figure 20 This is a schematic diagram of an information sharing device provided in another embodiment of this application;
[0066] Figure 21 This is a schematic diagram of the chip structure provided in the embodiments of this application. Detailed Implementation
[0067] It should be understood that in the description of the embodiments of this application, unless otherwise stated, " / " means "or". For example, A / B can mean A or B. The "and / or" in this document is merely a description of the relationship between related objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists alone, A and B exist simultaneously, and B exists alone.
[0068] In this embodiment, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of indicated technical features. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of this embodiment, unless otherwise stated, "a plurality of" means two or more.
[0069] The technical solutions provided in the embodiments of this application will be described below with reference to the accompanying drawings.
[0070] With the development and iteration of mobile communication technology and electronic devices, the business interactions between electronic devices are becoming increasingly rich. For example, electronic devices can share information such as images, audio, video, and files with each other through various wireless communication technologies.
[0071] In some embodiments, electronic devices share information with each other via technologies such as Bluetooth, Wireless Fidelity (Wi-Fi), or Huawei Share. For example, phone A establishes a Bluetooth connection with phone B and shares information with phone B via Bluetooth; or phone A connects to a Wi-Fi network and shares information with phone B via the Wi-Fi network; or phone A shares information with phone B via Huawei Share technology.
[0072] Figure 1 This is a schematic diagram illustrating an information sharing process provided in one embodiment of this application, involving the process of mobile phone A sharing pictures to mobile phone B through Huawei sharing technology. Specifically, it includes the following content.
[0073] See Figure 1 As shown in (a), mobile phone A opens the image display interface based on user input, similar to the image library application interface. This image display interface shows various images, as well as controls for "Share," "Select All," "Create," "Delete," and "More." In response to the user's selection of images, mobile phone A selects one or more target images to send.
[0074] See Figure 1 As shown in (b), after determining the target image to be sent, mobile phone A responds to the user's operation on the "share" control and opens the sharing interface.
[0075] See Figure 1 As shown in (c), when Huawei Share is not enabled on phone A, the sharing interface includes selection controls for various available sharing methods (such as Huawei Share, Bluetooth, sending via email, or SMS), and the "Huawei Share" control is disabled. In response to the user's operation on the "Huawei Share" control, phone A enables Huawei Share. It should be noted that when Huawei Share is enabled on phone A, phone A does not display... Figure 1 The sharing interface shown in (c) is displayed directly. Figure 1 The sharing interface shown in (d) is shown in the image.
[0076] See Figure 1 As shown in (d), when Huawei Share is enabled on phone A, phone A searches for and displays other nearby electronic devices that have Huawei Share enabled. In one example, the electronic devices searched by phone A include "User B's P40" (i.e., phone B) and "The printer in the living room." Phone A displays the icons corresponding to "User B's P40" and "The printer in the living room" in the sharing interface. In response to the user's action on the icon of "User B's P40," phone A sends the target image to phone B named "User B's P40."
[0077] Based on the above description, when mobile phone A shares information with mobile phone B, the user needs to perform operations such as selecting target information (such as target image), selecting the "share" control, enabling Huawei's share function, and selecting mobile phone B. The operation process is complicated, the sending process takes a long time, the immediacy is poor, and the user experience is not good.
[0078] In other embodiments, electronic devices rapidly establish a wireless connection via near field communication (NFC) proximity sensing, and then share information with each other through this wireless connection. For example... Figure 2 As shown, when the NFC sensing areas of two NFC-enabled phones are placed close together, a wireless connection, such as Bluetooth or Wi-Fi Direct, can be quickly established between the two phones. Through this wireless connection, the two phones can share information such as business cards, pictures, videos, and news.
[0079] However, this process requires that both electronic devices have NFC capabilities, and that their NFC sensing areas be placed in close proximity. In other words, if either electronic device lacks NFC, or if their NFC sensing areas are not in close proximity, the above method cannot trigger a wireless connection between the devices, thus preventing rapid information sharing.
[0080] Furthermore, while users can control the sharing process in the aforementioned information-sharing processes, they cannot fully perceive the sharing process itself. For example, users cannot perceive the transmission process, location, and duration of the target information, resulting in a poor user experience.
[0081] Therefore, this application provides an information sharing method. Through this method, electronic devices can not only quickly share information with other electronic devices via "one-touch transfer" without relying on NFC hardware, but also display corresponding transmission animations based on the collision area of the electronic device, so that users can fully perceive the sharing status, sharing location, sharing duration and other sharing processes, and enhance the interactivity between users, resulting in a better user experience.
[0082] Figure 3 This is a schematic diagram of the communication system to which the information sharing method provided in the embodiments of this application is applicable. See also: Figure 3 As shown, the communication system includes a first electronic device 100 and a second electronic device 200. The first electronic device 100 supports sending target information to the second electronic device 200 via a "one-touch transfer" method. Details are shown below.
[0083] The first electronic device 100, also known as a transmitter, transmitting device, or source device, includes multiple different areas, such as... Figure 4The left side, right side, top side, bottom side, screen, and back cover are shown. The first electronic device 100 supports detecting its own collision area, and after determining the collision area, it directly or according to user operation executes the business function corresponding to the first area. For example, after detecting a collision in its first area, the first electronic device 100 displays the information sharing animation corresponding to the first area (i.e., the first animation) and shares the target information with the second electronic device 200.
[0084] The second electronic device 200, also known as a receiver, receiving device, scanning device, or target device, is the electronic device that collides with the first area of the first electronic device 100. The second electronic device 200 also includes multiple different areas, for example... Figure 4 The left side, right side, top side, bottom side, screen, and back cover are shown. The second electronic device 200 supports detecting its own collision area, and after determining the collision area, it directly or according to user operation executes the business function corresponding to the second area. For example, after detecting a collision in its second area, the second electronic device 200 displays the information sharing animation corresponding to the second area (i.e., the second animation) and receives target information shared from the first electronic device 100.
[0085] It should be noted that in the first electronic device 100 and the second electronic device 200, a collision can be considered to have occurred in any position within any region. Taking the top edge as an example, a collision can be considered to have occurred at the top edge regardless of whether it occurs at the left, middle, or right position.
[0086] In this application embodiment, the electronic devices (including the first electronic device 100 and the second electronic device 200) can be mobile phones, tablets, computers with wireless transceiver capabilities, smart TVs, projectors, wearable devices (such as smartwatches), in-vehicle devices, augmented reality (AR) / virtual reality (VR) devices, ultra-mobile personal computers (UMPCs), netbooks, personal digital assistants (PDAs), and other electronic devices. This application embodiment does not limit the specific type of electronic device.
[0087] Figure 5This is a schematic diagram of the structure of an electronic device provided in one embodiment of this application. The electronic device can be a first electronic device 100 or a second electronic device 200. The electronic device may include a processor 210, an external memory interface 220, an internal memory 221, a universal serial bus (USB) interface 230, a charging management module 240, a power management module 241, a battery 242, antenna 1, antenna 2, a mobile communication module 250, a wireless communication module 260, an audio module 270, a speaker 270A, a receiver 270B, a microphone 270C, a headphone jack 270D, a sensor module 280, buttons 290, a motor 291, an indicator 292, a camera 293, a display screen 294, and a subscriber identification module (SIM) card interface 295, etc. The sensor module 280 may include a pressure sensor 280A, a gyroscope sensor 280B, a barometric pressure sensor 280C, a magnetic sensor 280D, an accelerometer sensor 280E, a distance sensor 280F, a proximity sensor 280G, a fingerprint sensor 280H, a temperature sensor 280J, a touch sensor 280K, an ambient light sensor 280L, a bone conduction sensor 280M, etc.
[0088] It is understood that the structures illustrated in the embodiments of this application do not constitute a specific limitation on the electronic device. In other embodiments of this application, the electronic device may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware. For example, when the electronic device is a mobile phone or a tablet computer, it may include all the components illustrated, or it may include only some of the components illustrated.
[0089] Processor 210 may include one or more processing units, such as an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural network processing unit (NPU). These different processing units may be independent devices or integrated into one or more processors.
[0090] The controller can serve as the nerve center and command center of an electronic device. Based on the instruction opcode and timing signals, the controller generates operation control signals to control the fetching and execution of instructions.
[0091] The processor 210 may also include a memory for storing instructions and data. In some embodiments, the memory in the processor 210 is a cache memory. This memory can store instructions or data that the processor 210 has just used or that are used repeatedly. If the processor 210 needs to use the instruction or data again, it can retrieve it directly from the memory. This avoids repeated accesses, reduces the waiting time of the processor 210, and thus improves the efficiency of the system.
[0092] The charging management module 240 receives charging input from a charger. The charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 240 receives charging input from the wired charger via a USB interface 230. In some wireless charging embodiments, the charging management module 240 receives wireless charging input via the wireless charging coil of the electronic device. While charging the battery 242, the charging management module 240 can also supply power to the electronic device via the power management module 241.
[0093] The power management module 241 connects the battery 242, the charging management module 240, and the processor 210. The power management module 241 receives input from the battery 242 and / or the charging management module 240, providing power to the processor 210, internal memory 221, external memory, display 294, camera 293, and wireless communication module 260, etc. The power management module 241 can also monitor parameters such as battery capacity, battery cycle count, and battery health status (leakage current, impedance).
[0094] In some other embodiments, the power management module 241 may also be located within the processor 210. In other embodiments, the power management module 241 and the charging management module 240 may also be located in the same device.
[0095] The wireless communication function of electronic devices can be realized through antenna 1, antenna 2, mobile communication module 250, wireless communication module 260, modem processor and baseband processor, etc.
[0096] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in the electronic device can be used to cover one or more communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antennas can be used in conjunction with a tuning switch.
[0097] The mobile communication module 250 can provide solutions for wireless communication applications in electronic devices, including 2G / 3G / 4G / 5G. The mobile communication module 250 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc. The mobile communication module 250 can receive electromagnetic waves via antenna 1, and perform filtering, amplification, and other processing on the received electromagnetic waves before transmitting them to a modem processor for demodulation. The mobile communication module 250 can also amplify the signal modulated by the modem processor and convert it into electromagnetic waves for radiation via antenna 1.
[0098] In some embodiments, at least some functional modules of the mobile communication module 250 may be disposed in the processor 210. In some embodiments, at least some functional modules of the mobile communication module 250 and at least some modules of the processor 210 may be disposed in the same device.
[0099] The modem processor may include a modulator and a demodulator. The modulator modulates the low-frequency baseband signal to be transmitted into a mid-to-high frequency signal. The demodulator demodulates the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After processing by the baseband processor, the low-frequency baseband signal is transmitted to the application processor. The application processor outputs sound signals through an audio device (not limited to speaker 270A, receiver 270B, etc.) or displays images or videos through the display screen 294. In some embodiments, the modem processor may be a separate device. In other embodiments, the modem processor may be independent of the processor 210 and may be housed in the same device as the mobile communication module 250 or other functional modules.
[0100] The wireless communication module 260 can provide solutions for wireless communication applications in electronic devices, including wireless local area networks (WLAN) (such as Wi-Fi), Bluetooth, global navigation satellite system (GNSS), frequency modulation (FM), NFC, infrared (IR), Sparklink basic (SLB), or Sparklink low energy (SLE). The wireless communication module 260 can be one or more devices integrating at least one communication processing module. The wireless communication module 260 receives electromagnetic waves via antenna 2, performs frequency modulation and filtering of the electromagnetic wave signal, and sends the processed signal to processor 210. The wireless communication module 260 can also receive signals to be transmitted from processor 210, perform frequency modulation and amplification, and convert them into electromagnetic waves for radiation via antenna 2.
[0101] In some embodiments, antenna 1 of the electronic device is coupled to mobile communication module 250, and antenna 2 is coupled to wireless communication module 260, enabling the electronic device to communicate with networks and other devices via wireless communication technology. Wireless communication technology may include Global System for Mobile Communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Time-Division Code Division Multiple Access (TD-SCDMA), Long Term Evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technologies, etc. GNSS can include the Global Positioning System (GPS), the Global Navigation Satellite System (GLONASS), the BeiDou Navigation Satellite System (BDS), the Quasi-Zenith Satellite System (QZSS), and / or satellite-based augmentation systems (SBAS).
[0102] Electronic devices implement display functions through a GPU, a display screen 294, and an application processor. The GPU is a microprocessor for image processing, connecting the display screen 294 and the application processor. The GPU is used to perform mathematical and geometric calculations and for graphics rendering. The processor 210 may include one or more GPUs, which execute program instructions to generate or modify display information.
[0103] The display screen 294 is used to display images, videos, etc. For example, the teaching videos and user action video in this embodiment of the application. The display screen 294 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a Miniled LED, a MicroLED, a Micro-OLED, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the electronic device may include one or N display screens 294, where N is a positive integer greater than 1.
[0104] Electronic devices can achieve shooting functions through ISP, camera 293, video codec, GPU, display 294 and application processor.
[0105] The ISP (Image Signal Processor) is used to process data fed back from the camera 293. For example, when taking a picture, the shutter is opened, and light is transmitted through the lens to the camera's photosensitive element. The light signal is converted into an electrical signal, and the camera's photosensitive element transmits the electrical signal to the ISP for processing, transforming it into an image visible to the naked eye. The ISP can also perform algorithmic optimization of image noise, brightness, and skin tone. The ISP can also optimize parameters such as exposure and color temperature of the shooting scene. In some embodiments, the ISP can be set in the camera 293.
[0106] Camera 293 is used to capture still images or videos. An object is projected onto a photosensitive element by generating an optical image through the lens. The photosensitive element can be a charge-coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the light signal into an electrical signal, which is then passed to an ISP for conversion into a digital image signal. The ISP outputs the digital image signal to a DSP for processing. The DSP converts the digital image signal into image signals in standard RGB, YUV, or other formats. In some embodiments, the electronic device may include one or N cameras 293, where N is a positive integer greater than 1.
[0107] Digital signal processors (DSPs) are used to process digital signals. Besides digital image signals, they can also process other digital signals. For example, when an electronic device is selecting a frequency, a DSP can perform a Fourier transform on the frequency energy.
[0108] Video codecs are used to compress or decompress digital video. Electronic devices can support one or more video codecs. This allows the electronic device to play or record video in various encoded formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
[0109] An NPU (Neural Processing Unit) is a computational processor for neural networks (NNs). By borrowing the structure of biological neural networks, such as the transmission patterns between neurons in the human brain, it can rapidly process input information and continuously learn on its own. NPUs enable intelligent cognitive applications in electronic devices, such as image recognition, facial recognition, speech recognition, and text understanding.
[0110] In the embodiments of this application, the NPU or other processor can be used to perform operations such as analyzing and processing images in videos stored in electronic devices.
[0111] The external storage interface 220 can be used to connect an external memory card, such as a microsecure digital memory card (Micro SD card), to expand the storage capacity of the electronic device. The external memory card communicates with the processor 210 through the external storage interface 220 to perform data storage functions. For example, music, video, and other files can be saved on the external memory card.
[0112] Internal memory 221 can be used to store executable program code, including instructions. Processor 210 executes various functional applications and data processing of the electronic device by running the instructions stored in internal memory 221. Internal memory 221 may include a program storage area and a data storage area. The program storage area may store the operating system and at least one application program required for a function (such as sound playback, image playback, etc.). The data storage area may store data created during the use of the electronic device (such as audio data, phonebook, etc.).
[0113] In addition, the internal memory 221 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, universal flash storage (UFS), etc.
[0114] Electronic devices can implement audio functions through audio modules 270, speakers 270A, receivers 270B, microphones 270C, headphone jacks 270D, and application processors.
[0115] The audio module 270 is used to convert digital audio signals into analog audio signals for output, and also to convert analog audio inputs into digital audio signals. The audio module 270 can also be used for encoding and decoding audio signals. In some embodiments, the audio module 270 may be located in the processor 210, or some functional modules of the audio module 270 may be located in the processor 210.
[0116] The speaker 270A, also known as a "loudspeaker," is used to convert audio electrical signals into sound signals. Electronic devices can listen to music or make hands-free calls through the speaker 270A; for example, the speaker can play the comparison analysis results provided in the embodiments of this application.
[0117] The receiver 270B, also known as the "earpiece," is used to convert audio electrical signals into sound signals. When an electronic device answers a phone call or voice message, the receiver 270B can be brought close to the ear to hear the voice.
[0118] Microphone 270C, also known as a "microphone" or "voice transducer," is used to convert sound signals into electrical signals. When making a phone call or sending a voice message, the user can speak by bringing their mouth close to microphone 270C, inputting the sound signal into microphone 270C.
[0119] The headphone jack 270D is used to connect wired headphones. The headphone jack 270D can be a USB 230 interface or a 3.5mm Open Mobile Terminal Platform (OMTP) standard interface, a CTIA (Cellular Telecommunications Industry Association of the USA) standard interface.
[0120] Pressure sensor 280A is used to sense pressure signals and convert them into electrical signals. In some embodiments, pressure sensor 280A can be disposed on display screen 294. There are many types of pressure sensors 280A, such as resistive pressure sensors, inductive pressure sensors, and capacitive pressure sensors. A capacitive pressure sensor may include at least two parallel plates with conductive material. When a force is applied to pressure sensor 280A, the capacitance between the electrodes changes. The electronic device determines the pressure intensity based on the change in capacitance. When a touch operation is applied to display screen 294, the electronic device detects the touch operation intensity based on pressure sensor 280A. The electronic device can also calculate the touch position based on the detection signal from pressure sensor 280A.
[0121] In some embodiments, touch operations applied to the same touch location but with different touch intensity can correspond to different operation commands. For example, when a touch operation with an intensity less than a first pressure threshold is applied to the SMS application icon, a command to view an SMS message is executed. When a touch operation with an intensity greater than or equal to the first pressure threshold is applied to the SMS application icon, a command to create a new SMS message is executed.
[0122] The gyroscope sensor 280B can be used to determine the motion attitude of an electronic device. In some embodiments, the angular velocity of the electronic device about three axes (i.e., the x, y, and z axes) can be determined by the gyroscope sensor 280B.
[0123] The barometric pressure sensor 280C is used to measure air pressure. In some embodiments, the electronic device calculates altitude using the air pressure value measured by the barometric pressure sensor 280C to assist in positioning and navigation.
[0124] The magnetic sensor 280D includes a Hall effect sensor. Electronic devices can use the magnetic sensor 280D to detect the opening and closing of a flip cover.
[0125] The 280E accelerometer can detect the magnitude of acceleration in various directions (typically three axes, such as X, Y, and Z) of an electronic device. When the electronic device is stationary, it can detect the magnitude and direction of gravity. It can also be used to identify the posture of electronic devices, and is applicable to screen orientation switching, pedometers, and other applications.
[0126] The distance sensor 280F is used to measure distance. Electronic devices can measure distance using infrared or laser. In some embodiments, during a shooting scene, the electronic device can utilize the distance sensor 280F to measure distance for rapid focusing.
[0127] The proximity light sensor 280G may include, for example, a light-emitting diode (LED) and a light detector, such as a photodiode. The LED may be an infrared LED. Electronic devices emit infrared light outward through LEDs.
[0128] The ambient light sensor 280L is used to detect ambient light intensity. Electronic devices can adaptively adjust the brightness of the display screen 294 based on the detected ambient light intensity. The ambient light sensor 280L can also be used to automatically adjust the white balance when taking pictures.
[0129] The fingerprint sensor 280H is used to collect fingerprints. Electronic devices can utilize the characteristics of the collected fingerprints to achieve fingerprint unlocking, app access locks, fingerprint photography, fingerprint answering of calls, etc.
[0130] Temperature sensor 280J is used to detect temperature. In some embodiments, the electronic device uses the temperature detected by temperature sensor 280J to execute a temperature processing strategy. For example, when the temperature reported by temperature sensor 280J exceeds a threshold, the electronic device reduces the performance of the processor located near temperature sensor 280J to reduce power consumption and implement thermal protection.
[0131] Touch sensor 280K, also known as a "touch panel," can be located on display screen 294. The touch sensor 280K and display screen 294 together form a touchscreen, also known as a "touchscreen." Touch sensor 280K detects touch operations applied to or near it. The touch sensor can transmit the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through display screen 294. In other embodiments, touch sensor 280K may also be located on the surface of the electronic device, in a different position than display screen 294.
[0132] The bone conduction sensor 280M can acquire vibration signals. In some embodiments, the bone conduction sensor 280M can acquire vibration signals from vibrating bone fragments in the human vocal cords. The bone conduction sensor 280M can also contact the human pulse to receive blood pressure signals.
[0133] Buttons 290 include a power button, volume buttons, etc. Buttons 290 can be mechanical buttons or touch-sensitive buttons. The electronic device can receive button input and generate key signal inputs related to user settings and function control of the electronic device.
[0134] Motor 291 can generate vibration alerts. Motor 291 can be used for incoming call vibration alerts or for touch vibration feedback. For example, different vibration feedback effects can be corresponding to touch operations applied to different applications (such as taking photos, playing audio, etc.).
[0135] Indicator 292 can be an indicator light, which can be used to indicate charging status, power changes, messages, missed calls, notifications, etc.
[0136] The SIM card interface 295 is used to connect a SIM card. The SIM card can be inserted into or removed from the SIM card interface 295 to achieve contact and separation with the electronic device. The electronic device can support one or N SIM card interfaces, where N is a positive integer greater than 1.
[0137] Based on the communication system and electronic equipment provided in the above embodiments, the process of the first electronic device 100 sharing information with the second electronic device 200 through a "one-touch transfer" method will be described in detail below.
[0138] First, referring to Table 1, the usage scenarios supported by the information sharing method provided in this embodiment are illustrated from multiple aspects such as the devices, applications / modules, and objects to which "One-Touch Transfer" is applicable.
[0139] Applicable devices: Suitable for information sharing between any two electronic devices, both of which can have display screens, such as mobile phones and mobile phones, mobile phones and tablets, mobile phones and televisions, mobile phones and laptops. Alternatively, only one of the two electronic devices (e.g., the sender or receiver) can have a display screen, such as a mobile phone and a speaker.
[0140] Applicable Applications / Modules: This category applies to applications / modules developed by the developers of electronic devices (i.e., self-developed applications / modules), as well as third-party applications / modules. Examples of self-developed applications / modules include: Contacts, Lock Screen Themes, Themes, Gallery, Hotspot / Network, Metaservices, Wallet, Browser, Music, Calendar, Voice Recorder, Notes, Huawei Laptop (or PC / Tablet), Reader, File Manager, Huawei Video, Huawei Health, Phone, MeeTime, App Store, Game Center, Desktop, Weather, Smart Life, Vmall, My Huawei, etc. Third-party applications / modules include: Shopping Apps, Audio Apps, Video Apps, Game Apps, etc.
[0141] Applicable objects: For example, it is applicable to contact information in the address book, lock screen wallpaper in the lock screen theme, theme information in the theme, pictures / videos in the gallery, Wi-Fi / hotspot in the hotspot / network, afternoon tea in the meta-service, access card in the wallet, etc. See Table 1 for details, which will not be elaborated here.
[0142] Table 1. Information sharing scenarios for one-touch transmission
[0143]
[0144]
[0145] Taking the information sharing scenario shown in Table 1 as an example, the first electronic device 100 can share various target information with the second electronic device 200 through a "one-touch transfer" method according to user needs. For example, when the first electronic device 100 selects a target image, it can share the target image with the second electronic device 200 by touching it. Or, when the first electronic device 100 displays a target product, it can share the product link of the target product with the second electronic device 200 by touching it.
[0146] Next, based on the above-mentioned "one-touch transfer" information sharing scenario, the information sharing process provided in the embodiments of this application will be described in detail.
[0147] Figure 6 This is a schematic flowchart illustrating an embodiment of an information sharing method provided in this application. The method relates to the process by which an electronic device displays transmission animations based on a collision area in a "one-touch transfer" information sharing scenario, specifically including the following steps S600 to S604.
[0148] S600, the first electronic device 100 and the second electronic device 200 collide with each other.
[0149] To facilitate user operation, this embodiment uses inter-device collision as the trigger condition for the first electronic device 100 to share information with other electronic devices (such as the second electronic device 200). Based on this, if a user needs to share target information from the first electronic device 100 with the second electronic device 200, then for example... Figure 7 As shown, users typically need to hold the first electronic device 100 and collide with the second electronic device 200 to trigger subsequent information sharing processes (e.g., S601-S604).
[0150] In some embodiments, the information sharing process is triggered only when the first electronic device 100 and the second electronic device 200 collide with each other in fixed areas. In other words, the first area of the first electronic device 100 and the second area of the second electronic device 200 are specific areas, not arbitrary areas. For example, if both the first and second areas are tops, then the subsequent information sharing process can only be triggered when the top of the first electronic device 100 collides with the top of the second electronic device 200.
[0151] In other embodiments, the first electronic device 100 and the second electronic device 200 may not be limited to a collision area. For example, it is not required that the first electronic device 100 and the second electronic device 200 must collide with each other at the top to trigger the "one-touch transmission" function provided in this embodiment. The information sharing function can be triggered when any two positions of the two electronic devices collide, and the animation corresponding to the collision area is displayed during the information sharing process, which has a better user experience.
[0152] For example Figure 8A As shown, the top edge of the first electronic device 100 collides with the top edge of the second electronic device 200, that is, the first electronic device 100 and the second electronic device 200 collide "head-to-head," thereby triggering the subsequent sharing process. Or, for example... Figure 8B As shown, the right edge of the first electronic device 100 collides with the left edge of the second electronic device 200, thereby triggering the subsequent sharing process. Or, for example... Figure 8C As shown, the top edge of the first electronic device 100 collides with the left side edge of the second electronic device 200, thereby triggering the subsequent sharing process.
[0153] S601, the first electronic device 100 detects a collision in its first area.
[0154] In some embodiments, pressure sensors are provided in various regions of the first electronic device 100, such as the left side, right side, top edge, bottom edge, screen, and back cover. Based on this, the first electronic device 100 can determine the first region where a collision occurs based on the pressure from each pressure sensor.
[0155] For example, a first pressure sensor is provided in the first area (such as the left side) of the first electronic device 100. If the pressure data of the first pressure sensor (i.e. the first pressure data) is greater than the pressure threshold (e.g., any value in the range of 5 to 10 Newtons (N)), it is determined that a collision has occurred in the first area of the first electronic device 100.
[0156] In other embodiments, the first electronic device 100 is provided with an acceleration sensor. The first electronic device 100 obtains the acceleration of the first electronic device 100 along each coordinate axis at a preset sampling frequency (e.g., 500Hz) through the acceleration sensor, and determines the first area where the first electronic device 100 collides based on the change characteristics of the acceleration.
[0157] See Figure 9As shown, the acceleration coordinate system of the first electronic device 100 includes an X-axis, a Y-axis, and a Z-axis. The X-axis is parallel to the top edge of the first electronic device 100 and points from its left side to its right side. The Y-axis is parallel to the left side of the first electronic device 100 and points from its bottom edge to the top edge of the device. The Z-axis is perpendicular to the screen of the first electronic device 100 and points upwards. During operation, the accelerometer continuously collects the acceleration of the first electronic device 100 along the X, Y, and Z axes and reports it to the processor. The processor analyzes and processes the received acceleration values and determines the first collision area of the first electronic device 100 based on the analysis results.
[0158] For example, the first electronic device 100 maintains a data list storing acceleration data from the most recent N sampling points. The acceleration data at each sampling point includes the acceleration of the first electronic device 100 along the X, Y, and Z axes. Here, N is a preset value, such as 50, 80, or 100, and the sampling time of the (i-1)th sampling point in the data list is earlier than the sampling time of the ith sampling point, where i is any value from 2 to N. This data list can be divided into three intervals according to chronological order, such as a first interval, a second interval, and a third interval. This embodiment does not limit the length of each interval. For example, if N = 80 and the length of the second interval is greater than that of the first and third intervals, see [reference needed]. Figure 10 As shown, the first to 20th sampling points in the data list correspond to the first interval, the 21st to 60th sampling points correspond to the second interval, and the 61st to 80th sampling points correspond to the third interval.
[0159] The first electronic device 100 can determine its collision area based on the data list, specifically including the following contents (1) to (3).
[0160] (1) The first electronic device 100 subtracts the adjacent sampled data of each coordinate axis in the data list to reduce the influence of factors such as device posture and device movement on the acceleration data. For example, the acceleration of the second sample point on the X-axis is subtracted from the acceleration of the first sample point, the acceleration of the third sample point is subtracted from the acceleration of the second sample point, and so on, to obtain the preprocessed acceleration data.
[0161] by Figure 11 Taking the acceleration data shown in (a) as an example, after preprocessing the acceleration data by subtracting adjacent sampling points, we can obtain, for example... Figure 11 The acceleration data shown in (b) is as follows. It can be seen that the fluctuations in the preprocessed acceleration data are significantly reduced, which is beneficial for identifying collision scenarios. In addition, the intersection of the preprocessed acceleration with the coordinate axis where acceleration = 0 corresponds to the peaks and troughs of the original acceleration curve.
[0162] (2) The first electronic device 100 determines the average value of acceleration on each coordinate axis based on the preprocessed acceleration data, and determines the variance based on the average value.
[0163] (3) Taking the first coordinate axis of the first electronic device 100 as including opposite first and second directions, and the first direction pointing to the first region as an example, the first electronic device 100 determines that its first region has collided when it satisfies the following collision features 1 to 3, or when it satisfies collision features 2 to 4, or when it satisfies collision features 1 to 4.
[0164] Collision feature 1: On the first coordinate axis, the variance in the first interval is less than a first threshold (e.g., 0.001), the variance in the second interval is greater than a second threshold (e.g., 0.1), and the variance in the third region is less than the second threshold but greater than the first threshold. This collision feature 1 is used to determine that a collision has occurred in the first electronic device 100, and the coordinate axis on which the collision occurred may be the first coordinate axis.
[0165] Collision Feature 2: Within the second interval, the maximum acceleration of the first coordinate axis is greater than the maximum acceleration of the other coordinate axes. This collision feature 2 is used to determine that a collision has occurred on the first coordinate axis.
[0166] Collision Feature 3: Within the second interval, at the starting position of the first coordinate axis (e.g., the first 10 or 15 sampling points), the number of sampling points showing acceleration in the second direction is greater than the number of sampling points showing acceleration in the first direction. This collision feature 2 is used to determine that a collision has occurred in the region corresponding to the first direction of the first coordinate axis.
[0167] Collision Feature 4: The number of times the acceleration direction changes along the first coordinate axis exceeds a threshold, such as 4 or 6 times. This is because a collision causes the device's acceleration to oscillate more frequently, i.e., the acceleration direction switches in opposite directions multiple times. Therefore, this collision feature 4 can confirm the occurrence of a collision event.
[0168] For example, according to Figure 11 The acceleration data shown in (a) indicates that a collision occurred in the first electronic device 100 using collision feature 1, and the coordinate axes of the collision could be the X and Y axes. Collision feature 2 can pinpoint the Y-axis as the location of the collision. Collision feature 3 can pinpoint the collision direction to the region corresponding to the positive direction of the Y-axis, i.e., the top of the first electronic device 100. Collision feature 4 further confirms that a collision event occurred in the first electronic device 100. In summary, using collision features 1 to 4, the first electronic device 100 can be determined that the collision occurred at its top edge.
[0169] In some other embodiments, the acceleration variation trends during collisions in different regions of the electronic device are also different. Therefore, the first electronic device 100 can use a neural network model to determine its collision region based on the collected acceleration data. For example, this neural network model is a long short-term memory (LSTM) model or a recurrent neural network (RNN) model, etc. This neural network model is trained using a large amount of acceleration data from collisions in different regions and can identify the corresponding collision region based on the collected acceleration data.
[0170] S602, the second electronic device 200 detected a collision in its second area.
[0171] It should be noted that the specific process of S602 can be found in S601, and will not be repeated here in this embodiment.
[0172] S603, during the process of displaying the first animation corresponding to the first area, the first electronic device 100 sends target information to the second electronic device 200.
[0173] In this embodiment, motion effects, also known as animation effects, not only help enhance the visual smoothness of interface changes but also vividly express and display the scene. For example, during the process of sharing target information, motion effects can make the information sharing process more vivid and allow users to fully perceive the status, location, and duration of information sharing, resulting in a better user experience.
[0174] It should be noted that in the first electronic device 100, in order to enable users to better perceive the information transmission process triggered by the collision, different collision areas correspond to different motion effects.
[0175] For example, the display position of the animation effect corresponds to different collision areas. Taking the first area as an example, the first animation effect corresponding to the first area is displayed near the first area. The distance between the position near the first area and the first area is less than a threshold (such as 5cm, 6cm, etc.). For example, the animation effect corresponding to the left side is displayed in the area near the left side of the screen, such as the left half of the screen. The animation effect corresponding to the top side is displayed in the area near the top side of the screen, such as the upper half of the screen. The animation effect corresponding to the right side is displayed in the area near the right side of the screen, such as the right half of the screen.
[0176] And / or, the motion directions of the animations corresponding to different collision areas are different. Taking the first area as an example, in the first animation corresponding to the first area, the animation moves towards the first area. For example, in the animation corresponding to the left side, the animation moves towards the left side. Or, in the animation corresponding to the right side, the animation moves towards the right side. In the animation corresponding to the top side, the animation moves towards the top side.
[0177] It should be noted that any movement of the first motion effect toward any position in the first region is considered movement toward the first region. For example, movement toward the left, middle, or right side of the top edge is considered movement toward the top edge.
[0178] On the first electronic device 100 side (i.e., at the transmitting end), the animation effects of each region may include preset animation effects and / or animation effects corresponding to the target object. It should be noted that the animation effects of each region must be able to reflect the direction of the collision. For example, the style of the preset animation effect could be water ripples moving towards the collision area, a transmission wormhole, etc. See [link to relevant documentation]. Figure 12A As shown, the pattern of the water ripples can be water waves moving towards the collision area. See also Figure 12B As shown, the motion effect corresponding to the target object can be that the image of the target object moves towards the collision area, gradually shrinking and disappearing. This embodiment does not limit the specific content of the motion effect.
[0179] S604, during the process of displaying the second motion effect corresponding to the second area, the second electronic device 200 receives target information from the second electronic device 200.
[0180] Similarly, in the second electronic device 200, in order to enable users to better perceive the information receiving process triggered by the collision, different collision areas also correspond to different motion effects.
[0181] For example, the display position of the animation effects corresponds to different areas. Taking the second area as an example, the second animation effect corresponding to the second area is displayed near the second area. The distance between the position near the second area and the second area is less than a threshold (such as 5cm, 6cm, etc.). For example, the animation effect corresponding to the left side is displayed in the area near the left side of the screen, such as the left half of the screen. The animation effect corresponding to the top side is displayed in the area near the top side of the screen, such as the upper half of the screen. The animation effect corresponding to the right side is displayed in the area near the right side of the screen, such as the right half of the screen.
[0182] And / or, the motion direction of the animations corresponding to different areas is different. Taking the second area as an example, in the second animation corresponding to the second area, the animation moves towards the second area or moves away from the second area. For example, in the animation corresponding to the left side, the animation moves towards the left side or moves away from the left side. Or, in the animation corresponding to the right side, the animation moves towards the right side or moves away from the right side. In the animation corresponding to the top side, the animation moves towards the top side or moves away from the top side.
[0183] It should be noted that any movement of the second motion effect toward any position in the second region is considered movement toward the second region. For example, movement toward the left, middle, or right side of the top edge is considered movement toward the top edge.
[0184] On the second electronic device 200 side (i.e., at the receiving end), the animation effects in each area may include preset animation effects and / or animation effects corresponding to the target object. For example, the preset animation effect may be water ripples, a transmission wormhole, etc. See [link to relevant documentation]. Figure 13A As shown, the pattern of this water ripple can be water waves moving away from the collision area. See also Figure 13B As shown, the animation effect corresponding to the target object can be a scene where the target object is received, gradually grows larger, moves away from the collision area, and is finally displayed on the interface. This embodiment does not limit the specific content of the animation effect.
[0185] Through the information sharing method provided in this application embodiment, the first electronic device 100 can quickly share target information with the second electronic device 200, and during the sharing process, the user can clearly perceive the information sharing process, the interaction between users is strong, and it has a good user experience.
[0186] The following example uses mobile phone A as the first electronic device 100 and mobile phone B as the second electronic device 200 to illustrate the dynamic display scenarios in the "one-touch transfer" process, combined with different collision methods.
[0187] Example 1: See Figure 14A As shown, after the top edge of phone A collides with the top edge of phone B, phone A displays water ripples moving towards the top edge and sends target information to phone B. Phone B displays water ripples moving towards the top edge and receives the target information from phone A. After the target information transmission is complete, both phone A and phone B stop displaying water ripples.
[0188] Example 2: See Figure 14BAs shown, after the right edge of phone A collides with the left edge of phone B, phone A displays water ripples moving to the right and sends target information to phone B. Phone B displays water ripples moving to the left and receives the target information from phone A. After the target information transmission is complete, both phone A and phone B stop displaying water ripples.
[0189] Example 3: See Figure 14C As shown, after the top edge of phone A collides with the left edge of phone B, phone A displays a water ripple pattern moving towards the top edge and sends target information to phone B. Phone B displays a water ripple pattern moving away from the left edge and receives the target information from phone A. After the target information transmission is complete, both phone A and phone B stop displaying water ripples.
[0190] The method provided in this embodiment enables electronic devices to display dynamic effects corresponding to the collision area during the information sharing process when sharing information based on the "one-touch transfer" method. This not only achieves a natural and seamless transmission, but also allows users to clearly perceive the sharing status, location, duration, and other aspects of the sharing process, thus enhancing the user's interactive experience of face-to-face content sharing.
[0191] In this embodiment, the information that the first electronic device 100 supports sharing with the second electronic device 200 can be preset information or information currently displayed or selected by the first electronic device 100. The information sharing method provided in this application embodiment will be specifically described below in conjunction with different forms of information.
[0192] (i) The target information is preset information.
[0193] In this embodiment, the preset information may be the business card of the user to whom the first electronic device 100 belongs, the wallpaper currently displayed on the first electronic device 100, or other information preset by the user. This embodiment does not limit the specific content of the preset information.
[0194] When the target information to be transmitted is preset information, the first electronic device 100 and the second electronic device 200 can share their target information with each other. For example, the first electronic device 100 shares the first target information with the second electronic device 200, and the second electronic device 200 shares the second target information with the first electronic device 100. Furthermore, the first electronic device 100 and the second electronic device 200 can share target information with each other even when both are in an unlocked state, without needing to display the target information on the interface. Additionally, the first animation of the first electronic device 100 and the second animation of the second electronic device 200 both move towards their respective collision areas.
[0195] For example Figure 14BAs shown, both the first electronic device 100 and the second electronic device 200 are in an unlocked state, and the right side of the first electronic device 100 collides with the left side of the second electronic device 200. In response to this collision, the first electronic device 100 displays a water ripple effect moving to the right, and the second electronic device 200 displays a water ripple effect moving to the left. During the display of the above effects, the first electronic device 100 shares business card 1 with the second electronic device 200, and the second electronic device 200 shares business card 2 with the first electronic device 100.
[0196] (ii) The target information is the information that is displayed or selected.
[0197] Figure 15 This is an illustrative flow diagram of an information sharing method provided in another embodiment of this application. Specifically, it includes the following steps S1501 to S1512.
[0198] S1501, the first electronic device 100 displays a first interface, which includes target information to be sent.
[0199] In this embodiment, as shown in Table 1, the first interface can be the relevant interface of the application / module that supports "one-touch transfer" in the first electronic device 100. The interface displays information that supports sharing, such as contact information in the address book, lock screen wallpaper in the lock screen theme, theme information in the theme, pictures / videos in the gallery, etc.
[0200] S1502, the second electronic device 200 displays the second interface.
[0201] In this embodiment, the second interface can be any interface displayed after the second electronic device 200 is unlocked, such as the home screen, application interface, settings interface, contacts interface, etc. In other words, this embodiment does not limit the display interface of the second electronic device 200; the second electronic device 200 only needs to be unlocked and its screen turned on.
[0202] It should be noted that this embodiment does not restrict the order of S1501 and S1502. S1501 can be executed by the first electronic device 100 first, and then S1502 can be executed by the second electronic device 200; or S1502 can be executed by the second electronic device 200 first, and then S1501 can be executed by the first electronic device 100.
[0203] When the first electronic device 100 displays the first interface and the second electronic device 200 displays the second interface, if the user needs to share the target information currently displayed by the first electronic device 100 with the second electronic device 200, the user needs to hold the first electronic device 100 and the second electronic device 200 together and collide them to trigger the subsequent information sharing process.
[0204] It is understandable that even if the first electronic device 100 displays the first interface and the second electronic device 200 displays the second interface, the subsequent information sharing process will not be triggered if the first electronic device 100 does not experience or detect a collision.
[0205] S1503, during the process of displaying the first interface, the first electronic device 100 detects a collision in its first area.
[0206] S1504, during the process of displaying the second interface, the second electronic device 200 detected a collision in its second area.
[0207] In this embodiment, S1503 to S1504 are specifically referred to as S601 to S602, and will not be repeated here.
[0208] S1505, in response to the collision, the first electronic device 100 sends a first broadcast message, which includes the first verification information of the first electronic device.
[0209] In this embodiment, the first broadcast information can be Bluetooth Low Energy (BLE) broadcast, Bluetooth Classic (BT) broadcast, SLB broadcast, SLE broadcast, Wi-Fi broadcast, or NFC broadcast. This embodiment does not restrict the communication protocol used by the first electronic device 100 when sending the first broadcast information.
[0210] In this embodiment, the first verification information is used by other electronic devices (e.g., the second electronic device 200) to verify the first electronic device 100. For example, the first verification information may be the actual transmission power of the first broadcast information, or the first collision characteristics when the first electronic device 100 collides, such as the first collision time, the first acceleration, etc.
[0211] S1506, the second electronic device 200 verifies the first electronic device 100 according to the first verification information.
[0212] In some embodiments, the first verification information includes the actual transmission power of the first broadcast information. Based on this, the second electronic device 200 can determine the distance between the first electronic device 100 and the second electronic device 200 according to the actual transmission power of the first broadcast information and the received signal strength indication (RSSI), and determine that the verification of the first electronic device 100 is passed if the distance is less than a distance threshold (e.g., 5cm, 10cm, 15cm).
[0213] Specifically, wireless signals typically attenuate during transmission due to environmental factors. This means the transmitted signal strength is usually greater than the RSSI of the wireless signal, and the attenuation increases with distance traveled. Empirical studies have found that the degree of attenuation and propagation distance of a wireless signal can be expressed by a first formula. Based on this formula, the second electronic device 200 determines its distance from the first electronic device 100 according to the RSSI of the first broadcast information.
[0214] In this embodiment, the first formula is as shown in formula (1):
[0215] Distance = 10 (advPower-Lin-Rssi-100.22) / 20 *1000 (1)
[0216] Wherein, Diatance is the ranging result in meters; advPower is the actual transmit power of the first electronic device 100, i.e., the total radiated power (TRP); Lin is the insertion loss of the second electronic device 200, which is usually a fixed value; RSSI is the received signal strength, which can be obtained by measurement.
[0217] In other embodiments, different collisions produce different collision characteristics. Based on the uniqueness of the collision, the collision characteristics of the first electronic device 100 and the second electronic device 200 are correlated to a certain extent. Therefore, the second electronic device 200 can verify the collision between devices based on the collision characteristics (such as acceleration during the collision, collision time, etc.).
[0218] Taking the first verification information as the first acceleration information of the first electronic device 100 at the time of the collision as an example, after receiving the first broadcast information, the second electronic device 200 obtains the second acceleration information of the second electronic device 200 at the time of the collision. If the first acceleration information matches the second acceleration information, then the verification of the first electronic device 100 is determined to be successful. The matching of the first acceleration information and the second acceleration information can be due to the same acceleration change pattern or the acceleration magnitude being basically the same, etc., and this embodiment does not impose any restrictions on this.
[0219] Taking the first verification information as the first moment information when the first electronic device 100 collides as an example, after receiving the first broadcast information, the second electronic device 200 obtains the second moment information when the second electronic device 200 collides. If the first moment information matches the second moment information, for example, if the time difference between the first moment and the second moment is less than a threshold (such as 100ms, 500ms, etc.), then it is determined that the verification of the first electronic device 100 has passed.
[0220] S1507, after the second electronic device 200 passes the verification of the first electronic device 100, the second electronic device 200 displays the second animation corresponding to the second area.
[0221] Optionally, before displaying the second animation, the second electronic device 200 first displays a second prompt message, which prompts the user to input confirmation of receiving the information.
[0222] In some implementations, the second prompt message is used to prompt the user to input a second swipe operation towards the second area. Subsequently, in response to the second swipe operation, the second electronic device 200 displays a second animation effect. For example, when the collision area of the second electronic device 200 is the left side, the second electronic device 200 displays as shown below. Figure 16A The second prompt message shown is used to prompt the user to "swipe left on the screen to receive information". When the second electronic device 200 detects the user's left swipe operation, it displays the second animation corresponding to the second area.
[0223] S1508, during the process of displaying the second animation, the second electronic device 200 sends a second broadcast message to the first electronic device 100, the second broadcast message including second verification information.
[0224] S1509, the first electronic device 100 verifies the second electronic device 200 according to the second verification information.
[0225] In this embodiment, the second verification information includes second collision features such as second acceleration information and second moment information when the second electronic device 200 collides. This embodiment does not impose specific limitations on this.
[0226] Taking the second verification information as the second acceleration information as an example, after receiving the second verification information, the first electronic device 100 acquires the first acceleration information at the time of the collision. If the first acceleration information matches the second acceleration information, then the verification of the second electronic device 200 is deemed successful. The matching of the first acceleration information and the second acceleration information can be due to the same acceleration change pattern or substantially the same acceleration magnitude, etc., and this embodiment does not impose any limitations on this.
[0227] Taking the second verification information as the second moment information as an example, after receiving the second verification information, the first electronic device 100 obtains the first moment information when the collision occurs. If the first moment information matches the second moment information, for example, if the time difference is less than a threshold (such as 100ms, 500ms, etc.), then the verification of the second electronic device 200 is determined to be successful.
[0228] The above S1505 to S1509 illustrate the process of mutual verification between the first electronic device 100 and the second electronic device 200. That is, the second electronic device 200 verifies the identity of the first electronic device 100 based on the first verification information sent by the first electronic device 100; and the first electronic device 100 verifies the identity of the second electronic device 200 based on the second verification information sent by the second electronic device 200.
[0229] In some embodiments, the identity of the first electronic device 100 may be verified by the second electronic device 200 based solely on the first verification information, without the second electronic device 200 needing to send the second verification information to the first electronic device 100.
[0230] In other embodiments, the identity of the second electronic device 200 may be verified by the first electronic device 100 based solely on the second verification information, without the first electronic device 100 needing to send the first verification information to the second electronic device 200.
[0231] S1510, after the first electronic device 100 passes the verification of the second electronic device 200, it displays the first animation corresponding to the first area.
[0232] Optionally, to avoid triggering information sharing due to accidental collisions in crowded scenarios, the first electronic device 100 displays a first prompt message before displaying the first animation. This first prompt message is used to prompt the user to input confirmation of the information sharing operation.
[0233] In some implementations, the first prompt message prompts the user to input a first swipe operation towards a first area, which controls the first electronic device 100 to send target information. Subsequently, in response to the first swipe operation, the first electronic device 100 begins to display a first animation corresponding to the first area. For example, as shown in 16B, when the collision area of the first electronic device 100 is the right side, the first electronic device 100 displays a first prompt message prompting the user to "swipe the screen to the right to send information." After the first electronic device 100 detects the user's right swipe operation, it displays the first animation corresponding to the first area.
[0234] S1511, the first electronic device 100 establishes a wireless connection with the second electronic device 200.
[0235] For example, the wireless connection can be BLE, BT, SLB, SLE, Wi-Fi, etc., and this embodiment does not limit it.
[0236] Taking the establishment of a BLE connection between a first electronic device 100 and a second electronic device 200 as an example, the first electronic device 100 can send a BLE connection request to the second electronic device 200, and the second electronic device 200 returns a receive response based on the BLE connection request. In this embodiment, the receive response is used to indicate that the second electronic device 200 has received the BLE connection request and agrees to establish a BLE connection with the first electronic device 100. Subsequently, the first electronic device 100 and the second electronic device 200 establish a link layer transmission channel. Then, after the first electronic device 100 and the second electronic device 200 complete Bluetooth pairing, a BLE connection can be established.
[0237] S1512, the first electronic device 100 sends the target information to the second electronic device 200 through the wireless connection.
[0238] Since a wireless connection, such as Bluetooth or Wi-Fi, can be established between the first electronic device 100 and the second electronic device 200, faster, longer-distance, and larger-capacity data transmission can be achieved. After the target information transmission is completed, either the first electronic device 100 or the second electronic device 200 can disconnect the wireless connection.
[0239] It should be noted that this embodiment does not restrict the timing of when the first electronic device 100 and the second electronic device 200 start displaying the animation effect, nor the timing of when the animation effect stops displaying.
[0240] In some embodiments, the first electronic device 100 and the second electronic device 200 may display motion effects immediately after determining the collision area, after verifying the communication peer, or after establishing a wireless connection.
[0241] In other embodiments, the first electronic device 100 / second electronic device 200 may stop displaying the animation exactly when the target information is sent / received; or, stop displaying the animation after a preset time (e.g., 1 second) before the target information is sent / received; or, stop displaying the animation after the target information is sent / received and a preset time (e.g., 1 second) has elapsed.
[0242] It is understandable that, based on the display and stop status of the animation, users can perceive the start and end of the information sharing process; based on the direction of motion of the animation within the effect, users can perceive the location of the target information transmission; and based on the duration of the animation display, users can perceive the duration of the information sharing. In summary, this embodiment allows users to have a relatively clear perception of the information sharing process.
[0243] Through the information sharing method provided in this application embodiment, the first electronic device 100 and the second electronic device 200 can achieve collision area detection without using NFC devices or relying heavily on other communication devices. Furthermore, the first electronic device 100 can quickly share target information with the second electronic device 200, and during the sharing process, the users of both devices can clearly perceive the status, location, duration, and other information of the information sharing. The interaction between the devices is strong during the transmission process, resulting in a better user experience.
[0244] Furthermore, in the above embodiments, if the first interface of the first electronic device 100 displays target information (such as target information 1), and the second interface of the second electronic device 200 also displays other target information to be shared (such as target information 2), then after the first area of the first electronic device 100 and the second area of the second electronic device 200 collide, the first electronic device 100 and the second electronic device 200 establish a wireless connection, display motion effects corresponding to the collision area, and send their displayed target information to each other. For example, the first electronic device 100 displays a first motion effect moving towards the first area and sends target information 1 to the second electronic device 200. Correspondingly, the second electronic device 200 displays a second motion effect moving towards the second area and sends target information 2 to the first electronic device 100.
[0245] Figure 17 This is a schematic flowchart of an information sharing method provided in another embodiment of this application. The method is applied to a first electronic device 100 and specifically includes the following steps S1701 to S1703.
[0246] S1701, the first electronic device 100 detects a collision in its first area.
[0247] For example, the first region can be a specific region (such as the top edge or left edge) of the first electronic device 100, or it can be any region of the first electronic device 100. For example, the first region can be the top edge, left edge, right edge, bottom edge, screen or back cover of the first electronic device 100, etc., and this embodiment does not limit it.
[0248] It should be noted that the specific process of S1701 can be found in S601, and will not be repeated here.
[0249] S1702, the first electronic device 100 responds to the collision by displaying a first motion effect corresponding to the first area.
[0250] In this embodiment, different collision areas of the first electronic device 100 correspond to different motion effects. For details of the first motion effect corresponding to the first area, please refer to S603, which will not be repeated here.
[0251] S1703, the first electronic device 100 sends target information to the second electronic device 200.
[0252] The second electronic device 200 is the electronic device that collides with the first electronic device 100; the target information is preset information, or information displayed or selected by the first electronic device 100 when the collision occurs.
[0253] The method provided in this application embodiment enables the first electronic device 100 to quickly share target information with the second electronic device 200, and during the sharing process, the user of the first electronic device 100 can clearly perceive the information sharing process, resulting in a better user experience.
[0254] Figure 18 This is a schematic flowchart illustrating an information sharing method provided in other embodiments of this application. The method is applied to a second electronic device 200 and specifically includes the following steps S1801 to S1803.
[0255] S1801, the second electronic device 200 detected a collision in its second area.
[0256] For example, the second region can be a specific area (such as the top edge or right edge) of the second electronic device 200, or it can be any area of the second electronic device 200. For example, the second region can be the top edge, left edge, right edge, bottom edge, screen, or back cover of the second electronic device 200, etc., and this embodiment does not limit it.
[0257] It should be noted that the specific process of S1801 can be found in S602, and will not be repeated here.
[0258] S1802, in response to the collision, the second electronic device 200 displays the second motion effect corresponding to the second area.
[0259] In this embodiment, different collision regions of the second electronic device 200 correspond to different motion effects. For details of the second motion effect corresponding to the second region, please refer to S604, which will not be repeated here.
[0260] S1803, the second electronic device 100 receives target information from the first electronic device 100.
[0261] The first electronic device 100 is the electronic device that collides with the second electronic device 200; the target information is preset information in the first electronic device 100, or information displayed or selected when the first electronic device 100 collides.
[0262] Through the method provided in this application embodiment, the second electronic device 200 can quickly receive the target information shared by the first electronic device 100, and during the receiving process, the user of the second electronic device 200 can clearly perceive the information sharing process, which has a better user experience.
[0263] Since the electronic device has the ability to detect collision areas, it can trigger different service functions based on different collision areas. For example, these service functions could be information sharing, screen mirroring, screen extension, device control, etc., and this embodiment does not limit this. For example, the device control function could be controlling the device to start / stop, controlling the device to activate specific functions, or controlling the device to adjust volume, etc.
[0264] In this embodiment, the service function can be determined by the first electronic device 100, the second electronic device 200, or jointly by the first electronic device 100 and the second electronic device 200. These will be described separately below.
[0265] (1) The first electronic device 100 determines the service function based on its collision area.
[0266] In this embodiment, the first electronic device 100 has the ability to detect collision areas. The second electronic device 200 has the ability to detect collision events, and may or may not support collision area detection.
[0267] After determining that a collision has occurred in its first region, the first electronic device 100 executes the first service function corresponding to the first region; after determining that a collision has occurred in its third region, it executes the service function corresponding to the third region. The first and third regions are different, and the first and third service functions are different.
[0268] For example, the first electronic device 100 is a mobile phone that supports collision area detection, and the second electronic device 200 is a television. After the top edge of the mobile phone collides with a preset area of the television (e.g., the top bezel of the television), the mobile phone establishes a wireless connection with the television and shares the information currently selected or displayed on the mobile phone with the television through this wireless connection. Additionally, after the left edge of the mobile phone collides with a preset area of the television (e.g., the top bezel of the television), the mobile phone establishes a wireless connection with the television and casts its screen to the television through this wireless connection.
[0269] (2) The second electronic device 200 determines the service function based on its collision area.
[0270] In this embodiment, the first electronic device 100 has the ability to detect collision events, and may or may not support detecting collision areas. The second electronic device 200 has the ability to detect collision areas.
[0271] After determining that a collision has occurred in the second region, the second electronic device 200 executes the second service function corresponding to the second region. After determining that a collision has occurred in its fourth region, the second electronic device 200 executes the fourth service function corresponding to the fourth region. The second and fourth regions are different, and the second and fourth service functions are different.
[0272] For example, the first electronic device 100 is a mobile phone, and the second electronic device 200 is a television that supports collision detection. After the television detects a collision on its left side, it establishes a wireless connection with the mobile phone, triggering the mobile phone to share the target information with the television. After the television detects a collision on its right side, it establishes a wireless connection with the mobile phone, triggering the mobile phone to project its screen onto the television.
[0273] (3) The first electronic device 100 and the second electronic device 200 jointly determine the service functions based on the collision area.
[0274] In this embodiment, both the first electronic device 100 and the second electronic device 200 have the ability to detect collision areas. Taking the collision area of the first electronic device 100 as a first area and the collision area of the second electronic device 200 as a second area as an example, different combinations of the first area and the second area correspond to different business functions.
[0275] Taking a mobile phone as the first electronic device 100 and a television as the second electronic device 200 as an example, if the left edge of the mobile phone collides with the left edge of the television, it triggers the mobile phone to share the target information with the television. Alternatively, if the top edge of the mobile phone collides with the right edge of the television, it triggers the mobile phone to cast the screen to the television. If the top edge of the mobile phone collides with the right edge of the television, it controls the television to turn off.
[0276] In addition to determining the service function triggered by the collision based on the collision area, the first electronic device 100 can also determine the service function triggered by the collision based on the type of target information it displays or selects. That is, if the first electronic device 100 collides with the second electronic device 200 when displaying or selecting different types of target information, different service functions can be implemented between the first electronic device 100 and the second electronic device 200.
[0277] For example, taking mobile phone A as the first electronic device 100 and mobile phone B as the second electronic device 200, when mobile phone A is displaying or selecting content such as pictures, videos, or files, if mobile phone A and mobile phone B collide, the content displayed by mobile phone A will be sent to mobile phone B. When mobile phone A is displaying its home screen interface, if mobile phone A and mobile phone B collide, mobile phone A will enter screen mirroring mode, sharing its screen content with mobile phone B in real time, so that different users can view the same information simultaneously.
[0278] In some embodiments, the first electronic device 100 can also determine the service function triggered by the collision based on the type of the second electronic device 200. For example, when the first electronic device 100 is mobile phone A and the second electronic device 200 is mobile phone B, if mobile phone A collides with mobile phone B while displaying target information, then mobile phone A sends the target information to mobile phone B. As another example, when the first electronic device 100 is mobile phone A and the second electronic device 200 is a television, if mobile phone A collides with the television while displaying target information, then mobile phone A enters screen mirroring mode and shares its screen content with the television in real time so that the user can view the information more clearly.
[0279] In other embodiments, when the current display interface of the first electronic device 100 includes multiple types of information, the first electronic device 100 can also send different types of information in the current interface to the second electronic device 200 according to different collision areas. For example, when the current interface includes both text and images, when the top of the first electronic device 100 collides with the second electronic device 200, the first electronic device 100 sends the text to the second electronic device 200; when the left side of the first electronic device 100 collides with the second electronic device 200, the first electronic device 100 sends the image to the second electronic device 200.
[0280] In some other embodiments, the first electronic device 100 may send preset or currently displayed / selected information to the second electronic device 200 based on the collision area. For example, when the top of the first electronic device 100 collides with the second electronic device 200, the first electronic device 100 may share a preset business card with the second electronic device 200; while when the left side of the first electronic device 100 collides with the second electronic device 200, the first electronic device 100 may share the currently displayed / selected information with the second electronic device 200.
[0281] Based on the same concept, as an implementation of the above method, this application provides an information sharing device. This device embodiment corresponds to the aforementioned method embodiment. For ease of reading, this device embodiment will not repeat the details of the aforementioned method embodiment one by one, but it should be clear that the device in this embodiment can implement all the contents of the aforementioned method embodiment.
[0282] Figure 19 This is a schematic diagram of an information sharing device provided in one embodiment of this application. The information sharing device 1900 is applied to a first electronic device 100 and specifically includes a first collision detection module 1901, a first display module 1902, a first communication module 1903, a first data acquisition module 1904, and a first feature verification module 1905. The functions of each module are detailed below.
[0283] The first collision detection module 1901 is used to detect the collision area of the first electronic device 100, for example, it can detect that a collision occurs in the first area of the first electronic device 100.
[0284] The first display module 1902, in response to a collision occurring in a first area of the first electronic device 100, displays a first motion effect corresponding to the first area; wherein, different areas of the first electronic device 100 that collide correspond to different motion effects.
[0285] The first communication module 1903 is used to send target information to the second electronic device 200. The second electronic device 200 is the electronic device that collides with the first electronic device 100. The target information is preset information, or information displayed or selected when the first electronic device 100 collides with the target device.
[0286] Optionally, the first display module 1902 further responds to a collision by displaying a first prompt message, which prompts the user to input a first swipe operation toward the first area. Additionally, in response to the first swipe operation, it displays a first animation corresponding to the first area.
[0287] Optionally, the first electronic device 100 is equipped with an acceleration sensor. Based on this, the device further includes a first data acquisition module 1904, used to acquire the first acceleration of the first electronic device 100 along each coordinate axis at different times, wherein the first direction of the first coordinate axis points to the first region. The first collision detection module 1901 is further used to determine, based on the first acceleration, that a collision has occurred in the first region of the first electronic device 100.
[0288] And / or, a first pressure sensor is provided in a first area of the first electronic device 100. Based on this, the first data acquisition module 1904 is used to acquire first pressure data from the first pressure sensor. The first collision detection module 1901 is also used to determine that a collision has occurred in the first area of the first electronic device 100 if the first pressure data is greater than a pressure threshold.
[0289] Optionally, the first display module 1902 is also used to stop displaying the first animation effect when the target information is sent; or, to stop displaying the first animation effect at a preset time before / after the target information is sent.
[0290] Optionally, the first communication module 1903 is further configured to send a first broadcast message, which is used to discover and verify the first electronic device 100; receive a second broadcast message, which is a response message sent by the second electronic device 200 after the first electronic device 100 has passed the verification according to the first broadcast message; establish a wireless connection with the second electronic device 200 according to the second broadcast message; and send target information to the second electronic device 200 through the wireless connection.
[0291] Optionally, the device further includes a first feature verification module 1905, configured to acquire a first collision feature of the first electronic device 100 when the second broadcast information includes a second collision feature of the second electronic device 200; and to determine that the verification of the second electronic device 200 is successful when the first collision feature matches the second collision feature. Subsequently, the communication module 1904 can establish a wireless connection with the second electronic device 200.
[0292] Figure 20 This is a schematic diagram of an information sharing device provided in another embodiment of this application. The information sharing device 2000 is applied to a second electronic device 200 and specifically includes a second collision detection module 2001, a second display module 2002, a second communication module 2003, a second data acquisition module 2004, and a second feature verification module 2005.
[0293] The second collision detection module 2001 is used to detect the collision area of the second electronic device 200, for example, it can detect that a collision has occurred in the second area of the second electronic device 200.
[0294] The second display module 2002, in response to a collision, displays the second motion effect corresponding to the second area, and the second electronic device 200 has different motion effects corresponding to different areas where a collision occurs;
[0295] The second communication module 2003 receives target information from the first electronic device 100; the first electronic device 100 is the electronic device that collides with the second electronic device 200; the target information is preset information, or information displayed or selected when the first electronic device 100 collides with the target device.
[0296] Optionally, the second display module 2002 also responds to a collision by displaying a second prompt message, which prompts the user to input a second sliding operation toward or away from the second area; and responds to the second sliding operation by displaying a second animation corresponding to the second area.
[0297] Optionally, the second display module 2002 is also used to stop displaying the second animation effect when the target information reception ends; or, to stop displaying the second animation effect at a preset time before / after the target information reception ends.
[0298] Optionally, the second electronic device 200 is equipped with an acceleration sensor. Based on this, the device further includes a second data acquisition module 2004, used to acquire the second acceleration of the second electronic device 200 along each coordinate axis at different times, wherein the first direction of the first coordinate axis points to the second region. The second collision detection module 2001 is also used to determine, based on the second acceleration, that a collision has occurred in the second region of the second electronic device 200.
[0299] And / or, a second pressure sensor is provided in the second area of the second electronic device 200. Based on this, the second data acquisition module 2004 is used to acquire second pressure data from the second pressure sensor. The second collision detection module 2001 is also used to determine that a collision has occurred in the second area of the second electronic device 200 if the second pressure data is greater than a pressure threshold.
[0300] Optionally, the second communication module 2003 is further configured to receive first broadcast information, which is used to discover and verify the first electronic device 100; verify the identity of the first electronic device 100 according to the first broadcast information; send second broadcast information after the first electronic device 100 has been verified; establish a wireless connection with the first electronic device 100; and receive target information from the first electronic device 100 through the wireless connection.
[0301] Optionally, the device further includes a second feature verification module 2005, used to determine the received signal strength of the first broadcast information when the first broadcast information includes the actual transmission power of the first broadcast information; to determine the distance between the first electronic device 100 and the second electronic device 200 based on the actual transmission power and received signal strength of the first broadcast information; and to determine that the identity verification of the first electronic device 100 is passed when the distance is less than a distance threshold.
[0302] Optionally, the device is further configured to acquire a second collision feature of the second electronic device 200 if the first broadcast information includes a first collision feature of the first electronic device 100; and to determine that the first electronic device 100 has passed verification if the first collision feature matches the second collision feature. After determining that the first electronic device 100 has passed verification, the second communication module 2003 can establish a wireless connection with the first electronic device 100.
[0303] It should be understood that the sequence number of each step in the above embodiments does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.
[0304] This application also provides an electronic device configured to perform the information sharing method executed by the first electronic device 100 or the second electronic device 200 shown in the above embodiments.
[0305] This application also provides a chip, see [link to example]. Figure 21 As shown, the chip includes a processor and a memory. The memory stores a computer program, which, when executed by the processor, implements the information sharing method performed by the first electronic device 100 or the second electronic device 200 in the above embodiments.
[0306] This application also provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the information sharing method performed by the first electronic device 100 or the second electronic device 200 provided in the above embodiments.
[0307] This application also provides a computer program product, which includes a computer program that, when run by an electronic device, enables the electronic device to implement the information sharing method executed by the first electronic device 100 or the second electronic device 200 provided in the above embodiments.
[0308] It should be understood that the processor mentioned in the embodiments of this application can be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor can be a microprocessor or any conventional processor.
[0309] It should also be understood that the memory mentioned in the embodiments of this application can be volatile memory or non-volatile memory, or may include both volatile and non-volatile memory. The non-volatile memory can be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. The volatile memory can be random access memory (RAM), which is used as an external cache. By way of example, but not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous linked dynamic random access memory (SLDRAM), and direct rambus RAM (DR RAM).
[0310] In the embodiments provided in this application, the division of each framework or module is only a logical functional division. In actual implementation, there may be other division methods. For example, multiple frameworks or modules may be combined or integrated into another system, or some features may be ignored or not executed.
[0311] Furthermore, the functional modules in the various embodiments of this application can be integrated into one processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The integrated modules described above can be implemented in hardware or as software functional modules.
[0312] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.
[0313] References to "one embodiment" or "some embodiments" as described in this specification mean that one or more embodiments of this application include a specific feature, structure, or characteristic described in connection with that embodiment. Therefore, the phrases "in one embodiment," "in some embodiments," "in other embodiments," "in still other embodiments," etc., appearing in different parts of this specification do not necessarily refer to the same embodiment, but rather mean "one or more, but not all, embodiments," unless otherwise specifically emphasized. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless otherwise specifically emphasized.
[0314] The above-described embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application, and should all be included within the protection scope of this application.
Claims
1. An information sharing method, characterized in that, Applied to a first electronic device, the method includes: A collision was detected in the first area of the first electronic device; In response to the collision, a first motion effect corresponding to the first area is displayed; different motion effects correspond to different areas where the first electronic device collides. Send target information to a second electronic device; the second electronic device is the electronic device that collides with the first electronic device; the target information is preset information, or information displayed or selected when the first electronic device collides.
2. The method according to claim 1, characterized in that, The animation in the first motion effect moves toward the first area. The first motion effect includes the motion effect corresponding to the target information and / or a preset motion effect.
3. The method according to claim 1 or 2, characterized in that, The response to the collision, displaying the first motion effect corresponding to the first region, includes: In response to the collision, a first prompt message is displayed, which prompts the user to input a first swipe operation toward the first area; In response to the first sliding operation, the first animation corresponding to the first area is displayed.
4. The method according to any one of claims 1 to 3, characterized in that, The detection of a collision in the first region of the first electronic device includes: The first acceleration of the first electronic device along each coordinate axis at different times is collected, wherein the first direction of the first coordinate axis points to the first region; If the first acceleration meets the collision condition within a preset time, then it is determined that a collision has occurred in the first region of the first electronic device; the collision condition includes: The number of directional changes of the first acceleration is greater than a threshold; and, The maximum value of the first acceleration is greater than the maximum value of the acceleration on the other coordinate axes; and, In the first M sampling points of the preset time, the number of acceleration sampling points towards the second direction is greater than the number of acceleration sampling points towards the first direction, where the first direction is opposite to the second direction, and M≥10.
5. The method according to any one of claims 1 to 4, characterized in that, The first area of the first electronic device is provided with a first pressure sensor; detecting a collision in the first area of the first electronic device includes: If the first pressure data detected by the first pressure sensor is greater than the pressure threshold, it is determined that a collision has occurred in the first area of the first electronic device.
6. The method according to any one of claims 1 to 5, characterized in that, The method further includes: When the target information is sent, stop displaying the first animation; or, The first animation effect will stop being displayed at a preset time before / after the end of the target information transmission.
7. The method according to any one of claims 1 to 6, characterized in that, Sending target information to the second electronic device includes: Send a first broadcast message, which is used to discover and verify the first electronic device; Receive a second broadcast message, which is a response message sent by the second electronic device after the first electronic device passes the verification based on the first broadcast message; A wireless connection is established with the second electronic device based on the second broadcast information; The target information is sent to the second electronic device via the wireless connection.
8. The method according to claim 7, characterized in that, The second broadcast information includes the second collision feature of the second electronic device; The step of establishing a wireless connection with the second electronic device based on the second broadcast information includes: Obtain the first collision feature of the first electronic device and the second collision feature of the second electronic device; If the first collision feature matches the second collision feature, the verification of the second electronic device is determined to be successful. After confirming that the verification of the second electronic device has passed, a wireless connection is established with the second electronic device.
9. The method according to claim 8, characterized in that, Both the first collision feature and the second collision feature include at least one of acceleration and collision time during the collision process.
10. An information sharing method, characterized in that, Applied to a second electronic device, the method includes: A collision was detected in the second region of the second electronic device; In response to the collision, a second motion effect corresponding to the second region is displayed, and different motion effects are corresponding to different regions where the second electronic device collides; Receive target information from a first electronic device; the first electronic device is the electronic device that collides with the second electronic device; the target information is preset information, or information displayed or selected when the first electronic device collides.
11. The method according to claim 10, characterized in that, The animation in the second motion effect moves toward the second area or moves away from the second area; wherein, the second motion effect includes the motion effect corresponding to the target information, and / or, a preset motion effect.
12. The method according to claim 10 or 11, characterized in that, The response to the collision, displaying the second motion effect corresponding to the second region, includes: In response to the collision, a second prompt message is displayed, which prompts the user to input a second swipe operation toward or away from the second area; In response to the second sliding operation, the second animation corresponding to the second area is displayed.
13. The method according to any one of claims 10 to 12, characterized in that, The method further includes: When the reception of the target information ends, stop displaying the second animation; or, The second animation effect will stop being displayed at a preset time before / after the end of the reception of the target information.
14. The method according to any one of claims 10 to 13, characterized in that, Receiving target information from the first electronic device includes: Receive first broadcast information, which is used to discover and verify the first electronic device; The identity of the first electronic device is verified based on the first broadcast information; After the second electronic device passes verification, a second broadcast message is sent. Establish a wireless connection with the first electronic device; The target information is received from the first electronic device via the wireless connection.
15. The method according to claim 14, characterized in that, The first broadcast information includes the actual transmission power of the first broadcast information; the step of verifying the identity of the first electronic device based on the first broadcast information includes: Determine the received signal strength of the first broadcast information; The distance between the first electronic device and the second electronic device is determined based on the actual transmission power and the received signal strength of the first broadcast information; If the distance is less than the distance threshold, the identity verification of the first electronic device is deemed successful.
16. The method according to claim 14 or 15, characterized in that, The first broadcast information includes a first collision feature of the first electronic device; the step of verifying the identity of the first electronic device based on the first broadcast information includes: Acquire a first collision feature of the first electronic device and a second collision feature of the second electronic device; wherein the first collision feature and the second collision feature each include at least one of acceleration and collision time during the collision process; If the first collision feature matches the second collision feature, the verification of the first electronic device is deemed successful. After confirming that the first electronic device has passed the verification, a wireless connection is established with the first electronic device.
17. The method according to any one of claims 14 to 16, characterized in that, The second broadcast information further includes: a second collision feature when the second electronic device is involved in a collision, wherein the second collision feature includes at least one of acceleration and collision time during the collision process of the second electronic device.
18. An electronic device, characterized in that, It includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor, when executing the computer program, implements the method as described in any one of claims 1 to 9, or the method as described in any one of claims 9 to 17.
19. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, implements the method as described in any one of claims 1 to 9, or the method as described in any one of claims 9 to 17.
20. A chip, characterized in that, The chip includes a processor and a memory, the memory storing a computer program that, when executed by the processor, implements the method as described in any one of claims 1 to 9, or the method as described in any one of claims 9 to 17.