Data transmission method, and devices

By automatically establishing a communication connection and displaying animations when devices approach or collide, the problem of cumbersome operations in cross-device data transmission is solved, achieving a more efficient and intuitive data transmission experience.

WO2025260667A1PCT designated stage Publication Date: 2025-12-26HUAWEI TECH CO LTD
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/140715
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2024-09-03
Filing Date
2024-12-19
Publication Date
2025-12-26

AI Technical Summary

Technical Problem

In existing technologies, cross-device data transmission requires users to perform a series of complex operations, resulting in long transmission times and a poor user experience.

Method used

The system automatically establishes a communication connection by detecting the proximity or collision of objects with the device, and displays sending and receiving animations during transmission to simulate object interaction and simplify user operation.

Benefits of technology

It improves the efficiency and user experience of cross-device data transmission, providing an intuitive and flexible data transmission experience while reducing cumbersome operations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024140715_26122025_PF_FP_ABST
    Figure CN2024140715_26122025_PF_FP_ABST
Patent Text Reader

Abstract

The present application relates to the technical field of communications. Provided are a data transmission method, and devices. The method may be applied to a communication system, the communication system comprising a first device and a second device. The method comprises: when a first device detects proximity to or collision with a second device, establishing a communication connection with the second device; the first device sending object data of a first transmission object to the second device, and displaying a first sending animation effect during the process of sending the object data of the first transmission object to the second device, wherein the first sending animation effect is used for presenting the movement of a first image corresponding to the first transmission object to a screen boundary of the first device until the first image moves out of the screen of the first device; and the second device receiving the object data of the first transmission object, and displaying a first receiving animation effect, wherein the first receiving animation effect is used for presenting the appearance of the first image from a screen boundary of the second device and the movement of the first image into the screen of the second device. Thus, the need for users to perform a series of cumbersome operations during data transmission is eliminated, so that the efficiency of cross-device data transmission can be effectively improved.
Need to check novelty before this filing date? Find Prior Art

Description

Data transmission method and device

[0001] The present application claims priority to Chinese Patent Application No. 202410807641.1, filed on June 20, 2024, entitled “Transmission Method, Electronic Device and Related Apparatus” and Chinese Patent Application No. 202411233649.8, filed on September 3, 2024, entitled “Data Transmission Method and Device”, both of which are incorporated herein by reference in their entirety. TECHNICAL FIELD

[0002] The present application relates to the field of communication technology, and in particular to a data transmission method and device. BACKGROUND

[0003] With the development of communication technology and the improvement of people's living standards, people usually have terminal devices, such as smart phones, smart watches, and tablet computers, etc. portable terminal devices, which provide people with various services such as file storage, file preview, etc. Cross-device data transmission has become a common operation in people's daily life.

[0004] Generally, in the scenario of data transmission, such as the first user (the user who sends the file) sharing the file to the second user (the user who receives the file), the first user can send the file data to the second device used by the second user through the first device. Specifically, the first user needs to find the file on the terminal device and select the second user for sending by using a certain application program, so that the second user can download the file through the application program. Alternatively, the first user uploads the file to a network disk, and then shares the link corresponding to the file in a certain application program and selects the second user for sending, so that the second user jumps to the network disk through the link and downloads the file in the network disk.

[0005] However, the above data transmission process requires a series of complex operations for both the first user and the second user, and the entire data transmission process takes a long time, which reduces the user experience. SUMMARY

[0006] The present application provides a data transmission method and device, which can establish a communication connection after different devices are close or collide, and directly trigger the data transmission process, without the need for the user to perform a series of cumbersome operations in the data transmission process, thereby effectively improving the efficiency of cross-device data transmission.

[0007] To achieve the above purpose, the present application adopts the following technical solutions:

[0008] In a first aspect, the present application provides a data transmission method applied to a communication system, the communication system comprising a first device and a second device, a display screen of the first device comprising a first transmission object, the method comprising:

[0009] The first device detects that the second device is close or collides, and establishes a communication connection with the second device. The first device can send object data of the first transmission object to the second device, and in the process of sending the object data of the first transmission object to the second device, display a first sending animation, the first sending animation being used to present a first image corresponding to the first transmission object moving to a screen boundary of the first device until moving out of the screen of the first device. The second device receives the object data of the first transmission object, and displays a first receiving animation, the first receiving animation being used to present the first image appearing from a screen boundary of the second device and moving into the screen of the second device.

[0010] On one hand, the two devices can present the first image of the first transmission object crossing between the two screens by displaying the above animations, and at the same time, can also reflect the dynamic transmission effect of the object data of the first transmission object in the transmission process. Thus, a more intuitive and flexible data transmission experience can be provided to the user, and the user experience can be improved.

[0011] On the other hand, in the embodiments of the present application, after the first device detects that the second device is close or collides, and establishes a communication connection with the second device, the object data of the first transmission object is directly triggered to be sent to the second device. Only the user needs to control the first device to display the first transmission object in the display screen, without the user needing to perform a series of cumbersome operations in the data transmission process, the efficiency of cross-device data transmission can be effectively improved, and thus the user experience can be improved.

[0012] In a kind of implementable mode, the display screen of the second device comprises a second transmission object, and the method further comprises:

[0013] The second device sends object data corresponding to the second transmission object to the first device, and in the process of sending the object data corresponding to the second transmission object to the first device, displays a second sending animation, the second sending animation being used to present a second image corresponding to the second transmission object moving to a screen boundary of the second device until moving out of the screen of the second device.

[0014] The first device receives the object data corresponding to the second transmission object, and displays a second receiving animation, the second receiving animation being used to present the second image appearing from a screen boundary of the first device and moving into the screen of the first device.

[0015] Thus, the second device in the embodiment of the present application can also transmit data to the first device, and the two devices can present the second image of the second transmission object crossing between the two screens by displaying the receiving animation and the sending animation, and can also present the dynamic transmission effect of the object data of the second transmission object in the transmission process. Without a series of cumbersome operations of the user in the data transmission process, the efficiency of cross-device data transmission can be effectively improved.

[0016] In an implementation manner, in the case that the second device transmits the object data of the second transmission object in the process that the first device transmits the object data of the first transmission object, the first device simultaneously displays the first sending animation and the second receiving animation, and the second device simultaneously displays the first receiving animation and the second sending animation.

[0017] Alternatively, the first device displays the second receiving animation after displaying the first sending animation, and the second device displays the first receiving animation after displaying the second sending animation.

[0018] Alternatively, the first device displays the second receiving animation after displaying the first sending animation, and the second device displays the first receiving animation after displaying the second sending animation.

[0019] On one hand, in the embodiment of the present application, the first device can receive the object data of the second transmission object transmitted by the second device in the process of transmitting the object data of the first transmission object. Similarly, the second device can also receive the object data of the first transmission object transmitted by the first device in the process of transmitting the object data of the second transmission object. That is, the first device and the second device can execute the data transmission process and the data receiving process. The execution time sequence of the data transmission and the data receiving can be in front and back order, or can be performed simultaneously. The flexibility of data transmission is improved, and the user experience is improved.

[0020] On the other hand, in the embodiment of the present application, the receiving animation and the sending animation can be displayed in the process of receiving data and transmitting data. The sending animation and the receiving animation can have the same display time sequence, or can have different display time sequences. The device can simultaneously display the receiving animation and the sending animation, can display the receiving animation first and then display the sending animation, or can display the sending animation first and then display the receiving animation. The richness of the display content is improved, and the interest of the user in cross-device data transmission is improved. The user can obtain a better data transmission experience.

[0021] Secondly, the embodiment of the present application provides a data transmission method applied to a first device, and a first transmission object is included in a display screen of the first device. The method comprises the following steps:

[0022] The first device can detect the proximity or collision with the second device, establish a communication connection with the second device, and send object data of the first transmission object to the second device. The first device can also display a first sending animation during the sending of the object data of the first transmission object to the second device, and the first sending animation is used to present the first image corresponding to the first transmission object moving to the screen boundary of the first device until moving out of the screen of the first device.

[0023] Thus, in the embodiments of the present application, the first device detects the proximity or collision with the second device, establishes a communication connection with the second device, and sends object data of the first transmission object to the second device. Meanwhile, the first device can also display a sending animation, and in the presentation process, the image can move out of the screen from the direction of the top end face, which can simulate the scene of the user's body movement when the user interacts with the object in life. Thus, a more intuitive and flexible data transmission experience can be provided for the user, and the user's use experience is improved.

[0024] In an implementation manner, the first device can also display the first image. The first device can display the first sending animation in response to a first trigger operation on the first image. The first trigger operation includes an operation for indicating the first image moving to the screen boundary of the first device.

[0025] Thus, the user can operate the first image to trigger the sending data process. The interaction and operability between the user and the device are enhanced, and the data transmission between the devices is more intuitive.

[0026] In an implementation manner, the display form of the first image in the first sending animation changes with the change of the moving position during the movement of the first image.

[0027] Specifically, the display size of the first image in the first sending animation gradually decreases until the first image fades out of the screen of the first device during the movement of the first image.

[0028] Thus, in the embodiments of the present application, the display form of the first image in the first sending animation can change with the change of the moving position during the presentation process. The richness of the display form in the interface is improved, and the user can more intuitively perceive the data transmission process, and the user's visual experience is improved.

[0029] In an implementation manner, the first device can obtain a target direction, the target direction is a direction in which the center of the screen of the first device points to the top end face of the first device, and the first sending animation is used to present the first image moving to the screen boundary of the first device according to the target direction until moving out of the screen of the first device.

[0030] Thus, in the sending effect in the embodiments of the present application, in the presentation process, the image can be moved out of the screen from the direction of the top end face, which can simulate the scene of the body movement of the user when interacting with the object in life. Thus, a more intuitive and flexible data transmission experience can be provided for the user, and the use experience of the user is improved.

[0031] In an implementation manner, the display screen of the second device includes the second transmission object, and the method further includes that the first device can receive the object data corresponding to the second transmission object sent by the second device, and display a second receiving effect, the second receiving effect being used to present that the second image corresponding to the second transmission object appears from the screen boundary of the first device and moves to the screen of the first device.

[0032] Thus, in the embodiments of the present application, the first device can receive the data sent by the second device, and display the receiving effect. The second image in the receiving effect can move into the screen from the top end face of the first device. Thus, a more intuitive and flexible data transmission experience can be provided for the user, and the use experience of the user is improved.

[0033] In an implementation manner, in the process that the first image moves according to the target direction in the first sending effect, the moving direction of the second image in the second receiving effect is opposite to the target direction.

[0034] Thus, in the embodiments of the present application, the moving direction of the first image in the first sending effect is opposite to the moving direction of the second image in the second receiving effect, which can make the data transmission between the cross-devices more intuitive. Thus, the visual experience of the user is improved.

[0035] In an implementation manner, the display form of the first image in the first sending effect is different from the display form of the second image in the second receiving effect.

[0036] Thus, the embodiments of the present application can distinguish different sending effects and receiving effects, which can make the user more intuitively feel the data transmission process corresponding to the received data and the sent data. The richness of the effect display is improved, and the data transmission between the cross-devices is more intuitive. Thus, the visual experience of the user is improved.

[0037] In an implementation manner, in the case that the first device sends the object data of the first transmission object and receives the object data of the second transmission object sent by the second device, the first sending effect and the second receiving effect are displayed simultaneously, or the first sending effect is displayed after the second receiving effect is displayed, or the second receiving effect is displayed after the first sending effect is displayed.

[0038] Thus, the first device can receive the object data of the second transmission object sent by the second device in the process of sending the object data of the first transmission object. That is, the first device can perform the sending data process and also perform the receiving data process. The execution timing of the sending data and the receiving data can have a front-back order or can be performed simultaneously. The flexibility of data transmission is improved, and the user experience is improved.

[0039] Meanwhile, the first device can display the receiving animation and the sending animation according to the execution timing of the sending data and the receiving data. Thus, the device in the embodiment of the present application not only sends data and receives data simultaneously, but also displays the receiving animation and the sending animation simultaneously in the process of receiving data and sending data. Of course, the display order of the receiving animation and the sending animation can also have a front-back order. The richness of the display content and the interestingness of the cross-device data transmission of the user are further improved. The user can have a better data transmission experience.

[0040] In an implementable manner, the animation speed of the second receiving animation is negatively related to the data amount of the object data of the second transmission object, the animation speed of the first sending animation is negatively related to the data amount of the object data of the first transmission object, or the animation speed of the first sending animation is positively related to the operation speed of the first trigger operation.

[0041] Thus, the animation speed corresponding to the animation in the embodiment of the present application can change according to the data amount of the transmission data, or can change according to the operation speed of the user trigger operation. The user can intuitively feel the data amount of the transmission data through the animation. The user can also control the presentation speed of the animation by changing the operation speed. The richness of the display content, the interestingness and the interactivity of the cross-device data transmission of the user are further improved. The user can have a better data transmission experience.

[0042] In an implementable manner, in the case of receiving the object data of the second transmission object sent by the second device in the process of sending the object data of the first transmission object by the first device, in response to the second trigger operation on the first image, the first image is not displayed and the sending of the object data of the first transmission object to the second device is cancelled. The second device can keep displaying the second receiving animation.

[0043] Thus, the device in the embodiment of the present application can interrupt the sending of data. The user can interrupt the process of sending data by the device. Meanwhile, in the case of receiving data by the device, the corresponding receiving animation can also be displayed. The flexibility of cross-device data transmission is improved. Thus, the user experience is provided.

[0044] In an implementation, the object data corresponding to the second transmission object includes a second image, the second image is used to indicate the second transmission object in the second device, and the method further includes: the first device displays the second image after displaying the second receiving animation, and in response to a third trigger operation on the second image, the first device acquires the second transmission object according to the second image. The first device can further find a target application matching the second transmission object, and display the second transmission object by using the target application.

[0045] In this way, in the embodiment of the present application, after the second image (such as an object snapshot) sent by the second device is received by the first device, the object snapshot corresponding to the second transmission object can be automatically acquired after the receiving is completed. At the same time, the related application can be automatically opened to display the second transmission object, without the need for the user to perform other cumbersome operations, thereby improving the work efficiency of the data transmission process and the data display process.

[0046] In an implementation, the object data corresponding to the second transmission object includes a second image and content data of the second transmission object, and the method further includes: the first device displays the second image after displaying the second receiving animation. The second device finds a target application matching the content data of the second transmission object in response to a third trigger operation on the second image, and displays the second transmission object by using the target application.

[0047] In this way, in the embodiment of the present application, after the content data sent by the second device is received by the first device, the related application can be automatically opened to display the transmission object corresponding to the content data, without the need for the user to perform other cumbersome operations, thereby improving the work efficiency of the data transmission process and the data display process.

[0048] In an implementation, the object data of the first transmission object includes a first image, the first image is used to indicate the first transmission object and is used by the second device to acquire the first transmission object.

[0049] Alternatively, the object data of the first transmission object includes a first image and content data of the first transmission object, and the content data of the first transmission object is used by the second device to acquire the first transmission object. Therefore, the second device can acquire the first transmission object according to the first image in the object data, or directly acquire the first transmission object according to the content data in the object data. Without the need for the user to perform a series of cumbersome operations, the first transmission object can be acquired, thereby improving the user experience.

[0050] In an implementation, the distance between the first device and the second device is less than or equal to the communication distance at which the first device and the second device establish a communication connection during the process of sending the object data of the first transmission object and receiving the object data of the second transmission object.

[0051] Therefore, in the process of data transmission, the user does not need to keep the two devices close or in contact. The user can move the devices at will without constraints on the device posture of the two devices, as long as the distance between the two devices is within the communication distance of the communication connection. Thus, the flexibility of cross-device data transmission is improved, and the user experience is enhanced.

[0052] In an implementation, the first image includes an object screenshot of the first transmission object or an object snapshot corresponding to the first transmission object. The method further includes that the first device can generate the object screenshot according to the first transmission object displayed in the display screen, or extract key object data from the transmission object data of the first transmission object, and generate the object snapshot according to the key object data.

[0053] In an implementation, the method further includes that the first device can display a target motion effect, and the target motion effect is used to present that the first device has detected the proximity or collision with the second device. Thus, the user can be more intuitively prompted that the device is in the process of colliding or approaching with the other device.

[0054] In an implementation, the first transmission object includes at least one of a file, a folder, a contact, or an application.

[0055] In a third aspect, an embodiment of the present application provides a data transmission method applied to a second device, and the method includes:

[0056] The second device detects the proximity or collision with the first device, establishes a communication connection with the first device, and displays a first receiving motion effect in the process of receiving the object data corresponding to the first transmission object sent by the first device. The first receiving motion effect is used to present that a first image corresponding to the first transmission object displayed in the first device appears from the screen boundary of the second device and moves to the screen of the second device.

[0057] Therefore, in the embodiment of the present application, the second device detects the proximity or collision with the first device, establishes a communication connection with the first device, and receives the object data corresponding to the first transmission object sent by the first device. The second device can also display a receiving motion effect, and a first image in the receiving motion effect can move from the top end surface of the second device to the screen. Thus, a more intuitive and flexible data transmission experience can be provided for the user, and the user experience is improved.

[0058] In an implementation, the second device includes a second transmission object in a display screen, and the method further includes: the second device can send object data corresponding to the second transmission object to the first device. The second device can also display a second sending animation during the sending of the object data corresponding to the second transmission object to the first device, and the second sending animation is used to present the second image corresponding to the transmission object moving to the screen boundary of the second device until moving out of the screen of the second device.

[0059] In this way, the second device can send the object data of the second transmission object to the first device, and the second device can also display a sending animation. In the presentation process, the image can move out of the screen from the top end face, which can simulate the scene of the user's body action when the user interacts with the object to deliver to the other party. Therefore, a more intuitive and flexible data transmission experience can be provided for the user, and the use experience of the user can be improved.

[0060] In a fourth aspect, an embodiment of the present application provides an electronic device, which includes a memory and one or more processors; the memory is coupled to the processor; and the memory stores computer program code, which includes computer instructions. When the computer instructions are executed by the processor, the electronic device performs the method in the second aspect or the method in the third aspect.

[0061] In a fifth aspect, an embodiment of the present application provides a communication system, which includes a first device and a second device; and a display screen of the first device includes a first transmission object.

[0062] The first device is configured to detect that the second device is close or collides, and establish a communication connection with the second device.

[0063] The first device is configured to send object data of the first transmission object to the second device.

[0064] The first device is configured to display a first sending animation during the sending of the object data of the first transmission object to the second device, and the first sending animation is used to present a first image corresponding to the first transmission object moving to the screen boundary of the first device until moving out of the screen of the first device. The object data of the first transmission object is displayed, and a first receiving animation is displayed, and the first receiving animation is used to present the first image appearing from the screen boundary of the second device and moving to the screen of the second device.

[0065] In a sixth aspect, an embodiment of the present application provides a computer readable medium, which stores instructions. When the instructions are run on an electronic device, the electronic device performs the method in the second aspect or the method in the third aspect.

[0066] In a seventh aspect, embodiments of this application provide a computer program product containing instructions that, when executed on a computer or processor, cause the computer or processor to perform the method described in the second aspect above, or to perform the method described in the third aspect above. Attached Figure Description

[0067] Figure 1 is a schematic diagram of a transmission system provided in an embodiment of this application;

[0068] Figure 2 is a schematic diagram of the hardware structure of a mobile phone provided in an embodiment of this application;

[0069] Figure 3 is a schematic diagram of the software structure of a mobile phone provided in an embodiment of this application;

[0070] Figure 4 is a flowchart illustrating a data transmission method provided in an embodiment of this application;

[0071] Figure 5 is a schematic diagram of an interface for a target animation provided in an embodiment of this application;

[0072] Figure 6 is a schematic diagram of the interface of a first image provided in an embodiment of this application;

[0073] Figure 7 is a schematic diagram of an interface for a first position and a second position provided in an embodiment of this application;

[0074] Figure 8 is a schematic diagram of an interface for canceling sending provided in an embodiment of this application;

[0075] Figure 9 is a schematic diagram of the interface of a first sending animation and a first receiving animation provided in an embodiment of this application;

[0076] Figure 10 is a schematic diagram of a second receiving animation interface provided in an embodiment of this application;

[0077] Figure 11 is a schematic diagram of an interface for displaying a second file according to an embodiment of this application;

[0078] Figure 12 is a schematic diagram of an interface for displaying a second file provided in an embodiment of this application;

[0079] Figure 13 is a schematic diagram of an interface for a motion effect corresponding to a preset display timing provided in an embodiment of this application;

[0080] Figure 14 is a schematic diagram of an interface corresponding to a preset display timing for animation provided in an embodiment of this application;

[0081] Figure 15 is a schematic diagram of an interface corresponding to a preset display timing for animation provided in an embodiment of this application;

[0082] Figure 16 is a schematic diagram of the structure of a mobile phone provided in an embodiment of this application. DETAILED DESCRIPTION

[0083] The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application. In the description of the present application, unless otherwise specified, “ / ” represents an “or” relationship between the objects before and after the “ / ”, for example, A / B can represent A or B; “and / or” in the present application is only a description of the relationship between the associated objects, which means that there can be three relationships, for example, A and / or B can represent: A alone, A and B together, and B alone, where A and B can be singular or plural. In addition, in the description of the present application, unless otherwise specified, “multiple” means two or more than two. “At least one of the following” or the like means any combination of the items, including any combination of single or multiple items. For example, at least one of a, b, or c can represent: a, b, c, a-b, a-c, b-c, or a-b-c, where a, b, and c can be single or multiple. In addition, in order to clearly describe the technical solutions of the embodiments of the present application, in the embodiments of the present application, the same items or similar items with basically the same function and role are distinguished by using “first”, “second”, and the like.

[0084] Those skilled in the art can understand that the “first”, “second”, and the like do not limit the quantity and execution order, and the “first”, “second”, and the like do not necessarily mean different. At the same time, in some embodiments of the present application, the words “exemplary” or “for example” are used to represent an example, illustration, or description. Any embodiment or design scheme described as “exemplary” or “for example” in the embodiments of the present application should not be interpreted as more preferred or more advantageous than other embodiments or design schemes. Rather, the words “exemplary” or “for example” are intended to present the relevant concept in a specific manner, for ease of understanding.

[0085] In addition, the device architecture and business scenarios described in the embodiments of the present application are to more clearly illustrate the technical solutions of the embodiments of the present application, and do not constitute a limitation on the technical solutions provided by the embodiments of the present application. Those skilled in the art can know that, as the device architecture evolves and new business scenarios appear, the technical solutions provided by the embodiments of the present application are also applicable to similar technical problems.

[0086] With the development of communication technology and the improvement of people's living standards, cross-device data transmission has become a common operation in people's daily life. In the related art, in the scene of data transmission, the sender needs to perform a series of complex operations before the data transmission can be realized. For example, the first user needs to find the file on the terminal and select the second user for sending by using a certain application program, and the second user needs to open the file for downloading through the application program to realize the data transmission process. It can be seen that the entire data transmission process takes a long time, and the user experience is poor.

[0087] To solve the above problems, the embodiments of the present application provide a data transmission method and device, which are applied to a communication system including a first device and a second device, and the display screen of the first device includes a first transmission object. The method includes: the first device detects that the second device is close or collides, and establishes a communication connection with the second device. The first device can send object data of the first transmission object to the second device. The first device can also display a first sending animation in the process of sending the object data of the first transmission object to the second device, and the first sending animation is used to present the first image corresponding to the first transmission object moving to the screen boundary of the first device until moving out of the screen of the first device. The second device receives the object data of the first transmission object, and displays a first receiving animation, and the first receiving animation is used to present the first image appearing from the screen boundary of the second device and moving to the screen of the second device.

[0088] In this way, after the first device and the second device establish a communication connection, the first device can send the object data of the first transmission object to the second device, and display the first sending animation. The second device can receive the object data of the first transmission object, and display the first receiving animation. Wherein, the first sending animation can present the first image moving to the screen boundary of the first device until moving out of the screen of the first device, and the first receiving animation is used to present the first image appearing from the screen boundary of the second device and moving to the screen of the second device.

[0089] On the one hand, the two devices can present the first image of the first transmission object crossing between the two screens by displaying the above animation, and at the same time, the dynamic transmission effect of the object data of the first transmission object in the transmission process can also be reflected. Thus, a more intuitive and flexible data transmission experience can be provided to the user, and the user experience can be improved.

[0090] In another aspect, the first device detects the second device in the proximity or collision, and after establishing a communication connection with the second device, the first device directly triggers the sending of the object data of the first transmission object to the second device. The user only needs to control the display of the first transmission object on the display screen of the first device, without the need for the user to perform a series of cumbersome operations in the process of transmitting data, which can effectively improve the efficiency of cross-device data transmission, thereby improving the user experience.

[0091] The data transmission method provided in the present application can be applied to a transmission system. Referring to FIG. 1, the transmission system provided in the embodiments of the present application can include a first device (for example, a first mobile phone 101 used by a first user) and a second device (for example, a second mobile phone 102 used by a second user).

[0092] In some embodiments, a communication connection can be established between the first device and the second device. The communication connection can be a wired communication connection or a wireless communication connection.

[0093] The wireless communication technology for establishing the wireless communication connection includes, but is not limited to, at least one of the following: a wireless local area network (WLAN) (such as a wireless fidelity (Wi-Fi) network), Bluetooth (BT) (for example, traditional Bluetooth or Bluetooth low energy (BLE)), near field communication (NFC), Zigbee, frequency modulation (FM), infrared (IR), and the like.

[0094] The first device can be a file sending end device, which can also be understood as a sharing device. For example, the first device can be an electronic device such as a mobile phone, a tablet computer, a notebook computer, a netbook, a personal digital assistant (PDA), a wearable device, an artificial intelligence (AI) device, and the like.

[0095] The operating system installed on the first device includes, but is not limited to or other operating systems. Of course, the first device can also not be installed with an operating system. The present application does not limit the specific type of the first device, whether or not the first device is installed with an operating system, and the type of the operating system installed on the first device.

[0096] The second device can be a file receiving end device, and can also be understood as a shared device. The electronic device can be, for example, a mobile phone, a tablet computer, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, a PDA, a wearable device, an artificial intelligence (AI) device, a vehicle-mounted device, or the like.

[0097] The operating system installed on the second device includes, but is not limited to or other operating systems. The specific type of the second device and the operating system installed thereon are not limited in the present application.

[0098] For example, in a scenario in which a transmission system includes the first device and the second device, the display screen of the first device includes a first transmission object, the first device detects that the second device is close to or collides with the first device, and a communication connection is established between the first device and the second device. The first device can send object data of the first transmission object to the second device. The first device can also display a first sending animation during the process of sending the object data of the first transmission object to the second device, and the first sending animation is used to present that a first image corresponding to the first transmission object moves to a screen boundary of the first device until the first image moves out of the screen of the first device. The second device receives the object data of the first transmission object, and displays a first receiving animation, and the first receiving animation is used to present that the first image appears from a screen boundary of the second device and moves to the screen of the second device.

[0099] Of course, the transmission system provided in the embodiments of the present application can also include other electronic devices in addition to the first device and the second device. The transmission system provided in the embodiments of the present application includes, but is not limited to, interaction between two devices, and can also be information interaction between one device and multiple devices. A person skilled in the art can determine the type and number of electronic devices according to actual needs, and these designs do not exceed the protection scope of the embodiments of the present application.

[0100] The first device and the second device in the embodiments of the present application can be implemented by different devices. For example, the electronic device in the embodiments of the present application can be implemented by the mobile phone 100 in FIG. 2. FIG. 2 shows a hardware structure schematic diagram of a mobile phone provided in the embodiments of the present application.

[0101] As shown in FIG. 2, the mobile phone 100 can include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, a headset jack 170D, a sensor module 180, a key 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc.

[0102] The sensor module 180 can include a pressure sensor 180A, a gyroscope sensor 180B, a barometric pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, and a bone conduction sensor 180M, etc.

[0103] It can be understood that the structure shown in the embodiments of the present application does not constitute a specific limitation on the mobile phone 100. In other embodiments of the present application, the mobile phone 100 can include more or fewer components than shown, or combine certain components, or split certain components, or different component arrangements. The components shown can be implemented in hardware, software, or a combination of software and hardware.

[0104] The processor 110 can include one or more processing units, for example: the processor 110 can include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units can be independent devices, or can be integrated into one or more processors.

[0105] The controller can be the nerve center and command center of the mobile phone 100. The controller can generate operation control signals according to instruction operation codes and timing signals to complete the control of fetching instructions and executing instructions.

[0106] The processor 110 can also include a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory can hold instructions or data that the processor 110 has just used or is using repeatedly. If the processor 110 needs to use the instructions or data again, it can be called directly from the memory. This avoids repeated access and reduces the waiting time of the processor 110, thus improving the efficiency of the system.

[0107] In some embodiments, the processor 110 can include one or more interfaces. The interface can include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.

[0108] The wireless communication function of the mobile phone 100 can be realized through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor, and the baseband processor, etc.

[0109] The antenna 1 and the antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in the mobile phone 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be multiplexed to improve the utilization rate of the antennas. For example, the antenna 1 can be multiplexed as a diversity antenna of a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.

[0110] The mobile communication module 150 can support 2G / 3G / 4G / 5G / future communication networks or more advanced communication standards, which are not limited in the present application.

[0111] The wireless communication module 160 can provide solutions for wireless communication including wireless local area networks (WLAN) (e.g., wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR) technology, etc. The wireless communication module 160 can be one or more devices that integrate at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, frequency-modulates and filters the electromagnetic wave signals, and transmits the processed signals to the processor 110. The wireless communication module 160 can also receive signals to be transmitted from the processor 110, frequency-modulate them, amplify them, and radiate them as electromagnetic waves via the antenna 2.

[0112] The phone 100 implements display functions through a GPU, a display screen 194, and an application processor, etc. 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 for graphics rendering. The processor 110 can include one or more GPUs that execute program instructions to generate or change display information.

[0113] The display screen 194 is used to display user interfaces, etc. The display screen 194 includes a display panel. The display panel can adopt a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a Miniled, a MicroLed, a Micro-oLed, a quantum dot light emitting diode (QLED), etc. In some embodiments, the phone 100 can include 1 or N display screens 194, and N is a positive integer greater than 1.

[0114] The phone 100 can implement a shooting function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, and an application processor, etc.

[0115] ISP is used to process the data feedback by the camera 193. For example, when taking a photo, the shutter is opened, the light is transmitted to the camera photosensitive element through the lens, the light signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to the ISP for processing and conversion into a visible image to the naked eye. The ISP can also optimize the noise, brightness, and skin color of the image through algorithms. The ISP can also optimize the exposure, color temperature, and other parameters of the shooting scene. In some embodiments, the ISP can be arranged in the camera 193.

[0116] The mobile phone 100 can realize audio functions through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the earphone interface 170D, and the application processor, etc. For example, music playing, recording, etc.

[0117] In some examples, the first transmission object can be displayed on the display screen of the first mobile phone, and the first transmission object can include the first file. The acceleration sensor in the first mobile phone detects that the second mobile phone is close or collides, and a communication connection can be established with the second mobile phone. After the communication connection with the second mobile phone is established, the first mobile phone can send the file data of the first file to the second mobile phone through the wireless communication module.

[0118] During the process of sending the file data of the first file to the second mobile phone, the first mobile phone can control the display screen to display a first sending animation, and the first sending animation is used to present a first image corresponding to the first file moving to the boundary of the display screen of the first mobile phone until moving out of the display screen of the first mobile phone. The second mobile phone can receive the file data of the first file, and control the display screen to display a first receiving animation, and the first receiving animation is used to present the first image appearing from the boundary of the display screen of the second mobile phone and moving into the display screen of the second mobile phone.

[0119] The software system of the mobile phone 100 can adopt a layered architecture, an event-driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture. The embodiment of the present application takes the Android system with a layered architecture as an example to exemplarily illustrate the software structure of the mobile phone 100.

[0120] FIG. 3 is a schematic diagram of the software structure of the mobile phone according to an embodiment of the present application.

[0121] The layered architecture divides the software into several layers, and each layer has a clear role and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, from top to bottom, the application layer, the application framework layer, the Android runtime and system library, and the kernel layer.

[0122] The application layer can include a series of application packages.

[0123] As shown in FIG. 3, the application package can include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message, etc.

[0124] The application framework layer provides application programming interface (API) and programming framework for the applications of the application layer. The application framework layer includes some pre-defined functions.

[0125] As shown in FIG. 3, the application framework layer can include window manager, content provider, view system, phone manager, resource manager, notification manager, etc.

[0126] The window manager is used to manage window programs. The window manager can acquire the size of the display screen, determine whether there is a status bar, lock the screen, and capture the screen, etc.

[0127] The content provider is used to store and acquire data, and make the data accessible by the applications. The data can include video, image, audio, dialed and received calls, browsing history and bookmarks, phone book, etc.

[0128] The view system includes visual controls, such as controls for displaying text, controls for displaying pictures, etc. The view system can be used to build applications. A display interface can be composed of one or more views. For example, a display interface including a short message notification icon can include a view for displaying text and a view for displaying pictures.

[0129] The phone manager is used to provide the communication function of the mobile phone 100. For example, the management of call status (including connection, hang-up, etc.).

[0130] The resource manager provides various resources for the applications, such as localized strings, icons, pictures, layout files, video files, etc.

[0131] The notification manager makes the applications display notification information in the status bar, which can be used to convey messages of the notification type, which can automatically disappear after a short stay without user interaction. For example, the notification manager is used to notify the completion of download, message reminder, etc. The notification manager can also be a notification in the form of a chart or a scroll bar text appearing in the top status bar of the system, such as a notification of an application running in the background, or a notification in the form of a dialogue window appearing on the screen. For example, prompting text information in the status bar, issuing a prompt sound, vibrating the electronic device, flashing the indicator light, etc.

[0132] The Android Runtime includes the core library and the virtual machine. The Android Runtime is responsible for the scheduling and management of the Android system.

[0133] The core library includes two parts: one part is a function function that the java language needs to call, and the other part is the core library of Android.

[0134] The application layer and the application framework layer run in the virtual machine. The virtual machine executes the java files of the application layer and the application framework layer into binary files. The virtual machine is used to perform functions such as management of object life cycle, stack management, thread management, security and exception management, and garbage collection.

[0135] The system library can include a plurality of function modules. For example: a detection module, a display module, and a sending module.

[0136] In some examples, the display module is configured to display the first transmission object. The detection module is configured to detect whether the first device is close to or collides with the second device. The sending module is configured to send the object data of the first transmission object to the second device. The display module is further configured to display the first sending effect.

[0137] The kernel layer is a layer between hardware and software. The kernel layer at least includes a display driver, a camera driver, an audio driver, and a sensor driver.

[0138] The following will take the first device as a first mobile phone, the second device as a second mobile phone, the first user as a user using the first mobile phone, and the second user as a user using the second mobile phone as an example in combination with the transmission system shown in FIG. 1 to specifically describe the data transmission method provided by the embodiments of the present application.

[0139] FIG. 4 is a flowchart of a data transmission method according to an embodiment of the present application. As shown in FIG. 4, the method can include the following S401-S404.

[0140] S401, the first mobile phone detects that the second mobile phone is close to or collides with, and establishes a communication connection with the second mobile phone.

[0141] In some embodiments of the present application, the first mobile phone can detect that the second mobile phone is close to or collides with, and establish a communication connection with the second mobile phone.

[0142] For example, the first user can use the first mobile phone to be close to or collide with the second mobile phone used by the second user, so that the first mobile phone and the second mobile phone establish a communication connection. For example, in the process of being close to or colliding with the second mobile phone, when the acceleration sensor in the first mobile phone detects that the second mobile phone is close, the Bluetooth module in the first mobile phone can be triggered to establish a Bluetooth communication connection with the Bluetooth module in the second mobile phone. For another example, in the process of being close to or colliding with the second mobile phone, when the acceleration sensor in the first mobile phone detects that the second mobile phone collides, the NFC module in the first mobile phone can be triggered to establish an NFC communication connection with the NFC module in the second mobile phone.

[0143] That is, the embodiments of the present application can utilize the sensor module (such as an acceleration sensor) and the communication module (such as a Bluetooth module) to realize accurate device sensing and interaction control. When two devices collide or approach, the Bluetooth signal scanning can be activated to realize mutual sensing and start the subsequent data transmission process.

[0144] In some other embodiments of the present application, the first mobile phone can also detect the approach or collision of other devices through other hardware, and then trigger the process of establishing a communication connection. The embodiments of the present application do not specifically limit how to detect the approach or collision of devices and the process of establishing a communication connection.

[0145] In some embodiments of the present application, the communication connection established between the first mobile phone and the second mobile phone includes a wireless communication connection, such as a WLAN communication connection, a Wi-Fi communication connection, a Bluetooth communication connection, an NFC communication connection, and the like.

[0146] In some embodiments of the present application, during the process of detecting the approach or collision of the second mobile phone and establishing a communication connection with the second mobile phone, the first mobile phone can display a target motion effect, which is used to present that the approach or collision of the first mobile phone and the second mobile phone has been detected.

[0147] For example, referring to (A) in FIG. 5, during the process of approaching or colliding the first mobile phone and the second mobile phone by the first user and the second user, the first mobile phone and the second mobile phone can display a target motion effect, which is used to present that the approach or collision of the first mobile phone and the second mobile phone has been detected. The target motion effect can present a dynamic effect simulating the flow of water surface ripples. Thus, the user can be more intuitively prompted that the process of colliding or approaching the mobile phone with other devices is being used.

[0148] In some embodiments of the present application, before the first mobile phone and the second mobile phone establish a communication connection, the display screen of the first mobile phone can include a first transmission object. The display screen of the second mobile phone can include a second transmission object. The transmission object can include at least one of a file, a folder, a contact, or an application.

[0149] For example, the transmission object can include at least one of a document, an audio, a video, an audio / video, a webpage, contact information in a contact application, and page information in a social application.

[0150] For example, referring to (B) in FIG. 5, the first transmission object can be a first file, and the second transmission object can be a second file. The embodiments of the present application do not specifically limit the transmission content and the transmission type of the transmission object.

[0151] That is, the first user needs to open the first transmission object, that is, the first transmission object is in an open or playing state. When the transmission objects displayed on the display screen of the first mobile phone are two or more, the first transmission object can be all the transmission objects displayed on the screen of the first mobile phone, can be the transmission object running in the foreground of the first mobile phone, or can be the transmission object positioned according to the current position of the cursor, which is not limited here. The second transmission object is the same as the first transmission object, which is not repeated here.

[0152] In some embodiments of the present application, after the first mobile phone establishes a communication connection with the second mobile phone, the first mobile phone can generate and display a first image corresponding to the first transmission object.

[0153] The first image can include an object screenshot of the first transmission object or an object snapshot corresponding to the first transmission object.

[0154] In an implementable manner, after the first mobile phone establishes a communication connection with the second mobile phone, the first mobile phone can generate an object screenshot according to the first transmission object displayed in the display screen.

[0155] For example, referring to (C) in FIG. 5, after the first mobile phone establishes a Bluetooth communication connection with the second mobile phone, the first mobile phone can perform a screenshot operation on the first file displayed in the display screen to generate a file screenshot of the first file.

[0156] In another implementable manner, the first mobile phone can extract key object data from the transmission object data of the first transmission object. The first mobile phone can also generate an object snapshot according to the key object data.

[0157] For example, referring to (D) in FIG. 5, after the first mobile phone establishes a Bluetooth communication connection with the second mobile phone, the first mobile phone can extract key content data from the first file displayed in the display screen. The mobile phone can also generate a file snapshot of the first file according to the extracted key content data. For example, the key content data is download address information corresponding to the first file. The file snapshot of the first file can include the download address information, such as the first file snapshot, content: http: / XXXXX / .

[0158] In some other embodiments of the present application, after the first mobile phone establishes a communication connection with the second mobile phone, the second mobile phone can also generate and display a second image corresponding to the second transmission object. The second image can include an object screenshot of the second transmission object or an object snapshot corresponding to the second transmission object.

[0159] For example, continuing to refer to (C) in FIG. 5, after the second mobile phone establishes a Bluetooth communication connection with the first mobile phone, the second mobile phone can perform a screenshot operation on the second file displayed in the display screen to generate a file screenshot of the second file.

[0160] Further exemplary, continuing to refer to (D) in FIG. 5, after the second mobile phone establishes the Bluetooth communication connection with the first mobile phone, the second mobile phone can perform content extraction on the second file displayed in the display screen, and extract the key content data. The second mobile phone can also generate the file snapshot of the second file according to the extracted key content data. For example, the key content data is the download address information corresponding to the second file. The download address information can be included in the file snapshot of the second file, such as the file snapshot of the second file, content: http: / / XXXXX / .

[0161] Further exemplary, when the transmission object is the first file or the second file is a web page file, the extracted key content data can be the web address information corresponding to the file.

[0162] In some embodiments of the present application, in the case that the transmission object includes a preset object associated with a specific service, the extracted key content data includes jump path information, and the jump path information is used to jump to a service page corresponding to the specific service.

[0163] Exemplary, when the transmission object is a web page, an image, or the like, the transmission object can include a preset object associated with a specific service. The preset object can include a product, a smart home device, an application, or the like. The product can be associated with a product application, and the smart home device can be associated with a smart home application. In this way, the extracted key content data can include jump path information, and the jump path information is used to jump to a service page corresponding to the specific service.

[0164] In some embodiments of the present application, the object data of the first transmission object includes a first image, and the first image is used to indicate the first transmission object and to enable the second device to obtain the first transmission object.

[0165] Alternatively, the object data of the first transmission object includes the first image and the content data of the first transmission object, and the content data of the first transmission object is used to enable the second device to obtain the first transmission object.

[0166] Exemplary, during the display of the first sending animation, the first mobile phone can send the first image and the content data of the first file to the second mobile phone, or send the first image to the second mobile phone. When the first image is an object snapshot corresponding to the first transmission object, the first image can be used for the second mobile phone to subsequently obtain the first file. When the first image is an object screenshot corresponding to the first transmission object, the second mobile phone can subsequently obtain the first file according to the content data of the first file.

[0167] Therefore, the second mobile phone in the embodiment of the present application can obtain the first transmission object according to the first image in the object data or directly obtain the first transmission object according to the content data in the object data. Without a series of cumbersome operations of the user, the first transmission object can be obtained, and the use experience of the user is improved.

[0168] S402, the first mobile phone sends object data of the first transmission object to the second mobile phone.

[0169] In some embodiments of the present application, the first mobile phone can send the object data of the first transmission object to the second mobile phone after establishing the communication connection with the second mobile phone.

[0170] In an implementable manner, the object data of the first transmission object can include a first image, the first image being used for indicating the first transmission object and being used for the second mobile phone to obtain the first transmission object.

[0171] For example, the first mobile phone can generate the first image, such as a file snapshot of the first file, after establishing the Bluetooth communication connection with the second mobile phone. The mobile phone can also send the file snapshot of the first file to the second mobile phone, so that the second mobile phone can subsequently obtain the first file according to the file snapshot of the first file.

[0172] In another implementable manner, the object data of the first transmission object includes the first image and content data of the first transmission object, the content data of the first transmission object being used for the second mobile phone to obtain the first transmission object.

[0173] For example, the first mobile phone can generate the first image, such as a file snapshot of the first file, after establishing the Bluetooth communication connection with the second mobile phone. The mobile phone can also send the file snapshot of the first file to the second mobile phone, so that the second mobile phone can subsequently obtain the first file according to the file snapshot of the first file.

[0174] In some embodiments of the present application, the display screen of the second mobile phone includes a second transmission object, and the second mobile phone can send object data corresponding to the second transmission object to the first mobile phone after establishing the communication connection with the first mobile phone.

[0175] Similarly, the object data of the second transmission object can include a second image, the second image being used for indicating the second transmission object and being used for the first mobile phone to obtain the second transmission object. Alternatively, the object data of the second transmission object includes the second image and content data of the second transmission object, the content data of the second transmission object being used for the first mobile phone to obtain the second transmission object.

[0176] In some embodiments of the present application, the device distance between the first mobile phone and the second mobile phone is less than or equal to the communication distance between the first mobile phone and the second mobile phone during the process of transmitting the object data of the first transmission object by the first mobile phone and receiving the object data of the second transmission object by the second mobile phone. Similarly, the device distance between the second mobile phone and the first mobile phone is less than or equal to the communication distance between the first mobile phone and the second mobile phone during the process of transmitting the object data of the second transmission object by the second mobile phone and receiving the object data of the first transmission object by the first mobile phone.

[0177] That is, the device distance between the first mobile phone and the second mobile phone is less than or equal to the communication distance between the first mobile phone and the second mobile phone during the process of transmitting data by the first mobile phone to the second mobile phone or receiving data transmitted by the second mobile phone. The first mobile phone and the second mobile phone do not need to remain in the collision or close state.

[0178] For example, the first mobile phone and the second mobile phone establish a Bluetooth communication connection, and the device distance between the first mobile phone and the second mobile phone is only required to be within the communication distance of the Bluetooth communication connection during the process of transmitting data by the first mobile phone to the second mobile phone or receiving data transmitted by the second mobile phone.

[0179] In this way, the embodiments of the present application do not require the user to keep the two devices in close proximity or contact state during the data transmission process. The user can move the devices at will and does not constrain the device posture of the two devices as long as the device distance of the two devices is kept within the communication distance of the communication connection. Therefore, the flexibility of cross-device data transmission is improved, and the user experience is improved.

[0180] S403, the first mobile phone displays a first sending animation during the process of transmitting the object data of the first transmission object to the second mobile phone.

[0181] The first sending animation is used to present the first image corresponding to the first transmission object moving to the screen boundary of the first mobile phone until moving out of the screen of the first mobile phone.

[0182] In some embodiments of the present application, the first sending animation can be directly displayed during the process of transmitting the object data of the first transmission object by the first mobile phone to the second mobile phone.

[0183] Specifically, the first mobile phone displays the first sending animation according to the generated first image during the process of transmitting the object data of the first transmission object. In the first sending animation, the first image gradually moves from the screen of the first mobile phone to the screen boundary of the first mobile phone until moving out of the screen of the first mobile phone.

[0184] Thus, in the scenario of cross-device data transmission, the first user can select the first transmission object and control the first mobile phone to approach or collide with the second mobile phone. In this way, the first mobile phone can detect the second mobile phone that approaches or collides and establish a communication connection with the second mobile phone. The first mobile phone can also send the object data of the first transmission object to the second mobile phone and display the first sending animation. Without a series of cumbersome operations, the user can be provided with a more intuitive dynamic process of data transmission, thereby improving the user experience.

[0185] In some embodiments of the present application, the first mobile phone can display the first image during the process of displaying the first sending animation. The first mobile phone displays the first sending animation in response to a first triggering operation on the first image.

[0186] The first triggering operation includes an operation for indicating that the first image moves to the screen boundary of the first mobile phone. The first triggering operation can include a click operation, a swipe-up operation, a double-click operation, a voice operation, and the like. The embodiments of the present application do not limit the specific implementation form of the first triggering operation.

[0187] For example, referring to (A) in FIG. 6, the first mobile phone can display the file screenshot of the first file. The user can perform a swipe-up operation on the file screenshot of the first file. The first mobile phone displays the first sending animation in response to the swipe-up operation. Referring to (B) in FIG. 6, in the first sending animation, the file screenshot of the first file can gradually move from the screen of the first mobile phone to the screen boundary of the first mobile phone until it moves out of the screen of the first mobile phone.

[0188] In this way, the user can operate the first image to trigger the data sending process. The interaction and operability between the user and the device are enhanced, and the data transmission between devices is more intuitive.

[0189] In some embodiments of the present application, the second mobile phone can display a second sending animation during the process of sending the object data corresponding to the second transmission object to the first mobile phone. The second sending animation is used to present the second image corresponding to the second transmission object moving to the screen boundary of the second mobile phone until it moves out of the screen of the second mobile phone.

[0190] Specifically, the second mobile phone can display the second image during the process of displaying the second sending animation. The second mobile phone displays the second sending animation in response to a triggering operation on the second image.

[0191] Similarly, continuing to refer to (A) in FIG. 6, the second mobile phone can display the file screenshot of the second file. The user can perform an upswipe operation on the file screenshot of the second file, and the second mobile phone displays a second sending animation in response to the upswipe operation. Continuing to refer to (B) in FIG. 6, in the second sending animation, the file screenshot of the second file can gradually move from the screen of the second mobile phone to the screen border of the second mobile phone, and then move out of the screen of the second mobile phone. During the display of the second sending animation, the second mobile phone can send the second image and the content data of the second file to the first mobile phone, or send the second image to the first mobile phone.

[0192] In some embodiments of the present application, the display form of the first image in the first sending animation changes with the change of the moving position during the movement of the first image.

[0193] For example, referring to (B) in FIG. 7, during the movement of the first image in the first sending animation, the moving position of the first image is at the first position, and the display form of the first image is the first display form. Then, when the moving position of the first image moves from the first position to the second position, the display form of the first image is adjusted from the first display form to the second display form. Then, when the moving position of the first image moves from the second position to the third position, the display form of the first image is adjusted from the second display form to the third display form.

[0194] In one implementation, the display size of the first image in the first sending animation gradually decreases with the change of the moving position during the movement of the first image, and then the first image fades out of the screen of the first mobile phone.

[0195] In another implementation, the display size of the first image in the first sending animation gradually decreases with the change of the moving position during the movement of the first image, and the display shape gradually changes with the change of the moving position until the first image fades out of the screen of the first mobile phone.

[0196] In another implementation, the display size of the first image in the first sending animation gradually decreases with the change of the moving position during the movement of the first image, and the display color gradually changes with the change of the moving position until the first image fades out of the screen of the first mobile phone.

[0197] Similarly, the display form of the second image in the second sending animation changes with the change of the moving position during the movement of the second image.

[0198] For another example, with reference to (A) in FIG. 7, in the moving process of the second image in the second sending animation, the moving position of the second image is at the first position, and the display form of the second image is the first display form. Then, when the moving position of the second image moves from the first position to the second position, the display form of the second image is adjusted from the first display form to the second display form. Then, when the moving position of the second image moves from the second position to the third position, the display form of the second image is adjusted from the second display form to the third display form.

[0199] In an implementable manner, in the moving process of the second image in the second sending animation, the display size of the second image gradually decreases following the change of the moving position until the second image fades out of the screen of the second mobile phone.

[0200] In another implementable manner, in the moving process of the second image in the second sending animation, the display size of the second image gradually decreases following the change of the moving position, and the display shape gradually changes following the change of the moving position until the second image fades out of the screen of the second mobile phone.

[0201] In another implementable manner, in the moving process of the second image in the second sending animation, the display size of the second image gradually decreases following the change of the moving position, and the display color gradually changes following the change of the moving position until the second image fades out of the screen of the second mobile phone.

[0202] The display form of the image in the animation in the embodiments of the present application can include the display size, the display shape, the display transparency parameter, and the display style, etc. The display form change of the image in the moving process can be the change of at least one of the display size, the display shape, the display transparency parameter, and the display style.

[0203] It should be noted that the display form of the image in the moving process is not specifically limited in the embodiments of the present application.

[0204] In this way, in the embodiments of the present application, in the presentation process of the first sending animation, the display form of the first image can change following the change of the moving position. The richness of the display form in the interface can enable the user to more intuitively perceive the data transmission process, and improve the visual experience of the user.

[0205] In some embodiments of the present application, the first mobile phone can further acquire a target direction corresponding to the first mobile phone, the target direction is a direction in which the center of the screen of the first mobile phone points to the top end surface of the first mobile phone, and the first sending animation is used to present the moving of the first image to the screen boundary of the first mobile phone in the target direction corresponding to the first mobile phone until the first image moves out of the screen of the first mobile phone.

[0206] For example, in order to present the effect that the first image crosses between the screens of the first mobile phone and the second mobile phone, the first mobile phone can acquire a direction in which the center of the screen of the first mobile phone points to the top end face of the first mobile phone. During the display of the first sending animation, the first mobile phone can control the first image in the first sending animation to move according to the acquired direction, so that the first image moves to the screen boundary of the first mobile phone and then moves out of the screen of the first mobile phone.

[0207] In some embodiments of the present application, the second mobile phone can also acquire a target direction corresponding to the second mobile phone, the target direction being a direction in which the center of the screen of the second mobile phone points to the top end face of the second mobile phone. During the display of the second sending animation, the second sending animation is used to present the second image moving to the screen boundary of the second mobile phone and then moving out of the screen of the second mobile phone according to the target direction corresponding to the second mobile phone.

[0208] In this way, in the presentation process of the sending animation in the embodiments of the present application, the image can move out of the screen from the direction of the top end face, which can simulate the scene that the body action of a user when interacting with an object is presented to the other party. Meanwhile, the subsequent image can move into the screen from the top end face of the other device, presenting the dynamic effect that the image crosses between the two screens. Thus, a more intuitive and flexible data transmission experience can be provided for the user, and the use experience of the user is improved.

[0209] In some embodiments of the present application, during the process in which the first mobile phone sends the object data of the first transmission object, in response to a second trigger operation on the first image, the first image is not displayed and the sending of the object data of the first transmission object to the second mobile phone is cancelled.

[0210] The second trigger operation can include a left swipe operation, a right swipe operation, a click operation, a voice operation, and the like on the first image. The second trigger operation includes an operation for not displaying the first image and cancelling the sending of the object data of the first transmission object to the second mobile phone. The embodiments of the present application do not limit the specific implementation forms of the second trigger operation.

[0211] For example, referring to (A) in FIG. 8, during the process in which the first mobile phone sends the object data of the first transmission object, or during the process in which the first mobile phone displays the first sending animation, the user can perform a left swipe operation on the first image, and the transmission of the object data of the first transmission object is cancelled. Referring to (B) in FIG. 8, in response to the left swipe operation on the first image, the first mobile phone does not display the first image and cancels the sending of the object data of the first transmission object to the second mobile phone. The cancelling of the sending of the object data of the first transmission object to the second mobile phone includes cancelling the sending of the first image and the content data of the first file to the second mobile phone, or cancelling the sending of the first image.

[0212] Of course, the second user can also trigger the second image in the second mobile phone to trigger the second mobile phone to not display the second image and cancel the sending data to the first mobile phone. The cancel sending process of the second mobile phone is similar to that of the first mobile phone, and is not described here.

[0213] Thus, the device in the embodiment of the present application can interrupt the sending of data. The user can interrupt the process of sending data by the device, improve the flexibility of cross-device data transmission, and thus provide the user with a use experience.

[0214] S404, the second mobile phone receives the object data of the first transmission object, and displays a first receiving animation,

[0215] The first receiving animation is used to present the first image appearing from the screen boundary of the second mobile phone and moving into the screen of the second mobile phone.

[0216] In some embodiments of the present application, the second mobile phone can receive the object data of the first transmission object and display the first receiving animation.

[0217] Specifically, the object data of the first transmission object received by the second mobile phone can include the first image. The second mobile phone can display the first receiving animation according to the first image. The first receiving animation is used to present the first image appearing from the screen boundary of the second mobile phone and moving into the screen of the second mobile phone.

[0218] For example, referring to FIG. 9, the first mobile phone can send the first image to the second mobile phone, or send the first image and the content data of the first file to the second mobile phone. The second mobile phone can receive the first image sent by the first mobile phone, or receive the first image and the content data of the first file sent by the first mobile phone. The second mobile phone can display the first receiving animation according to the first image, and in the first receiving animation, the first image appears from the screen boundary of the second mobile phone and moves into the screen of the second mobile phone.

[0219] Thus, in the embodiment of the present application, the second mobile phone can receive the data sent by the first mobile phone and display a receiving animation. In the receiving animation, the first image can move from the top end surface of the second mobile phone into the screen, which, combined with the effect of the first image presented in the first mobile phone, can reflect the dynamic effect of the first image crossing between the two screens. Thus, a more intuitive and flexible data transmission experience can be provided to the user, and the use experience of the user is improved.

[0220] In some embodiments of the present application, the first mobile phone can receive the object data corresponding to the second transmission object sent by the second mobile phone, and display a second receiving animation, the second receiving animation being used to present the second image appearing from the screen boundary of the first mobile phone and moving into the screen of the first mobile phone.

[0221] For example, referring to FIG. 10, the second mobile phone can send the second image to the first mobile phone, or send the second image and the content data of the second file to the first mobile phone. The first mobile phone can receive the second image sent by the second mobile phone, or receive the second image and the content data of the second file sent by the second mobile phone. The first mobile phone can display a second receiving animation according to the second image, in which the second image appears from the screen boundary of the first mobile phone and moves to the screen of the first mobile phone.

[0222] In some embodiments of the present application, the object data corresponding to the second transmission object includes a second image, and the second image is used to indicate the second transmission object in the second mobile phone. After the first mobile phone displays the second receiving animation, the first mobile phone can display the second image. The first mobile phone can acquire the second transmission object according to the second image in response to a third trigger operation on the second image. The first mobile phone can also find a target application matching the second transmission object, and display the second transmission object by using the target application.

[0223] For example, continuing to take the second file as the second transmission object, the second mobile phone sends the second image to the first mobile phone, and the second image can be a file snapshot corresponding to the second file, which carries the download address information corresponding to the second file. Referring to FIG. 11, the first mobile phone can display the download address information corresponding to the second file, such as a second file snapshot, content: http: / XXXXX / . The user can click the download address information corresponding to the second file to trigger the jump to the download page corresponding to the second file. The first mobile phone can jump to the download page corresponding to the second file in response to the click operation on the download address information. After the first mobile phone completes the download of the second file, the first mobile phone can find a target application matching the second file, and display the second file by using the target application.

[0224] In this way, in the embodiments of the present application, after the local device receives the object snapshot sent by the opposite device, the transmission object corresponding to the object snapshot can be automatically acquired after the receiving is completed. At the same time, the related application can also be automatically opened to display the transmission object, without the user performing other cumbersome operations, thereby improving the work efficiency of the data transmission process and the data display process.

[0225] In some embodiments of the present application, the object data corresponding to the second transmission object includes a second image and the content data of the second transmission object. The first mobile phone can display the second image after displaying the second receiving animation. The first mobile phone can find a target application matching the content data of the second transmission object in response to a third trigger operation on the second image, and display the second transmission object by using the target application.

[0226] For example, continuing to take the second transmission object as the second file as an example, the second mobile phone sends the content data of the second image and the second file to the first mobile phone, and the second image is a file screenshot corresponding to the second file. Referring to FIG. 12, the first mobile phone can display the file screenshot corresponding to the second file and prompt information. The prompt information is used to prompt whether to open the second file. The user can click the prompt information to trigger opening of the second file. The first mobile phone can respond to the clicking operation on the prompt information, find a target application program matched with the second file, and display the second file by using the target application program.

[0227] In this way, after the local device receives the content data sent by the peer device, the related application can be automatically opened to display the transmission object corresponding to the content data after the receiving is completed, without the user performing other cumbersome operations, thereby improving the working efficiency of the data transmission process and the data display process.

[0228] In some other embodiments of the present application, in the case where the first image moves according to the target direction in the first sending animation, the moving direction of the second image in the second receiving animation is opposite to the target direction.

[0229] For example, continuing to refer to FIG. 7, in the first sending animation, the first image moves according to the target direction, that is, the first image moves towards the direction of the top end face of the first mobile phone. Continuing to refer to FIG. 10, in the second receiving animation, the moving direction of the second image is opposite to the target direction, that is, the second image moves towards the direction away from the top end face of the first mobile phone.

[0230] In this way, in the embodiments of the present application, the moving direction of the first image in the first sending animation is opposite to the moving direction of the second image in the second receiving animation, which can make the data transmission between the devices more intuitive. Therefore, the visual experience of the user is improved.

[0231] In some other embodiments of the present application, the display form of the first image in the first sending animation is different from the display form of the second image in the second receiving animation.

[0232] For example, the display size of the first image in the first sending animation is different from the display size of the second image in the second receiving animation.

[0233] For another example, the display color of the first image in the first sending animation is different from the display color of the second image in the second receiving animation.

[0234] For another example, the display transparency of the first image in the first sending animation is different from the display transparency of the second image in the second receiving animation.

[0235] In this way, the embodiments of the present application can distinguish different sending effects and receiving effects, and can make the user more intuitively perceive the data transmission process corresponding to the received data and the sent data. The richness of the effect display is improved, and the data transmission between devices is more intuitive. Thus, the visual experience of the user is improved.

[0236] In some embodiments of the present application, the speed of the second receiving effect is negatively related to the size of the data amount of the object data of the second transmission object, the speed of the first sending effect is negatively related to the size of the data amount of the object data of the first transmission object, or the speed of the first sending effect is positively related to the speed of the first trigger operation.

[0237] In some embodiments of the present application, the speed of the second receiving effect is negatively related to the size of the data amount of the object data of the second transmission object, the speed of the first sending effect is negatively related to the size of the data amount of the object data of the first transmission object, or the speed of the first sending effect is positively related to the speed of the first trigger operation.

[0238] For example, the larger the data amount corresponding to the content data of the first file, the smaller the speed of the first sending effect. Conversely, the smaller the data amount corresponding to the content data of the first file, the larger the speed of the first sending effect.

[0239] For example, the larger the data amount corresponding to the content data of the second file, the smaller the speed of the second receiving effect. Conversely, the smaller the data amount corresponding to the content data of the second file, the larger the speed of the second receiving effect.

[0240] For example, the larger the speed of the first trigger operation, the larger the speed of the first sending effect. Conversely, the smaller the speed of the first trigger operation, the smaller the speed of the first sending effect.

[0241] In some embodiments of the present application, the speed of the second receiving effect is negatively related to the size of the data amount of the object data of the second transmission object, the speed of the first sending effect is negatively related to the size of the data amount of the object data of the first transmission object, or the speed of the first sending effect is positively related to the speed of the first trigger operation.

[0242] In this way, the speed of the effect corresponding to the effect in the embodiments of the present application can change according to the size of the data amount of the transmission data, or can change according to the speed of the user trigger operation. The user can intuitively perceive the size of the data amount of the transmission data through the effect. The user can also control the presentation speed of the effect by changing the operation speed. The richness of the display content, the interest and interactivity of the user cross-device data transmission are further improved. The user can obtain a better data transmission experience.

[0243] In some embodiments of the present application, in the case that the first mobile phone is sending the object data of the first transmission object and the second mobile phone is sending the object data of the second transmission object, in response to the second trigger operation on the first image, the first image is not displayed and the sending of the object data of the first transmission object to the second mobile phone is cancelled.

[0244] That is, the first mobile phone can receive the data sent by the second mobile phone at the same time when it is sending data. In this scenario, the first mobile phone can also, in response to the second trigger operation on the first image, not display the first image and cancel the sending of data to the second mobile phone. In this way, the first mobile phone only cancels the sending of data to the second mobile phone, without affecting the reception of data sent by the second mobile phone. The first mobile phone can maintain the display of the second receiving animation.

[0245] Thus, the two devices in the embodiments of the present application can send and receive data at the same time. The user can cancel the sending of data by a device, wherein the cancellation of the sending of data by one device does not affect the sending of data by the other device, while the reception of data sent by the other device can also be maintained. The user can interrupt the process of sending data by a device, thereby improving the flexibility of cross-device data transmission, and thus providing a better user experience.

[0246] In some embodiments of the present application, in the case that the first mobile phone is sending the object data of the first transmission object and the second mobile phone is sending the object data of the second transmission object, the first mobile phone simultaneously displays the first sending animation and the second receiving animation, and the second mobile phone simultaneously displays the first receiving animation and the second sending animation.

[0247] Alternatively, the first mobile phone displays the second receiving animation after displaying the first sending animation, and the second mobile phone displays the first receiving animation after displaying the second sending animation.

[0248] Alternatively, the first mobile phone displays the first sending animation after displaying the second receiving animation, and the second mobile phone displays the second sending animation after displaying the first receiving animation.

[0249] For example, in the case that the first mobile phone is sending the object data of the first transmission object and the second mobile phone is sending the object data of the second transmission object, referring to (A) in FIG. 13, the first mobile phone can simultaneously display the first sending animation and the second receiving animation. Referring to (B) in FIG. 13, the second mobile phone can simultaneously display the first receiving animation and the second sending animation.

[0250] For example, in the case that the second mobile phone sends the object data of the second transmission object while the first mobile phone sends the object data of the first transmission object, the first mobile phone can display the first sending animation first and then display the second receiving animation, as shown in (A) of FIG. 14. The second mobile phone can display the second sending animation first and then display the first receiving animation, as shown in (B) of FIG. 14.

[0251] For example, in the case that the second mobile phone sends the object data of the second transmission object while the first mobile phone sends the object data of the first transmission object, the first mobile phone can display the second receiving animation first and then display the first sending animation, as shown in (A) of FIG. 15. The second mobile phone can display the first receiving animation first and then display the second sending animation, as shown in (B) of FIG. 15.

[0252] In the embodiments of the present application, the first mobile phone can receive the object data of the second transmission object sent by the second mobile phone while sending the object data of the first transmission object. Similarly, the second mobile phone can receive the object data of the first transmission object sent by the first mobile phone while sending the object data of the second transmission object. That is, the first mobile phone and the second mobile phone can perform both sending data and receiving data. The execution sequence of sending data and receiving data can be in sequence or simultaneously. The flexibility of data transmission is improved, and the user experience is improved.

[0253] Meanwhile, the first mobile phone and the second mobile phone can display the receiving animation and the sending animation according to the execution sequence of sending data and receiving data. In this way, the device in the embodiments of the present application not only sends data and receives data simultaneously, but also displays the receiving animation and the sending animation simultaneously while receiving data and sending data. Of course, the display sequence of the receiving animation and the sending animation can also have a sequence. The richness of the display content and the interest of the cross-device data transmission of the user are further improved. The user can obtain a better data transmission experience.

[0254] The above-mentioned data transmission in the embodiments of the present application can be applied in multiple scenarios, such as personal data exchange scenarios, product sales scenarios, and education scenarios. The embodiments of the present application do not specifically limit the application scenarios.

[0255] In the scenario of personal data exchange, two users want to quickly interact with contact information or send files when meeting. In this way, the two users can display the contact information or files to be sent on the mobile phone, and make the two mobile phones contact each other. The two mobile phones detect the collision, start Bluetooth signal scanning and automatically establish a Bluetooth communication connection. After the two mobile phones establish the Bluetooth communication connection, the data transmission process and the dynamic display process are automatically started to realize the quick interaction of the two users with the contact information or the viewing of the files.

[0256] In the product sales scenario, the salesperson wants to quickly show the customer a chart or a document. The salesperson can display the chart or document to be displayed on the mobile phone, and touch the customer's mobile phone with the mobile phone. The salesperson's mobile phone detects the collision, starts Bluetooth signal scanning and automatically establishes a Bluetooth communication connection with the customer's mobile phone. After the two mobile phones establish the Bluetooth communication connection, the salesperson's mobile phone automatically starts the data transmission process and the dynamic display process to realize the customer receiving and viewing the chart or document.

[0257] In the education scenario, the teacher wants to distribute or collect homework from the students. Similarly, the teacher and the student can collide their devices and establish a communication connection to automatically start the data transmission process and the dynamic display process.

[0258] In some schemes, multiple embodiments of the present application can be combined, and the combined scheme is implemented. Optionally, some operations in the flow of each method embodiment are optionally combined, and / or the order of some operations is optionally changed. Moreover, the execution order between the steps of each flow is only exemplary, and does not constitute a limitation on the execution order between the steps, and other execution orders between the steps can also be used. It is not intended to indicate the only execution order in which these operations can be performed.

[0259] A person of ordinary skill in the art can think of various ways to reorder the operations described in the embodiments of the present application. In addition, it should be pointed out that the process details involved in some embodiments of the present application are also applicable in a similar manner to other embodiments, or different embodiments can be combined for use.

[0260] In addition, some steps in the method embodiments can be equivalently replaced by other possible steps. Alternatively, some steps in the method embodiments can be optional and can be deleted in some use scenarios. Alternatively, other possible steps can be added to the method embodiments.

[0261] Moreover, each method embodiment can be implemented individually, or in combination.

[0262] The embodiment of the present application further provides an electronic device, which can be the mobile phone as described above, as shown in Fig. 16, and the mobile phone can include one or more processors 1610, a memory 1620 and a communication interface 1630.

[0263] The memory 1620 and the communication interface 1630 are coupled with the processor 1610. For example, the memory 1620, the communication interface 1630 and the processor 1610 can be coupled together through a bus 1640.

[0264] The communication interface 1630 is configured to perform data transmission with other devices. The memory 1620 stores computer program codes. The computer program codes include computer instructions, which, when executed by the processor 1610, cause the electronic device to perform the related method steps in the embodiment of the present application.

[0265] The processor 1610 can be a processor or a controller, for example, a central processing unit (CPU), a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. The processor can implement or execute the various exemplary logical blocks, modules and circuits described in combination with the present disclosure. The processor can also be a combination of computing functions, such as one or more microprocessor combinations, combinations of DSP and microprocessor, etc.

[0266] The bus 1640 can be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. The bus 1640 described above can be divided into an address bus, a data bus, a control bus, etc. For the sake of convenience, only one thick line is shown in Fig. 16, but it does not mean that there is only one bus or only one type of bus.

[0267] The embodiment of the present application further provides a communication system, which includes a first device and a second device; and the display screen of the first device includes a first transmission object.

[0268] The first device is configured to detect that the second device is close or collides, and establish a communication connection with the second device.

[0269] The first device is configured to send object data of the first transmission object to the second device.

[0270] The first device is configured to display a first sending animation in the process of sending the object data of the first transmission object to the second device, the first sending animation being used to present a first image corresponding to the first transmission object moving to a screen boundary of the first device until moving out of the screen of the first device.

[0271] The second device is configured to receive the object data of the first transmission object, and display a first receiving animation, the first receiving animation being used to present the first image appearing from a screen boundary of the second device and moving into the screen of the second device.

[0272] The embodiment of the present application further provides an electronic device, which comprises a memory and one or more processors; the memory is coupled with the processors; wherein the memory stores computer program codes, the computer program codes comprise computer instructions, and the computer instructions are executed by the processors to enable the electronic device to perform the related method steps in the above method embodiments.

[0273] The embodiment of the present application further provides a communication device, which comprises a memory and one or more processors; the memory is coupled with the processors; wherein the memory stores computer program codes, the computer program codes comprise computer instructions, and the computer instructions are executed by the processors to enable the communication device to perform the related method steps in the above method embodiments.

[0274] The embodiment of the present application further provides a computer readable storage medium, which stores computer program codes, and the electronic device executes the related method steps in the above method embodiments when the processors execute the computer program codes.

[0275] The embodiment of the present application further provides a computer program product, which comprises instructions, and the instructions enable the computer or the processors to execute the related method steps in the above method embodiments when the instructions are run on the computer or the processors.

[0276] The embodiment of the present application further provides a chip system, which comprises a processor and a memory; the memory is coupled with the processor, and is used to store programs or instructions; the programs or instructions are executed by the processor to enable the chip system to implement the method in any of the above method embodiments.

[0277] Optionally, the processor in the chip system can be one or more. The processor can be implemented by hardware or software. When implemented by hardware, the processor can be a logic circuit, an integrated circuit, etc. When implemented by software, the processor can be a general-purpose processor, which is used to read the software codes stored in the memory.

[0278] Optionally, the memory in the chip system can also be one or more. The memory can be integrated with the processor, or can be arranged separately from the processor, and the embodiments of the present application are not limited. Illustratively, the memory can be a non-transient processor, for example, a read-only memory (ROM), which can be integrated on the same chip as the processor, or can be arranged on different chips respectively, and the embodiments of the present application do not make specific limitations on the type of memory and the arrangement of the memory and the processor.

[0279] Illustratively, the chip system can be a field programmable gate array (FPGA), can be an application specific integrated circuit (ASIC), can also be a system on chip (SoC), can also be a central processing unit (CPU), can also be a network processor (NP), can also be a digital signal processing circuit (DSP), can also be a micro controller unit (MCU), can also be a programmable logic device (PLD) or other integrated chip.

[0280] The electronic device, computer storage medium or computer program product provided by the present application are all used to execute the corresponding method provided in the above, and therefore, the beneficial effects that can be achieved are referred to the beneficial effects of the corresponding method provided in the above, which will not be described herein again.

[0281] Through the description of the above embodiments, those skilled in the art can clearly understand that, for the convenience and brevity of description, only the division of the above functional modules is exemplified, and in actual application, the above functions can be completed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above.

[0282] In several embodiments provided in the present application, it should be understood that the disclosed apparatus and method can be implemented in other manners. For example, the division of the apparatus embodiments is merely an example, and the division of the modules or units can be different, for example, multiple modules or units can be combined or integrated into another apparatus, or some features can be ignored or not executed. In addition, the displayed or discussed mutual couplings or direct couplings or communication connections can be indirect couplings or communication connections through some interfaces, apparatuses or units, and can be in electrical, mechanical or other forms.

[0283] The units described as separate components may or may not be physically separate, and the components shown as units may be one physical unit or multiple physical units, which can be located in one place or distributed in multiple different places. Some or all of the units can be selected according to actual needs to achieve the purpose of the embodiments.

[0284] In addition, each functional unit in the various embodiments of the present application can be integrated in one processing unit, or each unit can be physically present separately, or two or more units can be integrated in one unit. The integrated unit can be realized in the form of hardware or in the form of a software functional unit.

[0285] If the integrated unit is realized in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solutions of the embodiments of the present application essentially or the parts that make contributions or the whole or part of the technical solutions can be embodied in the form of a software product, which is stored in a storage medium, including a number of instructions to make a device (which can be a single chip, a chip, etc.) or a processor execute all or part of the steps of the various embodiments of the method of the present application. The aforementioned storage medium includes: a U disk, a mobile hard disk, a read only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and various program codes that can be stored in the medium.

[0286] The above is merely a specific implementation of the present application, but the protection scope of the present application is not limited thereto, and any changes or replacements within the technical scope disclosed in the present application should be covered in the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.

Claims

1. A data transmission method, characterized in that, Applied to a communication system, the communication system including a first device and a second device, wherein the display screen of the first device includes a first transmission object, the method includes: The first device detects the approach or collision of the second device and establishes a communication connection with the second device. The first device sends the object data of the first transmission object to the second device; During the process of the first device sending object data of the first transmission object to the second device, the first device displays a first sending animation effect. The first sending animation effect is used to show the first image corresponding to the first transmission object moving to the screen boundary of the first device until it moves out of the screen of the first device. The second device receives object data of the first transmitted object and displays a first receiving animation, which is used to present the first image appearing from the screen boundary of the second device and moving into the screen of the second device.

2. The method according to claim 1, characterized in that, The second device's display screen includes a second transmission object, and the method further includes: The second device sends the object data corresponding to the second transmission object to the first device; During the process of the second device sending object data corresponding to the second transmission object to the first device, the second device displays a second sending animation effect. The second sending animation effect is used to show the second image corresponding to the second transmission object moving to the screen boundary of the second device until it moves out of the screen of the second device. The first device receives object data corresponding to the second transmitted object and displays a second receiving animation, which is used to present the second image appearing from the screen boundary of the first device and moving into the screen of the first device.

3. The method according to claim 2, characterized in that, When the first device sends the object data of the first transmission object and the second device sends the object data of the second transmission object, the first device simultaneously displays the first sending animation and the second receiving animation, and the second device simultaneously displays the first receiving animation and the second sending animation. Alternatively, the first device displays the second receiving animation after displaying the first sending animation, and the second device displays the first receiving animation after displaying the second sending animation; Alternatively, the first device displays the first sending animation after displaying the second receiving animation, and the second device displays the second sending animation after displaying the first receiving animation.

4. A data transmission method, characterized in that, Applied to a first device, wherein the display screen of the first device includes a first transmission object, the method includes: Upon detecting proximity or collision with the second device, a communication connection is established with the second device; Send the object data of the first transmission object to the second device; During the process of sending the object data of the first transmission object to the second device, a first sending animation is displayed. The first sending animation is used to show the first image corresponding to the first transmission object moving to the screen boundary of the first device until it moves out of the screen of the first device.

5. The method according to claim 4, characterized in that, The method further includes: Display the first image; The display of the first sending animation includes: In response to a first trigger operation on the first image, the first sending animation is displayed; the first trigger operation includes an operation to indicate that the first image moves to the screen boundary of the first device.

6. The method according to claim 4 or 5, characterized in that, In the first sending animation, the display form of the first image changes with the change of the moving position during the movement process.

7. The method according to claim 6, characterized in that, In the first sending animation, the display size of the first image gradually decreases as the position changes until it fades out of the screen of the first device.

8. The method according to any one of claims 5-7, characterized in that, The method further includes: The target direction is obtained, which is the direction from the center of the screen of the first device to the top surface of the first device. The first sending animation is used to present the first image moving to the screen boundary of the first device according to the target direction until it moves out of the screen of the first device.

9. The method according to claim 8, characterized in that, The second device's display screen includes a second transmission object, and the method further includes: The device receives object data corresponding to the second transmission object sent by the second device and displays a second receiving animation. The second receiving animation is used to present the second image corresponding to the second transmission object appearing from the screen boundary of the first device and moving into the screen of the first device.

10. The method according to claim 9, characterized in that, In the first sending animation, as the first image moves in the target direction, in the second receiving animation, the direction of movement of the second image is opposite to the target direction.

11. The method according to claim 9 or 10, characterized in that, The display form of the first image in the first sending animation is different from the display form of the second image in the second receiving animation.

12. The method according to any one of claims 9-11, characterized in that, In the case where the object data of the second transmitted object is received by the second device while the first device is sending the object data of the first transmitted object, the first sending animation and the second receiving animation are displayed simultaneously, or the first sending animation is displayed after the second receiving animation is displayed, or the second receiving animation is displayed after the first sending animation is displayed.

13. The method according to any one of claims 9-12, characterized in that, The motion speed of the second receiving motion effect is negatively correlated with the amount of data of the object data of the second transmitting object, and the motion speed of the first sending motion effect is negatively correlated with the amount of data of the object data of the first transmitting object, or the motion speed of the first sending motion effect is positively correlated with the operation speed of the first triggering operation.

14. The method according to any one of claims 9-13, characterized in that, The method further includes: If, during the process of the first device sending object data of the first transmitted object, the second device sends object data of the second transmitted object, in response to the second triggering operation on the first image, the first image is not displayed and the sending of object data of the first transmitted object to the second device is cancelled; The second receiving animation remains displayed.

15. The method according to any one of claims 9-14, characterized in that, The object data corresponding to the second transmission object includes the second image, which is used to indicate the second transmission object in the second device. The method further includes: After displaying the second receiving animation, the second image is displayed; In response to a third triggering operation on the second image, the second transmission object is obtained based on the second image; Find the target application that matches the second transmission object; The second transmission object is displayed using the target application.

16. The method according to any one of claims 9-14, characterized in that, The object data corresponding to the second transmission object includes the second image and the content data of the second transmission object, and the method further includes: After displaying the second receiving animation, the second image is displayed; In response to a third triggering operation on the second image, a target application matching the content data of the second transmitted object is located; The second transmission object is displayed using the target application.

17. The method according to any one of claims 4-16, characterized in that, The object data of the first transmission object includes the first image, which is used to indicate the first transmission object and to be acquired by the second device. Alternatively, the object data of the first transmission object includes the first image and the content data of the first transmission object, and the content data of the first transmission object is used by the second device to acquire the first transmission object.

18. The method according to any one of claims 9-16, characterized in that, During the process of sending object data of the first transmission object and receiving object data of the second transmission object, the device distance between the first device and the second device is less than or equal to the communication distance between the first device and the second device when establishing a communication connection.

19. The method according to any one of claims 4-18, characterized in that, The first image includes a screenshot of the first transmitted object or a snapshot of the object corresponding to the first transmitted object, and the method further includes: Generate a screenshot of the object based on the first transmission object displayed on the screen; Alternatively, extract key object data from the transmission object data of the first transmission object; Based on the key object data, generate the object snapshot.

20. The method according to any one of claims 4-19, characterized in that, The method further includes: Display target animation, which is used to indicate that the first device and the second device have been detected to be approaching or colliding.

21. The method according to any one of claims 4-20, characterized in that, The first transfer object includes at least one of a file, folder, contact, or application.

22. A data transmission method, characterized in that, Applied to a second device, the method includes: Upon detecting proximity or collision with the first device, a communication connection is established with the first device; During the process of receiving object data corresponding to the first transmission object sent by the first device, a first receiving animation is displayed. The first receiving animation is used to present a first image appearing from the screen boundary of the second device and moving into the screen of the second device. The first image is the image corresponding to the first transmission object displayed in the first device.

23. The method according to claim 22, characterized in that, The second device's display screen includes a second transmission object, and the method further includes: Send the object data corresponding to the second transmission object to the first device; During the process of sending object data corresponding to the second transmission object to the first device, a second sending animation is displayed. The second sending animation is used to show the second image corresponding to the transmission object moving to the screen boundary of the second device until it moves out of the screen of the second device.

24. An electronic device, characterized in that, The electronic device includes a memory and one or more processors; the memory is coupled to the processors; wherein the memory stores computer program code, the computer program code including computer instructions, which, when executed by the processor, cause the electronic device to perform the method as described in any one of claims 4-21, or to perform the method as described in claim 22 or 23.

25. A communication system, characterized in that, The communication system includes a first device and a second device; the display screen of the first device includes a first transmission target. The first device is configured to detect the approach or collision of the second device and establish a communication connection with the second device; The first device is configured to send object data of the first transmission object to the second device; The first device is configured to display a first transmission animation during the process of sending object data of the first transmission object to the second device. The first transmission animation is used to present a first image corresponding to the first transmission object moving to the screen boundary of the first device until it moves out of the screen of the first device. The second device is configured to receive object data of the first transmitted object and display a first receiving animation, the first receiving animation being used to present the first image appearing from the screen boundary of the second device and moving into the screen of the second device.

26. A computer-readable medium, characterized in that, The computer-readable storage medium stores instructions that, when executed on an electronic device, cause the electronic device to perform the method as described in any one of claims 4-21, or the method as described in claim 22 or 23.

27. A computer program product, characterized in that, The computer program product includes instructions that, when executed on a computer or processor, cause the computer or processor to perform the method as described in any one of claims 4-21, or to perform the method as described in claim 22 or 23.

Citation Information

Patent Citations

  • Data transmission method and equipment

    CN121194345A

  • User interfaces for multiple displays

    CN105556451A

  • Cross-equipment object dragging method and cross-equipment object dragging equipment

    CN112083867A

  • Cross-device content sharing method, electronic device and system

    CN112486363A

  • Data transmission method based on air delivery function and related device thereof

    CN113766470A