File transmission method, mobile device, handwriting pen, storage medium and program product
By using hand gestures with a stylus, file transfer between mobile devices is enabled, simplifying traditional click operations and improving file transfer efficiency and user experience.
Patent Information
- Application Number
- CN202511709565.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-11-20
- Publication Date
- 2026-02-06
AI Technical Summary
Traditional file transfer between mobile devices relies on precise clicks, resulting in a poor user experience and high operational complexity.
By using gestures with a stylus, a communication connection can be established between the stylus and the mobile device. Based on gesture information and device mapping, the target device can be directly identified and files can be transferred, simplifying the operation to natural gestures and eliminating the steps of long-pressing a file to bring up a menu and selecting a device.
It significantly reduces operational complexity, improves the efficiency and convenience of file transfer, and enhances the user experience.
Smart Images

Figure CN121486799A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of communications, and more particularly to a file transfer method, mobile device, stylus, storage medium, and program product. Background Technology
[0002] In today's world where mobile devices are ubiquitous, users often need to transfer files between multiple devices.
[0003] Traditionally, users would use a stylus or finger to write or draw on the mobile device and then click on the device's menu to transfer files.
[0004] This method relies on precise clicks and requires multiple interactions, resulting in a poor user experience. Summary of the Invention
[0005] This application provides a file transfer method, a mobile device, a stylus, a storage medium, and a program product, which reduce operational complexity and improve user experience.
[0006] In a first aspect, embodiments of this application provide a file transfer method, the method being used for a sending device, comprising:
[0007] When a communication connection is established between the transmitting device, the stylus, and the receiving device, in response to the selection operation of the stylus, the file to be transmitted is selected on the transmitting device.
[0008] Receive the current gesture information sent by the stylus, and determine the target mobile device corresponding to the current gesture information based on the mapping relationship between the gesture information and the receiving mobile device;
[0009] The file to be transferred is transferred to the target mobile device.
[0010] Optionally, the step of selecting a file to be transmitted on the transmitting device in response to a selection operation of the stylus includes:
[0011] When the selection operation is a click operation, the file to be transferred is selected on the sending device;
[0012] When the selected operation is a line drawing operation, the trajectory corresponding to the line drawing operation is determined, and the file to be transmitted corresponding to the trajectory is selected on the sending device.
[0013] Optionally, the method further includes:
[0014] Receives a file selection flag sent by the stylus and enters file selection mode;
[0015] In response to the selection operation of the stylus, the selection operation is determined to be either a click operation or a line drawing operation based on the stylus movement distance threshold.
[0016] Optionally, after the transmitting device establishes a communication connection with the receiving device, the method further includes:
[0017] When the number of receivable devices is one, a mapping relationship between gesture information and receivable devices is established;
[0018] When there are multiple receiving devices, a mapping relationship between gesture information and receiving devices is established based on the location information of the transmitting device and the relative location information of the receiving devices.
[0019] Optionally, after selecting the file to be transferred on the sending device, the method further includes:
[0020] The system receives a file transfer flag sent by the stylus and then acquires the relative position information of the receiving device; the file transfer flag includes the current gesture information.
[0021] Based on the reacquired relative position information, update the mapping relationship between gesture information and receiving devices.
[0022] Optionally, the method further includes:
[0023] The transmission progress and / or remaining time are determined based on the number of bytes already sent, the current transmission speed, and the total file size of the file to be transmitted.
[0024] Displays the transmission progress and / or remaining time of the file to be transmitted;
[0025] And / or, send a file transfer status to the stylus, the file transfer status including at least one of transfer progress, remaining time, transfer completed, and transfer error;
[0026] And / or, when the transmission of the file to be transmitted fails, an error message is displayed;
[0027] And / or, send a transmission end notification message to the target mobile device.
[0028] Optionally, the method further includes:
[0029] Establish a Bluetooth connection with the stylus and a Wi-Fi connection with the receiving device.
[0030] Secondly, this application provides a file transfer method for a stylus, the method comprising:
[0031] When the stylus establishes a communication connection with the sending device, a selection operation is sent to the sending device so that the sending device selects the file to be transmitted.
[0032] The current gesture information is sent to the sending device so that the sending device can determine the target mobile device corresponding to the current gesture information based on the mapping relationship between the gesture information and the receiving device, and then transmit the file to be transmitted to the target mobile device.
[0033] Optionally, the method further includes:
[0034] In response to a write / dash operation on any of the receivable devices, the Bluetooth channel is switched to the receivable device.
[0035] Optionally, the method further includes:
[0036] Receive the file transfer status sent by the sending device, the file transfer status including at least one of transfer progress, remaining time, transfer completed, and transfer error;
[0037] The system displays a corresponding prompt message based on the file transfer status, and the prompt message includes at least one of light, vibration, and sound.
[0038] Thirdly, embodiments of this application provide a mobile device, including: a memory and a processor;
[0039] The memory stores computer-executed instructions;
[0040] The processor executes computer execution instructions stored in the memory, causing the processor to perform the first aspect and / or various possible implementations of the first aspect as described above.
[0041] Fourthly, embodiments of this application provide a stylus, including: a memory and a processor;
[0042] The memory stores computer-executed instructions;
[0043] The processor executes computer execution instructions stored in the memory, causing the processor to perform the second aspect and / or various possible implementations of the second aspect as described above.
[0044] Fifthly, embodiments of this application provide a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, are used to implement various possible implementations of the first and / or second aspects described above.
[0045] Sixthly, embodiments of this application provide a computer program product, including a computer program that, when executed by a processor, implements various possible implementations of the first and / or second aspects described above.
[0046] The file transfer method, mobile device, stylus, storage medium, and program product provided in this application embodiment determine the target mobile device corresponding to the current gesture information based on the current gesture information sent by the stylus and the mapping relationship between the gesture information and the receiving mobile device, and then transfer the file to be transferred to the target mobile device. By using gesture operations with the stylus, file transfer between mobile devices can be quickly triggered, eliminating the need for users to long-press a file to bring up a menu and select a mobile device for file transfer. Transfer can be completed simply through natural gestures, significantly reducing operational complexity and improving the efficiency and convenience of file transfer. Attached Figure Description
[0047] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.
[0048] Figure 1 A schematic diagram illustrating a scenario for the file transfer method provided in this application;
[0049] Figure 2 Flowchart of the file transfer method provided in this application Figure 1 ;
[0050] Figure 3 Flowchart of the file transfer method provided in this application Figure 2 ;
[0051] Figure 4 An interactive schematic diagram of the file transfer method provided in this application;
[0052] Figure 5 Schematic diagram of the file transfer device provided in this application Figure 1 ;
[0053] Figure 6 Schematic diagram of the file transfer device provided in this application Figure 2 ;
[0054] Figure 7 A schematic diagram of the structure of the electronic device provided in this application.
[0055] The accompanying drawings illustrate specific embodiments of this application, which will be described in more detail below. These drawings and descriptions are not intended to limit the scope of the concept in any way, but rather to illustrate the concept of this application to those skilled in the art through reference to particular embodiments. Detailed Implementation
[0056] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application as detailed in the appended claims.
[0057] In today's world where mobile devices are ubiquitous, users often need to transfer files (such as documents, images, and videos) between multiple devices (e.g., smartphones, tablets, AR / VR devices, smartwatches). For example, users may need to quickly transfer presentations from their phones to their tablets during meetings, or share videos from their tablets to their TVs at home.
[0058] Traditional file transfer involves using a stylus or finger to write or swipe on the mobile device, then clicking on a menu to transfer files. For example, a long press on a file with a stylus or finger brings up a menu, allowing the user to select share or transfer, and then choose the target device from a list. This method relies on precise clicks and requires multiple interactions, resulting in a poor user experience.
[0059] To address this, this application proposes a file transfer method that allows for quick triggering of file transfer between mobile devices via hand gestures. This eliminates the need for users to long-press a file to bring up a menu and select a mobile device for file transfer. The transfer can be completed simply through natural gestures, significantly reducing operational complexity and improving the efficiency and convenience of file transfer.
[0060] Figure 1 A schematic diagram illustrating a scenario for the file transfer method provided in this application, such as... Figure 1 As shown, when the transmitting device 101, the stylus 102, and the receiving device 103 establish a communication connection, the transmitting device 101, the stylus 102, and the receiving device 103 can send, receive, and save files to each other. The stylus 102 can simultaneously establish a Bluetooth connection with both the transmitting device 101 and the receiving device 103.
[0061] In response to the selection operation of the stylus 102, the sending device 101 selects a file to be transferred. The stylus 102 recognizes the current gesture information and sends it to the sending device 101. Based on the mapping relationship between the gesture information and the available devices, the sending device 101 determines the target mobile device corresponding to the gesture information and transfers the file to be transferred to the target mobile device.
[0062] The technical solution of this application and how the technical solution of this application solves the above-mentioned technical problems are described in detail below with specific embodiments. These specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described again in some embodiments. The embodiments of this application will now be described with reference to the accompanying drawings.
[0063] Figure 2 Flowchart of the file transfer method provided in this application Figure 1 ,like Figure 2 As shown, with the transmitting device as the executing entity, the method includes:
[0064] S201. When a communication connection is established between the transmitting device, the stylus, and the receiving device, the transmitting device selects a file to be transmitted in response to the selection operation of the stylus.
[0065] For example, both the transmitting device and the receiving device can include mobile devices such as smartphones, tablets, AR (Augmented Reality) devices, VR (Virtual Reality) devices, and smartwatches.
[0066] It should be noted that a receiving device can be understood as a mobile device that can receive files to be transferred, and there can be one or more receiving devices.
[0067] For example, the transmitting device can be either the primary or secondary device, and the receiving device can also be either the primary or secondary device. For instance, when the transmitting device is the primary device, the receiving device is the secondary device; when the transmitting device is the secondary device, the receiving device is both the primary and / or secondary device.
[0068] For example, in the process of network setup, the master device refers to the device negotiated to be the group owner, which is the creator, manager and traffic hub of the entire temporary network, while the client device refers to the network device that joins the network created by the group owner as a client, and is the participant and service user of the network.
[0069] For example, the sending device acts as the discoverer, searches for a receiving device, and the sending device and the receiving device establish a connection through the Wi-Fi Direct protocol. In this process, the sending device is negotiated to become the group owner and the receiving device acts as the client and the receiving device becomes the client.
[0070] For example, the sending device establishes a communication connection with both the stylus and the receiving device. After establishing the communication connection with the stylus, the sending device can respond to the stylus's selection operation by selecting a file to be transferred. The communication connection can include Bluetooth, Wi-Fi, etc., and the Bluetooth connection can include classic Bluetooth, Bluetooth Low Energy, etc.
[0071] Optionally, the transmitting device establishes a Bluetooth connection with the stylus and a Wi-Fi connection with the receiving device.
[0072] The internal space of a stylus is small, and its battery capacity is limited. Bluetooth (especially Bluetooth Low Energy) consumes very little power in standby mode, can quickly establish a connection, and only consumes a small amount of energy when transmitting data. Therefore, when the sending device establishes a Bluetooth connection with the stylus, it can reduce the stylus's power consumption. Furthermore, the data transmitted by the stylus is mainly the pressure, tilt, click events, and position coordinates of the pen tip. This data volume is small, but requires low latency to achieve a smooth, responsive experience. The speed and latency of the Bluetooth protocol are sufficient for real-time transmission of this data.
[0073] Mobile devices typically transfer large files such as photos, videos, and documents, which require significant bandwidth. Wi-Fi offers a much faster transfer rate than Bluetooth, enabling rapid transfer of large files.
[0074] For example, the transmitting device enables Bluetooth scanning. After detecting the stylus, it initiates a GATT (Generic Attribute Profile) connection request to the stylus to establish a GATT connection. A GATT connection request refers to a connection establishment request initiated by the GATT client (i.e., the transmitting device) to the GATT server (i.e., the stylus) in Bluetooth Low Energy communication.
[0075] For example, the sending device searches for and lists nearby receiving devices and establishes a Wi-Fi connection with them.
[0076] For example, the transmitting device searches for and lists nearby receiving devices through the Wi-Fi Direct interface. The Wi-Fi Direct interface is a hardware and software module provided by the mobile device's operating system that allows devices to establish point-to-point connections directly with other Wi-Fi devices without relying on a traditional wireless router.
[0077] In other examples, the sending device can also establish a Wi-Fi connection with the stylus or a Bluetooth connection with the receiving device.
[0078] For example, the transmitting device can also periodically broadcast its own information via Bluetooth and scan and listen for broadcasts from other devices in order to establish a Bluetooth connection with a nearby receiving device.
[0079] In this embodiment of the application, since the transmitting device establishes a communication connection with the stylus, the transmitting device can respond to the selection operation of the stylus and select the file to be transmitted on the transmitting device.
[0080] Optionally, when the selected operation is a single click, the file to be transferred is selected on the sending device; when the selected operation is a line drawing operation, the trajectory corresponding to the line drawing operation is determined, and the file to be transferred corresponding to the trajectory is selected on the sending device. Selecting the file to be transferred based on the trajectory simplifies multiple repetitive click operations into a single natural line drawing gesture, significantly reducing operation steps and time.
[0081] For example, the file to be transferred may include one or more files, the click operation may be a single click to select one file, or a single click to select multiple files, and the line operation may be a line-drawing operation to select multiple files.
[0082] For example, the trajectory corresponding to the line drawing operation can be a line or a closed box.
[0083] Optionally, the sending device receives a file selection flag sent by the stylus and enters file selection mode. After entering file selection mode, the sending device responds to the stylus's selection operation and determines whether the selection operation is a single click or a line drawing operation based on a stylus movement distance threshold. This reasonable distance threshold effectively filters out unintentional jitter during handheld operation, ensuring accurate and reliable click operations, avoiding accidental triggers, and improving the robustness of the interaction.
[0084] Once the sending device enters file selection mode, it can recognize the selection operation of the stylus in the file display area.
[0085] For example, after the sending device enters the file selection mode, when the stylus makes a selection operation on the file display area (i.e., the file selection interface of the mobile device), the sending device can recognize the input of the stylus in the file display area, which may include click operations, line drawing operations, etc.
[0086] For example, you can trigger the stylus to send a file selection flag to the sending device by operating the stylus itself. Stylus operations can include clicking or long-pressing a button. You can also trigger the stylus to send a file selection flag to the sending device by operating the sending device itself. Device operations can include clicking or long-pressing a floating icon on the sending device.
[0087] For example, when the sending device detects that the stylus is in contact with the screen, it records the coordinates of the initial contact point; while the stylus remains in contact with the screen, it continuously tracks the stylus's current position and calculates the displacement between the current position and the initial contact point; if the displacement exceeds a movement distance threshold before the stylus is lifted, the selection operation is determined to be a line drawing operation, and the trajectory coordinates are recorded for subsequent box selection processing; if the stylus is lifted and the displacement never exceeds the movement distance threshold, the handwriting operation is determined to be a click operation, and the corresponding target file is selected based on the coordinate position when the stylus is lifted.
[0088] For example, after the transmitting device establishes a communication connection with the receiving device, the transmitting device can establish a mapping relationship between the receiving device and the gesture information. The receiving device can also be understood as a mobile device other than the transmitting device.
[0089] The gesture information may include the gesture direction, which includes, but is not limited to, waving up and down, waving left and right, rotating the pen, etc. When there are a large number of receiving devices, the gesture direction may also include up, down, left, right, upper left, lower left, upper right, lower right, rotating the pen, etc.
[0090] Gesture information may also include gesture trajectories, which may include lines, circles, boxes, letters, punctuation marks, Chinese characters, etc.
[0091] It should be noted that when the sending device is the sender, the target mobile device is determined based on the mapping relationship between gesture information and receivable devices.
[0092] Optionally, if there is only one receiving device, the mapping relationship between gesture information and receiving device is directly established; if there are multiple receiving devices, the mapping relationship between gesture information and receiving devices is established based on the spatial location information of the sending device and the spatial location information of the receiving devices.
[0093] When there is only one receiving device, the entire system has only two mobile devices (the transmitting device and the receiving device). The communication link between the two mobile devices itself constitutes a point-to-point closed system. The intention of any communication is logically unique. Therefore, it is sufficient to directly establish a mapping relationship between gesture information and the receiving device.
[0094] When there are multiple receiving devices, spatial location information is introduced to establish a mapping relationship between gesture information and receiving devices, which can determine which receiving device the gesture is pointing to.
[0095] For example, when a transmitting device establishes a communication connection with multiple receiving devices, the transmitting device can establish a mapping relationship between gesture information and the receiving devices based on the relative position information of the transmitting device and the receiving devices. The relative position information refers to the position information of the receiving device relative to the transmitting device. Since any device can act as a transmitting device, each device has corresponding relative position information.
[0096] For example, in the case where the transmitting device is the master end, the transmitting device can obtain the spatial location information of all mobile devices and determine the relative position information between the transmitting device and the receiving device based on the spatial location information of all mobile devices. Then, a mapping relationship between the relative position information and gesture information can be established, that is, a mapping relationship between the receiving device and gesture information can be established.
[0097] For example, when the transmitting device is the client, it can obtain the relative position information between the transmitting device and the receiving devices from the host (which is one of the receiving devices). Then, it establishes a mapping relationship between the relative position information and the gesture information, that is, it establishes a mapping relationship between the gesture information and the receiving devices.
[0098] It is understandable that the host can obtain the spatial location information of all mobile devices and calculate the relative location information of any device (host and any client) based on the spatial location of all mobile devices. The relative location information of the host refers to the location information of any client relative to the host, and the relative location information of any client refers to the location information of the host relative to that client, as well as the location information of other clients (clients other than that client) relative to that client.
[0099] For example, spatial location information may include global absolute coordinates, which are coordinate systems defined based on a global unified reference system and used to uniquely identify the absolute position of a point on the Earth's surface or in near-Earth space; spatial location information may also include local absolute coordinates, which are coordinate systems defined based on a local fixed reference point or coordinate system, covering only a limited range, with the local reference as the absolute far point, to achieve high-precision positioning in near-field scenarios.
[0100] Relative location information may include relative orientation, which refers to the orientation of the receiving device relative to the transmitting device; relative location information may also include relative distance, which refers to the straight-line distance between the receiving device and the transmitting device.
[0101] For example, the relative positions of the transmitting and receiving devices can be determined based on their global absolute coordinates, meaning the receiving device can be positioned above, below, to the left, right, east, west, north, or south of the transmitting device. Then, a mapping relationship between phase orientation and gesture information can be established, thereby establishing a mapping relationship between the receiving device and gesture information.
[0102] For example, the relative distance between the transmitting and receiving devices, i.e., the distance between the receiving device and the transmitting device, can be determined based on the global absolute coordinates of the transmitting and receiving devices. Then, a mapping relationship between the relative distance and gesture information can be established, thereby establishing a mapping relationship between the receiving device and gesture information.
[0103] It should be noted that one gesture can correspond to one or more receiving devices. For example, if the gesture information is the gesture direction and the gesture direction is upward, it can correspond to one or more receiving devices.
[0104] For example, after the sending device and the receiving device establish a connection, when there are three or more devices, the host and guest devices in the Wi-Fi network will exchange and calculate the spatial location information between adjacent devices through technologies including but not limited to Bluetooth A0A (Angle of Arrival) / AOD (Angle of Departure) or UWB (Ultra-Wideband) technology.
[0105] S202. The transmitting device receives the current gesture information sent by the stylus and determines the target mobile device corresponding to the current gesture information based on the mapping relationship between the gesture information and the receiving devices.
[0106] In the case where there is only one receivable device, the target mobile device is that receivable device; in the case where there are multiple receivable devices, the target mobile device can be any one or more receivable devices.
[0107] Optionally, the sending device receives a file transfer flag sent by the stylus and then obtains the relative position information of the receiving device again. The file transfer flag includes the current gesture information. Based on the newly obtained relative position information, the mapping relationship between the gesture information and the receiving device is updated. By updating the position information instantaneously before the transmission is initiated, it ensures that the transmission request is sent to the correct device that matches the user's current spatial intent, avoiding mistransmissions caused by device movement. Furthermore, since the mapping relationship is pre-established, fine-tuning based on the existing mapping relationship after receiving the file transfer flag is much faster than establishing it from scratch, reducing latency and improving the user experience.
[0108] Accordingly, the sending device can determine the target mobile device corresponding to the current gesture information based on the updated gesture information and the mapping relationship between the receiving devices.
[0109] For example, after the master end obtains the spatial location information of the receiving device again, it redetermines the relative location information between the receiving device and the transmitting device. When the transmitting device is the master end, it directly establishes the mapping relationship between the redetermined relative location information and the gesture information, that is, it updates the mapping relationship between the receiving device and the gesture information. When the transmitting device is the client end, it receives the redetermined relative location information sent by the master end, that is, it obtains the relative location information of the receiving device again, and updates the mapping relationship between the gesture information and the receiving device based on the obtained relative location information.
[0110] In other examples, considering that the location of the mobile device may remain unchanged, the target mobile device corresponding to the current gesture information can be determined directly based on the mapping relationship between the gesture information and the receiving device after the sending device receives the file transfer flag sent by the stylus.
[0111] In other examples, a mapping relationship between the receiving device and gesture information can be established after receiving the file transfer flag sent by the stylus.
[0112] For example, in addition to the current gesture information, the file transfer flag may also include sensor data from the stylus, a timestamp, etc. Sensor data may include spatial data, pressure data, and button states; spatial data may include acceleration and angular velocity from an inertial measurement unit (IMU), or orientation information from a gyroscope; pressure data may include the pressure value from the pen tip; button states may include the pressed state of the side button or keypad on the stylus. A timestamp refers to the exact event at which the gesture is recognized or the flag is generated. If multiple conflicting transfer flags are received within a short period, the timestamp helps the system determine the execution order.
[0113] In this embodiment of the application, the target mobile device corresponding to the current gesture information is determined based on the mapping relationship between gesture information and receivable devices.
[0114] For example, if there are two receiving devices, namely mobile device B and mobile device C, and the gesture information indicates that the stylus should be waving to the left, then mobile device B is identified as the target mobile device; if the gesture information indicates that the stylus should be waving to the right, then mobile device C is identified as the target mobile device.
[0115] For example, a device can be pre-selected from the receiving devices as the default device, that is, if the gesture information is not recognized, the file to be transferred is transferred to the default device.
[0116] For example, if no gesture information is received within a preset time after selecting the file to be transferred, the file will be transferred to the default device. The preset time can be determined according to the actual situation and is not limited here.
[0117] S203. The sending device transmits the file to be transmitted to the target mobile device.
[0118] In this embodiment of the application, since the sending device and the receiving device have established a communication connection, and the target mobile device refers to one or more receiving devices, after determining the target mobile device corresponding to the current gesture information, the file to be transmitted can be transmitted to the target mobile device.
[0119] For example, the sending device can send a file transfer request to the target mobile device, and after receiving a response message from the target mobile device confirming the file, it can transfer the file to be transferred to the target mobile device.
[0120] It should be noted that after receiving a file transfer request, the target mobile device can confirm whether to accept it and choose a path to save the file. If it confirms acceptance and the file is received, it will be saved in the corresponding path.
[0121] For example, when the target mobile device is the master device, the file to be transferred can be directly transferred to the target mobile device; when the target mobile device is the client device, the file to be transferred can be transferred to the master device, and then transferred to the target mobile device through the master device.
[0122] Optionally, the sending mobile device can determine the transmission progress and / or remaining time based on the number of bytes already sent, the current transmission speed, and the total file size; and display the transmission progress and / or remaining time. Transmission progress can be understood as a percentage of progress.
[0123] For example, the transmission progress is determined based on the ratio between the number of bytes sent and the total file size. The remaining bytes are determined based on the total file size and the number of bytes sent, and the remaining time is determined based on the ratio between the remaining bytes and the current transmission speed. By making the transmission process visible and quantifiable, user anxiety during the waiting process is effectively eliminated, and users are helped to rationally plan their waiting time, thus improving the user experience.
[0124] Optionally, the sending device can send file transfer status to the stylus, including at least one of transfer progress, transfer time, transfer completion, and transfer error. Users do not need to continuously monitor the sending device's screen; they can perceive the transfer status in real time solely through the physical feedback from the stylus, freeing up their visual attention and allowing them to handle other tasks concurrently. This significantly improves interaction efficiency and the smoothness of the user experience.
[0125] Optionally, the sending device can display an error message when the file to be transferred fails, so that users can be notified of the file transfer failure in a timely manner and take corresponding measures to improve the user experience.
[0126] For example, the error message may also include a detailed explanation of the reason for the transmission failure.
[0127] Optionally, the sending device sends a transmission completion notification message to the target mobile device, enabling the receiving device to accurately distinguish between normal transmission completion and abnormal interruption, thus ensuring the reliability of data transmission.
[0128] In practical applications, the sending device and the receiving device can be mobile devices with a built-in PenDrop system. PenDrop usually refers to a complete set of stylus solutions, which enables mobile devices to receive and interpret signals from the stylus.
[0129] For example, the target mobile device can also perform a full-packet CRC (Cyclic Redundancy Check) verification after the file transfer is completed to ensure that there is no packet loss.
[0130] For example, files can be sent one by one to the corresponding mobile devices via a socket.
[0131] The file transfer method provided in this application can quickly trigger file transfer between mobile devices through hand gesture operation of a stylus, eliminating the need for users to long-press the file to bring up a menu and select the mobile device for file transfer. The transfer can be completed simply through natural gestures, significantly reducing the complexity of operation and improving the efficiency and convenience of file transfer.
[0132] Figure 3 Flowchart of the file transfer method provided in this application Figure 2 ,like Figure 3 As shown, using a stylus as the execution subject, the method includes:
[0133] S301. When a communication connection is established between the stylus and the transmitting device, the stylus sends a selection operation to the transmitting device so that the transmitting device selects the file to be transmitted.
[0134] For example, the stylus can establish a Bluetooth connection with the sending device.
[0135] For example, when a communication connection is established between the stylus and the sending device, the stylus sends a file selection flag to the sending device, causing the sending device to enter file selection mode. After entering file selection mode, the sending device can recognize the stylus's selection operation in the file display area.
[0136] For example, in response to a user's selection command triggered by the stylus tip, a file selection flag is sent to the sending device. Selection commands triggered by the stylus tip include, but are not limited to, button presses and gestures. Gestures refer to allowing users to tap or slide the edge of the device screen using the side or a specific area of the stylus to trigger specific shortcut operations.
[0137] S302, The stylus sends the current gesture information to the sending device, so that the sending device can determine the target mobile device corresponding to the current gesture information according to the mapping relationship between the gesture information and the receiving device, and transfer the file to be transmitted to the target mobile device.
[0138] In this embodiment of the application, the stylus can recognize gesture information and, after recognizing the current gesture information, send the current gesture information to the sending device.
[0139] For example, when a user makes a gesture using a stylus, the stylus can detect and recognize the corresponding gesture information.
[0140] Optionally, the stylus is equipped with a pen-tip sensor. After the pen-tip sensor detects a gesture, it sends a signal to the stylus. The stylus then sends the signal to the transmitting device.
[0141] For example, a pen-tip sensor may include an inertial measurement unit, a touch sensor, etc.
[0142] For example, when the stylus is enabled with Bluetooth multi-connection functionality, it supports multiple devices connecting to the stylus simultaneously. This means a single stylus can establish Bluetooth connections (pairing) with multiple devices at the same time, but can only effectively interact with one device at a time. Therefore, when the stylus is writing or drawing on one of the mobile devices, it will automatically switch the Bluetooth channel to the corresponding mobile device and perform file transfer operations on that device.
[0143] Optionally, the stylus can switch its Bluetooth channel to any receiving device in response to writing or drawing operations on that device, thereby enabling flexible data transfer between multiple mobile devices. Correspondingly, the receiving device can be updated to become the transmitting device. Furthermore, the stylus can transfer files from the receiving device to other mobile devices corresponding to the detected gesture information.
[0144] Optionally, the stylus can receive file transfer status information from the sending device, including at least one of the following: transfer progress, remaining time, transfer complete, and transfer error. Then, based on the file transfer status, a corresponding prompt message is displayed, which may include at least one of light, vibration, and sound. Dynamically displaying the transfer status enhances the user experience.
[0145] For example, during the file transfer process, the stylus can be triggered to display the transfer status through a progress bar, remaining time display, and specific reasons for transfer failure, thereby improving the user experience.
[0146] In this embodiment, the user selects a file using a stylus, without any extra pop-up windows obscuring the page, thus improving the user experience.
[0147] Figure 4 An interactive schematic diagram of the file transfer method provided in this application is shown below. Figure 4 As shown, taking the transmitting device as the main end as an example, the method includes:
[0148] S401. The transmitting device establishes a Bluetooth connection with the stylus.
[0149] S402, The transmitting device establishes a Wi-Fi connection with the receiving device.
[0150] For example, a Wi-Fi P2P connection is established.
[0151] S403. The transmitting device receives spatial location information transmitted by the receiving device.
[0152] S404. The transmitting device determines the relative position information between the transmitting device and the receiving device based on the spatial position information of each device, and establishes a mapping relationship between gesture information and the receiving device.
[0153] S405, The transmitting device receives the file selection flag reported by the stylus.
[0154] S406. The sending device responds to the selection operation of the stylus and selects the file to be transferred on the sending device.
[0155] For example, a user holds a stylus to select a file, that is, sends a selection command to the sending device through the stylus. The sending device responds to the selection operation of the stylus and selects the file to be transferred, which is the file that the user wants to transfer.
[0156] S407, Handwriting pen recognition of gesture information.
[0157] S408. The transmitting device receives a file transfer flag reported by the stylus, which includes the current gesture information.
[0158] S409. The transmitting device receives the spatial location information of the receiving device again.
[0159] S410. The transmitting device updates the relative position information based on the spatial position information received again, and updates the mapping relationship between the gesture information and the receiving device based on the updated relative position information.
[0160] S411. The transmitting device determines the target mobile device corresponding to the current gesture information based on the updated gesture information and the mapping relationship between the receiving devices.
[0161] S412, The sending device sends a file transfer request to the target mobile device.
[0162] S413. The target mobile device confirms whether to receive the file and selects the path to save the file.
[0163] S414. The sending device receives a response message from the target mobile device indicating that the file can be received.
[0164] S415. The sending device transmits the file to be transmitted to the target mobile device.
[0165] S416. Send the file transfer status from the sending device to the stylus.
[0166] S417. The stylus displays corresponding prompt messages based on the file transfer status.
[0167] S418. The sending device sends a transmission completion notification message to the target mobile device.
[0168] S419. The sending device receives the confirmation of completion sent by the target mobile device.
[0169] S420: The transmitting device sends a transmission completion message to the stylus.
[0170] S421, The stylus displays the transmission completion status.
[0171] Figure 5 A schematic diagram of the file transfer device provided in this application is shown below. Figure 5 As shown, the file transfer device 10 provided in this embodiment includes:
[0172] The first processing unit 11 is used to select a file to be transmitted on the sending device in response to a selection operation of the stylus when a communication connection is established between the sending device, the stylus, and the receiving device.
[0173] The second processing unit 12 is used to receive the current gesture information sent by the stylus, and determine the target mobile device corresponding to the current gesture information according to the mapping relationship between the gesture information and the receiving mobile device.
[0174] The third processing unit 13 is used to transfer the file to be transferred to the target mobile device.
[0175] Optionally, the first processing unit 11 is specifically used to select the file to be transmitted on the sending device when the selection operation is a click operation;
[0176] When the operation is selected as line drawing, determine the trajectory corresponding to the line drawing operation, and select the file to be transmitted corresponding to the trajectory on the sending device.
[0177] Optionally, the first processing unit 11 is also used to receive a file selection flag sent by the stylus and enter the file selection mode;
[0178] In response to a selection operation by the stylus, the selection operation is determined to be either a click operation or a line drawing operation based on a stylus movement distance threshold.
[0179] Optionally, it also includes a fourth processing unit 14, used to establish a mapping relationship between gesture information and the receiving device when the number of receiving devices is one;
[0180] When there are multiple receiving devices, a mapping relationship between gesture information and receiving devices is established based on the location information of the sending device and the relative location information of the receiving devices.
[0181] Optionally, the fourth processing unit 14 is also used to receive a file transfer flag sent by the stylus and to obtain the relative position information of the receiving device again; the file transfer flag includes current gesture information;
[0182] Based on the reacquired relative position information, update the mapping relationship between gesture information and receiving devices.
[0183] Optionally, the third processing unit 13 is also used to determine the transmission progress and / or remaining time based on the number of bytes sent, the current transmission speed, and the total file size of the file to be transmitted;
[0184] Displays the transfer progress and / or remaining time of the file to be transferred;
[0185] And / or, send a file transfer status to the stylus, the file transfer status including at least one of transfer progress, remaining time, transfer complete, and transfer error;
[0186] And / or, display an error message when the file to be transferred fails to transfer;
[0187] And / or, send a transmission completion notification message to the target mobile device.
[0188] Optionally, the first processing unit 11 is also used to establish a Bluetooth connection with the stylus and a Wi-Fi connection with the receiving device.
[0189] The file transfer device provided in this embodiment can execute the method provided in the above method embodiment. Its implementation principle and technical effect are similar, and will not be described in detail here.
[0190] Figure 6A schematic diagram of the file transfer device provided in this application is shown below. Figure 6 As shown, the file transfer device 20 provided in this embodiment includes:
[0191] The first sending unit 21 is used to send a selection operation to the sending device when a communication connection is established between the stylus and the sending device, so that the sending device selects the file to be transmitted;
[0192] The second sending unit 22 is used to send the current gesture information to the sending device, so that the sending device can determine the target mobile device corresponding to the current gesture information according to the mapping relationship between the gesture information and the receiving device, and transmit the file to be transmitted to the target mobile device.
[0193] Optionally, a processing unit 23 is also included, which switches the Bluetooth channel to the receiving device in response to a write / dash operation on any receiving device.
[0194] Optionally, it also includes a receiving unit 24 for receiving the file transfer status sent by the sending device. The file transfer status includes at least one of the following: transfer progress, remaining time, transfer completion, and transfer error.
[0195] Display corresponding prompt messages based on the file transfer status. The prompt messages may include at least one of light, vibration, and sound.
[0196] The file transfer device provided in this embodiment can execute the method provided in the above method embodiment. Its implementation principle and technical effect are similar, and will not be described in detail here.
[0197] Figure 7 A schematic diagram of the structure of the electronic device provided in this application. Figure 7 As shown, the electronic device 50 provided in this embodiment includes at least one processor 501 and a memory 502. Optionally, the electronic device 50 further includes a communication component 503. The processor 501, memory 502, and communication component 503 are connected via a bus.
[0198] In a specific implementation, at least one processor 501 executes computer execution instructions stored in memory 502, causing at least one processor 501 to perform the above-described method.
[0199] The specific implementation process of processor 501 can be found in the above method embodiments, and its implementation principle and technical effect are similar. It will not be repeated here.
[0200] In the above embodiments, it should be understood that the processor can be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), etc. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the method disclosed in this invention can be directly implemented by a hardware processor, or implemented by a combination of hardware and software modules within the processor.
[0201] The memory may include random access memory (RAM) and may also include non-volatile memory (NVM), such as at least one disk storage device.
[0202] The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. Buses can be categorized as address buses, data buses, control buses, etc. For ease of illustration, the buses shown in the accompanying drawings are not limited to a single bus or a single type of bus.
[0203] It should be noted that the electronic device can be a mobile device or a stylus.
[0204] Optionally, the stylus may also include a pen tip sensor for detecting gesture information.
[0205] For example, a pen-tip sensor may include a touch sensor, an inertial measurement unit, etc.
[0206] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the above-described method.
[0207] This application also provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, implement the above-described method.
[0208] Finally, it should be noted that other embodiments of the invention will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This invention is intended to cover any variations, uses, or adaptations of the invention that follow the general principles of the invention and include common knowledge or customary techniques in the art not disclosed herein, and is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of the invention is limited only by the appended claims.
Claims
1. A file transfer method, characterized in that, The method is used for a transmitting device and includes: When a communication connection is established between the transmitting device, the stylus, and the receiving device, in response to the selection operation of the stylus, the file to be transmitted is selected on the transmitting device. Receive the current gesture information sent by the stylus, and determine the target mobile device corresponding to the current gesture information based on the mapping relationship between the gesture information and the receiving mobile device; The file to be transferred is transferred to the target mobile device.
2. The method according to claim 1, characterized in that, The step of selecting a file to be transmitted on the sending device in response to a selection operation of the stylus includes: When the selection operation is a click operation, the file to be transferred is selected on the sending device; When the selected operation is a line drawing operation, the trajectory corresponding to the line drawing operation is determined, and the file to be transmitted corresponding to the trajectory is selected on the sending device.
3. The method according to claim 2, characterized in that, The method further includes: Receives a file selection flag sent by the stylus and enters file selection mode; In response to the selection operation of the stylus, the selection operation is determined to be either a click operation or a line drawing operation based on the stylus movement distance threshold.
4. The method according to claim 1, characterized in that, After the transmitting device establishes a communication connection with the receiving device, the method further includes: When the number of receivable devices is one, a mapping relationship between gesture information and receivable devices is established; When there are multiple receiving devices, a mapping relationship between gesture information and receiving devices is established based on the location information of the transmitting device and the relative location information of the receiving devices.
5. The method according to claim 4, characterized in that, After selecting the file to be transferred on the sending device, the method further includes: The system receives a file transfer flag sent by the stylus and then acquires the relative position information of the receiving device; the file transfer flag includes the current gesture information. Based on the reacquired relative position information, update the mapping relationship between gesture information and receiving devices.
6. The method according to any one of claims 1-5, characterized in that, The method further includes: The transmission progress and / or remaining time are determined based on the number of bytes already sent, the current transmission speed, and the total file size of the file to be transmitted. Displays the transmission progress and / or remaining time of the file to be transmitted; And / or, send a file transfer status to the stylus, the file transfer status including at least one of transfer progress, remaining time, transfer completed, and transfer error; And / or, when the transmission of the file to be transmitted fails, an error message is displayed; And / or, send a transmission end notification message to the target mobile device.
7. The method according to any one of claims 1-5, characterized in that, The method further includes: Establish a Bluetooth connection with the stylus and a Wi-Fi connection with the receiving device.
8. A file transfer method, characterized in that, The method is used for a stylus and includes: When the stylus establishes a communication connection with the sending device, a selection operation is sent to the sending device so that the sending device selects the file to be transmitted. The current gesture information is sent to the sending device so that the sending device can determine the target mobile device corresponding to the current gesture information based on the mapping relationship between the gesture information and the receiving device, and then transmit the file to be transmitted to the target mobile device.
9. The method according to claim 8, characterized in that, The method further includes: In response to a write / dash operation on any of the receivable devices, the Bluetooth channel is switched to the receivable device.
10. The method according to claim 8 or 9, characterized in that, The method further includes: Receive the file transfer status sent by the sending device, the file transfer status including at least one of transfer progress, remaining time, transfer completed, and transfer error; The system displays a corresponding prompt message based on the file transfer status, and the prompt message includes at least one of light, vibration, and sound.
11. A mobile device, characterized in that, include: Memory, processor; The memory stores computer-executed instructions; The processor executes computer execution instructions stored in the memory, causing the processor to perform the method as described in any one of claims 1-7.
12. A stylus, characterized in that, include: Memory, processor; The memory stores computer-executed instructions; The processor executes computer execution instructions stored in the memory, causing the processor to perform the method as described in any one of claims 8-10.
13. The stylus according to claim 12, characterized in that, It also includes a pen tip sensor, which is used to detect gesture information.
14. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions, which, when executed by a processor, are used to implement the method as described in any one of claims 1-10.
15. A computer program product, characterized in that, Includes a computer program that, when executed by a processor, implements the method described in any one of claims 1-10.