Data sharing method and device
Data sharing by swiping on an electronic device to point at the target device solves the problem of cumbersome operations between devices, improving sharing efficiency and user experience.
Patent Information
- Application Number
- CN202510641985.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-16
- Publication Date
- 2026-11-17
AI Technical Summary
Sharing data between different electronic devices is cumbersome and negatively impacts the user experience.
Wireless connection and data sharing are achieved by users swiping their electronic devices towards the target device, simplifying the operation process.
It improves the efficiency of data sharing and user experience, and enhances the naturalness and convenience of device interaction.
Smart Images

Figure CN123124127A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of terminal equipment technology, and in particular to a data sharing method and apparatus. Background Technology
[0002] With the widespread use of electronic devices, users often need to share data between different devices. For example, selecting a device to share from a list of connectable devices on the sharing device to share data from the sharing device is a cumbersome process that negatively impacts the user experience. Summary of the Invention
[0003] To address the aforementioned technical problems, this application provides a data sharing method and apparatus. In this method, an electronic device can share data with a second device pointed to by a user's swipe gesture, simplifying the sharing operation, improving data sharing efficiency, and enhancing the user experience.
[0004] Firstly, this application provides a data sharing method. The method includes: acquiring a user's first swipe gesture on first data, wherein the swipe direction of the first swipe gesture is a first direction, and the swipe distance of the first swipe gesture is a first length. In response to the first swipe gesture, a second device is determined, wherein the relative position of the second device and the first device satisfies the first direction and the first length. A wireless connection is established with the second device, and the first data is sent to the second device. Thus, in this implementation, a user can "throw" data to a second device by swiping on the electronic device towards the location of the second device to be shared. The user does not need to select the device to be shared through cumbersome clicking operations on the electronic device, nor does the user need to operate on both the sharing device and the device to be shared simultaneously, thus completing data sharing between different devices. This provides a simplified sharing method, allowing users to share data with a device to be shared simply through a swipe operation. It makes the interaction between the user and the device more natural and direct, improving the convenience and fun of user operation and enhancing the user experience.
[0005] For example, the first data can be files, images, audio, video, etc.
[0006] For example, the first data can be one or more data items, such as one or more images.
[0007] In one possible implementation, the number of the second devices is multiple. Thus, in this application, the device can also respond to the user's swipe operation and share data with multiple devices simultaneously, eliminating the need for repeated user operations and enabling data sharing to multiple devices at once.
[0008] In one possible implementation, if the first swipe gesture is a straight line and the first length is less than a first value, the second device is the device within the connectable range and closest to the first device in the first direction. Thus, in this implementation, when the first swipe gesture is a straight line and the swipe distance is short, the device within the connectable range that is closest to the first device in the first direction is identified as the second device. This allows for faster identification of the second device the user wishes to share, improving the speed of identification and consequently increasing the efficiency of data sharing.
[0009] In one possible implementation, if the first swipe gesture is a straight line and the first length is greater than a first value, the second device is the device that is furthest from the first device in the first direction and within the connectable range. Thus, in this implementation, when the first swipe gesture is a straight line and the swipe distance is relatively long, the device that is furthest from the first device in the first direction within the connectable range is identified as the second device. This allows for faster identification of the second device the user wishes to share, improving the speed of data sharing and consequently increasing the efficiency of data sharing.
[0010] In one possible implementation, if the first swipe gesture is a straight line and the swipe speed of the first swipe gesture is less than a second value, the second device is at least one device within the connectable range, and in the first direction, the actual distance between the second device and the first device satisfies the mapping ratio with the first length. Thus, in this implementation, when the first swipe gesture is a straight line and the swipe speed is slow, after determining at least one connectable device in the first direction, if the actual distance between the at least one connectable device and the first device satisfies the mapping ratio with the first length, the at least one connectable device is determined as at least one second device. In this way, the at least one second device determined based on the first length and the mapping ratio corresponds to the actual distance between the second device and the first device in the first direction and the first length, making the determined at least one second device more consistent with the user's swipe operation and improving the accuracy of the determined second device.
[0011] In one possible implementation, if the first swipe gesture is arc-shaped, the second device is at least one device within a connectable range and a sector-shaped range; wherein the sector-shaped range is obtained based on the first direction and the first length. Thus, in this implementation, when the first swipe gesture is arc-shaped, the first direction and the first length can determine the corresponding sector-shaped range, and at least one connectable device within the sector-shaped range can be identified as the second device. This allows for simultaneous sharing to multiple second devices within the first range in response to the user's swipe operation, eliminating the need for repeated user operations. This simplifies the process of sharing data to multiple devices, reduces the time required, and increases the efficiency of data sharing. It also makes the interaction between the user and the device more natural and direct, enhancing the convenience and enjoyment of user operations and improving the user experience.
[0012] In one possible implementation, a second swipe gesture by the user towards the second data is obtained, wherein the swipe direction of the second swipe gesture is a second direction, and the swipe distance of the second swipe gesture is a second length. In response to the second swipe gesture, multiple third devices are identified, the relative positions of the third devices to the first device satisfying the second direction and the second length. A confirmation interface is displayed, including device information of the multiple third devices. In response to the user's confirmation operation on the confirmation interface, a wireless connection is established with at least one of the multiple third devices, and the second data is sent to the at least one third device. Thus, in this implementation, at least one third device to be shared can be determined from multiple third devices whose relative positions to the first device satisfy the second direction and the second length. After determining that the multiple third devices satisfy the second direction and the second length, i.e., after determining the multiple third devices that satisfy the user's swipe operation, a second confirmation is performed on the at least one third device based on the user's confirmation operation. For example, the user can cancel a mistakenly selected third device to avoid sharing the first data with the mistakenly selected third device. In this way, the determined second device better meets the user's expectations, improving the accuracy of the sharing device selection and enhancing the user experience.
[0013] In one possible implementation, after establishing a wireless connection with at least one second device, the method further includes: sending a verification request to the second device; receiving first verification information sent by the second device; and sending the first data to the second device if the first verification information matches the second verification information entered by the user. Thus, in this implementation, before sharing data with the second device, a verification request is sent to at least one second device and the first verification information sent by the second device is received for device verification. This further determines whether the second device is the one the user intends to share with. Only if the first verification information matches the second verification information entered by the user, i.e., if the second device is the one the user intends to share with, is the first data sent to that second device. This avoids mistakenly sending the first data to a second device that the user does not intend to share with, prevents leakage of the first data, and improves the security of data sharing.
[0014] In one possible implementation, acquiring the user's first swipe gesture on the first data includes: displaying a share option in response to a received long-press operation by the user on the target data; displaying a share interface, the share interface including the target data, in response to a received click operation by the user on the share option; and acquiring the user's first swipe gesture on the share interface. For example, the share option may also include options corresponding to various sharing methods, such as a swipe share option to trigger the data sharing method in this embodiment.
[0015] In one possible implementation, the first direction includes a horizontal direction parameter and a vertical direction parameter.
[0016] In the implementation of this application, the direction of the first swipe gesture may include horizontal and vertical parameters. The device can be determined to be in the first direction based on the horizontal and vertical parameters. In this way, by determining whether the device is in the first direction from the horizontal and vertical directions, the user's swipe operation can be identified more accurately, false triggers can be reduced, and one or more second devices that truly match the user's intention can be more accurately identified and filtered.
[0017] Secondly, embodiments of this application provide a data sharing device. The device includes: an acquisition module, configured to acquire a user's first swipe gesture on first data, wherein the swipe direction of the first swipe gesture is a first direction, and the swipe distance of the first swipe gesture is a first length; a determination module, configured to determine a second device in response to the first swipe gesture, wherein the relative position of the second device and the first device satisfies the first direction and the first length; and a transceiver module, configured to establish a wireless connection with the second device and send the first data to the second device.
[0018] In one possible implementation, the number of the second devices is multiple.
[0019] In one possible implementation, if the first swipe gesture is a straight line and the first length is less than a first value, the second device is the device that is within the connectable range and is closest to the first device in the first direction and relative to the first device.
[0020] In one possible implementation, if the first swipe gesture is a straight line and the first length is greater than a first value, the second device is the device that is furthest from the first device in the first direction and within the connectable range.
[0021] In one possible implementation, if the first swipe gesture is a straight line and the swipe speed of the first swipe gesture is less than a second value, the second device is at least one device within the connectable range, and in the first direction, the actual distance between the second device and the first device satisfies a mapping ratio with the first length.
[0022] In one possible implementation, if the first swipe gesture is arc-shaped, the second device is at least one device within the connectable range and within a fan-shaped range; wherein: the fan-shaped range is obtained based on the first direction and the first length.
[0023] In one possible implementation, the acquisition module is further configured to acquire a second swipe gesture of the user towards the second data, wherein the swipe direction of the second swipe gesture is a second direction, and the swipe distance of the second swipe gesture is a second length; the determination module is further configured to, in response to the second swipe gesture, determine a plurality of third devices, wherein the relative positions of the third devices and the first device satisfy the second direction and the second length; the display module is configured to display a confirmation interface, wherein the confirmation interface includes device information of the plurality of third devices; the transceiver module is further configured to, in response to the user's confirmation operation on the confirmation interface, establish a wireless connection with at least one of the plurality of third devices, and send the second data to the at least one third device.
[0024] In one possible implementation, the transceiver module is further configured to: send a verification request to at least one second device; receive first verification information sent by at least one second device; and, if the first verification information is the same as the second verification information entered by the user, send the first data to at least one second device.
[0025] In one possible implementation, the acquisition module is specifically configured to: display a share option in response to a received long-press operation by the user on the target data; display a share interface, which includes the target data, in response to a received click operation by the user on the share option; and acquire the user's first swipe gesture in the share interface.
[0026] In one possible implementation, the first direction includes a horizontal direction parameter and a vertical direction parameter.
[0027] The effect of the data sharing device in this implementation is similar to that of the data sharing method in the first aspect or any of the implementations of the first aspect, and will not be repeated here.
[0028] Thirdly, this application provides a data sharing device. The data sharing device includes a processor configured to execute instructions, which, when executed by the processor, are used to perform the method in any of the above implementations.
[0029] In some implementations, the data sharing device includes a memory that can store instructions, which, when executed by the processor, are used to perform the methods in any of the above implementations.
[0030] In some other implementations, the data sharing device includes one or more interface circuits; the interface circuits are used to receive signals from memory and send the signals to the processor, the signals including instructions stored in memory; when the processor executes the instructions, the processor is used to perform the method in any of the above implementations.
[0031] The effect of the data sharing device in this implementation is similar to that of the data sharing method in the first aspect or any of the implementations of the first aspect, and will not be repeated here.
[0032] Fourthly, this application provides a computer-readable storage medium. The computer-readable storage medium stores a computer program that, when executed on a computer or processor, causes the computer or processor to perform the method described in any of the above implementations.
[0033] The effect of the computer-readable storage medium of this implementation is similar to that of the data sharing method of the first aspect or any implementation of the first aspect, and will not be repeated here.
[0034] Fifthly, this application provides a computer program product. The computer program product includes a software program that, when executed by a computer or processor, causes the methods in any of the above implementations to be performed.
[0035] The effect of the computer program product of this implementation is similar to that of the data sharing method of the first aspect or any implementation of the first aspect, and will not be repeated here.
[0036] Sixthly, this application provides a chip. The chip includes a processor and a communication interface, the processor being used to call and execute instructions from the communication interface, and when the processor executes the instructions, it implements the method in any of the above implementations.
[0037] The effect of the chip in this implementation is similar to that of the data sharing method in the first aspect or any of the implementations of the first aspect, and will not be repeated here. Attached Figure Description
[0038] Figure 1 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application;
[0039] Figure 2 A schematic diagram of the software structure of an electronic device provided in an embodiment of this application;
[0040] Figure 3 A schematic diagram illustrating an application scenario provided in an embodiment of this application;
[0041] Figure 4 A flowchart illustrating a data sharing method provided in an embodiment of this application;
[0042] Figure 5 A schematic diagram illustrating another application scenario provided by an embodiment of this application;
[0043] Figure 6 A flowchart illustrating another data sharing method provided in an embodiment of this application;
[0044] Figure 7 A schematic diagram of a user interface provided for an embodiment of this application;
[0045] Figure 8 This application provides a schematic flowchart for determining the location information of a connectable device in an embodiment of the present application.
[0046] Figure 9 A flowchart illustrating another data sharing method provided in an embodiment of this application;
[0047] Figure 10 A schematic diagram illustrating another application scenario provided by an embodiment of this application;
[0048] Figure 11 A schematic diagram illustrating yet another application scenario provided by an embodiment of this application;
[0049] Figure 12A schematic diagram illustrating the determination of a sliding angle, provided as an embodiment of this application;
[0050] Figure 13 A schematic diagram illustrating yet another application scenario provided by an embodiment of this application;
[0051] Figure 14 A schematic diagram of another user interface provided for an embodiment of this application;
[0052] Figure 15 A schematic diagram of a device verification process provided in an embodiment of this application;
[0053] Figure 16 A schematic diagram illustrating another user interface provided in an embodiment of this application;
[0054] Figure 17 This application provides a schematic diagram of a process for establishing a wireless connection.
[0055] Figure 18 This is a schematic diagram of the structure of a data sharing device provided in an embodiment of this application;
[0056] Figure 19 This is a schematic diagram of another data sharing device provided in an embodiment of this application. Detailed Implementation
[0057] The technical solutions in the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings.
[0058] Figure 1 A schematic diagram of the electronic device 100 is shown. It should be understood that... Figure 1 The electronic device 100 shown is merely an example. The electronic devices (e.g., electronic devices or second devices) in this application embodiment can be smartphones, tablets, laptops, desktop computers, smart speakers, smartwatches, in-vehicle terminals, smart TVs, wearable devices, smart cars, and other devices with wireless transmission capabilities. It should be further noted that the electronic device 100 may have more or fewer components than shown in the figure, may combine two or more components, or may have different component configurations. Figure 1 The various components shown can be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and / or application-specific integrated circuits.
[0059] Electronic device 100 may include: processor 110, external memory interface 120, internal memory 121, universal serial bus (USB) interface 130, charging management module 140, power management module 141, battery 142, antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone jack 170D, sensor module 180, button 190, motor 191, indicator 192, camera 193, display screen 194, and subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, a barometric pressure sensor 180C, a magnetic sensor 180D, an accelerometer sensor 180E, a distance sensor 180F, a proximity sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.
[0060] Processor 110 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.
[0061] The controller can be the nerve center and command center of the electronic device 100. The controller can generate operation control signals according to the instruction opcode and timing signals to complete the control of fetching and executing instructions.
[0062] The processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. This memory can store instructions or data that the processor 110 has just used or that are used repeatedly. If the processor 110 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 110, and thus improves the efficiency of the system.
[0063] The charging management module 140 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 140 receives charging input from the wired charger via the USB interface 130. In some wireless charging embodiments, the charging management module 140 receives wireless charging input via the wireless charging coil of the electronic device 100. While charging the battery 142, the charging management module 140 can also supply power to the electronic device via the power management module 141.
[0064] The power management module 141 connects the battery 142, the charging management module 140, and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140, providing power to the processor 110, internal memory 121, external memory, display screen 194, camera 193, and wireless communication module 160, etc. The power management module 141 can also monitor parameters such as battery capacity, battery cycle count, and battery health status (leakage current, impedance). In some other embodiments, the power management module 141 may also be located within the processor 110. In other embodiments, the power management module 141 and the charging management module 140 may be located in the same device.
[0065] The wireless communication function of electronic device 100 can be realized through antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modem processor and baseband processor, etc.
[0066] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 can be used to cover one or more communication frequency bands. Different antennas can also be multiplexed to improve antenna utilization. For example, antenna 1 can be multiplexed as a diversity antenna for a wireless local area network. In some other embodiments, the antennas can be used in conjunction with tuning switches.
[0067] The mobile communication module 150 can provide solutions for wireless communication, including 2G / 3G / 4G / 5G, applied to the electronic device 100. The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc. The mobile communication module 150 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 150 can also amplify the signal modulated by the modem processor and convert it into electromagnetic waves for radiation via antenna 1. In some embodiments, at least some functional modules of the mobile communication module 150 may be housed in the processor 110. In some embodiments, at least some functional modules of the mobile communication module 150 and at least some modules of the processor 110 may be housed in the same device.
[0068] 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 170A, receiver 170B, etc.) or displays images or videos through the display screen 194. In some embodiments, the modem processor may be a separate device. In other embodiments, the modem processor may be independent of the processor 110 and may be housed in the same device as the mobile communication module 150 or other functional modules.
[0069] The wireless communication module 160 can provide solutions for wireless communication applications on the electronic device 100, including wireless local area networks (WLANs) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), and infrared (IR) technologies. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via antenna 2, performs frequency modulation and filtering of the electromagnetic wave signals, and sends the processed signal to processor 110. The wireless communication module 160 can also receive signals to be transmitted from processor 110, perform frequency modulation and amplification, and convert them into electromagnetic waves for radiation via antenna 2.
[0070] In some embodiments, antenna 1 of electronic device 100 is coupled to mobile communication module 150, and antenna 2 is coupled to wireless communication module 160, enabling electronic device 100 to communicate with networks and other devices via wireless communication technology. The wireless communication technology may include Global System for Mobile Communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Time Division Code Division Multiple Access (TD-SCDMA), Long Term Evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technologies, etc. The GNSS may include the Global Positioning System (GPS), the Global Navigation Satellite System (GLONASS), the BeiDou Navigation Satellite System (BDS), the Quasi-Zenith Satellite System (QZSS), and / or satellite-based augmentation systems (SBAS).
[0071] Electronic device 100 implements display functions through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, connected to the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations and for graphics rendering. Processor 110 may include one or more GPUs, which execute program instructions to generate or modify display information.
[0072] Display screen 194 is used to display images, videos, etc. Display screen 194 includes a display panel. In some embodiments, electronic device 100 may include one or N displays screens 194, where N is a positive integer greater than 1.
[0073] Electronic device 100 can perform shooting functions through ISP, camera 193, video codec, GPU, display 194 and application processor.
[0074] The external storage interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 through the external storage interface 120 to perform data storage functions. For example, music, video, and other files can be saved on the external memory card.
[0075] Internal memory 121 can be used to store computer executable program code, which includes instructions. Processor 110 executes various functional applications and data processing of electronic device 100 by running the instructions stored in internal memory 121. Internal memory 121 may include a program storage area and a data storage area. The program storage area may store the operating system, at least one application program required for a function (such as sound playback, image playback, etc.), etc. The data storage area may store data created during the use of electronic device 100 (such as audio data, phonebook, etc.). Furthermore, internal memory 121 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.
[0076] Electronic device 100 can implement audio functions, such as music playback and recording, through audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone jack 170D, and application processor.
[0077] The software system of electronic device 100 can adopt a layered architecture, event-driven architecture, microkernel architecture, microservice architecture, or cloud architecture, etc. This application embodiment uses the layered architecture Android system as an example to exemplify the software structure of electronic device 100.
[0078] Figure 2 This is a software structure block diagram of an electronic device 100 according to an embodiment of this application.
[0079] The layered architecture of the electronic device 100 divides the software into several layers, each with a clear role and function. Layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into three layers, from top to bottom: the application layer, the framework layer, and the kernel layer.
[0080] The application layer can include a series of application packages.
[0081] like Figure 2 As shown, the application package may include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, and SMS.
[0082] The framework layer provides application programming interfaces (APIs) and programming frameworks for applications in the application layer. The framework layer includes some predefined functions.
[0083] like Figure 2 As shown, the framework layer can include a window manager, content provider, view system, phone manager, resource manager, notification manager, sharing component, etc.
[0084] The window manager is used to manage windowed applications. It can retrieve screen size, determine the presence of a status bar, lock the screen, and capture screenshots, among other things.
[0085] Content providers store and retrieve data, making that data accessible to applications. This data may include videos, images, audio, made and received phone calls, browsing history and bookmarks, phone books, etc.
[0086] A view system includes visual controls, such as controls for displaying text and controls for displaying images. View systems can be used to build applications. A display interface can consist of one or more views. For example, a display interface including a text notification icon could include views for displaying text and views for displaying images.
[0087] The phone manager is used to provide communication functions for electronic device 100. For example, it manages call status (including connection and disconnection).
[0088] The file explorer provides applications with various resources, such as localized strings, icons, images, layout files, video files, and more.
[0089] The notification manager allows applications to display notifications in the status bar. These notifications can be used to deliver informational messages and can disappear automatically after a short pause, requiring no user interaction. For example, the notification manager can be used to notify users of completed downloads or message alerts. The notification manager can also display notifications as icons or scrolling text in the top status bar, such as notifications from background applications, or as dialog boxes on the screen. Examples include displaying text messages in the status bar, emitting sounds, vibrating electronic devices, and flashing indicator lights.
[0090] The sharing component can be used to execute the data sharing method in the embodiments of this application. For example, in response to a first swipe gesture, a second device is identified, and data to be shared (i.e., the first data described in the embodiments of this application) is sent to at least one second device.
[0091] In one possible implementation, the sharing component may also reside in other layers, such as the kernel layer or the application layer, which is not limited in this application.
[0092] In one example, a third-party application or a system application can invoke the sharing component to identify a second device in response to a first swipe gesture and send the data to be shared to the second device.
[0093] Optionally, in some instances, the functions implemented by the sharing component in the embodiments of this application can also be implemented by third-party applications or system applications (such as other applications in the application layer).
[0094] The kernel layer is the layer between hardware and software. The kernel layer includes at least the display driver, Bluetooth driver, audio driver, sensor driver, and Wi-Fi driver.
[0095] Understandable, Figure 2 The components included in the illustrated frame layer do not constitute a specific limitation on the electronic device 100. In other embodiments of this application, the electronic device 100 may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements.
[0096] The technical solution of this application is introduced below, and the application scenario of this application is introduced first.
[0097] Please refer to Figure 3 , Figure 3 This is a schematic diagram illustrating an application scenario provided by an embodiment of this application. The application scenario of this application provides a communication system, which includes a communication network and terminal devices accessing the communication network. The communication network is used to forward services between different user devices accessing the communication network, enabling communication between the different user devices. The communication network can be a wireless network, such as WiFi, Bluetooth, or Wi-Fi.
[0098] like Figure 3 As shown in (1), the communication system 300 includes multiple terminals (such as...). Figure 3 The terminals 301 to 310 in the plurality of terminals include a first device (also referred to as a sharing device) and a second device (also referred to as a device to be shared or a target device), and each terminal can communicate with other terminals via a wireless connection.
[0099] Taking terminal 301 as the first device as an example, a user can perform a first swipe gesture on terminal 301. After acquiring the first swipe gesture, the terminal, based on the swipe direction and distance of the first swipe gesture, determines at least one second device in the aforementioned communication system whose relative position to the terminal satisfies the swipe direction and distance of the first swipe gesture. Then, terminal 301 can wirelessly connect with at least one second device, and subsequently, terminal 301 can send data to be shared to each of the at least one second device. Specific implementation details will be provided in the following embodiments.
[0100] like Figure 3 As shown in (2), the terminals in the sliding direction of the first sliding gesture include terminal 302 and terminal 307. The relative distance between terminal 301 and terminal 302, and the relative distance between terminal 301 and terminal 307, both satisfy the sliding distance of the first sliding gesture. Terminal 301 determines terminal 302 and terminal 307 as the second device.
[0101] In other embodiments, the first swipe gesture can be an arc swipe, and the terminal 301 can determine at least one second device based on the arc of the first swipe gesture and the relative angle between the terminal 301 and other terminals in the communication system 300.
[0102] like Figure 3 As shown in (3), the terminals within the arc range indicated by the first swipe gesture include terminal 303 and terminal 310, and terminal 301 can identify terminal 303 and terminal 310 as the second device.
[0103] A terminal can be a device or module that accesses the aforementioned communication system and has corresponding communication functions. A terminal can also be called a terminal device, user equipment (UE), mobile station, mobile terminal, etc. A terminal can be a mobile phone, tablet computer, computer with wireless transceiver capabilities, wearable device, vehicle, drone, helicopter, airplane, ship, robot, smart home device, transportation vehicle with wireless communication capabilities, communication module, etc. The embodiments of this application do not limit the device form of the terminal. A terminal typically contains a communication module, circuit, or chip that performs the corresponding communication functions. Furthermore, it can also contain modules, circuits, or chips (such as GPUs, AI processors, NPUs, or ASICs) that perform corresponding communication and / or computing functions. The terminal can also be configured with program instructions for performing the corresponding communication and / or computing functions.
[0104] Unless otherwise specified, the means for implementing the functions of a terminal device in this application may refer to the terminal device itself, or to a means that enables the terminal device to implement the functions, such as a system-on-a-chip (SoC) or a modem. This means may be installed in the terminal device.
[0105] Figure 4 A flowchart illustrating an embodiment of this application's data sharing method is provided. This method flow can be combined with... Figure 1 and Figure 2 Examples, but not limited to, those in conjunction with Figure 1 and Figure 2 Example.
[0106] like Figure 4 As shown, the method flow may include, but is not limited to, the following steps:
[0107] S401. The first device acquires the user's first swipe gesture on the first data.
[0108] Specifically, the display interface of the first device displays at least one piece of data, including data to be shared (i.e., the first data described in this embodiment, or target data, etc.). The user slides the first device's display interface toward the location of the second device, and the first device receives the first swipe gesture. The first swipe gesture indicates that the data to be shared (also referred to as the first data or target data in this embodiment) can be shared.
[0109] The data to be shared can be files, images, videos, audio files, compressed files, etc.
[0110] Optionally, the data to be shared can be one or more. That is, the method in this application embodiment can share multiple files or pictures, etc., with a second device.
[0111] Wherein: the sliding direction of the first sliding gesture is the first direction, and the sliding distance of the first sliding gesture is the first length.
[0112] The swipe gesture in this embodiment can be a touch gesture, that is, the user's finger touches and swipes on the touchscreen. In some instances, the swipe gesture described in this embodiment can also be an air gesture, that is, the user uses an air swipe operation, and the first device can capture the user's air swipe operation through a camera.
[0113] Let's take a specific example, 1, as an example. Figure 5 This is a schematic diagram of another application scenario provided by the embodiments of this application, and the data to be shared is data 2.
[0114] Please refer to Figure 5 (1) The user slides data 2 in direction 1 for a length of 1. The first device receives the user's sliding operation, the direction of which is direction 1, and the sliding distance is the sliding length of 1; please refer to Figure 5 (2) The user slides data 2 in direction 2 for a length of 2. The first device receives the user's sliding operation, the direction of which is direction 2, and the sliding distance is the sliding length 2; please refer to Figure 5 (3) The user slides data 2 in direction 3 by a length of 3. The first device receives the user's sliding operation, the direction of which is direction 3, and the sliding distance is the sliding length of 3; please refer to Figure 5 (4) The user slides data 2 in direction 4 for a length of 4. The first device receives the user's sliding operation. The direction of the sliding operation is direction 4, and the sliding distance is the sliding length of 4.
[0115] Reference Figure 6, Figure 6 This is an illustrative flowchart of a data sharing method, which includes, but is not limited to, the following steps:
[0116] S601, user clicks to share.
[0117] For example, refer to Figure 7 , Figure 7 This is a schematic diagram of a user interface as an example. A memo application interface 701 is displayed on the screen of the first device. In this example, the sharing of memo files in a memo is used as an example. The memo application interface 701 includes multiple memo files. The user can long-press any memo file, or long-press the memo file to be shared (i.e., the data to be shared in this embodiment). In response to the received long-press operation, the first device displays interface 702. In interface 702, the user can select multiple memo files to share. Interface 702 also includes sharing options, deletion options, and encryption options. After selecting one or more memo files to be shared, the user can click the sharing option to trigger the data sharing method in this embodiment. Correspondingly, the first device can obtain sensor data collected by the touch sensor in response to clicking the sharing option. Specifically, the memo application may call the sharing component, and the sharing component may begin to acquire the sensor data collected by the touch sensor.
[0118] Optionally, the first device may also provide other sharing methods, such as sharing via hyperlink or tap-to-share. In this example, in response to a user's click on the share option, the first device may display sharing method options (not shown in the figure), including but not limited to: social media sharing options, tap-to-share options, and swipe-to-share options. In this embodiment, when a user clicks the swipe-to-share option, the sharing method in this embodiment is triggered, and the first device, in response to the received user operation, begins to acquire sensing data collected by the touch sensor.
[0119] S602, the first device begins acquiring sensor data.
[0120] Specifically, touch sensors (e.g.) Figure 1 The touch sensor [180K] in the system can collect sensing data corresponding to the swipe operation at a sampling frequency (e.g., touch coordinates collected at each sampling point). The touch sensor reports the collected sensing data to the sensor driver. The sensor driver can obtain the operation information of the swipe operation based on the sensing data, including but not limited to: start position, end position, swipe direction, and swipe distance.
[0121] In this embodiment, the sharing component can register with the sensor driver to obtain operation information reported by the sensor driver during the sharing scenario. After the sharing ends, the sharing component unregisters with the sensor driver to no longer obtain operation information.
[0122] For example, when a user clicks the share option, the first device responds to the share operation by acquiring sensor data collected by the touch sensor.
[0123] In one possible implementation, the first device may execute S603 after S601 (the order of S601 and S602 is not important). Specifically, the first device acquires location information and device information of surrounding connectable devices. The location information indicates the relative position between the connectable devices and the first device (the relative position will be described below). The device information includes, but is not limited to, at least one of the following: device identifier, device type, etc.
[0124] In this context, a connectable device can be understood as a device capable of establishing a wireless connection with the first device; that is, the connectable device supports establishing a wireless connection with the first device, and the distance between the device and the first device meets the conditions for establishing a wireless connection. Of course, in some instances, a connectable device can also be understood as a device that the first device can detect via wireless signals.
[0125] In some embodiments, the first device may acquire location information of at least one connectable device based on measurement signals.
[0126] In optional embodiments, such as Figure 8 As shown, the first device sends a measurement signal to at least one connectable device, the at least one connectable device generates a response message based on the measurement signal, the connectable device sends the response message to the first device, and after receiving the response message, the first device can determine the location information of the at least one connectable device based on the response message.
[0127] For example, the response information may include the signal strength of the measured signal reaching the connectable device, the time it took for the measured signal to reach the connectable device, etc.
[0128] Still refer to Figure 6 In S604, a user can slide a certain distance on the interface towards at least one second device to be shared. The sliding trajectory can be a straight line or a curve (i.e., an arc). A straight line is used to select devices in the sliding direction (which can also be understood as the extension of the sliding direction). A curve is used to select at least one second device within the range defined by the sliding curve.
[0129] For example, refer to Figure 7Upon receiving a user's click on the share option, the first device displays a sharing interface 703. The sharing interface 703 includes, but is not limited to, the memo file selected by the user to be shared and sharing prompts. The sharing prompts instruct the user to "drop" the file to be shared to the device by swiping towards it. The user can swipe from anywhere on the interface or within the area containing the file to be shared.
[0130] In S605, the first device can acquire the sensing data corresponding to the sliding operation through the sensor to determine the sliding direction and sliding distance, etc., corresponding to the sliding operation.
[0131] S402. The first device responds to the first swipe gesture and determines the second device. Wherein: the relative position of the second device and the first device satisfies the first direction and the first length.
[0132] In an optional embodiment, the first device (specifically, a sharing component) may determine the second device from surrounding connectable devices based on a first direction and a first length. The number of second devices may be one or more.
[0133] In some embodiments, the relative position between the second device and the first device may optionally be: the position (including direction and distance) between the second device and the first device with the first device as a reference point (or coordinate origin). Optionally, their relative position can be represented in coordinate form, that is, a coordinate system is established with the first device as the origin, and the relative position between the second device and the first device is the coordinate of the second device in that coordinate system. The coordinates include horizontal and vertical parameters.
[0134] For example, the relative positions of the second device and the first device satisfy the first direction and the first length, that is, the second device is in the first direction of the first device, and the relative distance between the second device and the first device corresponds to the first length.
[0135] In an optional embodiment, refer to Figure 9 S402 may further include: the first device can determine the sharing behavior type based on the first swipe gesture. The first device can determine the second device based on the sharing behavior type and the first swipe gesture.
[0136] In some embodiments, the sharing behavior types include short-distance sharing, long-distance sharing, slow-swipe sharing, and range sharing.
[0137] In some embodiments, if the first swipe gesture is a straight line and the first length is less than a length threshold (e.g., the second value described in the embodiments of this application), the sharing behavior type is a short-distance sharing type. In this example, the second device is the device that is closest to the first device in the connectable range, in the first direction, and in the relative position to the first device.
[0138] In other embodiments, if the first swipe gesture is a straight line and the first length is greater than a length threshold, the sharing behavior is a long-distance sharing type. In this example, the second device is the device that is furthest from the first device in the first direction and within the connectable range.
[0139] In some embodiments, if the first swipe gesture is a straight line and the swipe speed is less than a swipe speed threshold (e.g., the third value described in the embodiments of this application), the sharing behavior type is a slow swipe sharing type. In this example, the second device is at least one device s that is within the connectable range and, in the first direction, and whose actual distance to the first device satisfies a mapping ratio with the first length.
[0140] In some other embodiments, if the first swipe gesture is arc-shaped, the sharing behavior type is a range sharing type. In this example, the second device is at least one device within the connectable range and within the fan-shaped range. The fan-shaped range is obtained based on a first direction and a first length.
[0141] In this application embodiment, "straight line" can be understood as tending towards a straight line. For example, when the sharing component obtains the sliding trajectory of the first sliding operation, if the radian of the sliding trajectory is less than a preset radian value (e.g., the radian threshold described in this application embodiment, which can be set according to actual needs), the sliding trajectory can be considered a straight line. Conversely, if the radian of the sliding trajectory is greater than the preset radian value, the sliding trajectory can be considered an arc.
[0142] The aforementioned radian threshold, length threshold, etc., can be set according to actual needs, and this application does not impose any restrictions.
[0143] In some embodiments, the connectable range refers to the area where the first device can effectively connect with other devices, and the first device can wirelessly connect with devices within the connectable range. Please refer to... Figure 3 (2) or Figure 3 (3) Continuing with the example of the first device as terminal 301, the connectable range of the first device is the range of the communication system 300. For example, the first device can establish a connection with terminals 302 to 310 included in the communication system 300, wherein terminals 302 to 310 can also be referred to as connectable devices.
[0144] Referring to the specific example 1 above, as a concrete example, please refer to... Figure 5 (1) After receiving the user's swipe operation, the first device determines that the swipe speed is less than the swipe speed threshold and determines that the sharing behavior type is a slow swipe sharing type. The first device identifies devices 501 and 502 in direction 2 as the second device.
[0145] Please refer to Figure 5 (2) After receiving the user's swipe operation, the first device determines that the swipe radius is less than the radius threshold and the length 2 is less than the length threshold. The first device then determines that the sharing behavior type is a short-distance sharing type. The first device identifies the device 503, which is the closest to the first device in direction 2, as the second device.
[0146] Please refer to Figure 5 (3) After receiving the user's swipe operation, the first device determines that the swipe radius is less than the radius threshold and the length 3 is greater than the length threshold. The first device then determines that the sharing behavior type is a long-distance sharing type. The first device identifies the device 504, which is the farthest from the first device in direction 2, as the second device.
[0147] Please refer to Figure 5 (4) After receiving the user's swipe operation, the first device determines that the swipe radius is greater than the radius threshold and determines that the sharing behavior type is a range sharing type. The first device determines the radius range obtained by direction 4 and length 4 as range 5, and the first device determines that devices 505, 506 and 507 located in range 5 are at least one second device.
[0148] The following describes the specific process for identifying at least one second device based on the sharing behavior type and the first swipe gesture.
[0149] First, we will introduce the specific process for identifying at least one second device when the sharing behavior type is short-distance sharing, long-distance sharing, or slow swipe sharing.
[0150] In an optional embodiment, when the sharing behavior type is short-distance sharing, long-distance sharing, or slow swipe sharing, the first device determines at least one connectable device located in the first direction, and the first device determines at least one second device based on the relative position of the at least one connectable device and the first device.
[0151] The following describes the specific process for identifying at least one connectable device located in the first direction.
[0152] In an optional embodiment, for each of a plurality of connectable devices, the first device may determine whether the connectable device is in a first direction based on a first matching degree of the connectable device.
[0153] In some embodiments, if the first matching degree of the connectable device is equal to the preset matching degree, the first device may determine that the connectable device is in the first direction.
[0154] In other embodiments, if the first matching degree of the connectable device falls within a preset matching range, the first device determines that the connectable device is in a first direction. Here, the first matching degree falling within the preset matching range means that the first matching degree is greater than the minimum value of the preset matching range and less than the maximum value of the preset matching range.
[0155] In a specific embodiment, the first device may determine the first matching degree of the connectable device based on the sliding angle of the first sliding gesture in the horizontal plane, the sliding angle of the first sliding gesture in the vertical plane, the angle between the connectable device and the first device in the horizontal plane, and the angle between the connectable device and the first device in the vertical plane, using Formula 1.
[0156]
[0157] Wherein, P represents the first matching degree, Ha(g) represents the angle between the connectable device and the first device in the horizontal plane, Ha(d) represents the sliding angle of the first swipe gesture in the horizontal plane, Pa(g) represents the angle between the connectable device and the first device in the vertical plane, and Pa(d) represents the sliding angle of the first swipe gesture in the vertical plane.
[0158] For example, the first device substitutes the sliding angle of the first sliding gesture in the horizontal plane, the sliding angle of the first sliding gesture in the vertical plane, the angle between the connectable device and the first device in the horizontal plane, and the angle between the connectable device and the first device in the vertical plane into the above formula 1 to calculate the first matching degree of the connectable device.
[0159] Reference Figure 10 In this context, a horizontal plane refers to the plane formed by the X-axis and Y-axis, while a vertical plane refers to the plane formed by the X-axis and Z-axis. In other embodiments, the vertical plane may also be the plane formed by the Z-axis and Y-axis, and this application does not impose any restrictions on this.
[0160] Reference Figure 10 (1) The sliding direction of the first sliding gesture is the first direction, and the sliding distance of the first sliding gesture is the first length. The sliding angle of the first sliding gesture in the horizontal plane is the horizontal sliding angle 1, and the sliding angle of the first sliding gesture in the vertical plane is the vertical sliding angle 1.
[0161] The first device may determine at least one second device based on a first direction and a first length. Optionally, the first device may determine all devices located within the range 1 formed by the first direction, redundancy value 1, and redundancy value 2 as devices located in the first direction.
[0162] Reference Figure 10 (2) The angle between the first device and the connectable device in the vertical plane is a vertical angle 1, and the angle between the first device and the connectable device in the horizontal plane is a horizontal angle 1.
[0163] For example, the first device substitutes the horizontal sliding angle 1, the vertical sliding angle 1, the horizontal included angle 1, and the vertical included angle 1 into the above formula 1 to calculate the first matching degree of the connectable device.
[0164] Reference Figure 10 (3) The first device determines that the connectable device is located within the range 1 formed by the first direction, the redundancy value 1 and the redundancy value 2. The first device determines that the connectable device is located in the first direction.
[0165] The following describes the detailed process of determining at least one second device based on the sharing behavior type and the relative position of the at least one connectable device to the first device.
[0166] In some embodiments, the first device determines at least one second device from the at least one connectable device located in the first direction based on the relative position of the first device to the at least one connectable device located in the first direction.
[0167] Short-distance sharing type: When the swipe radius of the first swipe gesture is less than the radius threshold and the first length is less than the length threshold, the first device determines the sharing behavior type as short-distance sharing type.
[0168] In an optional embodiment, the first device identifies the device whose relative position is closest to the first device among at least one connectable device located in the first direction as the second device.
[0169] In an optional embodiment, the first device determines a range a based on the device closest to it in relative position and a redundancy value a. The first device then identifies at least one device among the at least one connectable device located in the first direction whose relative distance from the first device falls within range a as at least one second device. For example, if device X is the device closest to the first device in relative position, and the relative position of device X to the first device is 2 meters, with a redundancy value a of 0.5 meters, the first device determines the range a to be 1.5 meters to 2.5 meters. The first device then identifies at least one device among the at least one connectable device located in the first direction whose relative distance from the first device is greater than 1.5 meters and less than 2.5 meters as at least one second device.
[0170] Long-distance sharing type: When the swipe radius of the first swipe gesture is less than the radius threshold and the first length is greater than the length threshold, the first device determines the sharing behavior type as long-distance sharing type.
[0171] In an optional embodiment, the first device identifies the device that is furthest from the first device in relative position among at least one connectable device located in the first direction as the second device.
[0172] In an optional embodiment, the first device determines a range b based on the device furthest from it in relative position and a redundancy value b. The first device then identifies at least one device among the at least one connectable device located in the first direction whose relative distance from it falls within range b as at least one second device. For example, device Y is the device closest to the first device in relative position, with a relative position of 10 meters and a redundancy value b of 2 meters. The first device determines the range b to be between 8 and 12 meters. The first device then identifies at least one device among the at least one connectable device located in the first direction whose relative distance from it is greater than 8 meters and less than 12 meters as at least one second device.
[0173] Slow swipe sharing type: If the swipe speed of the first swipe gesture is less than the swipe speed threshold, the first device determines the sharing behavior type as slow swipe sharing type.
[0174] In an optional embodiment, the first device determines the actual distance between the at least one second device and the first device based on a first length and a mapping ratio. Then, the first device identifies at least one connectable device located in a first direction. For each of the at least one connectable device, if the actual distance between that connectable device and the first device is equal to the actual distance between the at least one second device and the first device, the first device identifies that connectable device as a second device.
[0175] In an optional embodiment, the first device may determine a range c based on the connectable device and the redundancy value c, and the first device may determine at least one device included in the range c as at least one second device.
[0176] In an optional embodiment, the first device may determine the actual distance between the second device and the first device based on the first length using Formula 2.
[0177] S = w × L 2 +k×L (2)
[0178] Where S represents the actual distance between the second device and the first device, L represents the first length, and w and k are both coefficients.
[0179] For example, the first device substitutes the first length into Formula 2 above to calculate the actual distance between the second device and the first device.
[0180] In an optional embodiment, the user can pause during the swipe. The first device can divide the first swipe gesture into at least one sub-gesture based on the user's pause position, and the direction of each of the at least one sub-gesture is a first direction. For example, for each of the at least one pause position, the first device can determine the gesture between the pause position and the starting position of the first swipe gesture as a sub-gesture, and the distance between the pause position and the starting position of the first swipe gesture is the swipe distance of the at least one sub-gesture.
[0181] For each of the at least one sub-gesture, the first device determines at least one second device indicated by the sub-gesture based on the swipe distance of that sub-gesture and Formula 2. For example, as the user swipes a first length in a first direction, the first device determines a second device each time based on the first direction and the first length, and the first device can notify the user via a system notification. For instance, the system notification could be a pop-up window displaying the device identifier of the second device, where the device identifier could include the device name, device type, etc. Alternatively, the system notification could be a vibration or ringing sound from the first device.
[0182] In an optional embodiment, as the user slides a first length in the first direction, the first device may display connectable devices one by one in the first direction. After the user stops sliding, the first device identifies the previously displayed connectable devices as at least one second device. Optionally, the user may slide in the opposite direction of the first direction to deselect a previously selected connectable device.
[0183] Let's take a specific example, 2, as an example. Figure 11 This is a schematic diagram illustrating an application scenario provided in an embodiment of this application. For example... Figure 11 As shown, the swipe radius of the first swipe gesture is less than the radius threshold, and the connectable devices in the first direction include device a, device b, device c, and device d. Based on the sharing behavior type, at least one second device is determined from device a to device d.
[0184] Please refer to Figure 11 (1) If the first length is less than the length threshold, the first device determines the sharing type to be short-distance sharing. The first device determines the closest connectable device relative to the first device as device a. Based on device a and the redundancy value 3, the first device determines the range 2. The first device determines device a included in the range 2 as a second device.
[0185] Please refer to Figure 11(2) If the first length is greater than the length threshold, the first device determines the sharing type to be a long-distance sharing type. The first device determines the connectable device that is furthest away from the first device as device d. Based on device d and the redundancy value 4, the first device determines the range 3. The first device determines devices c and d included in the range 3 as at least one second device.
[0186] Please refer to Figure 11 (3) The first sliding gesture is divided into sub-gesture a, sub-gesture b and sub-gesture c, wherein the sliding distance of sub-gesture a is length a, the sliding distance of sub-gesture b is length b and the sliding distance of sub-gesture c is length c.
[0187] Based on length 'a' and a second formula, the first device determines that the second device indicated by sub-gesture 'a' is device 'a'. Based on device 'a' and redundancy value 3, the first device determines range 2. The first device identifies device 'a' included in range 2 as a second device.
[0188] Based on length b and a second formula, the first device determines that the second device indicated by the sub-gesture b is device b. Based on device b and redundancy value 5, the first device determines range 4. The first device identifies device b included in range 4 as a second device.
[0189] Based on length c and a second formula, the first device determines that the second device indicated by sub-gesture c is device d. Based on device d and redundancy value 4, the first device determines range 3. The first device identifies devices c and d included in range 3 as at least one second device.
[0190] In one possible implementation, as described above, the range can cover one or more devices when redundancy is introduced. In some instances, the first device may not have redundancy introduced, i.e., the range is not considered. Accordingly, if the first length is less than a length threshold, the device closest to the first device among the connectable devices in the first direction is the selected device to be shared (i.e., the second device). If the first length is greater than the length threshold, the device furthest from the first device among the connectable devices in the first direction is the selected device to be shared (i.e., the second device).
[0191] The following describes the specific process for identifying at least one second device when the sharing behavior type is range sharing.
[0192] In an optional embodiment, if the radian of the first swipe gesture is greater than a radian threshold, the first device determines the sharing behavior type as a range sharing type. The first device may determine a first range based on a first direction and a first length. The first device identifies connectable devices located within the first range as at least one second device.
[0193] In an optional embodiment, the first direction includes a horizontal parameter and a vertical parameter, that is, the first range includes a horizontal range and a vertical range. The first device determines sub-range 1 based on the horizontal parameter and the first length of the first direction; the first device determines sub-range 2 based on the vertical parameter and the first length of the first direction; the first device determines the intersection of sub-range 1 and sub-range 2 as the first range.
[0194] For example, if sub-range 1 is the angle between the second device and the first device in the horizontal plane that is greater than angle 1 and less than angle 2, and sub-range 2 is the angle between the second device and the first device in the vertical plane that is greater than angle 3 and less than angle 4, then the first range is the angle between the second device and the first device in the horizontal plane that is greater than angle 1 and less than angle 2, and the angle between the second device and the first device in the vertical plane that is greater than angle 3 and less than angle 4.
[0195] In an optional embodiment, the first device may determine the sliding angle of the user sliding on the horizontal plane based on the horizontal parameter of the first direction, and the first device may determine sub-range 1 based on the sliding angle of the user sliding on the horizontal plane; the first device may determine the sliding angle of the user sliding on the vertical plane based on the vertical parameter of the first direction, and the first device may determine sub-range 2 based on the sliding angle of the user sliding on the vertical plane.
[0196] For example, when the first device is placed vertically, the user's sliding angle in the horizontal plane is 0, and the user's sliding angle on the first device is the same as the user's sliding angle in the vertical plane. Sub-range 1 is the angle between the second device and the first device in the horizontal plane, which is 0, and sub-range 2 is the sliding range of the user on the first device. As another example, when the first device is placed horizontally, the user's sliding angle in the vertical plane is 0, and the user's sliding angle on the first device is the same as the sliding angle of the first swipe gesture in the horizontal plane. Sub-range 1 is the sliding range of the user on the first device, and sub-range 2 is the angle between the second device and the first device in the vertical plane, which is 0.
[0197] For example, continue to refer to Figure 3 (1) Taking terminal 301 as the first device as an example, the device that the user wants to share is terminal 305, which is located in the positive Y-axis direction of terminal 301. The user can tilt the top of terminal 301 towards the positive Y-axis direction so that there is an angle between terminal 301 and both the vertical plane (e.g., the plane formed by the X-axis and Y-axis) and the horizontal plane (e.g., the plane formed by the X-axis and Z-axis). Then, the user can slide on terminal 301 towards terminal 305. In response to the user's sliding operation, terminal 301 identifies terminal 305 as the second device.
[0198] For example, terminal 301 can determine the vertical parameter and the horizontal parameter of the first direction based on the angle between terminal 301 and the vertical plane, the angle between terminal 301 and the horizontal plane, and the sliding angle of the user sliding on terminal 301. Then, terminal 301 can determine the sliding angle of the user sliding on the horizontal plane and the sliding angle of the user sliding on the vertical plane based on the vertical parameter and the horizontal parameter of the first direction. Next, terminal 301 can determine sub-range 1 and sub-range 2 based on the sliding angle of the user sliding on the horizontal plane and the sliding angle of the user sliding on the vertical plane.
[0199] In an optional embodiment, the first device may determine the sliding angle of the user's swipe on the first device based on the user's starting position, the user's ending position, and the screen width of the first device. For example, the first device determines the horizontal distance between the starting position and the ending position, determines the ratio of the horizontal distance to the screen width of the first device, and determines the sliding angle of the user's swipe by multiplying the ratio by 180°.
[0200] For specific embodiments, please refer to Figure 12 The horizontal distance between the starting position and the ending position of the user's swipe is length 1, the screen width of the first device is length 2, and the first device determines the swipe angle of the user's swipe as "(length 1 / length 2)×180°".
[0201] In an optional embodiment, for each of the at least one connectable device, the first device determines a second matching degree and a third matching degree. If the second matching degree and the third matching degree are less than or equal to a fourth matching degree, the first device determines the connectable device as a second device. If at least one of the second matching degree and the third matching degree is greater than the fourth matching degree, the first device does not determine the connectable device as a second device. The second matching degree is the matching degree between the second device and the starting direction of the first swipe gesture, the third matching degree is the matching degree between the second device and the ending direction of the first swipe gesture, and the fourth matching degree is the matching degree between the starting direction and the ending direction of the first swipe gesture.
[0202] For specific embodiments, please refer to Figure 13 dpx represents the fourth degree of matching, dp1s represents the second degree of matching for device 1, dp1e represents the third degree of matching for device 1, dp2s represents the second degree of matching for device 2, and dp2e represents the third degree of matching for device 2.
[0203] Reference Figure 13If the first device determines that both dp1s and dp1e are less than dpx, then the first device will identify device 1 as a second device. If the first device determines that dp2s is less than dpx, but dp1e is greater than dpx, then the first device will not identify device 2 as a second device.
[0204] In an optional embodiment, the first device may receive a second swipe gesture from the user onto the second data, and determine multiple third devices (two or more) based on the second swipe gesture. The direction of the second swipe gesture is a first direction, and its corresponding swipe length is a second length. The relative positions of the multiple third devices satisfy both the second and third directions. Then, the first device may display a confirmation interface, which includes device information for the multiple third devices; subsequently, in response to the user's confirmation operation on the confirmation interface, the first device may determine at least one third device from the multiple third devices.
[0205] The equipment information may include the equipment name, equipment identifier, and equipment type.
[0206] Please refer to Figure 14 , Figure 14 This is a schematic diagram of a user interface provided in an embodiment of this application. For example... Figure 14 As shown in (1), the user interface 510 may include one or more controls, including but not limited to the confirmation control 511.
[0207] Users can click the confirmation control 511 to complete the sending of the data to be shared. For example, after a user clicks the "Confirm" button, the first device can respond to the click of the confirmation control 511 by changing the display interface of the first device from... Figure 14 (1) The user interface 510 shown in the figure switches to the following: Figure 14 (2) The user interface 520 is shown. Figure 14 As shown in (2), the user interface 520 displays "Share successful".
[0208] In an optional embodiment, the user interface 510 displays an option for "Secondary Confirmation" and identifiers for n third devices, where n is a positive integer.
[0209] In some embodiments, where the user confirms a secondary confirmation, i.e., as... Figure 14 As shown in (1), when the user checks the "Secondary Confirmation" option, the user can confirm at least one second device from the n third devices displayed on the user interface 510. Afterwards, the user can click the confirmation control 511 to send the data to be shared. For example, as... Figure 14 As shown in (1), the user identifies device 1 and device n as the second device.
[0210] In other embodiments, if the user confirms that no secondary confirmation is required, that is, if the user does not check the "whether to confirm twice" option, the user can directly click the confirmation control 511 to send the data to be shared.
[0211] In some embodiments, after establishing a wireless connection with at least one second device, the first device may authenticate the at least one second device.
[0212] Please refer to Figure 15 For each of the at least one second device, the interaction diagram of the verification between the first device and the second device is as follows: Figure 15 As shown.
[0213] In an optional embodiment, the first device sends a verification request to at least one second device, receives first verification information sent by at least one second device, and verifies whether the first verification information is the same as second verification information entered by the user. If the first verification information and the second verification information are the same, the first device executes S404 to send the data to be shared to at least one second device. If the first verification information and the second verification information are different, the first device cancels sending the data to be shared to at least one second device.
[0214] In an optional embodiment, the first device sends a verification request to at least one second device, which receives the verification request and displays a verification interface. For each of the at least one second device, if the user of that second device expects to receive the data to be shared, the user of that second device can perform a verification operation based on the verification interface, and the second device, in response to the verification operation, sends first verification information to the first device. If the user of that second device expects to receive the data to be shared, the user of that second device can close the verification interface.
[0215] In an optional embodiment, at least one second device sends first verification information of the device, and the first device receives the first verification information sent by the at least one second device.
[0216] In an optional embodiment, the second verification information may also be randomly generated by the first device.
[0217] Please refer to Figure 16 , Figure 16 This is a schematic diagram of another user interface provided in an embodiment of this application.
[0218] like Figure 16 As shown in (1), the user interface 610 may display a confirmation box 611, which may include one or more controls, including but not limited to an input control 612, a cancel control 613 and a confirmation control 614.
[0219] The user of the first device can enter verification information at input control 612. Afterwards, the user can click the cancel control 613 to cancel the entered verification information, or the user can click the confirm control 614 to confirm the entered verification information. The first device can respond to the click of the cancel control 613 to cancel the user-entered verification information, or the first device can respond to the click of the confirm control 614 to confirm the user-entered verification information as the second verification information.
[0220] like Figure 16 As shown in (2), the user interface 620 may display a confirmation box 621. The confirmation box 621 may include one or more controls, including but not limited to an input control 622, a cancel control 623, and a confirmation control 624.
[0221] The user of the second device can enter verification information at input control 622. Afterwards, the user can click the cancel control 623 to cancel the entered verification information, or the user can click the confirm control 624 to confirm the entered verification information. The second device can respond to the click of the cancel control 623 to cancel the user-entered verification information, or the second device can respond to the click of the confirm control 624 to confirm the user-entered verification information as the second verification information.
[0222] S403. The first device establishes a wireless connection with at least one second device.
[0223] In optional embodiments, the wireless connection can be a WiFi connection, a Bluetooth connection, or a Starlink connection, etc.
[0224] In a specific embodiment, Figure 17 This is a schematic diagram illustrating a process for establishing a wireless connection, as provided in an embodiment of this application. Figure 17 The establishment of a wireless connection between the first device and the second device specifically includes:
[0225] The first device sends a connection request to the second device. Optionally, the connection request may include an AssociationRequest message.
[0226] For example, the Association Request message sent by the first device to the second device carries device information of the first device, including but not limited to at least one of the following: device model, device name, media access control (MAC) address, etc. Optionally, the device information may be included in a specified field of the Association Request message, such as the IE field.
[0227] The second device sends a connection reply to the first device. In an optional embodiment, the connection reply may include an Association Response message.
[0228] The first device and the second device perform a four-way handshake.
[0229] At this point, after the first device and the second device have completed a four-way handshake, a wireless connection has been established between them, enabling data exchange.
[0230] S404. The first device sends the data to be shared to at least one second device.
[0231] In an optional embodiment, the first device sends data to be shared to at least one second device via a wireless connection, and the at least one second device receives the data to be shared sent by the first device via a wireless connection.
[0232] In an optional embodiment, the first device may use fragmented encrypted transmission to transmit the data to be shared. The at least one second device replies with an acknowledgment (ACK) upon receiving a fragment. If the first device does not receive an ACK for a fragment within a preset time period, the first device retransmits the fragment. Optionally, the first device records the fragment sequence number of the transmitted fragments. If data sharing is interrupted and then resumed, the first device can continue transmitting the interrupted fragments. Optionally, the first device may perform encrypted transmission of the data to be shared.
[0233] In this embodiment, a user can "throw" data to one or more second devices by swiping towards those devices. For example, when a user is using two electronic devices simultaneously, after selecting the data to be shared on the first device, the user can swipe towards the second device to share the data, or in other words, "throw" the data to the second device, without needing to operate both devices simultaneously. This provides a simplified sharing method, allowing users to achieve a "throwing" effect with simple operations. The user only needs to operate on the data on their own device, and the data will travel to the corresponding device in the direction indicated by the user's operation. Furthermore, in this embodiment, the device can also respond to the user's swipe operation and share data to multiple devices simultaneously, eliminating the need for repeated user operations. This makes the interaction between the user and the device more natural and direct, improving the convenience and enjoyment of user operations and enhancing the user experience.
[0234] Corresponding to the above data sharing method, this application also provides a data sharing device. Figure 18For an exemplary structural diagram of a data sharing device 1800, please refer to... Figure 18 The data sharing device 1800 includes:
[0235] The acquisition module 1801 is used to acquire a user's first swipe gesture on the first data, wherein the swipe direction of the first swipe gesture is a first direction and the swipe distance of the first swipe gesture is a first length; the determination module 1802 is used to determine a second device in response to the first swipe gesture, wherein the relative position of the second device and the first device satisfies the first direction and the first length; the transceiver module 1803 is used to establish a wireless connection with the second device and send the first data to the second device.
[0236] It is understood that, in order to achieve the above-mentioned functions, the data sharing device includes hardware and / or software modules that perform the respective functions. Based on the algorithm steps of the examples described in conjunction with the embodiments disclosed herein, this application can be implemented in hardware or a combination of hardware and computer software. Whether a function is executed in hardware or by computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application in conjunction with the embodiments, but such implementation should not be considered beyond the scope of this application.
[0237] In one example, Figure 19 A schematic block diagram of a data sharing device 1900 according to an embodiment of this application is shown. The data sharing device 1900 may include: a processor 1901, optionally a transceiver / transceiver pin 1902, and optionally a memory 1903.
[0238] The various components of the data sharing device 1900 are coupled together via bus 904, which includes not only the data bus but also the power bus, control bus, and status signal bus. However, for clarity, all buses are referred to as bus 904 in the figure.
[0239] Optionally, the memory 1903 can be used for the instructions in the foregoing method embodiments. The processor 1901 can be used to execute the instructions in the memory 1903 to implement the foregoing method. Furthermore, the processor 1901 can be used to control the receive pin to receive signals and to control the transmit pin to transmit signals.
[0240] Optionally, the processor 1901 is used to run computer programs or software code or instructions therein to implement the data sharing methods provided in the embodiments of this application.
[0241] For example, the structure of the data sharing device of this application may not be affected by the following: Figure 19The data sharing device 1900 can be a standalone device or part of a larger device. For example, the data sharing device 1900 can be implemented as follows:
[0242] (1) A standalone integrated circuit IC, or chip, or chip system or subsystem; (2) A collection of one or more ICs, optionally including storage components for storing data or instructions; (3) A module that can be embedded in other devices; (4) Vehicle equipment, etc.; (5) Others, etc.
[0243] When the data sharing device 1900 is implemented as a chip or chip system, the chip or chip system may include a processor and an interface. The number of processors may be one or more, and the number of interfaces may be multiple. Optionally, the chip or chip system may include a memory 1903. The processor is used to call and execute instructions from the interface, and when the processor executes the instructions, it can implement the steps of the above method embodiments.
[0244] The data sharing device 1900 may be the first device or the chip of the first device in the above method embodiments.
[0245] All relevant content of each step involved in the above method embodiments can be referenced from the functional description of the corresponding functional module, and will not be repeated here.
[0246] This embodiment also provides a computer storage medium storing a computer program that, when executed (e.g., by a data sharing device, a first device, one or more processors, etc.), implements all or part of the steps of the method provided in the above method embodiments.
[0247] This embodiment also provides a computer program product that, when run on a computer, causes the computer to perform the aforementioned steps to implement the data sharing method described in the above embodiment.
[0248] In addition, embodiments of this application also provide an apparatus, which may specifically be a chip, component, or module. The apparatus may include a connected processor and a memory; wherein the memory is used to store computer execution instructions, and when the apparatus is running, the processor may execute the computer execution instructions stored in the memory to cause the chip to execute the data sharing methods in the above-described method embodiments.
[0249] In this embodiment, the data sharing device, computer storage medium, computer program product or chip are all used to execute the corresponding methods provided above. Therefore, the beneficial effects they can achieve can be referred to the beneficial effects in the corresponding methods provided above, and will not be repeated here.
[0250] Through the above description of the embodiments, those skilled in the art will understand that, for the sake of convenience and brevity, only the division of the above functional modules is used as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.
[0251] In the several embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another apparatus, or some features may be ignored or not executed. Furthermore, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between apparatuses or units may be electrical, mechanical, or other forms.
[0252] The units described as separate components may or may not be physically separate. A component shown as a unit can be one or more physical units; that is, it can be located in one place or distributed in multiple different locations. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0253] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0254] Any content in the various embodiments of this application, as well as any content in the same embodiment, can be freely combined. Any combination of the above content is within the scope of this application.
[0255] The steps of the methods or algorithms described in conjunction with the embodiments of this application can be implemented in hardware or by a processor executing software instructions. The software instructions can consist of corresponding software modules, which can be stored in random access memory (RAM), flash memory, read-only memory (ROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), registers, hard disks, portable hard disks, CD-ROMs, or any other form of storage medium well known in the art. An exemplary storage medium is coupled to a processor, enabling the processor to read information from and write information to the storage medium. Of course, the storage medium can also be a component of the processor. The processor and the storage medium can reside in an ASIC.
[0256] Those skilled in the art will recognize that the functions described in the embodiments of this application in one or more of the above examples can be implemented using hardware, software, firmware, or any combination thereof. When implemented using software, these functions can be stored in a computer-readable medium or transmitted as one or more instructions or code on a computer-readable medium. Computer-readable media include computer storage media and communication media, wherein communication media include any medium that facilitates the transfer of a computer program from one place to another. Storage media can be any available medium that can be accessed by a general-purpose or special-purpose computer.
[0257] In this article, the term "and / or" is merely a description of the relationship between related objects, indicating that there can be three relationships. For example, A and / or B can represent three situations: A exists alone, A and B exist simultaneously, and B exists alone.
[0258] The terms "first" and "second," etc., used in the specification and claims of this application are used to distinguish different objects, not to describe a specific order of objects. For example, "first target object" and "second target object," etc., are used to distinguish different target objects, not to describe a specific order of target objects.
[0259] In the embodiments of this application, the terms "exemplary" or "for example" are used to indicate that something is an example, illustration, or description. Any embodiment or design that is described as "exemplary" or "for example" in the embodiments of this application should not be construed as being more preferred or advantageous than other embodiments or design. Specifically, the use of the terms "exemplary" or "for example" is intended to present the relevant concepts in a specific manner.
[0260] In the description of the embodiments in this application, unless otherwise stated, "multiple" means two or more. For example, multiple processing units means two or more processing units; multiple systems means two or more systems.
[0261] Finally, it should be noted that the above 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 protection scope of the technical solutions of the embodiments of this application.
Claims
1. A data sharing method, characterized in that, Applied to a first device, the method includes: The user's first swipe gesture on the first data is obtained, the swipe direction of the first swipe gesture is a first direction, and the swipe distance of the first swipe gesture is a first length; In response to the first swipe gesture, a second device is determined, wherein the relative position of the second device and the first device satisfies the first direction and the first length. Establish a wireless connection with the second device and send the first data to the second device.
2. The method according to claim 1, characterized in that, The number of the second device is multiple.
3. The method according to claim 1, characterized in that, If the first swipe gesture is a straight line and the first length is less than the first value, the second device is the device that is within the connectable range, in the first direction, and closest to the first device in terms of relative position.
4. The method according to claim 1, characterized in that, If the first swipe gesture is a straight line and the first length is greater than the first value, the second device is the device that is within the connectable range, in the first direction, and the device that is furthest from the first device in terms of relative position.
5. The method according to claim 1 or 2, characterized in that, If the first swipe gesture is a straight line and the swipe speed of the first swipe gesture is less than the second value, the second device is at least one device that is within the connectable range and whose actual distance from the first device in the first direction satisfies the mapping ratio with the first length.
6. The method according to claim 1 or 2, characterized in that, If the first swipe gesture is arc-shaped, the second device is at least one device within the connectable range and within the fan-shaped range; wherein: the fan-shaped range is obtained based on the first direction and the first length.
7. The method according to any one of claims 1 to 6, characterized in that, The method further includes: The user's second swipe gesture on the second data is obtained, the swipe direction of the second swipe gesture is the second direction, and the swipe distance of the second swipe gesture is the second length; In response to the second swipe gesture, a plurality of third devices are identified, the relative positions of the third devices and the first device satisfying the second direction and the second length; A confirmation interface is displayed, which includes device information of the plurality of third devices; In response to the user's confirmation operation on the confirmation interface, a wireless connection is established with at least one of the plurality of third devices, and the second data is sent to the at least one third device.
8. The method according to any one of claims 1 to 7, characterized in that, After establishing a wireless connection with the at least one second device, the method further includes: Send a verification request to the second device; Receive the first verification information sent by the second device; If the first verification information is the same as the second verification information entered by the user, the first data is sent to the second device.
9. The method according to any one of claims 1 to 8, characterized in that, The acquisition of the user's first swipe gesture on the first data includes: In response to a received long-press operation by the user on the target data, a sharing option is displayed; In response to a user clicking the share option, a share interface is displayed, which includes the target data; The user's first swipe gesture on the sharing interface is obtained.
10. The method according to any one of claims 1 to 9, characterized in that, The first direction includes horizontal and vertical parameters.
11. A data sharing device, characterized in that, Applied to a first device, the device includes: The acquisition module is used to acquire the user's first swipe gesture on the first data, wherein the swipe direction of the first swipe gesture is a first direction, and the swipe distance of the first swipe gesture is a first length; A determining module is configured to, in response to the first swipe gesture, determine a second device, wherein the relative position of the second device and the first device satisfies the first direction and the first length; The transceiver module is used to establish a wireless connection with the second device and send the first data to the second device.
12. The apparatus according to claim 11, characterized in that, The number of the second device is multiple.
13. The apparatus according to claim 11, characterized in that, If the first swipe gesture is a straight line and the first length is less than the first value, the second device is the device that is within the connectable range, in the first direction, and closest to the first device in terms of relative position.
14. The apparatus according to claim 11, characterized in that, If the first swipe gesture is a straight line and the first length is greater than the first value, the second device is the device that is within the connectable range, in the first direction, and the device that is furthest from the first device in terms of relative position.
15. The apparatus according to claim 11 or 12, characterized in that, If the first swipe gesture is a straight line and the swipe speed of the first swipe gesture is less than the second value, the second device is at least one device that is within the connectable range and whose actual distance from the first device in the first direction satisfies the mapping ratio with the first length.
16. The apparatus according to claim 11 or 12, characterized in that, If the first swipe gesture is arc-shaped, the second device is at least one device within the connectable range and within the fan-shaped range; wherein: the fan-shaped range is obtained based on the first direction and the first length.
17. The apparatus according to any one of claims 11 to 16, characterized in that, The acquisition module is further configured to acquire the user's second swipe gesture on the second data, wherein the swipe direction of the second swipe gesture is a second direction, and the swipe distance of the second swipe gesture is a second length; The determining module is further configured to, in response to the second swiping gesture, determine a plurality of third devices, wherein the relative positions of the third devices and the first device satisfy the second direction and the second length; The display module is used to display a confirmation interface, which includes device information of the plurality of third devices; The transceiver module is further configured to, in response to the user's confirmation operation on the confirmation interface, establish a wireless connection with at least one of the plurality of third devices and send the second data to the at least one third device.
18. The apparatus according to any one of claims 11 to 17, characterized in that, The transceiver module is also used for: Send a verification request to the second device; Receive the first verification information sent by the second device; If the first verification information is the same as the second verification information entered by the user, the first data is sent to the second device.
19. The apparatus according to any one of claims 11 to 18, characterized in that, The acquisition module is specifically used for: In response to a received long-press operation by the user on the target data, a sharing option is displayed; In response to a user clicking the share option, a share interface is displayed, which includes the target data; The user's first swipe gesture on the sharing interface is obtained.
20. The apparatus according to any one of claims 11 to 19, characterized in that, The first direction includes horizontal and vertical parameters.
21. A data sharing device, characterized in that, The data sharing device includes a processor and a memory, the processor being configured to execute instructions stored in the memory, and when the instructions are executed by the processor, the processor being configured to perform the method as described in any one of claims 1 to 9.
22. A computer-readable storage medium, characterized in that, Includes a computer program that, when running on a computer or processor, causes the computer or processor to perform the method as described in any one of claims 1 to 10.
23. A computer program product, characterized in that, The computer program product includes a software program that, when executed by a computer or processor, causes the steps of the method described in any one of claims 1 to 10 to be performed.
24. A chip, characterized in that, The chip includes a processor and a communication interface, wherein the processor is configured to call and execute instructions from the communication interface, and when the processor executes the instructions, implements the method as described in any one of claims 1 to 10.
