Information sharing method, electronic device, readable storage medium, and chip

By rapidly establishing wireless connections through collision events between electronic devices using Bluetooth Low Energy or StarFlash Low Energy technology, the problems of complex information sharing and poor user experience in existing technologies are solved, enabling simple, secure and efficient information sharing.

WO2026031742A1PCT designated stage Publication Date: 2026-02-12HUAWEI TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2025/098211
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2024-08-05
Filing Date
2025-05-29
Publication Date
2026-02-12

AI Technical Summary

Technical Problem

The existing technology for information sharing between electronic devices is complex and results in a poor user experience. In particular, Bluetooth, Wi-Fi, and Huawei sharing methods are time-consuming and lack real-time performance, while NFC is heavily reliant on them.

Method used

With the assistance of Bluetooth Low Energy or StarFlash Low Energy technology, wireless connections can be quickly established and information shared by sending broadcast information through collision events between electronic devices, avoiding reliance on NFC.

Benefits of technology

It simplifies the user operation process, improves the immediacy and security of information sharing, has wide applicability, reduces power consumption, and reduces interference with surrounding devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2025098211_12022026_PF_FP_ABST
    Figure CN2025098211_12022026_PF_FP_ABST
Patent Text Reader

Abstract

Embodiments of the present application relate to the technical field of terminals, and provide an information sharing method, an electronic device, a readable storage medium, and a chip. The method is applied to a first electronic device, and specifically comprises: displaying a first interface, the first interface comprising target information to be sent; when the first interface is displayed, in response to the first electronic device being involved in a collision event, sending first broadcast information by means of BLE / SLE, the first broadcast information being used for discovering and connecting to the first electronic device; on the basis of a connection request of a second electronic device, establishing a wireless connection with the second electronic device, the second electronic device being a device with which the first electronic device is involved in the collision event, and the connection request being sent by the second electronic device on the basis of the first broadcast information; and sending the target information to the second electronic device by means of the wireless connection. The technical solution provided by the embodiments can implement quick and convenient information sharing between devices, and provide good user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Information sharing methods, electronic devices, readable storage media and chips

[0001] This application claims priority to Chinese Patent Application No. 202411068231.6, filed with the State Intellectual Property Office of China on August 5, 2024, entitled "Information Sharing Method, Electronic Device, Readable Storage Medium and Chip", the entire contents of which are incorporated herein by reference. Technical Field

[0002] 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

[0003] With the development of communication technology, electronic devices can share information such as pictures, audio, video, contacts, web pages, and documents with each other through various wireless communication technologies. For example, mobile phone A can establish a Bluetooth connection with mobile phone B and share information with mobile phone B through Bluetooth; or, mobile phone A can access a Wi-Fi network and share information with mobile phone B through the Wi-Fi network; or, mobile phone A can share information with mobile phone B through Huawei's sharing technology. However, the operation process of each of the above information sharing methods is relatively complex, the immediacy is poor, and the user experience is not good. Summary of the Invention

[0004] This application provides an information sharing method, electronic device, readable storage medium, and chip to solve the problems of complex operation process and poor user experience in information sharing in the prior art.

[0005] In a first aspect, embodiments of this application provide an information sharing method applied to a first electronic device. The method includes: displaying a first interface, the first interface including target information to be sent; while displaying the first interface, in response to a collision event occurring on the first electronic device, sending first broadcast information via Bluetooth Low Energy (BLE) / Sparklink Low Energy (SLE), the first broadcast information being used to discover and connect to the first electronic device; establishing a wireless connection with a second electronic device based on a connection request from the second electronic device, the second electronic device being the device that experienced the collision event with the first electronic device, the connection request being sent by the second electronic device based on the first broadcast information; and sending the target information to the second electronic device via the wireless connection.

[0006] The wireless connection established by the first electronic device and the second electronic device with the assistance of BLE / SLE can be a wireless connection such as BLE, classic Bluetooth (BT), Sparklink Basic (SLB), SLE, or Wi-Fi. This embodiment does not limit the type of wireless connection.

[0007] The information sharing method provided in this embodiment enables a first electronic device to quickly establish a wireless connection with a second electronic device and share the target information after displaying the target information to be shared and colliding with the second electronic device, aided by BLE / SLE capabilities. In this process, the user only needs to control the first electronic device to display the target information and to collide with the second electronic device. This not only simplifies the user operation and provides a good user experience, but also does not require the electronic device to have near-field communication (NFC) capabilities, making it widely applicable.

[0008] In some embodiments, the transmission power of the first broadcast information is less than or equal to a power threshold. For example, the power threshold may include -40 dBm, -45 dBm, or -50 dBm or less.

[0009] It is understandable that when the transmission power of the first broadcast message is low, it can only be scanned by nearby electronic devices. Therefore, this method can not only reduce the power consumption of the first electronic device, but also reduce interference with other surrounding electronic devices, preventing malicious electronic devices in the vicinity from attacking the first electronic device after receiving the first broadcast message, thereby improving the accuracy and security of the information sharing process.

[0010] In some embodiments, the transmission frequency of the first broadcast information is greater than or equal to a frequency threshold. For example, the frequency threshold may include 10Hz or 50Hz, etc., and this embodiment does not limit the specific frequency threshold.

[0011] It is understandable that high-frequency signals have the characteristics of fast oscillation speed, high information transmission rate, and low transmission delay, which enables the first broadcast information to be quickly received by the second electronic device, thereby enabling the second electronic device to quickly detect the first electronic device.

[0012] In some embodiments, the first broadcast information includes at least one of the following verification information: the actual transmission power of the first broadcast information, the time information of the first moment when the collision event occurred in the first electronic device, and the first acceleration of the collision event in the first electronic device. This verification information is used by the second electronic device to verify the identity of the first electronic device, thereby determining that a collision has occurred between the first and second electronic devices.

[0013] In some embodiments, the first broadcast information further includes network connection information, and the connection request is sent by the second electronic device based on the network connection information. This network connection information corresponds to the type of wireless connection that the first electronic device requests to establish with the second electronic device.

[0014] In some embodiments, the process of determining that a collision event has occurred by the first electronic device includes: acquiring the acceleration of the first electronic device within a preset time period (e.g., 3 seconds); if a pulse peak appears in the acceleration change curve within the preset time period, and the acceleration corresponding to the pulse peak is greater than or equal to a first acceleration threshold, then it is determined that a collision event has occurred by the first electronic device.

[0015] In some embodiments, a first electronic device sends target information to a second electronic device via the wireless connection, including: the first electronic device displaying a first prompt on a first interface, the first prompt indicating whether to send the target information; and, in response to a confirmation operation entered on the first prompt, sending the target information to the second electronic device via the wireless connection. This method can prevent information sharing caused by user error and protect information security.

[0016] Secondly, embodiments of this application provide an information sharing method applied to a second electronic device. The method includes: after a collision event occurs, receiving first broadcast information from a first electronic device via BLE / SLE, the first broadcast information being used to discover and connect to the first electronic device; determining, based on the first broadcast information, that the object of the collision event with the second electronic device is the first electronic device; establishing a wireless connection with the first electronic device based on the first broadcast information; and receiving target information sent by the first electronic device via the wireless connection.

[0017] The information sharing method provided in this application allows a second electronic device to quickly establish a wireless connection with a first electronic device after colliding with it, aided by BLE / SLE capabilities, and receive the shared target information. In this process, the user only needs to control the second electronic device to collide with the first electronic device, simplifying the operation and providing a better user experience; moreover, it does not require the electronic device to have NFC capabilities, making it widely applicable.

[0018] In some embodiments, the transmission power of the first broadcast information is less than or equal to a power threshold.

[0019] In some embodiments, the transmission frequency of the first broadcast information is greater than or equal to a frequency threshold.

[0020] In some embodiments, determining that the object of the collision event involving the second electronic device is the first electronic device, based on the first broadcast information, includes at least one of the following methods:

[0021] If the first broadcast information includes the actual transmission power 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 or equal to a distance threshold, the object that caused the collision event with the second electronic device is determined to be the first electronic device.

[0022] If the first broadcast information includes the time information of the first moment when the first electronic device collides, the time information of the second moment when the second electronic device most recently collides is obtained; if the time difference between the first moment and the second moment is less than or equal to a time threshold, it is determined that the object that collided with the second electronic device is the first electronic device.

[0023] If the first broadcast information includes the first acceleration of the collision event of the first electronic device, the second acceleration of the second electronic device at the time of the most recent collision is obtained; if the sum of the first acceleration and the second acceleration is less than or equal to the second acceleration threshold, it is determined that the object of the collision event with the second electronic device is the first electronic device.

[0024] Through the above verification process, the second electronic device can determine that the first electronic device is the one that collided with it, thus avoiding the accidental sharing of information with other electronic devices and ensuring the accuracy and security of information sharing.

[0025] In some embodiments, the first broadcast information further includes network connection information; based on this, establishing a wireless connection with the first electronic device according to the first broadcast information includes: establishing a wireless connection with the first electronic device according to the network connection information.

[0026] In some embodiments, a second electronic device receives target information sent by a first electronic device via a wireless connection, including: displaying a second prompt message indicating whether to receive the target information; and receiving the target information sent by the first electronic device via a wireless connection in response to a confirmation operation entered on the second prompt message. This method can prevent the second electronic device from receiving information mistakenly shared by the first electronic device.

[0027] Thirdly, embodiments of this application provide a Wi-Fi connection method, which is applied to a first electronic device, comprising: in response to a first event, sending a second broadcast message via BLE / SLE; establishing a BLE / SLE connection with an access network device according to a third broadcast message; the third broadcast message being sent by the access network device according to the second broadcast message when the distance between the access network device and the first electronic device is less than or equal to a distance threshold; receiving Wi-Fi connection information from the access network device via the BLE / SLE connection; and establishing a Wi-Fi connection with the access network device according to the Wi-Fi connection information.

[0028] The method provided in this application embodiment enables the first electronic device to quickly connect to the Wi-Fi network provided by the access network device without a Wi-Fi password when it is located near the access network device, resulting in a better user experience.

[0029] In some embodiments, the first event includes at least one of the following: displaying a Wi-Fi network search and connection interface; receiving a Wi-Fi connection instruction; receiving an instruction to enable Wi-Fi functionality.

[0030] In some embodiments, when the first electronic device displays a Wi-Fi network search and connection interface, sending a second broadcast message via BLE / SLE includes: when the Wi-Fi network search and connection interface is displayed, if a collision event is detected in the first electronic device, or if the first electronic device is not currently connected to a Wi-Fi network, or if the signal strength of the Wi-Fi network currently connected to the first electronic device is lower than a signal strength threshold, then sending a second broadcast message via BLE / SLE.

[0031] In some embodiments, the Wi-Fi connection information includes: the service cluster identifier and password of the Wi-Fi network.

[0032] In some embodiments, establishing a Wi-Fi connection with an access network device based on Wi-Fi connection information includes: displaying a third prompt message to indicate whether to establish a Wi-Fi connection with the access network device; and establishing a Wi-Fi connection with the access network device in response to a connection confirmation operation on the third prompt message. This method can prevent accidental Wi-Fi connection issues caused by user errors.

[0033] Fourthly, embodiments of this application provide a Wi-Fi connection method, which is applied to an access network device for providing an accessible Wi-Fi network. The method includes: receiving second broadcast information via BLE / SLE; determining the distance between the access network device and a first electronic device based on the second broadcast information; sending third broadcast information via BLE / SLE when the distance is less than or equal to a distance threshold, the third broadcast information being used to request the establishment of a BLE / SLE connection with the first electronic device; establishing a BLE / SLE connection with the first electronic device; sending Wi-Fi connection information of the Wi-Fi network to the first electronic device via the BLE / SLE connection; and establishing a Wi-Fi connection with the first electronic device.

[0034] In some embodiments, the transmission power of the second broadcast information is less than or equal to a power threshold.

[0035] In some embodiments, the distance threshold is 1m, 50cm or 30cm.

[0036] In some embodiments, the access network device includes a router.

[0037] Fifthly, embodiments of this application provide an electronic device comprising: one or more processors and a memory; the memory being coupled to one or more processors; the memory being used to store computer program code, the computer program code including computer instructions, wherein one or more processors invoke the computer instructions to cause the electronic device to perform the methods shown in the first to third aspects above.

[0038] In a sixth aspect, embodiments of this application provide an access network device, the access network device comprising: one or more processors and a memory; the memory being coupled to one or more processors; the memory being used to store computer program code, the computer program code including computer instructions, wherein one or more processors invoke the computer instructions to cause the access network device to perform the method shown in the fourth aspect above.

[0039] In a seventh aspect, 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 to fourth aspects above.

[0040] Eighthly, embodiments of this application provide a chip applied to an electronic device, and the chip includes one or more processors for invoking computer instructions to cause the electronic device to perform the methods shown in the first to fourth aspects above.

[0041] Ninthly, embodiments of this application also 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 to fourth aspects above.

[0042] It is understood that the beneficial effects of aspects five through nine above can be found in the relevant descriptions of aspects one through four above, and will not be repeated here. Attached Figure Description

[0043] Figure 1 is a schematic diagram of an information sharing process provided in an embodiment of this application;

[0044] Figure 2 is a schematic diagram of the information sharing process provided in another embodiment of this application;

[0045] Figure 3 is a schematic diagram of the communication system to which the method provided in the embodiments of this application is applicable;

[0046] Figure 4 is a schematic diagram of the structure of an electronic device provided in an embodiment of this application;

[0047] Figure 5 is a schematic flowchart of an information sharing method provided in an embodiment of this application;

[0048] Figure 6 is a schematic diagram of the first interface provided in different embodiments of this application;

[0049] Figure 7 is a schematic diagram of a scenario where a first electronic device collides with a second electronic device according to different embodiments of this application;

[0050] Figure 8 is a schematic diagram of the acceleration coordinate system provided in different embodiments of this application;

[0051] Figure 9A is a schematic diagram of the first prompt information provided in an embodiment of this application;

[0052] Figure 9B is a schematic diagram of the second prompt information provided in an embodiment of this application;

[0053] Figure 10 is a schematic flowchart of an information sharing process provided in another embodiment of this application;

[0054] Figure 11 is a schematic flowchart of an information sharing process provided in another embodiment of this application;

[0055] Figure 12 is a schematic flowchart of an information sharing process provided in other embodiments of this application;

[0056] Figure 13 is a schematic diagram of the communication system to which the Wi-Fi connection method provided in the embodiments of this application is applicable;

[0057] Figure 14 is a schematic flowchart of establishing a Wi-Fi connection according to an embodiment of this application;

[0058] Figure 15 is a schematic diagram of a third interface provided in an embodiment of this application;

[0059] Figure 16 is a schematic diagram of the third prompt information provided in an embodiment of this application;

[0060] Figure 17 is a schematic diagram of an information sharing device provided in an embodiment of this application;

[0061] Figure 18 is a schematic diagram of an information sharing device provided in another embodiment of this application;

[0062] Figure 19 is a schematic diagram of a Wi-Fi connection device provided in an embodiment of this application;

[0063] Figure 20 is a schematic diagram of a Wi-Fi connection device provided in another embodiment of this application;

[0064] Figure 21 is a schematic diagram of the chip structure provided in an embodiment of this application. Detailed Implementation

[0065] 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.

[0066] 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.

[0067] The technical solutions provided in the embodiments of this application will be described below with reference to the accompanying drawings.

[0068] 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 with each other through various wireless communication technologies. For instance, this information can be documents, media files (such as images, audio, and video), messages (such as messages, SMS, and MMS in instant messaging applications), application installation packages, contact information, web links, web page content, or other data that can be accessed by electronic devices.

[0069] In some embodiments, electronic devices share information with each other via technologies such as Bluetooth, 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.

[0070] Figure 1 is a schematic diagram of an information sharing process provided in an 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:

[0071] Referring to Figure 1(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.

[0072] As shown in Figure 1(b), after determining the target information (such as the target image) to be sent, mobile phone A opens the sharing interface according to the user's operation on the "share" control.

[0073] Referring to Figure 1(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 the sharing interface shown in Figure 1(c), but directly displays the sharing interface shown in Figure 1(d).

[0074] Referring to Figure 1(d), when Huawei Share is enabled on phone A, phone A searches for and displays other nearby electronic devices with 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 "User B's P40" icon, phone A sends the target image to phone B named "User B's P40."

[0075] 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.

[0076] In other embodiments, electronic devices quickly establish a wireless connection via FNC proximity sensing, and then share information with each other through this wireless connection. For example, as shown in Figure 2, when the NFC sensing areas of two NFC-enabled mobile phones are placed close together, the two phones can quickly establish a Bluetooth or Wi-Fi Direct connection without manually performing operations such as finding devices, pairing, and entering passwords. Through this wireless connection, the two phones can share information with each other, such as business cards, pictures, videos, news, etc.

[0077] However, the above process requires that both electronic devices have NFC capabilities, and that their NFC sensing areas be in close contact. In other words, if either electronic device lacks NFC, or if their NFC sensing areas are not in close contact, the above method cannot trigger a wireless connection between the electronic devices, thus preventing rapid information sharing.

[0078] Therefore, this application provides an information sharing method. Through this method, an electronic device can establish a wireless connection with another electronic device via a device-to-device collision ("tap-to-click") trigger mechanism, assisted by BLE / SLE technology, and share information with that other electronic device through this wireless connection. This process does not rely on the NFC hardware of the electronic device, is simple to operate, and provides a good user experience.

[0079] Figure 3 is a schematic diagram of a communication system to which the method provided in the embodiments of this application is applicable. As shown in Figure 3, the communication system includes a first electronic device 100 and a second electronic device 200.

[0080] The first electronic device 100, also known as a transmitter, transmitting device, or source device, is used to send BLE / SLE broadcasts according to user operations so that it can be discovered by the target device for information sharing (i.e., the second electronic device 200), thereby establishing a wireless connection with the second electronic device 200 and sending target information to the second electronic device 200 through the wireless connection.

[0081] The second electronic device 200, also known as a receiver, receiving device, scanning device, or target device, is used to discover the first electronic device 100 based on BLE / SLE broadcasts from the first electronic device 100 and to verify the identity of the first electronic device 100. After successful verification of the first electronic device 100, the second electronic device 200 establishes a wireless connection with the first electronic device 100 via BLE, Bluetooth Classic (BT), Sparklink Basic (SLB), SLE, or Wi-Fi, and finally receives the target information shared by the first electronic device 100 through this wireless connection.

[0082] 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.

[0083] Figure 4 is a schematic diagram of the structure of an electronic device provided in an 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.

[0084] 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.

[0085] Processor 210 may include one or more processing units, such as: application processor (AP), modem processor, graphics processing unit (GPU), image signal processor (ISP), controller, memory, video codec, digital signal processor (DSP), baseband processor, and / or neural network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.

[0086] 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.

[0087] 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.

[0088] 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.

[0089] 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).

[0090] 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.

[0091] 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.

[0092] 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.

[0093] 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.

[0094] 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.

[0095] 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.

[0096] The wireless communication module 260 can provide solutions for wireless communication applications in electronic devices, including wireless local area networks (WLANs) (such as Wi-Fi), Bluetooth, global navigation satellite systems (GNSS), frequency modulation (FM), NFC, infrared (IR), SLB, or 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 signals, 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.

[0097] 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 technologies 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. GNSS may include Global Positioning System (GPS), Global Navigation Satellite System (GLONASS), BeiDou Navigation Satellite System (BDS), Quasi-Zenith Satellite System (QZSS), and / or Satellite Based Augmentation Systems (SBAS).

[0098] 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.

[0099] 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.

[0100] Electronic devices can achieve shooting functions through ISP, camera 293, video codec, GPU, display 294 and application processor.

[0101] 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 and brightness. 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.

[0102] 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.

[0103] 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.

[0104] 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.

[0105] 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. NPUs enable intelligent cognitive applications in electronic devices, such as image recognition, facial recognition, speech recognition, and text understanding.

[0106] 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.

[0107] The external storage interface 220 can be used to connect an external memory card, such as a 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.

[0108] 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.).

[0109] 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.

[0110] Electronic devices can implement audio functions through audio modules 270, speakers 270A, receivers 270B, microphones 270C, headphone jacks 270D, and application processors.

[0111] 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.

[0112] 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.

[0113] 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.

[0114] 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. An electronic device can have at least one microphone 270C. In some embodiments, the electronic device can have two microphones 270C, which, in addition to collecting sound signals, can also perform noise reduction. In other embodiments, the electronic device can also have three, four, or more microphones 270C, enabling sound signal collection, noise reduction, sound source identification, and directional recording, among other functions.

[0115] 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.

[0116] 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.

[0117] 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 or equal to 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.

[0118] The gyroscope sensor 280B can be used to determine the motion attitude of an electronic device. In some embodiments, the gyroscope sensor 280B can determine the angular velocity of the electronic device around three axes (i.e., the x, y, and z axes). The gyroscope sensor 280B can be used for image stabilization. For example, when the shutter is pressed, the gyroscope sensor 280B detects the angle of the electronic device's shake, calculates the distance that the lens module needs to compensate based on the angle, and allows the lens to counteract the shake of the electronic device by moving in the opposite direction, thus achieving image stabilization. The gyroscope sensor 280B can also be used in navigation and motion-sensing gaming scenarios.

[0119] 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.

[0120] The magnetic sensor 280D includes a Hall effect sensor. The electronic device can use the magnetic sensor 280D to detect the opening and closing of the flip cover. In some embodiments, when the electronic device is a flip phone, the electronic device can detect the opening and closing of the flip cover using the magnetic sensor 280D. Furthermore, based on the detected opening and closing state of the cover or the flip cover, features such as automatic flip unlocking can be configured.

[0121] The 280E accelerometer sensor can detect the magnitude of acceleration in various directions (typically three axes) of electronic devices. 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.

[0122] 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.

[0123] The proximity 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. The electronic device emits infrared light outward through the LED. The electronic device uses the photodiode to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that an object is near the electronic device. When insufficient reflected light is detected, the electronic device can determine that no object is near the electronic device. The electronic device can use the proximity sensor 280G to detect when a user holds the electronic device close to their ear for a call, so as to automatically turn off the screen to save power. The proximity sensor 280G can also be used in holster mode and pocket mode for automatic unlocking and locking of the screen.

[0124] The ambient light sensor 280L is used to detect ambient light levels. Electronic devices can adaptively adjust the brightness of their displays 294 based on the detected ambient light. The ambient light sensor 280L can also be used to automatically adjust white balance when taking photos. The ambient light sensor 280L can also be used in conjunction with the proximity sensor 280G to detect whether electronic devices are in a pocket, preventing accidental touches.

[0125] 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.

[0126] 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 handling strategy. For example, when the temperature reported by temperature sensor 280J exceeds a threshold, the electronic device reduces the performance of a processor located near temperature sensor 280J to reduce power consumption and implement thermal protection. In other embodiments, when the temperature is below another threshold, the electronic device heats battery 242 to prevent abnormal shutdown of the electronic device due to low temperature. In still other embodiments, when the temperature is below yet another threshold, the electronic device boosts the output voltage of battery 242 to prevent abnormal shutdown due to low temperature.

[0127] 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.

[0128] 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.

[0129] In some embodiments, the bone conduction sensor 280M can also be integrated into the headphones to form bone conduction headphones. The audio module 270 can analyze the vibration signal of the sound-vibrating bone block acquired by the bone conduction sensor 280M to extract the voice signal and realize the voice function. The application processor can analyze the heart rate information based on the blood pressure fluctuation signal acquired by the bone conduction sensor 280M to realize the heart rate detection function.

[0130] 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.

[0131] 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.). Motor 291 can also correspond to different vibration feedback effects for touch operations applied to different areas of the display screen 294. Different application scenarios (such as time reminders, receiving messages, alarm clocks, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also be customized.

[0132] Indicator 292 can be an indicator light, which can be used to indicate charging status, power changes, messages, missed calls, notifications, etc.

[0133] 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. The SIM card interface 295 can support Nano SIM cards, Micro SIM cards, SIM cards, etc. Multiple cards can be inserted into the same SIM card interface 295 simultaneously. The multiple cards can be of the same or different types. The SIM card interface 295 is also compatible with different types of SIM cards. The SIM card interface 295 is also compatible with external memory cards. The electronic device interacts with the network through the SIM card to achieve functions such as calls and data communication. In some embodiments, the electronic device uses an eSIM, i.e., an embedded SIM card. The eSIM card can be embedded in the electronic device and cannot be separated from it.

[0134] Based on the communication system and electronic device provided in the above embodiments, the process of the first electronic device 100 sharing information with the second electronic device 200 will be described exemplarily below.

[0135] Figure 5 is a schematic flowchart of an information sharing method provided in an embodiment of this application. Referring to Figure 5, the method involves a first electronic device 100 sharing target information with a second electronic device 200 via a "tap-to-click" trigger mechanism. This process specifically includes the following steps S501 to S506.

[0136] S501, the first electronic device 100 displays a first interface, which includes target information to be sent.

[0137] The first electronic device 100 typically displays a first interface based on user operation. For example, the first electronic device 100 displays a first interface of a first application based on user operation, the first interface including target information to be sent.

[0138] In this embodiment, the first application can be a local application or a third-party application. For example, the first application includes applications such as gallery, browser, contacts, wallet, voice recorder, video application, audio application, reading application, memo, file management, desktop, weather, calendar, etc. This embodiment does not limit the specific type of the first application.

[0139] Because different applications have different underlying capabilities, some applications support information sharing via "tap-to-share," while others do not. Therefore, in some implementations, the first electronic device 100 can set a whitelist, which includes applications that support information sharing via "tap-to-share." Based on this, the first application is an application within this whitelist.

[0140] In this embodiment, the target information includes documents, media files (e.g., images, audio, video), messages (e.g., messages, SMS, MMS in instant messaging applications), application installation packages, contact information, web page links, web page content, or other data that can be accessed by electronic devices. This embodiment does not limit the specific content of the target information.

[0141] For example, as shown in Figure 6(a), the first interface is the gallery application displaying photo A, which is the target information to be shared. As shown in Figure 6(b), the first interface is the gallery application displaying multiple selected images, which are the target information to be shared. As shown in Figure 6(c), the first interface is the address book application displaying contact A, whose contact information is the target information to be shared. As shown in Figure 6(d), the first interface is the address book application displaying contact A's QR code, which is the target information to be shared. As shown in Figure 6(e), the first interface is the relay station display interface, which includes image A, which is the target information to be shared.

[0142] S502, the second electronic device 200 displays the second interface.

[0143] 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.

[0144] It should be noted that this embodiment does not restrict the order of S501 and S502. S501 can be executed by the first electronic device 100 first, and then S502 can be executed by the second electronic device 200; or S502 can be executed by the second electronic device 200 first, and then S501 can be executed by the first electronic device 100.

[0145] When the first electronic device 100 displays a first interface and the second electronic device 200 displays a second interface, if the user needs to share the target information currently displayed on 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 let them collide to trigger the subsequent information sharing process. For example, as shown in Figure 7, the user can control the top of the first electronic device 100 to collide with the top of the second electronic device 200, that is, control the first electronic device 100 and the second electronic device 200 to collide "head-to-head" to trigger the first electronic device 100 to share the target information with the second electronic device 200 through subsequent steps (such as S503 to S506).

[0146] 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, if the first electronic device 100 does not experience or detect a collision event, the subsequent information sharing process (such as S503 to S506) will not be triggered.

[0147] S503, the first electronic device 100 detects a collision event while displaying the first interface.

[0148] In some embodiments, the first electronic device 100 can detect and report the acceleration of the first electronic device 100 to the processor in real time through an accelerometer. The processor can determine whether the first electronic device 100 has experienced a collision event based on the changes in acceleration.

[0149] As shown in Figure 8, taking a mobile phone as an example, the mobile phone includes a top edge and a bottom edge that are parallel to each other, and a left edge and a right edge that are parallel to each other, with the top edge and the left edge being perpendicular to each other. The acceleration coordinate system of the mobile phone includes the X-axis, Y-axis, and Z-axis. The X-axis is parallel to the top edge of the mobile phone and points from the left edge to the right edge. The Y-axis is parallel to the left edge of the mobile phone and points from the bottom edge to the top edge. The Z-axis is perpendicular to the screen and points upwards. Based on this, the accelerometer will collect the acceleration of the mobile phone in real time along the X-axis, Y-axis, and Z-axis during operation and report it to the processor. The processor analyzes and processes the received acceleration values. According to the analysis results, if the acceleration of the first electronic device 100 in the first direction (such as the Y-axis direction) shows a pulse spike within a certain period of time (i.e., the acceleration first increases rapidly and then decreases rapidly), and the acceleration corresponding to the pulse spike is greater than or equal to a first acceleration threshold (e.g., 9.8 m / s²), then the processor will detect the acceleration. 2 If so, then it is determined that the first electronic device 100 experienced a collision event along the first direction during that time period.

[0150] Of course, the first electronic device 100 can also detect whether a collision event has occurred in other ways, such as by using a pressure sensor disposed on the side frame of the first electronic device 100. This embodiment does not limit this.

[0151] S504, in response to the collision event, the first electronic device 100 determines the second electronic device 200 as the target device through BLE / SLE broadcast, wherein the target device is the electronic device that has collided with the first electronic device 100.

[0152] In some embodiments, if the first electronic device 100 is discovered by the second electronic device 200 by sending a BLE / SLE broadcast and receives a connection request from the second electronic device 200, then the first electronic device 100 determines that the second electronic device 200 is the target device for this information sharing. After receiving the broadcast information from the first electronic device 100, the second electronic device 200 needs to verify the identity of the first electronic device 100 based on the broadcast information, that is, to determine whether the first electronic device 100 and the second electronic device 200 have collided, in order to avoid the second electronic device 200 being disturbed or attacked by other surrounding electronic devices and to improve the security of the second electronic device 200. After successful verification, the second electronic device 200 sends a connection request to the first electronic device 100.

[0153] S505, the first electronic device 100 establishes a wireless connection with the second electronic device 200.

[0154] In this embodiment, after receiving a connection request from the second electronic device 200, the first electronic device 100 determines that the second electronic device 200 is the target device for this sharing and establishes a wireless connection with it. For example, this wireless connection can be a BitTorrent connection, a Wireless Local Area Network (WLAN) connection (such as a Wi-Fi connection), a BLE connection, an SLB connection, an SLE connection, etc. This embodiment does not specifically limit the type of wireless connection.

[0155] Taking the establishment of a BLE connection between a first electronic device 100 and a second electronic device 200 as an example, after receiving a BLE connection request, the first electronic device 100 sends a receive response to the second electronic device 200. In this embodiment, the receive response indicates that the first electronic device 100 has received the BLE connection request and agrees to establish a BLE connection with the second electronic device 200. 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.

[0156] S506, the first electronic device 100 sends target information to the second electronic device 200 through the wireless connection.

[0157] Optionally, before sending the target information, the first electronic device 100 displays a first prompt message to ask the user whether to send the target information. Subsequently, in response to the user's confirmation input on the first prompt message, the first electronic device 100 sends the target information to the second electronic device 200 via the wireless connection. This process prevents the first electronic device 100 from sharing information with other electronic devices in case of accidental user activation, thus ensuring user information security.

[0158] For example, as shown in Figure 9A, the first prompt displayed by the first electronic device 100 includes a thumbnail of the image to be sent, the prompt "Send current content?", a "Send" control, and a "Cancel" control. In response to the user's selection of the "Send" control, the first electronic device 100 sends the image to the second electronic device 200. Conversely, in response to the user's selection of the "Cancel" control, the first electronic device 100 cancels the current information sharing.

[0159] Optionally, before sending the target information to the second electronic device 200, the first electronic device 100 first sends an information transmission request to the second electronic device 200. After receiving the information transmission request from the first electronic device 100, the second electronic device 200 first displays a second prompt message indicating whether it accepts the target information sent by the first electronic device 100. Subsequently, in response to a confirmation operation entered by the user on the second prompt message, the second electronic device 200 sends a receipt confirmation message to the first electronic device 100, indicating that the second electronic device 200 agrees to receive the target information shared by the first electronic device 100. Then, the first electronic device 100 sends the target information to the second electronic device 200 via a wireless connection, and the second electronic device 200 receives the target information accordingly. This process can prevent the second electronic device 200 from receiving information from unknown sources or being mistakenly sent.

[0160] For example, as shown in Figure 9B, the second prompt information displayed by the second electronic device 200 includes a thumbnail of the image to be received, the prompt "Receive current content?", a "Receive" control, and a "Reject" control. In response to the user's selection of the "Receive" control, the second electronic device 200 receives the image sent by the first electronic device 100. Conversely, in response to the user's selection of the "Reject" control, the second electronic device 200 rejects receiving the target information shared by the first electronic device 100.

[0161] In some embodiments, during the process of the first electronic device 100 sending target information to the second electronic device, both the first electronic device 100 and the second electronic device 200 can display corresponding transmission prompt information on their display interfaces, such as water ripple-style animation effects or prompt text (such as "transmitting in progress"), to improve the user experience.

[0162] Furthermore, if both the first electronic device 100 and the second electronic device 200 display an interface including target information, then the first electronic device 100 and the second electronic device 200 can share the target information they display with each other after establishing a wireless connection.

[0163] In summary, the information sharing method provided in this application allows an electronic device to identify a target device via BLE / SLE capabilities and share the target information with the target device when displaying content to be shared, through a "tap-to-share" mechanism. This process is not only simple for users and provides a good user experience, but also does not require the electronic device to have NFC capabilities, making it widely applicable.

[0164] In the above process, when the first electronic device 100 determines the target device for sharing, it needs to send a first broadcast message via BLE / SLE so that the target device can discover, verify, and connect to the first electronic device 100 through the first broadcast message. Taking the second electronic device 200 receiving the first broadcast message as an example, in order to ensure the accuracy and security of information sharing, the second electronic device 200 needs to verify the identity of the first electronic device 100, that is, to determine whether the first electronic device 100 and the second electronic device 200 have collided, so as to avoid the second electronic device 200 being disturbed or attacked by other surrounding electronic devices. After successful verification, the second electronic device 200 sends a connection request to the first electronic device 100. Accordingly, after receiving the connection request from the second electronic device 200, the first electronic device 100 can determine the target device for the second electronic device 200's current connection.

[0165] In this embodiment, the second electronic device 200 can use different parameters to verify the identity of the first electronic device 100, such as one or more of distance, collision time, and collision acceleration.

[0166] The following describes the information sharing method provided in this embodiment in detail, taking into account the different verification methods of the second electronic device 200 against the first electronic device 100, such as method 1 to method 4.

[0167] Method 1: The second electronic device 200 verifies the first electronic device 100 based on the distance.

[0168] Figure 10 is a schematic flowchart of an information sharing process provided in another embodiment of this application, including the following steps S1001 to S1009.

[0169] S1001, the first electronic device 100 displays a first interface, which includes target information to be sent.

[0170] S1002, the second electronic device 200 displays the second interface.

[0171] S1003, during the process of displaying the first interface, the first electronic device 100 detects a collision event.

[0172] In this embodiment, the specific contents of S1001 to S1003 are the same as those of S501 to S503, and will not be repeated here.

[0173] S1004, the first electronic device 100 transmits first broadcast information via BLE / SLE, the first broadcast information including network connection information and the actual transmission power of the first broadcast information.

[0174] In this embodiment, the first broadcast information is used by other electronic devices to discover and verify the first electronic device 100, and to establish a wireless connection with the first electronic device 100 through network connection information.

[0175] In the content of the first broadcast information, the network connection information is the relevant information required when the first electronic device 100 establishes a wireless connection with other electronic devices such as BT, BLE, SLE, SLB or Wi-Fi, such as network identifier (ID), network address information, device model, broadcast identifier for mutual trust between the two ends, etc. This embodiment does not limit this.

[0176] In addition, the actual transmission power of the first broadcast information is a verification information provided in this embodiment, which is used by other electronic devices (such as the second electronic device 200) to verify the identity of the first electronic device 100.

[0177] In some embodiments, the first electronic device 100 may establish different types of wireless connections with the second electronic device 200 depending on the amount or type of the target information to be transmitted. For example, when the target information is a small-volume object such as an image, contact information, or a webpage link, a BLE / SLE connection is established between the first electronic device 100 and the second electronic device 200. In this case, the first broadcast information includes BLE / SLE related network connection information. Alternatively, when the target information is a large-volume object such as a document, video, or audio, a Wi-Fi connection or a SLB connection is established between the first electronic device 100 and the second electronic device 200. In this case, the first broadcast information includes Wi-Fi or SLB related network connection information.

[0178] In some embodiments, the transmission power of the first broadcast information is less than or equal to a power threshold, and is ultra-low power. For example, the power threshold may include -40dBm, -45dBm, or -50dBm or less, etc., and this embodiment does not limit the specific content of the power threshold.

[0179] It is understandable that when the transmission power of the first broadcast message is low, it can only be scanned by nearby electronic devices. For example, with a transmission power of -50dBm, the first broadcast message can only cover a range of 1 meter. This method not only reduces the power consumption of the first electronic device 100, but also reduces interference with other surrounding electronic devices (e.g., those more than 1 meter away), and prevents malicious electronic devices in the vicinity from attacking the first electronic device 100 after receiving the first broadcast message, thus improving the accuracy and security of the information sharing process.

[0180] In other embodiments, the first broadcast information is a high-frequency broadcast, meaning the transmission frequency of the first broadcast information is greater than or equal to a frequency threshold. For example, this frequency threshold may include 10Hz or 50Hz, and this embodiment does not impose a specific limitation on the frequency threshold. For instance, the first broadcast information is transmitted as close as possible to the chip's maximum capability.

[0181] It is understandable that high-frequency signals have the characteristics of fast oscillation speed, high information transmission rate and low transmission delay, which enables the first broadcast information to be quickly received by surrounding electronic devices (such as the second electronic device 200), thereby quickly detecting the first electronic device 100.

[0182] S1005, the second electronic device 200 measures the distance between the first electronic device 100 and the second electronic device 200 according to the first broadcast information.

[0183] It should be noted that wireless signals typically attenuate during transmission due to environmental factors. Specifically, the transmitted signal strength is usually greater than or equal to the received signal strength (RSSI), and the attenuation increases with distance traveled. Empirical studies have shown that the degree of wireless signal attenuation and its propagation distance 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.

[0184] In one example, the first formula is shown in formula (1): Distance(cm)=10(advPower-Lin-Rssi-100.22) / 20*100000 (1)

[0185] Wherein, Diatance is the ranging result, advPower is the actual transmission power of the transmitter (such as the first electronic device 100), i.e., the total radiated power (TRP), the value of which is indicated in the first broadcast information; Lin is the insertion loss of the receiver, which is usually a fixed value; RSSI is the received signal strength, which can be obtained by measurement.

[0186] Based on this, after receiving the first broadcast information, the second electronic device 200 can calculate the distance between the first electronic device 100 and the second electronic device 200 using the RSSI of the first broadcast information and the first formula mentioned above.

[0187] S1006, the second electronic device 200 determines whether the distance is less than or equal to the distance threshold.

[0188] For example, the distance threshold can be 5cm, 8cm, 10cm, etc., and this embodiment does not impose specific restrictions on it.

[0189] In this embodiment, if the distance between the first electronic device 100 and the second electronic device 200 is less than or equal to the distance threshold, it indicates that the first electronic device 100 and the second electronic device 200 are currently very close, and therefore, it is considered that they have collided.

[0190] S1007, if the distance between the first electronic device 100 and the second electronic device 200 is less than or equal to the distance threshold, the second electronic device 200 sends a connection request to the first electronic device 100 based on the network connection information.

[0191] In this embodiment, the connection request is used to request the establishment of a wireless connection with the first electronic device 100, such as a BT connection, BLE connection, SLE connection, SLB connection, or Wi-Fi connection.

[0192] It should be noted that the type of connection request is determined based on the network connection information in the first broadcast message. For example, if the first broadcast message includes BLE network connection information, the second electronic device 200 sends a BLE connection request to the first electronic device 100. If the first broadcast message includes Wi-Fi network connection information, the second electronic device 200 sends a Wi-Fi connection request to the first electronic device 100.

[0193] S1008, in response to the connection request, the first electronic device 100 establishes a wireless connection with the second electronic device 200.

[0194] For example, in response to a BLE connection request, the first electronic device 100 establishes a BLE connection with the second electronic device 200. Alternatively, in response to a Wi-Fi connection request, the first electronic device 100 establishes a Wi-Fi connection with the second electronic device 200.

[0195] S1009, the first electronic device 100 sends target information to the second electronic device 200 through the wireless connection.

[0196] In this embodiment, the specific content of S1009 can be found in S506, and will not be repeated here.

[0197] In summary, in the information sharing method provided in this embodiment, the second electronic device 200 verifies the first electronic device 100 by ranging. This method not only provides accurate verification results but also places no additional requirements on the hardware configuration of the second electronic device 200, such as not requiring the second electronic device 200 to have an accelerometer, thus having wide applicability.

[0198] Method 2: The second electronic device 200 verifies the first electronic device 100 based on the collision time.

[0199] Figure 11 is a schematic flowchart of an information sharing process provided in another embodiment of this application, including the following steps S1001 to S1110.

[0200] S1101, the first electronic device 100 displays a first interface, which includes target information to be sent.

[0201] S1102, the second electronic device 200 displays the second interface.

[0202] S1103, during the process of displaying the first interface, the first electronic device 100 detects a collision event and determines the first moment of the collision event.

[0203] The process of the first electronic device 100 detecting a collision event can be specifically described in S503, and will not be repeated here. In addition, the first moment of the collision event can be the moment corresponding to the acceleration pulse peak during the collision of the first electronic device 100, and this embodiment does not limit this.

[0204] S1104, during the process of displaying the second interface, the second electronic device 200 detects a collision event and determines the second moment of the collision event.

[0205] The second moment when the collision event occurs in the second electronic device 200 can be the moment corresponding to the pulse peak of acceleration during the collision process. This embodiment does not limit this.

[0206] S1105, the first electronic device 100 sends a first broadcast message via BLE / SLE, the first broadcast message including network connection information and time information at a first moment.

[0207] In this embodiment, the time information at the first moment is also a kind of verification information, which is used by other electronic devices (such as the second electronic device 200) to verify the identity of the first electronic device 100.

[0208] S1106, after receiving the first broadcast information, the second electronic device 200 determines whether the time difference between the first moment and the second moment indicated by the first broadcast information is less than or equal to the time threshold.

[0209] For example, the time threshold can be 200ms, 500ms, etc., and this embodiment does not limit it.

[0210] In some embodiments, if the time difference between the first moment and the second moment is less than or equal to a time threshold, it indicates that the collision event that triggered the first electronic device 100 to send the first broadcast information is the same collision event detected by the second electronic device 200, that is, the first electronic device 100 and the second electronic device 200 collided with each other.

[0211] S1107, if the time difference between the first moment and the second moment is less than or equal to the time threshold, the second electronic device 200 sends a connection request to the first electronic device 100 based on the network connection information.

[0212] S1108, in response to the connection request, the first electronic device 100 establishes a wireless connection with the second electronic device 200.

[0213] S1109, the first electronic device 100 sends target information to the second electronic device 200 through the wireless connection.

[0214] In this embodiment, the contents of S1107 to S1109 are specifically referred to in S1007 to S1009, and will not be repeated here.

[0215] Through the information sharing method provided in this embodiment, the second electronic device 200 can verify the identity of the first electronic device 100 by the occurrence time of the collision event before requesting to connect to the first electronic device 100, thereby improving the accuracy of establishing a wireless connection and ensuring that the first electronic device 100 accurately shares information with the second electronic device 200.

[0216] Method 3: The second electronic device 200 verifies the first electronic device 100 based on the acceleration of the collision.

[0217] Figure 12 is a schematic flowchart of an information sharing process provided in other embodiments of this application, including the following steps S1201 to S1210.

[0218] S1201, the first electronic device 100 displays a first interface, which includes target information to be sent.

[0219] S1202, the second electronic device 200 displays the second interface.

[0220] S1203, during the process of displaying the first interface, the first electronic device 100 detects a collision event and determines the first acceleration of the collision event.

[0221] Based on the foregoing description, if the acceleration of the first electronic device 100 in the first direction (e.g., the Y-axis direction) exhibits a pulse spike (i.e., the acceleration first increases rapidly and then decreases rapidly) over a period of time, and the acceleration corresponding to this pulse spike is greater than or equal to the first acceleration threshold (e.g., 9.8 m / s²), 2 If the pulse spike corresponds to a collision event along the first direction during that time period, then the first electronic device 100 is determined to have experienced a collision event. The acceleration corresponding to this pulse spike is the first acceleration.

[0222] S1204, during the process of displaying the second interface, the second electronic device 200 detects a collision event and records the second acceleration corresponding to the collision event.

[0223] The process by which the second electronic device 200 determines its second acceleration can be found in S1203, and will not be repeated here.

[0224] S1205, the first electronic device 100 transmits first broadcast information via BLE / SLE, the first broadcast information including network connection information and first acceleration.

[0225] In this embodiment, the first acceleration is also a kind of verification information, which is used by other electronic devices (such as the second electronic device 200) to verify the identity of the first electronic device 100.

[0226] S1206, after receiving the first broadcast information, the second electronic device 200 determines whether the sum of the first acceleration and the second acceleration is less than or equal to the second acceleration threshold.

[0227] During the relative collision between the first electronic device 100 and the second electronic device 200, if one electronic device moves forward in the collision direction, the other electronic device will usually move backward. Therefore, the acceleration directions of the two electronic devices are usually roughly equal and opposite. Assuming the first electronic device 100 and the second electronic device 200 collide "head-to-head," then during the collision, if the acceleration of the first electronic device 100 along the Y-axis is 'a', then the acceleration of the second electronic device 200 along the Y-axis is approximately -a. Therefore, after receiving the first broadcast information, the second electronic device 200 can verify whether a collision has occurred between the first electronic device 100 and the second electronic device 200 based on the first acceleration of the first electronic device 100 during the collision and the second acceleration of the second electronic device 200 during the collision.

[0228] In some embodiments, if the sum of the first acceleration and the second acceleration is less than or equal to a second acceleration threshold, for example, the second acceleration threshold is 2 m / s². 2 1m / s 2 If so, it is determined that the first electronic device 100 and the second electronic device 200 have collided.

[0229] S1207, if the sum of the first acceleration and the second acceleration is less than or equal to the second acceleration threshold, the second electronic device 200 sends a connection request to the first electronic device 100 according to the network connection information.

[0230] S1208, in response to the connection request, the first electronic device 100 establishes a wireless connection with the second electronic device 200.

[0231] S1209, the first electronic device 100 sends target information to the second electronic device 200 through the wireless connection.

[0232] In this embodiment, the contents of S1207 to S1209 are specifically referred to in S1007 to S1009, and will not be repeated here.

[0233] Through the information sharing method provided in this embodiment, the second electronic device 200 can verify the identity of the first electronic device 100 by the acceleration of the collision before requesting to connect to the first electronic device 100, thereby improving the accuracy of establishing a wireless connection and enabling the first electronic device 100 to accurately share information with the second electronic device 200.

[0234] Method 4: The second electronic device 200 combines multiple methods from Methods 1 to 3 above to jointly verify the first electronic device 100.

[0235] In this embodiment, method 4 specifically includes the following cases (1) to (4).

[0236] (1) Method 1 + Method 2. That is, the second electronic device 200 verifies the first electronic device 100 based on the distance and collision time.

[0237] For example, the first electronic device 100 indicates the actual transmission power of the first broadcast information and the time information of the first moment when the collision event occurred in the first broadcast information. After receiving the first broadcast information, the second electronic device 200 obtains the time information of the second moment when its most recent collision event occurred, and confirms that the first electronic device 100 has collided with it if the time difference between the first moment and the second moment is less than or equal to a time threshold and the distance between the first electronic device 100 and the second electronic device 200 is less than or equal to a distance threshold.

[0238] (2) Method 1 + Method 3. That is, the second electronic device 200 verifies the first electronic device 100 based on distance and collision acceleration.

[0239] For example, the first electronic device 100 indicates the actual transmission power of the first broadcast information and the first acceleration of the collision event in the first broadcast information. After receiving the first broadcast information, the second electronic device 200 obtains the second acceleration of its most recent collision event, and confirms that the first electronic device 100 has collided with it if the sum of the first acceleration and the second acceleration is less than or equal to a second acceleration threshold, and the distance between the first electronic device 100 and the second electronic device 200 is less than or equal to a distance threshold.

[0240] (3) Method 2 + Method 3. That is, the second electronic device 200 verifies the first electronic device 100 based on the collision time and collision acceleration.

[0241] For example, the first electronic device 100 indicates the time information of the first moment of its collision event and the first acceleration in the first broadcast information. After receiving the first broadcast information, the second electronic device 200 obtains the time information of the second moment of its most recent collision event and the second acceleration, and confirms that the first electronic device 100 has collided with it if the time difference between the first moment and the second moment is less than or equal to a time threshold, and the sum of the first acceleration and the second acceleration is less than or equal to the second acceleration threshold.

[0242] (4) Method 1 + Method 2 + Method 3. That is, the second electronic device 200 verifies the first electronic device 100 based on the distance, collision time and collision acceleration.

[0243] For example, the first electronic device 100 indicates the actual transmission power of the first broadcast information, as well as the time information and first acceleration of the first moment when the collision event occurred. After receiving the first broadcast information, the second electronic device 200 obtains the time information and second acceleration of the second moment when its most recent collision event occurred, and confirms that the first electronic device 100 has collided with it if the time difference between the first moment and the second moment is less than or equal to a time threshold, the sum of the first acceleration and the second acceleration is less than or equal to a second acceleration threshold, and the distance between the first electronic device 100 and the second electronic device 200 is less than or equal to a distance threshold.

[0244] It should be noted that, due to the relatively complex distance verification process, the second electronic device 200 needs to first measure the distance between the first electronic device 100 and the second electronic device 200 before it can verify the first electronic device 100 based on that distance. In contrast, the verification process for collision time and collision acceleration is relatively simple, typically requiring only a simple comparison and analysis of the data. Therefore, in the above (1), (2), and (4), the second electronic device 200 can measure the distance between the first electronic device 100 and the second electronic device 200 after the first electronic device 100 has passed the collision time and / or collision acceleration verification, and then verify the first electronic device 100 based on that distance.

[0245] Based on the above embodiments, the technical concept is that the first electronic device 100 is discovered by the second electronic device 200 via BLE / SLE, establishes a wireless connection with the second electronic device 200, and then shares information with the second electronic device 200 through this wireless connection. The first electronic device 100 can also be discovered by the access network device 300 via BLE / SLE, and then establish a BLE / SLE connection with the access network device 300, so that the access network device 300 can share Wi-Fi connection information with the first electronic device 100 through the BLE / SLE connection. Based on this Wi-Fi connection information, the first electronic device 100 can automatically connect to the Wi-Fi network provided by the access network device 300. Specifically, as shown below.

[0246] Figure 13 is a schematic diagram of the communication system to which the Wi-Fi connection method provided in this embodiment of the application is applicable. The communication system includes a first electronic device 100 and an access network device 300. The first electronic device 100 supports searching for and connecting to Wi-Fi networks and supports displaying a search and connection interface. The access network device 300 includes electronic devices such as routers, switches, and modems that can generate access point (AP) hotspots; this embodiment does not limit the scope of these devices.

[0247] Figure 14 is a schematic flowchart illustrating the establishment of a Wi-Fi connection according to an embodiment of this application. The method specifically includes the following steps S1401 to S1408.

[0248] S1401, the first electronic device 100 detects the first event.

[0249] In some embodiments, the first event is that the first electronic device 100 enables the Wi-Fi function, for example, by turning on the "WLAN" switch in the control center of the first electronic device 100 according to user operation. Alternatively, the first event is that the first electronic device 100 displays the Wi-Fi switch, such as the "WLAN" switch, in a drop-down list.

[0250] In other embodiments, the first event is that the first electronic device 100 receives a Wi-Fi connection command, such as receiving a voice control command "Xiaoyi, Xiaoyi, help me connect to nearby Wi-Fi". Here, "Xiaoyi" is the voice assistant of the first electronic device 100.

[0251] In some embodiments, the first event is displaying a Wi-Fi network search and connection interface. For example, as shown in Figure 15, this Wi-Fi network search and connection interface displays available Wi-Fi networks scanned by the first electronic device 100, such as Wireless Network 1 to Wireless Network 6. In response to an operation to select a wireless network in this interface, the first electronic device 100 can connect to the corresponding Wi-Fi network directly or by entering a Wi-Fi password. Optionally, the search and connection interface may also display other Wi-Fi network-related information, such as a WLAN switch, a network acceleration switch, or a WLAN settings entry. This embodiment does not impose specific limitations on the content displayed on the search and connection interface.

[0252] S1402, in response to the first event, the first electronic device 100 sends a second broadcast message via BLE / SLE.

[0253] In this embodiment, the second broadcast information carries its actual transmission power, which is used by other electronic devices to measure their distance from the first electronic device 100.

[0254] In some embodiments, the second broadcast message is a non-connectable undirected advertising event, used by other electronic devices to discover but not directly connect to the first electronic device 100. That is, this broadcast can only be scanned by other electronic devices, but they cannot send connection requests based on it, thus preventing other electronic devices from maliciously connecting to the first electronic device 100 through the second broadcast message. For example, the second broadcast message is ADV_NONCONN_IND in the BLE protocol.

[0255] In other embodiments, the second broadcast information is a connectability broadcast, used by other electronic devices besides the first electronic device 100 to discover and connect to the first electronic device 100.

[0256] In S1402, taking the first event as the first electronic device 100 displaying a Wi-Fi network search and connection interface as an example, the first electronic device 100 can send a second broadcast message immediately after displaying the interface via BLE / SLE, or it can send a second broadcast message in response to specific triggering conditions while displaying the interface.

[0257] For example, if the first electronic device 100 detects a collision event while displaying the search connection interface, it sends a second broadcast message via BLE / SLE.

[0258] Alternatively, if the first electronic device 100 detects that it is not connected to a Wi-Fi network when displaying a search connection interface, it may send the second broadcast information via BLE / SLE.

[0259] Alternatively, if the first electronic device 100 detects that the signal strength of the currently connected Wi-Fi network is less than or equal to a strength threshold (e.g., -80dBm) while displaying a search connection interface, it sends a second broadcast message via BLE / SLE.

[0260] S1403, the access network device 300 determines the distance between the first electronic device 100 and the access network device 300 based on the second broadcast information.

[0261] Access network device 300 can determine the distance between first electronic device 100 and access network device 300 based on the actual transmission power and RSSI of the second broadcast information. For details, please refer to the process in S1005 where the second electronic device determines the distance between first electronic device 100 and second electronic device 200 based on the RSSI of the second broadcast information, which will not be repeated here.

[0262] S1404, Access network device 300 determines whether the distance is less than or equal to the distance threshold.

[0263] For example, the distance threshold is less than or equal to 1m, such as less than or equal to 1m, or 50cm, or 30cm. This embodiment does not limit the specific value of the distance threshold.

[0264] It should be noted that when the distance between the first electronic device 100 and the access network device 300 is less than or equal to the distance threshold, if the second broadcast information is a connectable broadcast, the access network device 300 directly establishes a BLE / SLE connection with the first electronic device 100 based on the second broadcast information. If the second broadcast information is a non-connectable broadcast, the access network device 300 needs to send a connectable broadcast so that it can be discovered by the first electronic device 100, thereby establishing a BLE / SLE connection, as detailed in S1405 to S1406.

[0265] S1405, if the distance is less than or equal to the distance threshold and the second broadcast information is a non-connectable broadcast, the access network device 300 sends a third broadcast information via BLE / SLE. The third broadcast information is used to discover and connect to the access network device 300, and the transmission power of the third broadcast information is less than or equal to the power threshold.

[0266] For example, the power threshold is -40dBm, -50dBm, etc. In other words, the third broadcast information sent by the first electronic device 100 is a low-power broadcast, which can only be received by electronic devices within a small range (e.g., within 1m), thereby ensuring the security of subsequent Wi-Fi connections and preventing the access network device 300 from being used by other electronic devices or maliciously attacked.

[0267] S1406, the first electronic device 100 establishes a BLE / SLE connection with the access network device 300 based on the third broadcast information.

[0268] S1407, the access network device 300 sends Wi-Fi connection information to the first electronic device 100 via BLE / SLE connection.

[0269] For example, the Wi-Fi connection information includes: the service set identifier (SSID) of the Wi-Fi network, the Wi-Fi network address information, the Wi-Fi password, etc.

[0270] S1408, the first electronic device 100 establishes a Wi-Fi connection with the access network device based on the Wi-Fi connection information.

[0271] In some embodiments, after receiving Wi-Fi connection information, the first electronic device 100 displays a third prompt message, which prompts whether to connect to the corresponding Wi-Fi network. In response to a confirmation connection operation entered on the third prompt message, the first electronic device 100 establishes a Wi-Fi connection with the access network device 300 based on the Wi-Fi connection information, that is, the first electronic device 100 connects to the Wi-Fi network.

[0272] For example, as shown in Figure 16, the third prompt includes the message "Confirm connection to wireless network 1?", as well as "Connect" and "Cancel" controls. In response to the user's selection of the "Connect" control, the first electronic device 100 establishes a Wi-Fi connection with the access network device 300 based on the Wi-Fi connection information, thereby using the Wi-Fi network provided by it. Conversely, in response to the user's operation of the "Cancel" control, the first electronic device 100 disables the automatic Wi-Fi network connection function.

[0273] With the method provided in this embodiment, when the first electronic device 100 is located near the access network device 300, it can quickly connect to the Wi-Fi network provided by the access network device 300 without a Wi-Fi password, resulting in a better user experience.

[0274] 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.

[0275] Based on the same concept, as an implementation of the above method, this application provides an information sharing device and a Wi-Fi connection 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 correspondingly implement all the contents of the aforementioned method embodiment.

[0276] Figure 17 is a schematic diagram of an information sharing device provided in an embodiment of this application. The device is applied to a first electronic device 100 and specifically includes a display module 1701, a broadcast module 1702, a connection module 1703, and an information sending module 1704.

[0277] Display module 1701 is used to display a first interface, which includes target information to be sent.

[0278] The broadcast module 1702 is used to send a first broadcast message via BLE / SLE in response to a collision event occurring on the first electronic device 100 when the first interface is displayed. The first broadcast message is used to discover and connect to the first electronic device 100.

[0279] The connection module 1703 is used to establish a wireless connection with the second electronic device 200 according to the connection request of the second electronic device 200, the device that had the collision event with the first electronic device 100, and the connection request was sent by the second electronic device 200 according to the first broadcast information.

[0280] The information transmission module 1704 is used to transmit target information to the second electronic device 200 via a wireless connection.

[0281] Figure 18 is a schematic diagram of an information sharing device provided in another embodiment of this application. The device is applied to a second electronic device 200 and specifically includes a first receiving module 1801, a verification module 1802, a connection module 1803, and a second receiving module 1804.

[0282] The first receiving module 1801 is used to receive first broadcast information from the first electronic device 100 via BLE / SLE after a collision event occurs. The first broadcast information is used to discover and connect to the first electronic device 100.

[0283] The verification module 1802 is used to determine, based on the first broadcast information, that the object that caused the collision event with the second electronic device 200 is the first electronic device 100.

[0284] The connection module 1803 is used to establish a wireless connection with the first electronic device 100 based on the first broadcast information.

[0285] The second receiving module 1804 is used to receive target information sent by the first electronic device 100 via a wireless connection.

[0286] Figure 19 is a schematic diagram of a Wi-Fi connection device provided in an embodiment of this application. The device is applied to a first electronic device 100 and specifically includes a broadcast module 1901, a BLE / SLE connection module 1902, an information receiving module 1903, and a Wi-Fi connection module 1904.

[0287] Broadcast module 1901 is used to send a second broadcast message via BLE / SLE in response to the first event.

[0288] BLE / SLE connection module 1902 is used to establish a BLE / SLE connection with access network device 200 according to third broadcast information; the third broadcast information is sent by access network device 300 according to second broadcast information when the distance between it and first electronic device 100 is less than or equal to a distance threshold.

[0289] The information receiving module 1903 is used to receive wireless fidelity Wi-Fi connection information from the access network device 300 via BLE / SLE connection.

[0290] Wi-Fi connectivity module 1904 is used to establish a Wi-Fi connection with access network devices based on Wi-Fi connectivity information.

[0291] Figure 20 is a schematic diagram of a Wi-Fi connection device provided in another embodiment of this application. The device is applied to an access network device 300 and specifically includes an information receiving module 2001, a distance determining module 2002, a broadcasting module 2003, a BLE / SLE connection module 2004, an information sending module 2005, and a Wi-Fi connection module 2006.

[0292] The information receiving module 2001 is used to receive second broadcast information via BLE / SLE.

[0293] The distance determination module 2002 is used to determine the distance between the access network device 300 and the first electronic device 100 based on the second broadcast information.

[0294] The broadcast module 2003 is used to send a third broadcast message via BLE / SLE when the distance is less than or equal to a distance threshold. The third broadcast message is used to request the establishment of a BLE / SLE connection with the first electronic device 100.

[0295] BLE / SLE connection module 2004 is used to establish a BLE / SLE connection with the first electronic device 100.

[0296] The information sending module 2005 is used to send Wi-Fi connection information of the Wi-Fi network to the first electronic device 100 via BLE / SLE connection;

[0297] Wi-Fi connection module 2006 is used to establish a Wi-Fi connection with the first electronic device 100.

[0298] This application also provides an electronic device, which includes: one or more processors and a memory; the memory is coupled to one or more processors; the memory is used to store computer program code, the computer program code including computer instructions, and the one or more processors call the computer instructions to cause the electronic device to execute the information sharing method or Wi-Fi connection method shown in the above embodiments.

[0299] This application also provides a chip, as shown in FIG21, which includes a processor and a memory. The memory stores a computer program, which, when executed by the processor, implements the information sharing method or Wi-Fi connection method in the above embodiments.

[0300] This application also provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the information sharing method or Wi-Fi connection method provided in the above embodiments.

[0301] This application also provides a computer program product, which includes a computer program. When the computer program is run by an electronic device, the electronic device enables the electronic device to implement the information sharing method or Wi-Fi connection method provided in the above embodiments.

[0302] 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.

[0303] 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).

[0304] 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.

[0305] 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.

[0306] Those skilled in the art will 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.

[0307] 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.

[0308] 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: Display a first interface, which includes target information to be sent; When the first interface is displayed, in response to a collision event of the first electronic device, a first broadcast message is sent via Bluetooth Low Energy (BLE) / Spark Low Energy (SLE), and the first broadcast message is used to discover and connect to the first electronic device. A wireless connection is established with the second electronic device according to the connection request of the second electronic device, the second electronic device being the device that experienced the collision event with the first electronic device, and the connection request is sent by the second electronic device based on the first broadcast information; The target information is sent to the second electronic device via the wireless connection.

2. The method according to claim 1, characterized in that, The transmission power of the first broadcast information is less than or equal to the power threshold.

3. The method according to claim 1 or 2, characterized in that, The transmission frequency of the first broadcast information is greater than or equal to the frequency threshold.

4. The method according to any one of claims 1 to 3, characterized in that, The first broadcast information includes at least one of the following: the actual transmission power of the first broadcast information, the time information of the first moment when the collision event occurs in the first electronic device, and the first acceleration of the collision event in the first electronic device.

5. The method according to any one of claims 1 to 4, characterized in that, The first broadcast information also includes network connection information, and the connection request is sent by the second electronic device based on the network connection information.

6. The method according to any one of claims 1 to 5, characterized in that, The process by which the first electronic device determines that the collision event has occurred includes: Obtain the acceleration of the first electronic device within a preset time period; If a pulse spike appears in the acceleration change curve within the preset time period, and the acceleration corresponding to the pulse spike is greater than or equal to the first acceleration threshold, then it is determined that the first electronic device has experienced the collision event.

7. The method according to any one of claims 1 to 6, characterized in that, Sending the target information to the second electronic device via the wireless connection includes: A first prompt message is displayed on the first interface, the first prompt message being used to prompt whether to send the target information; In response to the confirmation operation entered on the first prompt message, the target information is sent to the second electronic device via the wireless connection.

8. An information sharing method, characterized in that, Applied to a second electronic device, the method includes: After a collision event occurs, a first broadcast message is received from a first electronic device via Bluetooth Low Energy (BLE) / Spark Low Energy (SLE). The first broadcast message is used to discover and connect to the first electronic device. Based on the first broadcast information, it is determined that the object that caused the collision event with the second electronic device is the first electronic device; A wireless connection is established with the first electronic device based on the first broadcast information; The target information sent by the first electronic device is received through the wireless connection.

9. The method according to claim 8, characterized in that, The transmission power of the first broadcast information is less than or equal to the power threshold.

10. The method according to claim 8 or 9, characterized in that, The transmission frequency of the first broadcast information is greater than or equal to the frequency threshold.

11. The method according to any one of claims 8 to 10, characterized in that, The step of determining, based on the first broadcast information, that the object of the collision event occurring in the second electronic device is the first electronic device includes: If the first broadcast information includes the actual transmission power 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 or equal to a distance threshold, the object that caused the collision event with the second electronic device is determined to be the first electronic device; And / or, If the first broadcast information includes the time information of the first moment when the first electronic device experiences a collision event, then obtain the time information of the second moment when the second electronic device most recently experienced a collision event. If the time difference between the first moment and the second moment is less than or equal to a time threshold, it is determined that the object that caused the collision event with the second electronic device is the first electronic device; And / or, If the first broadcast information includes a first acceleration of the collision event of the first electronic device, then obtain the second acceleration of the second electronic device at the time of the most recent collision. If the sum of the first acceleration and the second acceleration is less than or equal to the second acceleration threshold, the object that caused the collision event with the second electronic device is determined to be the first electronic device.

12. The method according to any one of claims 8 to 11, characterized in that, The first broadcast information also includes network connection information; the step of establishing a wireless connection with the first electronic device based on the first broadcast information includes: A wireless connection is established with the first electronic device based on the network connection information.

13. The method according to any one of claims 8 to 12, characterized in that, Receiving the target information sent by the first electronic device via the wireless connection includes: A second prompt message is displayed, which prompts whether the target information should be received; In response to a confirmation operation entered on the second prompt message, the target information sent by the first electronic device is received via the wireless connection.

14. A Wi-Fi connection method, characterized in that, Applied to a first electronic device, the method includes: In response to the first event, a second broadcast message is sent via Bluetooth Low Energy (BLE) / Spark Low Energy (SLE). A BLE / SLE connection is established with the access network device based on the third broadcast information; the third broadcast information is sent by the access network device based on the second broadcast information when the distance between it and the first electronic device is less than or equal to a distance threshold. Receive Wi-Fi connection information from the access network device via the BLE / SLE connection; Based on the Wi-Fi connection information, a Wi-Fi connection is established with the access network device.

15. The method according to claim 14, characterized in that, The first event includes at least one of the following: Displays the interface for searching and connecting to Wi-Fi networks; Wi-Fi connection command received; Received instruction to enable Wi-Fi.

16. The method according to claim 15, characterized in that, When the first electronic device displays a Wi-Fi network search and connection interface, a second broadcast message is sent via BLE / SLE, including: When displaying the Wi-Fi network search and connection interface, if a collision event is detected with the first electronic device, the second broadcast information is sent via BLE / SLE; or, When displaying a Wi-Fi network search and connection interface, if it is detected that the first electronic device is not currently connected to a Wi-Fi network, the second broadcast information is sent via BLE / SLE; or, When displaying the Wi-Fi network search and connection interface, if the signal strength of the Wi-Fi network currently connected to the first electronic device is detected to be lower than the signal strength threshold, the second broadcast information is sent via BLE / SLE.

17. The method according to any one of claims 14 to 16, characterized in that, The Wi-Fi connection information includes: the service cluster identifier and password of the Wi-Fi network.

18. The method according to any one of claims 14 to 17, characterized in that, Establishing a Wi-Fi connection with the access network device based on the Wi-Fi connection information includes: A third prompt message is displayed, which prompts whether to establish a Wi-Fi connection with the access network device; In response to the confirmation connection operation entered on the third prompt message, a Wi-Fi connection is established with the access network device.

19. A Wi-Fi connection method, characterized in that, Applied to an access network device for providing an accessible Wi-Fi network, the method includes: Receive the second broadcast information via Bluetooth Low Energy (BLE) / Spark Low Energy (SLE); Based on the second broadcast information, the distance between the access network device and the first electronic device is determined; A third broadcast message is sent via BLE / SLE when the distance is less than or equal to a distance threshold. The third broadcast message is used to request the establishment of a BLE / SLE connection with the first electronic device. Establish a BLE / SLE connection with the first electronic device; The Wi-Fi connection information of the Wi-Fi network is sent to the first electronic device through the BLE / SLE connection; Establish a Wi-Fi connection with the first electronic device.

20. The method according to claim 19, characterized in that, The transmission power of the second broadcast information is less than or equal to the power threshold.

21. The method according to claim 19 or 20, characterized in that, The distance threshold is 1m, 50cm, or 30cm.

22. The method according to any one of claims 19 to 21, characterized in that, The access network equipment includes routers.

23. An electronic device, characterized in that, The electronic device includes: one or more processors and memory; The memory is coupled to the one or more processors; The memory is used to store computer program code, the computer program code including computer instructions, and the one or more processors call the computer instructions to cause the electronic device to perform the method as described in any one of claims 1 to 7, or any one of claims 8 to 13, or any one of claims 14 to 18.

24. An access network device, characterized in that, The access network device includes: one or more processors and a memory; The memory is coupled to the one or more processors; The memory is used to store computer program code, the computer program code including computer instructions, and the one or more processors call the computer instructions to cause the access network device to perform the method as described in any one of claims 19 to 22.

25. 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 7, or any one of claims 8 to 13, or any one of claims 14 to 18, or any one of claims 19 to 22.

26. A chip, characterized in that, The chip is used in an electronic device, and the chip includes one or more processors, the processors being used to invoke computer instructions to cause the electronic device to perform the method described in any of 1 to 7, or any of 8 to 13, or any of 14 to 18, or any of 19 to 22.

Citation Information

Patent Citations

  • Data transmission method, electronic device, and computer readable storage medium

    CN109067984A

  • Connection method and device between Bluetooth devices, electronic device and storage medium

    CN112954659A

  • Method for establishing wireless connection between devices through touch, electronic device and chip

    CN114339698A

  • File sharing method and electronic device

    WO2022228028A1

  • Method and apparatus for configuring channel used for service transmission

    WO2023011231A1