Data transmission method and equipment

By establishing a communication connection when the device is approaching or colliding, and displaying dynamic effects during the transmission process, directly contacting and transmitting data, the problems of complex data transmission and poor user experience in the prior art are solved, and an efficient and intuitive data transmission experience is achieved.

CN120076068AActive Publication Date: 2025-05-30HUAWEI TECH CO LTD

Patent Information

Application Number
CN202510151957.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2024-06-20
Filing Date
2024-09-03
Publication Date
2025-05-30
Estimated Expiration
2044-09-03

AI Technical Summary

Technical Problem

In the prior art, the cross-device data transmission process is complex, and users need to perform multiple steps, resulting in a long transmission time and poor user experience.

Method used

By detecting the proximity or collision of the second device, a communication connection is established, and the transmission and reception dynamic effects are displayed during the transmission process, and the data transmission is transmitted directly, which simplifies user operations.

Benefits of technology

It improves the efficiency and user experience of cross-device data transmission, reduces the complexity of user operations, and makes data transmission more intuitive and flexible.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120076068A_ABST
    Figure CN120076068A_ABST
Patent Text Reader

Abstract

The invention provides a data transmission method and equipment, and relates to the technical field of communication. The method can be applied to a communication system, and the communication system comprises a first device and a second device. And the first equipment detects that the second equipment approaches or collides, and establishes communication connection with the second equipment. A first device can send object data of a first transmission object to a second device, and in the process of sending the object data of the first transmission object to the second device, a first sending dynamic effect is displayed, the first sending effect is used for presenting that the first image corresponding to the first transmission object moves to the screen boundary of the first equipment until the first image moves out of the screen of the first equipment. The second device receives object data of the first transmission object and displays a first receiving dynamic effect, and the first receiving dynamic effect is used for presenting that the first image appears from a screen boundary of the second device and moves into a screen of the second device. A user does not need to carry out a series of tedious operations in the data transmission process, and the cross-device data transmission efficiency can be effectively improved.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application is a divisional application. The application number of the original application is 202411233649.8, the original application date is September 3, 2024, and the entire content of the original application is incorporated herein by reference.

[0002] This application claims the priority of a Chinese patent application with the application number 202410807641.1 and the application title "Transmission Method, Electronic Device and Related Device" filed with the National Intellectual Property Administration on June 20, 2024, the entire content of which is incorporated herein by reference. Technical Field

[0003] This application relates to the field of communication technologies, and in particular, to a data transmission method and device. Background Art

[0004] With the development of communication technologies and the improvement of people's living standards, people usually own terminal devices, such as portable terminal devices like smartphones, smartwatches, and tablet computers. These terminal devices provide various services for people, such as file storage and file preview. Cross-device data transmission has become a relatively common operation in people's daily lives.

[0005] Generally, in the scenario of data transmission, such as when a first user (the user sending the file) shares a file with a second user (the user receiving the file), the first user can send the file data from a first device to a second device used by the second user. Specifically, the first user needs to find the file on the terminal device and use a certain application to select the second user for sending, so that the second user can download this file through the application. Alternatively, the first user uploads the file to a network disk, then shares the link corresponding to the file within a certain application 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.

[0006] However, in the above data transmission process, both the first user and the second user need to perform a series of complex operations, and the entire data transmission process takes a relatively long time, reducing the user experience. Summary of the Invention

[0007] This application provides a data transmission method and device. Different devices can establish a communication connection after approaching or colliding, and directly trigger the data transmission process, without the need for users to perform a series of cumbersome operations during the data transmission process, which can effectively improve the efficiency of cross-device data transmission.

[0008] To achieve the above object, this application adopts the following technical solutions:

[0009] In a first aspect, the present application provides a data transmission method applied to a communication system. The communication system includes a first device and a second device. A first transmission object is included in the display screen of the first device. The method includes:

[0010] When the first device detects that the second device approaches or collides, a communication connection is established with the second device. The first device may send the object data of the first transmission object to the second device, and during the process of sending the object data of the first transmission object to the second device, a first sending effect is displayed. The first sending effect is used to present that the first image corresponding to the first transmission object moves to the screen boundary of the first device and then 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 effect. The first receiving effect is used to present that the first image appears from the screen boundary of the second device and moves into the screen of the second device.

[0011] On the one hand, by displaying the above effects on the two devices, it is possible to present that the first image of the first transmission object crosses between the two screens, and at the same time, it can also reflect the dynamic transmission effect of the object data of the first transmission object during the transmission process. Thus, a more intuitive and flexible data transmission experience can be provided to the user, improving the user experience.

[0012] On the other hand, in the embodiment of the present application, after the first device detects that the second device approaches or collides and establishes a communication connection with the second device, it directly triggers the sending of the object data of the first transmission object to the second device. The user only needs to control the first transmission object to be displayed in the display screen of the first device, without the user performing a series of cumbersome operations during the data transmission process, which can effectively improve the efficiency of cross-device data transmission, thereby improving the user experience.

[0013] In an implementable manner, a second transmission object is included in the display screen of the second device. The method further includes:

[0014] The second device sends the object data corresponding to the second transmission object to the first device, and during the process of sending the object data corresponding to the second transmission object to the first device, a second sending effect is displayed. The second sending effect is used to present that the second image corresponding to the second transmission object moves to the screen boundary of the second device and then moves out of the screen of the second device.

[0015] The first device receives the object data corresponding to the second transmission object and displays a second receiving effect. The second receiving effect is used to present that the second image appears from the screen boundary of the first device and moves into the screen of the first device.

[0016] Thus, in the embodiment of the present application, the second device can also transmit data to the first device. By displaying the above-mentioned receiving animation and sending animation, the two devices can present the second image of the second transmission object passing through between the two screens, and at the same time, can also reflect the dynamic transmission effect of the object data of the second transmission object during the transmission process. There is no need for the user to perform a series of cumbersome operations during the data transmission process, which can effectively improve the efficiency of cross-device data transmission.

[0017] In an implementable manner, when the second device transmits the object data of the second transmission object during the process of the first device transmitting 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;

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

[0020] On the one hand, in the embodiment of the present application, the first device can receive the object data of the second transmission object sent by the second device during the process of sending the object data of the first transmission object. Similarly, the second device can also receive the object data of the first transmission object sent by the first device during the process of sending the object data of the second transmission object. That is to say, the first device and the second device can perform the data sending process or the data receiving process. The execution timing of sending data and receiving data can have a sequential order or can be performed simultaneously. This improves the flexibility of data transmission and enhances the user experience.

[0021] On the other hand, in the embodiment of the present application, the receiving animation and the sending animation can be displayed during the process of receiving data and sending data. The sending animation and the receiving animation can have the same display timing or different display timings. The device can display the receiving animation and the sending animation simultaneously, or display the receiving animation first and then the sending animation, or display the sending animation first and then the receiving animation. This improves the richness of the displayed content and the interest of the user's cross-device data transmission. The user can obtain a better data transmission experience.

[0022] In a second aspect, the embodiment of the present application provides a data transmission method, which is applied to a first device. The display screen of the first device includes a first transmission object. The method includes:

[0023] The first device can detect proximity or collision with the second device, establish a communication connection with the second device, and send the object data of the first transmission object to the second device. The first device can also display a first sending animation effect during the process of sending the object data of the first transmission object to the second device. The first sending animation effect is used to present 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.

[0024] Thus, in the embodiment of the present application, the first device detects proximity or collision with the second device, establishes a communication connection with the second device, and sends the object data of the first transmission object to the second device. At the same time, the first device can also display a sending animation effect. During the presentation of the sending animation effect, the image can move out of the screen in the direction of the top end face, which can simulate the scenario of a user's limb movement to hand something to the other party when interacting with an item in life. Therefore, it can provide users with a more intuitive and flexible data transmission experience and improve the user experience.

[0025] In an implementable manner, the first device can also display the first image. The first device can display the first sending animation effect in response to a first trigger operation on the first image. Among them, the first trigger operation includes an operation for instructing the first image to move to the screen boundary of the first device.

[0026] Thus, the user can operate on the first image to trigger the data sending process. It enhances the interactivity and operability between the user and the device, making the data transmission between devices more intuitive.

[0027] In an implementable manner, the display form of the first image in the first sending animation effect changes following the change of the moving position during the movement of the first image.

[0028] Specifically, the display size of the first image in the first sending animation effect gradually becomes smaller following the change of the moving position during the movement of the first image until it fades out of the screen of the first device.

[0029] Thus, during the presentation of the first sending animation effect in the embodiment of the present application, the display form of the first image can change following the change of the moving position. It improves the richness of the display form in the interface, enables users to more intuitively perceive the data transmission process, and enhances the user's visual experience.

[0030] In an implementable manner, the first device can obtain a target direction, where the target direction is the direction from the center of the screen of the first device to the top end face of the first device, and the first sending animation effect is used to present the first image moving to the screen boundary of the first device along the target direction until it moves out of the screen of the first device.

[0031] Thus, during the presentation of the sending animation effect in the embodiments of the present application, the image can move out of the screen from the direction of the top end face, capable of simulating the scenario where the user's limb movement hands something to the other party when interacting with an item in life. Therefore, it can provide users with a more intuitive and flexible data transmission experience and improve the user experience.

[0032] In an implementable manner, the display screen of the second device includes a second transmission object, and the method further includes: The first device can receive the object data corresponding to the second transmission object sent by the second device and display a second receiving animation effect, where the second receiving animation effect is used to present that the second image corresponding to the second transmission object appears from the screen boundary of the first device and moves into the screen of the first device.

[0033] Thus, in the embodiments of the present application, the first device can receive the data sent by the second device and display a receiving animation effect. The second image in the receiving animation effect can move into the screen from the top end face of the first device. Therefore, it can provide users with a more intuitive and flexible data transmission experience and improve the user experience.

[0034] In an implementable manner, during the process of the first image moving in the target direction in the first sending animation effect, the moving direction of the second image in the second receiving animation effect is opposite to the target direction.

[0035] Thus, in the embodiments of the present application, the moving direction of the first image in the first sending animation effect is opposite to the moving direction of the second image in the second receiving animation effect, enabling the data transmission between devices to be more intuitive. Therefore, the visual experience of users is enhanced.

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

[0037] Thus, the embodiments of the present application can distinguish different sending animation effects and receiving animation effects, enabling users to more intuitively feel the data transmission processes corresponding to receiving data and sending data. It improves the richness of the animation effect display and makes the data transmission between devices more intuitive. Therefore, the visual experience of users is enhanced.

[0038] In an implementable manner, when receiving the object data of the second transmission object sent by the second device during the process of the first device sending the object data of the first transmission object, the first sending animation effect and the second receiving animation effect are displayed simultaneously, or the first sending animation effect is displayed after the second receiving animation effect is displayed, or the second receiving animation effect is displayed after the first sending animation effect is displayed.

[0039] In this way, when the first device is sending the object data of the first transmission object, it can receive the object data of the second transmission object sent by the second device. That is to say, the first device can execute the process of sending data and can also execute the process of receiving data. Among them, the execution timings of sending data and receiving data can be in a sequential order or can be simultaneous. This improves the flexibility of data transmission and enhances the user experience.

[0040] At the same time, the first device can display the above-mentioned receiving animation effect and sending animation effect according to the execution timings of sending data and receiving data. In this way, the device in the embodiment of the present application can not only send data and receive data simultaneously, but can also display the receiving animation effect and sending animation effect simultaneously during the process of receiving data and sending data. Of course, the display order of the receiving animation effect and the sending animation effect can also be in a sequential order. This further improves the richness of the displayed content and the interestingness of cross-device data transmission for users. Users can obtain a better data transmission experience.

[0041] In one implementable manner, the animation speed of the second receiving animation effect is negatively correlated with the data volume size of the object data of the second transmission object, the animation speed of the first sending animation effect is negatively correlated with the data volume size of the object data of the first transmission object, or the animation speed of the first sending animation effect is positively correlated with the operation speed of the first trigger operation.

[0042] In this way, the animation speed corresponding to the animation effect in the embodiment of the present application can change according to the data volume size of the transmitted data, or can change according to the operation speed of the user's trigger operation. Users can intuitively feel the data volume size of the transmitted data through the animation effect. Users can also control the presentation speed of the animation effect by changing the operation speed. This further improves the richness of the displayed content, the interestingness and interactivity of cross-device data transmission for users. Users can obtain a better data transmission experience.

[0043] In one implementable manner, when the first device receives the object data of the second transmission object sent by the second device during the process of sending the object data of the first 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 device is cancelled. The second device can keep displaying the second receiving animation effect.

[0044] In this way, the device in the embodiment of the present application can interrupt the sending of data. Users can interrupt the process of the device sending data. At the same time, when the device is receiving data, it can also include displaying the corresponding receiving animation effect. This enhances the flexibility of cross-device data transmission. Thus, the user experience is improved.

[0045] In one implementable manner, the object data corresponding to the second transfer object includes a second image, and the second image is used to indicate the second transfer object in the second device. The method further includes: after the first device displays the second receiving animation effect, the first device may display the second image, and in response to a third trigger operation on the second image, obtain the second transfer object according to the second image. The first device may further search for a target application that matches the second transfer object, and display the second transfer object by using the target application.

[0046] In this way, in the embodiment of the present application, after the local device receives the second image such as an object snapshot sent by the peer device, the transfer object corresponding to the object snapshot can be automatically obtained after the reception is completed. At the same time, the relevant application can be automatically opened to display the transfer object, without the user performing other cumbersome operations, improving the working efficiency of the data transfer process and the data display process.

[0047] In one implementable manner, the object data corresponding to the second transfer object includes a second image and the content data of the second transfer object. The method further includes: the first device may display the second image after displaying the second receiving animation effect. The second device may, in response to a third trigger operation on the second image, search for a target application that matches the content data of the second transfer object, and display the second transfer object by using the target application.

[0048] In this way, in the embodiment of the present application, after the local device receives the content data sent by the peer device, the relevant application can be automatically opened to display the transfer object corresponding to the content data after the reception is completed, without the user performing other cumbersome operations, improving the working efficiency of the data transfer process and the data display process.

[0049] In one implementable manner, the object data of the first transfer object includes a first image, and the first image is used to indicate the first transfer object and is used for the second device to obtain the first transfer object.

[0050] Alternatively, the object data of the first transfer object includes a first image and the content data of the first transfer object, and the content data of the first transfer object is used for the second device to obtain the first transfer object. Thus, the second device can obtain the first transfer object according to the first image in the object data, or directly obtain the first transfer object according to the content data in the object data. Without the user performing a series of cumbersome operations, the first transfer object can be obtained. The user experience is improved.

[0051] In one implementable manner, during the process of the first device sending the object data of the first transfer object and receiving the object data of the second transfer object, the device 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.

[0052] Thus, in the process of data transmission in the embodiments of the present application, it is not necessary for the user to keep the two devices close or in contact. As long as the device distance between the two devices is kept within the communication distance of the communication connection, the user can move the devices at will, and the device postures of the two devices are not restricted. Thereby, the flexibility of cross-device data transmission is improved, and the user experience is enhanced.

[0053] In an implementable manner, 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: The first device may generate an 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 an object snapshot according to the key object data.

[0054] In an implementable manner, the method further includes: The first device may display a target dynamic effect, and the target dynamic effect is used to present that the first device is detected to be close to or collided with the second device. Thereby, it can more intuitively prompt the user that the device is in the process of colliding with or approaching other devices.

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

[0056] In a third aspect, an embodiment of the present application provides a data transmission method, which is applied to a second device. The method includes:

[0057] When the second device detects that it is close to or collided with the first device, it establishes a communication connection with the first device, and displays a first reception dynamic effect during the process of receiving the object data corresponding to the first transmission object sent by the first device. The first reception dynamic effect is used to present that the first image appears from the screen boundary of the second device and moves into the screen of the second device, and the first image is an image corresponding to the first transmission object displayed in the first device.

[0058] Thus, in the embodiments of the present application, the second device detects that it is close to or collided 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 may also display a reception dynamic effect, and the first image in the reception dynamic effect may move into the screen from the top end face of the second device. Thereby, it can provide a more intuitive and flexible data transmission experience for the user and improve the user experience.

[0059] In one implementable manner, the display screen of the second device includes a second transfer object, and the method further includes: the second device may send object data corresponding to the second transfer object to the first device. The second device may further display a second sending animation during the process of sending the object data corresponding to the second transfer object to the first device, and the second sending animation is used to present the second image corresponding to the transfer object moving to the screen boundary of the second device until it moves out of the screen of the second device.

[0060] In this way, in the embodiment of the present application, the second device may send the object data of the second transfer object to the first device. At the same time, the second device may further display a sending animation. During the presentation process of the sending animation, the image may move out of the screen in the direction of the top end face, which can simulate the scenario where a user hands an object to the other party during a real-life user interaction. Therefore, it can provide a more intuitive and flexible data transmission experience for the user and improve the user experience.

[0061] 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; wherein, computer program code is stored in the memory, and the computer program code includes computer instructions. When the computer instructions are executed by the processor, the electronic device is caused to execute the method described in the second aspect above, or execute the method described in the third aspect above.

[0062] In a fifth aspect, an embodiment of the present application provides a communication system, which includes a first device and a second device; a first transfer object is included in the display screen of the first device.

[0063] The first device is configured to detect the approach or collision of the second device and establish a communication connection with the second device.

[0064] The first device is configured to send the object data of the first transfer object to the second device.

[0065] The first device is configured to display a first sending animation during the process of sending the object data of the first transfer object to the second device, and the first sending animation is used to present the first image corresponding to the first transfer object moving to the screen boundary of the first device until it moves out of the screen of the first device. The object data of the first transfer object, and display 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 into the screen of the second device.

[0066] In a sixth aspect, an embodiment of the present application provides a computer-readable medium, and instructions are stored in the computer-readable storage medium. When the instructions run on an electronic device, the electronic device is caused to execute the method described in the second aspect above, or execute the method described in the third aspect above.

[0067] In a seventh aspect, an embodiment of the present application provides a computer program product. The computer program product contains instructions that, when executed on a computer or a processor, cause the computer or the processor to execute the method described in the second aspect above, or execute the method described in the third aspect above. BRIEF DESCRIPTION OF THE DRAWINGS

[0068] Figure 1 It is a schematic structural diagram of a transmission system provided by an embodiment of the present application;

[0069] Figure 2 It is a schematic hardware structure diagram of a mobile phone provided by an embodiment of the present application;

[0070] Figure 3 It is a schematic software structure diagram of a mobile phone provided by an embodiment of the present application;

[0071] Figure 4 It is a schematic flowchart of a data transmission method provided by an embodiment of the present application;

[0072] Figure 5 It is a schematic interface diagram of a target dynamic effect provided by an embodiment of the present application;

[0073] Figure 6 It is a schematic interface diagram of a first image provided by an embodiment of the present application;

[0074] Figure 7 It is a schematic interface diagram of a first position and a second position provided by an embodiment of the present application;

[0075] Figure 8 It is a schematic interface diagram of canceling sending provided by an embodiment of the present application;

[0076] Figure 9 It is a schematic interface diagram of a first sending dynamic effect and a first receiving dynamic effect provided by an embodiment of the present application;

[0077] Figure 10 It is a schematic interface diagram of a second receiving dynamic effect provided by an embodiment of the present application;

[0078] Figure 11 It is a schematic interface diagram of displaying a second file provided by an embodiment of the present application Figure 1 ;

[0079] Figure 12 It is a schematic interface diagram of displaying a second file provided by an embodiment of the present application Figure 2 ;

[0080] Figure 13 It is a schematic interface diagram of a dynamic effect corresponding to a preset display time sequence provided by an embodiment of the present application Figure 1 ;

[0081] Figure 14 An interface schematic diagram of an animation corresponding to a preset display timing provided by an embodiment of the present application Figure 2 ;

[0082] Figure 15 An interface schematic diagram of an animation corresponding to a preset display timing provided by an embodiment of the present application Figure 3 ;

[0083] Figure 16 A structural schematic diagram of a mobile phone provided by an embodiment of the present application. Specific embodiments

[0084] Next, the technical solutions in the embodiments of the present application will be described in conjunction with the accompanying drawings in the embodiments of the present application. Among them, in the description of the present application, unless otherwise specified, " / " means that the objects associated before and after are in an "or" relationship. For example, A / B may represent A or B; "and / or" in the present application is only a description of the association relationship of the associated objects, indicating that three relationships may exist. For example, A and / or B may represent: A exists alone, A and B exist simultaneously, and B exists alone. These three situations, where A and B may be singular or plural. And, in the description of the present application, unless otherwise specified, "a plurality" means two or more than two. "At least one (item)" or similar expressions below refer to any combination of these items, including any combination of single item (item) or plural items (items). For example, at least one (item) of a, b, or c may represent: a, b, c, a-b, a-c, b-c, or a-b-c, where a, b, c may 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, words such as "first" and "second" are used to distinguish the same items or similar items with basically the same functions and roles.

[0085] Those skilled in the art can understand that words such as "first" and "second" do not limit the quantity and execution order, and "first", "second", etc. do not necessarily limit being different. At the same time, in some embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design solution described as "exemplary" or "for example" in the embodiments of the present application should not be construed as being more preferred or having more advantages than other embodiments or design solutions. Exactly speaking, using words such as "exemplary" or "for example" aims to present relevant concepts in a specific way for easy understanding.

[0086] In addition, the device architecture and business scenarios described in the embodiments of the present application are for more clearly illustrating the technical solutions of the embodiments of the present application, and do not constitute a limitation to the technical solutions provided by the embodiments of the present application. Those of ordinary skill in the art will know that with the evolution of the device architecture and the emergence of new business scenarios, the technical solutions provided by the embodiments of the present application are equally applicable to similar technical problems.

[0087] With the development of communication technologies and the improvement of people's living standards, cross-device data transmission has become a relatively common operation in people's daily lives. In the related art, in the scenario of data transmission, a series of complex operations need to be performed by the sender to achieve data transmission. For example, the first user needs to find a file on the terminal and use a certain application to select the second user for sending, and the second user needs to open the application to download this file to achieve the data transmission process. It can be seen that the entire data transmission process takes a relatively long time and the user experience is poor.

[0088] 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. The communication system includes a first device and a second device. The display screen of the first device includes a first transmission object. The method includes: when the first device detects that the second device approaches or collides, establishing a communication connection with the second device. The first device may send the object data of the first transmission object to the second device. The first device may also display a first sending animation effect during the process of sending the object data of the first transmission object to the second device. The first sending animation effect is used to present that the first image corresponding to the first transmission object moves to the screen boundary of the first device and then 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 effect. The first receiving animation effect is used to present that the first image appears from the screen boundary of the second device and moves into the screen of the second device.

[0089] In this way, after the first device and the second device establish a communication connection in the embodiments of the present application, the first device may send the object data of the first transmission object to the second device and display a first sending animation effect. The second device may receive the object data of the first transmission object and display a first receiving animation effect. Among them, the first sending animation effect can present that the first image moves to the screen boundary of the first device and then moves out of the screen of the first device, and the first receiving animation effect is used to present that the first image appears from the screen boundary of the second device and moves into the screen of the second device.

[0090] On the one hand, by displaying the above animation effects on the two devices, it can present that the first image of the first transmission object crosses between the two screens, and at the same time, it can also reflect the dynamic transmission effect of the object data of the first transmission object during the transmission process. Thus, it can provide a more intuitive and flexible data transmission experience for users and improve the user experience.

[0091] On the other hand, after the first device in the embodiment of the present application detects that the second device approaches or collides and establishes a communication connection with the second device, it directly triggers the sending of the object data of the first transfer object to the second device. The user only needs to control the display of the first transfer object on the display screen of the first device, without the user performing a series of cumbersome operations during the data transfer process, which can effectively improve the efficiency of cross-device data transfer and thus improve the user experience.

[0092] The data transfer method provided by the present application can be applied to a transfer system. Refer to Figure 1 , a transfer system provided by an embodiment of the present application may include a first device (such as the first mobile phone 101 used by the first user) and a second device (such as the second mobile phone 102 used by the second user).

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

[0094] Among them, the wireless communication technologies for establishing a wireless communication connection include but are not limited to at least one of the following: wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT) (for example, traditional Bluetooth or Bluetooth low energy (BLE)), near field communication (NFC), Zigbee, frequency modulation (FM), and infrared (IR), etc.

[0095] Among them, the first device can be used as a file sending end device, or can also be understood as a sharing device. For example, it includes electronic devices such as mobile phones, tablet computers, laptop computers, netbooks, personal digital assistants (PDAs), wearable devices, and artificial intelligence (AI) devices.

[0096] The operating systems installed on the first device include but are not limited to or other operating systems. Of course, the first device may not be installed with an operating system. The present application does not limit the specific type of the first device, whether it has an operating system installed, or the type of the operating system when an operating system is installed.

[0097] The second device can be used as a file receiving end device, or can also be understood as a shared device. For example, it includes electronic devices such as mobile phones, tablet computers, laptop computers, ultra-mobile personal computers (UMPCs), netbooks, PDAs, wearable devices, artificial intelligence (AI) devices, and in-vehicle devices.

[0098] The operating systems installed on the second device include but are not limited to or other operating systems. This application does not limit the specific type of the second device or the operating system installed thereon.

[0099] Exemplarily, in a scenario where a first device and a second device are included in a transmission system, a first transmission object is included in the display screen of the first device. When the first device detects that the second device approaches or collides, a communication connection is established with the second device. The first device can send the object data of the first transmission object to the second device. The first device can also display a first sending animation effect during the process of sending the object data of the first transmission object to the second device. The first sending animation effect is used to present 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 the object data of the first transmission object and displays a first receiving animation effect. The first receiving animation effect 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.

[0100] Of course, the transmission system provided in the embodiments of this application may further include other electronic devices in addition to the first device and the second device. The transmission system provided in the embodiments of this application includes but is not limited to interactions between two devices, and may also be information interactions between one device and multiple devices. Those skilled in the art can determine the type and quantity of electronic devices according to actual needs, and these designs do not exceed the protection scope of the embodiments of this application.

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

[0102] Such as Figure 2As shown, the mobile phone 100 may 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 headphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc.

[0103] Among them, the above-mentioned sensor module 180 may include sensors such as 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.

[0104] It can be understood that the structure illustrated 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 may include more or fewer components than those illustrated, or combine certain components, or split certain components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0105] The processor 110 may include one or more processing units. For example, the processor 110 may 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. Among them, different processing units may be independent devices or integrated in one or more processors.

[0106] Among them, the controller may be the nerve center and command center of the mobile phone 100. The controller may generate operation control signals according to the instruction operation code and timing signals to complete the control of fetching instructions and executing instructions.

[0107] A memory may also be provided in the processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. This memory may hold the instructions or data that the processor 110 has just used or recycled. If the processor 110 needs to use the instruction or data again, it can directly call it from the memory. This avoids repeated accesses, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.

[0108] In some embodiments, the processor 110 may include one or more interfaces. The interfaces may 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.

[0109] The wireless communication function of the mobile phone 100 may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modulation and demodulation processor, and the baseband processor, etc.

[0110] The antenna 1 and the antenna 2 are used for transmitting and receiving 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 the diversity antenna of the wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.

[0111] Among them, the mobile communication module 150 may support 2G / 3G / 4G / 5G / future communication networks or more advanced communication standards, which are not limited in this application.

[0112] The wireless communication module 160 may provide solutions for wireless communications applied to the mobile phone 100, including wireless local area networks (WLANs) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite systems (GNSSs), frequency modulation (FM), near field communication (NFC), infrared technology (IR), etc. The wireless communication module 160 may be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, performs frequency modulation and filtering processing on the electromagnetic wave signals, and sends the processed signals to the processor 110. The wireless communication module 160 may also receive the signals to be sent from the processor 110, perform frequency modulation and amplification on them, and convert them into electromagnetic waves through the antenna 2 for radiation.

[0113] The mobile phone 100 realizes the display function through the GPU, the display screen 194, and the 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 execute mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs, which execute program instructions to generate or change the display information.

[0114] The display screen 194 is used to display the user interface, etc. The display screen 194 includes a display panel. The display panel may 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 mobile phone 100 may include 1 or N display screens 194, where N is a positive integer greater than 1.

[0115] The mobile phone 100 can realize the shooting function through the ISP, the camera 193, the video codec, the GPU, the display screen 194, and the application processor, etc.

[0116] ISP is used to process the data fed back by camera 193. For example, when taking a photo, the shutter is opened, and 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 ISP for processing and converts it into an image visible to the naked eye. ISP can also perform algorithm optimization on the noise, brightness, and skin color of the image. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, ISP can be set in camera 193.

[0117] The mobile phone 100 can implement audio functions such as music playing and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the earphone interface 170D, and the application processor.

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

[0119] When the first mobile phone sends 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, which is used to present that the first image corresponding to the first file moves to the boundary of the display screen of the first mobile phone until it moves 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, which is used to present that the first image appears from the boundary of the display screen of the second mobile phone and moves to the display screen of the second mobile phone.

[0120] The software system of the mobile phone 100 may adopt a layered architecture, an event-driven architecture, a micro-kernel architecture, a micro-service architecture, or a cloud architecture. The embodiment of the present application takes the Android system of the layered architecture as an example to exemplify the software structure of the mobile phone 100.

[0121] Figure 3 It is a schematic diagram of the software structure of the mobile phone of the embodiment of the present application.

[0122] The layered architecture divides the software into several layers, each with clear roles 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.

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

[0124] As Figure 3 shown, the application package may include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message, etc.

[0125] The application framework layer provides application programming interfaces (APIs) and programming frameworks for the applications in the application layer. The application framework layer includes some predefined functions.

[0126] As Figure 3 shown, the application framework layer may include window manager, content provider, view system, telephone manager, resource manager, notification manager, etc.

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

[0128] The content provider is used to store and obtain data, and make this data accessible to applications. The data may include video, image, audio, dialed and received calls, browsing history and bookmarks, phone book, etc.

[0129] 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. The display interface can be composed of one or more views. For example, the display interface including the short message notification icon may include a view for displaying text and a view for displaying pictures.

[0130] The telephone manager is used to provide the communication function of the mobile phone 100. For example, the management of call status (including connection, disconnection, etc.).

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

[0132] The notification manager enables applications to display notification information in the status bar, can be used to convey notification-type messages, can automatically disappear after a short stay without user interaction. For example, the notification manager is used to inform that the download is completed, message reminder, etc. The notification manager can also be a notification that appears in the system top status bar in the form of a chart or scroll bar text, such as the notification of a background running application, and can also be a notification that appears on the screen in the form of a dialogue window. For example, prompt text information in the status bar, emit a prompt sound, the electronic device vibrates, the indicator light flashes, etc.

[0133] Android Runtime includes core libraries and virtual machines. Android Runtime is responsible for the scheduling and management of the Android system.

[0134] The core library consists of two parts: one is the functional functions that need to be called by the Java language, and the other is the core library of Android.

[0135] 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 as binary files. The virtual machine is used to perform functions such as management of object life cycles, stack management, thread management, security and exception management, and garbage collection.

[0136] The system library can include multiple functional modules. For example: a detection module, a display module, a sending module, etc.

[0137] In some examples, the display module is used to display the first transmission object. The detection module is used to detect whether it is close to or colliding with the first device. The sending module is used to send the object data of the first transmission object to the second device. The display module is also used to display the above-mentioned first sending animation effect.

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

[0139] The following combines the above Figure 1 In the shown transmission system, taking the first device as the first mobile phone, the second device as the second mobile phone, the user using the first mobile phone as the first user, and the user using the second mobile phone as the second user as an example, the data transmission method provided by the embodiments of the present application will be specifically described.

[0140] Figure 4 For the flow schematic diagram of a data transmission method shown in the embodiments of the present application, as Figure 4 shown, the method may include the following S401 - S404.

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

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

[0143] Exemplarily, the first user can bring the first mobile phone 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, during the process of the first mobile phone approaching or colliding with the second mobile phone, when the acceleration sensor in the first mobile phone detects the approach of the second mobile phone, it can trigger the Bluetooth module in the first mobile phone to establish a Bluetooth communication connection with the Bluetooth module in the second mobile phone. For another example, during the process of the first mobile phone approaching or colliding with the second mobile phone, when the acceleration sensor in the first mobile phone detects the collision of the second mobile phone, it can trigger the NFC module in the first mobile phone to establish an NFC communication connection with the NFC module in the second mobile phone.

[0144] That is to say, the embodiments of the present application can utilize the sensor module (such as the acceleration sensor) and the communication module (such as the Bluetooth module) to achieve precise device perception and interaction control. When two devices come into collision contact or approach, the Bluetooth signal scanning can be activated to mutually perceive and initiate the subsequent data transmission process.

[0145] In some other embodiments of the present application, the first mobile phone can also detect the approach or collision with other devices through other hardware, and trigger the subsequent 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 subsequent process of establishing a communication connection.

[0146] 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. For example, a WLAN communication connection, a Wi-Fi communication connection, a Bluetooth communication connection, and an NFC communication connection, etc.

[0147] In some embodiments of the present application, during the process that the first mobile phone detects the approach or collision of the second mobile phone and establishes a communication connection with the second mobile phone, a target dynamic effect can be displayed, and the target dynamic effect is used to present that it has been detected that the first mobile phone and the second mobile phone are approaching or colliding.

[0148] Exemplarily, referring to Figure 5 in (A), during the process that the first user and the second user bring the first mobile phone and the second mobile phone close to or collide with each other, the first mobile phone and the second mobile phone can display a target dynamic effect, and the target dynamic effect is used to present that it has been detected that the first mobile phone and the second mobile phone are approaching or colliding. The target dynamic effect can present a dynamic effect simulating the flow of water surface ripples. Thus, it can more intuitively prompt the user that the mobile phone is being used to collide with or approach other devices.

[0149] In some embodiments of the present application, before the first mobile phone establishes a communication connection with the second mobile phone, the display screen of the first mobile phone may include a first transfer object. The display screen of the second mobile phone may include a second transfer object. Among them, the transfer object may include at least one of a file, a folder, a contact, or an application.

[0150] Exemplarily, the transfer object may include at least one of a document, an audio, a video, an audio-video, a web page, and other files, folders, applications, contact information in a contact application, and page information in a social application.

[0151] See Figure 5 In (B) of, for example, the first transfer object may be a first file, and the second transfer object may be a second file. In the embodiments of the present application, the transfer content and transfer type of the transfer object are not specifically limited.

[0152] That is to say, the first user needs to open the first transfer object, that is, the first transfer object is in an open or playing state. When there are two or more transfer objects displayed on the display screen of the first mobile phone, the first transfer object may be all the transfer objects displayed on the screen of the first mobile phone, or the transfer object running in the foreground of the first mobile phone, or the transfer object located according to the current cursor position, which is not specifically limited here. The second transfer object is the same as the first transfer object and will not be elaborated here.

[0153] 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 may generate and display a first image corresponding to the first transfer object.

[0154] Among them, the first image may include an object screenshot of the first transfer object or an object snapshot corresponding to the first transfer object.

[0155] In a feasible manner, after the first mobile phone establishes a communication connection with the second mobile phone, it may generate an object screenshot according to the first transfer object displayed on the display screen.

[0156] Exemplarily, see Figure 5 In (C) of, after the first mobile phone establishes a Bluetooth communication connection with the second mobile phone, it may perform a screenshot operation on the first file displayed on the display screen to generate a file screenshot of the first file.

[0157] In another feasible manner, the first mobile phone may extract key object data from the transfer object data of the first transfer object. The first mobile phone may also generate an object snapshot according to the key object data.

[0158] Exemplarily, see Figure 5In (D) above, after the first mobile phone establishes a Bluetooth communication connection with the second mobile phone, it can extract the content of the first file displayed on the display screen and extract the key content data. The mobile phone can also generate a file snapshot of the first file based on the extracted key content data. For example, the key content data is the 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 / .

[0159] 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. Among them, the second image can include an object screenshot of the second transmission object or an object snapshot corresponding to the second transmission object.

[0160] Exemplarily, continue to refer to Figure 5 In (C) above, after the second mobile phone establishes a Bluetooth communication connection with the first mobile phone, it can take a screenshot of the second file displayed on the display screen to generate a file screenshot of the second file.

[0161] Again exemplarily, continue to refer to Figure 5 In (D) above, after the second mobile phone establishes a Bluetooth communication connection with the first mobile phone, it can extract the content of the second file displayed on the display screen and extract the key content data. The mobile phone can also generate a file snapshot of the second file based on the extracted key content data. For example, the key content data is the download address information corresponding to the second file. The file snapshot of the second file can include the download address information, such as the second file snapshot, content: http: / XXXXX / .

[0162] Again exemplarily, 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 website information corresponding to the file.

[0163] In some embodiments of the present application, when 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 the service page corresponding to the specific service.

[0164] Exemplarily, when the transmission object is a file such as a web page or an image, the transmission object may possibly include a preset object associated with a specific service. Among them, the preset object can include commodities, smart home devices, application programs, etc. Commodities can be associated with commodity applications, and smart home devices can be associated with smart home applications. In this way, the extracted key content data can include jump path information, and the jump path information is used to jump to the service page corresponding to the specific service.

[0165] 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 is used for the second device to obtain the first transmission object.

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

[0167] Exemplarily, during the process of the first mobile phone displaying the first sending animation effect, it can send the content data of the first image and the first file to the second mobile phone, or send the first image. When the first image is an object snapshot corresponding to the first transmission object, the first image can be used for the subsequent second mobile phone to obtain the first file. When the first image is an object screenshot corresponding to the first transmission object, the subsequent second mobile phone can obtain the first file according to the content data of the first file.

[0168] In this way, in the embodiments of the present application, the second mobile phone 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 the user performing a series of cumbersome operations, the first transmission object can be obtained. The user experience is improved.

[0169] S402. The first mobile phone sends the object data of the first transmission object to the second mobile phone.

[0170] 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 a communication connection with the second mobile phone.

[0171] In an implementable manner, the object data of the first transmission object may include a first image, and the first image is used to indicate the first transmission object and is used for the second mobile phone to obtain the first transmission object.

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

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

[0174] Exemplarily, after establishing a Bluetooth communication connection with the second mobile phone, the first mobile phone can generate a first image, such as a screenshot of a first file. The mobile phone can also send the screenshot of the first file and the content data of the first file to the second mobile phone, so that the second mobile phone can obtain the first file based on the content data of the first file subsequently.

[0175] In some embodiments of the present application, a second transmission object is included in the display screen of the second mobile phone. After establishing a communication connection with the first mobile phone, the second mobile phone can send the object data corresponding to the second transmission object to the first mobile phone.

[0176] Similarly, the object data of the second transmission object may include a second image, which is used to indicate the second transmission object and is used for the first mobile phone to obtain the second transmission object. Or, the object data of the second transmission object includes a second image and the content data of the second transmission object, and the content data of the second transmission object is used for the first mobile phone to obtain the second transmission object.

[0177] In some embodiments of the present application, during the process of the first mobile phone sending the object data of the first transmission object and receiving the object data of the second transmission object, the device distance between the first mobile phone and the second mobile phone is less than or equal to the communication distance for establishing a communication connection between the first mobile phone and the second mobile phone. Similarly, during the process of the second mobile phone sending the object data of the second transmission object and receiving the object data of the first transmission object, the device distance between the second mobile phone and the first mobile phone is less than or equal to the communication distance for establishing a communication connection between the first mobile phone and the second mobile phone.

[0178] That is to say, during the process of the first mobile phone sending data to the second mobile phone or receiving data sent by the second mobile phone, the device distance between the first mobile phone and the second mobile phone is less than or equal to the communication distance for establishing a communication connection between the two. There is no need for the first mobile phone and the second mobile phone to still maintain a collided or close state.

[0179] Exemplarily, when the first mobile phone and the second mobile phone establish a Bluetooth communication connection, during the process of the first mobile phone sending data to the second mobile phone or receiving data sent by the second mobile phone, the device distance between the first mobile phone and the second mobile phone only needs to be kept within the communication distance of the Bluetooth communication connection.

[0180] In this way, in the process of data transmission in the embodiments of the present application, there is no need for the user to keep the two devices close or in contact. As long as the device distance between the two devices is kept within the communication distance of the communication connection, the user can move the devices at will, and the device postures of the two devices are not restricted. Thus, the flexibility of cross-device data transmission is improved, and the user experience is enhanced.

[0181] S403. While the first mobile phone is sending the object data of the first transfer object to the second mobile phone, a first sending animation effect is displayed.

[0182] Among them, the first sending animation effect is used to present the first image corresponding to the first transfer object moving to the screen boundary of the first mobile phone until it moves out of the screen of the first mobile phone.

[0183] In some embodiments of the present application, while the first mobile phone is sending the object data of the first transfer object to the second mobile phone, the first sending animation effect can be directly displayed.

[0184] Specifically, while the first mobile phone is sending the object data of the first transfer object, according to the generated first image, the first sending animation effect is displayed. In the first sending animation effect, the first image gradually moves 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.

[0185] In this way, in the scenario of cross-device data transmission in the embodiments of the present application, the first user can select the first transfer 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 approaching or colliding second mobile phone and establish a communication connection with it. The first mobile phone can also send the object data of the first transfer object to the second mobile phone and display the first sending animation effect. There is no need for the user to perform a series of cumbersome operations, and a more intuitive dynamic process of data transmission can be provided to the user. Thus, the user experience is improved.

[0186] In some embodiments of the present application, while the first mobile phone is displaying the first sending animation effect, the first image can be displayed. The first mobile phone displays the first sending animation effect in response to a first trigger operation on the first image.

[0187] Among them, the first trigger operation includes an operation for instructing the first image to move to the screen boundary of the first mobile phone. The first trigger operation can include a click operation, a swiping-up operation, a double-click operation, and a voice operation on the first image, etc. The embodiments of the present application do not limit the specific implementation form corresponding to the first trigger operation.

[0188] Exemplarily, referring to Figure 6 in (A), the first mobile phone can display a file screenshot of the first file. The user can perform a swiping-up operation on the file screenshot of the first file, and the first mobile phone displays the first sending animation effect in response to this swiping-up operation. Referring to Figure 6 in (B), in the first sending animation effect, 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.

[0189] In this way, the user can operate on the first image to trigger the data sending process, enhancing the interactivity and operability between the user and the device, and making the data transmission between devices more intuitive.

[0190] In some embodiments of the present application, during the process of the second mobile phone sending the object data corresponding to the second transmission object to the first mobile phone, a second sending animation effect can be displayed. The second animation effect 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.

[0191] Specifically, during the process of the second mobile phone displaying the second sending animation effect, the second image can be displayed. The second mobile phone responds to the trigger operation on the second image and displays the second sending animation effect.

[0192] Similarly, continuing to refer to Figure 6 in (A), the second mobile phone can display a file screenshot of the second file. The user can perform an upward swipe operation on the file screenshot of the second file. The second mobile phone responds to this upward swipe operation and displays the second sending animation effect. Continuing to refer to Figure 6 in (B), the file screenshot of the second file in the second sending animation effect can gradually move from the screen of the second mobile phone to the screen boundary of the second mobile phone until it moves out of the screen of the second mobile phone. Among them, during the process of the second mobile phone displaying the second sending animation effect, it can send the content data of the second image and the second file to the first mobile phone, or send the second image.

[0193] In some embodiments of the present application, during the movement of the first image in the first sending animation effect, the display form of the first image changes following the change of the movement position.

[0194] Exemplarily, referring to Figure 7 in (B), during the movement of the first image in the first sending animation effect, when the movement position of the first image is at the first position, its display form is the first display form. Then, when the movement position of the first image moves from the first position to the second position, its display form is adjusted from the first display form to the second display form. Then, when the movement position of the first image moves from the second position to the third position, its display form is adjusted from the second display form to the third display form.

[0195] In an implementable manner, during the movement of the first image in the first sending animation effect, the display size of the first image gradually becomes smaller following the change of the movement position until it fades out of the screen of the first mobile phone.

[0196] In another implementable manner, during the movement of the first image in the first sending animation effect, the display size of the first image gradually decreases following the change of the movement position, and the display shape gradually changes following the change of the movement position until it fades out of the screen of the first mobile phone.

[0197] In another implementable manner, during the movement of the first image in the first sending animation effect, the display size of the first image gradually decreases following the change of the movement position, and the display color gradually changes following the change of the movement position until it fades out of the screen of the first mobile phone.

[0198] Similarly, during the movement of the second image in the second sending animation effect, the display form of the second image changes following the change of the movement position.

[0199] Exemplarily, continue to refer to Figure 7 In (A) of, during the movement of the second image in the second sending animation effect, when the movement position of the second image is at the first position, the display form of the second image is the first display form. Then, when the movement 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 movement 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.

[0200] In one implementable manner, during the movement of the second image in the second sending animation effect, the display size of the second image gradually decreases until it fades out of the screen of the second mobile phone following the change of the movement position.

[0201] In another implementable manner, during the movement of the second image in the second sending animation effect, the display size of the second image gradually decreases following the change of the movement position, and the display shape gradually changes following the change of the movement position until it fades out of the screen of the second mobile phone.

[0202] In another implementable manner, during the movement of the second image in the second sending animation effect, the display size of the second image gradually decreases following the change of the movement position, and the display color gradually changes following the change of the movement position until it fades out of the screen of the second mobile phone.

[0203] In the embodiments of the present application, the display form of the image in the animation effect may include display size, display shape, display transparency parameter, and display style, etc. The change of the display form of the image during the movement may be a change in at least one of the display size, display shape, display transparency parameter, and display style.

[0204] It should be noted that the embodiments of the present application do not specifically limit the display form of the image during the movement.

[0205] Thus, during the presentation of the first sending animation effect in the embodiments of the present application, the display form of the first image can change following the change of the moving position. Enhancing the richness of the display form in the interface can enable users to more intuitively perceive the data transmission process and enhance the visual experience of users.

[0206] In some embodiments of the present application, the first mobile phone can also obtain the target direction corresponding to the first mobile phone. The target direction is the direction from the center of the screen of the first mobile phone to the top end face of the first mobile phone. The first sending animation effect is used to present the first image moving along the target direction corresponding to 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.

[0207] Exemplarily, in order to be able to present the effect of the first image passing through between the screens of the first mobile phone and the second mobile phone, the first mobile phone can obtain the direction from the center of the screen to the top end face of the first mobile phone. During the process of displaying the first sending animation effect, the first mobile phone can control the first image in the first sending animation effect to move according to the obtained scheme, so that the first image moves to the screen boundary of the first mobile phone until it moves out of the screen of the first mobile phone.

[0208] In some embodiments of the present application, the second mobile phone can also obtain the target direction corresponding to the second mobile phone. The target direction is the direction from the center of the screen of the second mobile phone to the top end face of the second mobile phone. During the process of displaying the second sending animation effect, the second sending animation effect is used to present the second image moving along the target direction corresponding to the second mobile phone to the screen boundary of the second mobile phone until it moves out of the screen of the second mobile phone.

[0209] Thus, during the presentation of the sending animation effect 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 scenario of a user's limb movement when interacting with an object and handing it to the other party in life. At the same time, the subsequent image can move into the screen from the top end face of another device, presenting a dynamic effect of the image passing through between the two screens. Therefore, it can provide users with a more intuitive and flexible data transmission experience and improve the user experience.

[0210] In some embodiments of the present application, during the process of the first mobile phone sending 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.

[0211] Wherein, the second trigger operation can include a left swipe operation, a right swipe operation, a click operation, a voice operation, etc. 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 form corresponding to the second trigger operation.

[0212] Exemplarily, refer toFigure 8 In (A) among them, during the process of the first mobile phone sending the object data of the first transmission object, or during the process of the first mobile phone displaying the first sending animation effect, the user can perform a left swipe operation on the first image to cancel the transmission of the object data of the first transmission object. Refer to Figure 8 In (B) among them, in response to the left swipe operation on the first image, the first mobile phone does not display the first image and cancels sending the object data of the first transmission object to the second mobile phone. Among them, canceling sending the object data of the first transmission object to the second mobile phone includes canceling sending the content data of the first image and the first file to the second mobile phone, or canceling sending the first image.

[0213] Of course, the second user can also perform a triggering operation on the second image in the second mobile phone to trigger the second mobile phone not to display the second image and cancel sending data to the first mobile phone. The canceling sending process of the second mobile phone is similar to that of the first mobile phone and will not be elaborated here.

[0214] In this way, the device in the embodiment of the present application can interrupt the sending of data. The user can interrupt the process of the device sending data, improving the flexibility of cross-device data transmission. Thus, the user experience is provided.

[0215] S404. The second mobile phone receives the object data of the first transmission object and displays the first receiving animation effect.

[0216] Among them, the first receiving animation effect is used to present the first image emerging from the screen boundary of the second mobile phone and moving into the screen of the second mobile phone.

[0217] 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 effect.

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

[0219] Exemplarily, refer to Figure 9 , the first mobile phone can send the first image to the second mobile phone, or send the content data of the first image and 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 content data of the first image and the first file sent by the first mobile phone. The second mobile phone can display the first receiving animation effect according to the first image, and in the first receiving animation effect, the first image emerges from the screen boundary of the second mobile phone and moves into the screen of the second mobile phone.

[0220] Thus, in the embodiments of the present application, the second mobile phone can receive the data sent by the first mobile phone and display a receiving animation effect. The first image in the receiving animation effect can move into the screen from the top end face of the second mobile phone. Combining with the effect presented by the first image in the first mobile phone, the dynamic effect of the first image passing through between the two screens can be reflected. Thus, a more intuitive and flexible data transmission experience can be provided to the user, improving the user experience.

[0221] 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 effect, and the second receiving animation effect is 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.

[0222] Exemplarily, referring to Figure 10 , the second mobile phone can send the second image to the first mobile phone, or send the content data of the second image and 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 content data of the second image and the second file sent by the second mobile phone. The first mobile phone can display the second receiving animation effect according to the second image, and in the second receiving animation effect, the second image appears from the screen boundary of the first mobile phone and moves into the screen of the first mobile phone.

[0223] 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 effect, it can display the second image. The first mobile phone can, in response to a third trigger operation on the second image, obtain the second transmission object according to the second image. The first mobile phone can also find a target application that matches the second transmission object and display the second transmission object using the target application.

[0224] Exemplarily, continuing to take the second transmission object as the second file as an example, the second mobile phone sends the second image to the first mobile phone. The second image can be a file snapshot corresponding to the second file, and the file snapshot corresponding to the second file carries the download address information corresponding to the second file. Referring to Figure 11 , the first mobile phone can display the download address information corresponding to the second file, such as the second file snapshot, content: http: / XXXXX / . The user can click on the download address information corresponding to the second file to trigger a jump to the download page corresponding to the second file. The first mobile phone can, in response to the click operation on the download address information, jump to the download page corresponding to the second file. After the second file is downloaded and completed, the first mobile phone can find a target application program that matches the second file and display the second file using the target application program.

[0225] Thus, in the embodiments of the present application, after the local device receives the object snapshot sent by the peer device, the transfer object corresponding to the object snapshot can be automatically obtained after the reception is completed. At the same time, the relevant application can be automatically opened to display the transfer object, without the user performing other cumbersome operations, improving the working efficiency of the data transfer process and the data display process.

[0226] In some other embodiments of the present application, the object data corresponding to the second transfer object includes a second image and the content data of the second transfer object. The first mobile phone can display the second image after displaying the second reception animation effect. The first mobile phone can, in response to a third trigger operation for the second image, search for a target application that matches the content data of the second transfer object, and use the target application to display the second transfer object.

[0227] Exemplarily, continuing to take the second transfer object as the second file, the second mobile phone sends the second image and the content data of the second file to the first mobile phone, and the second image is the file screenshot corresponding to the second file. Refer to Figure 12 , the first mobile phone can display the file screenshot corresponding to the second file and a prompt message. The prompt message is used to prompt whether to open the second file. The user can click on the prompt message to trigger the opening of the second file. The first mobile phone can, in response to the click operation on the prompt message, search for a target application program that matches the second file, and use the target application program to display the second file.

[0228] Thus, in the embodiments of the present application, after the local device receives the content data sent by the peer device, the relevant application can be automatically opened after the reception is completed to display the transfer object corresponding to the content data, without the user performing other cumbersome operations, improving the working efficiency of the data transfer process and the data display process.

[0229] In some other embodiments of the present application, when the first image moves in the target direction in the first sending animation effect, the moving direction of the second image in the second receiving animation effect is opposite to the target direction.

[0230] Exemplarily, continuing to refer to Figure 7 , in the first sending animation effect, the first image moves in the target direction, that is, the first image moves in the direction pointing to the top end face of the first mobile phone. Continuing to refer to Figure 10 , in the second receiving animation effect, the moving direction of the second image is opposite to the target direction, that is, the second image moves in the direction pointing away from the top end face of the first mobile phone.

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

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

[0233] Exemplarily, the display size of the first image in the first sending animation effect is different from the display size of the second image in the second receiving animation effect.

[0234] Another example is that the display color of the first image in the first sending animation effect is different from the display color of the second image in the second receiving animation effect.

[0235] Another example is that the display transparency of the first image in the first sending animation effect is different from the display transparency of the second image in the second receiving animation effect.

[0236] In this way, the embodiments of the present application can distinguish different sending animation effects and receiving animation effects, enabling users to more intuitively feel the data transmission process corresponding to the received data and the sent data. It improves the richness of the animation effect display, making the data transmission between different devices more intuitive. Thus, the visual experience of users is enhanced.

[0237] In some other embodiments of the present application, the animation speed of the second receiving animation effect is negatively correlated with the data volume size of the object data of the second transmission object, and the animation speed of the first sending animation effect is negatively correlated with the data volume size of the object data of the first transmission object, or the animation speed of the first sending animation effect is positively correlated with the operation speed of the first trigger operation.

[0238] Among them, the animation speed during the presentation of the animation effect can be related to the data volume size of the transmitted data.

[0239] Exemplarily, the larger the data volume corresponding to the content data of the first file, the smaller the animation speed of its first sending animation effect. Conversely, the smaller the data volume corresponding to the content data of the first file, the larger the animation speed of its first sending animation effect.

[0240] Another example is that the larger the data volume corresponding to the content data of the second file, the smaller the animation speed of its second receiving animation effect. Conversely, the smaller the data volume corresponding to the content data of the second file, the larger the animation speed of its second receiving animation effect.

[0241] Another example is that the greater the operation speed of the first trigger operation, the greater the animation speed of its first sending animation effect. Conversely, the smaller the operation speed of the first trigger operation, the smaller the animation speed of its first sending animation effect.

[0242] In some embodiments of the present application, the sending animation effect presented on the second mobile phone side can also be related to the data volume size of the transmitted data, or related to the operation speed of the trigger operation of the second image. The animation speed of the receiving animation effect can also be related to the data volume size of the transmitted data, which will not be elaborated here.

[0243] In this way, the animation speed corresponding to the animation in the embodiments of the present application can vary according to the amount of data in the transmitted data, or can vary according to the operation speed of the user's trigger operation. The user can intuitively feel the amount of data in the transmitted data through the animation. The user can also control the presentation speed of the animation by changing the operation speed. Further improving the richness of the displayed content, the interest and interactivity of cross-device data transmission for the user. The user can obtain a better data transmission experience.

[0244] In some other embodiments of the present application, during the process of the first mobile phone sending the object data of the first transmission object and receiving the object data of the second transmission object sent by the second mobile phone, 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.

[0245] That is to say, the first mobile phone can receive the data sent by the second mobile phone while sending data. In this scenario, the first mobile phone can also, in response to a second trigger operation on the first image, not display the first image and cancel sending data to the second mobile phone. In this way, the first mobile phone only cancels sending data to the second mobile phone, without affecting receiving the data sent by the second mobile phone. The first mobile phone can keep displaying the second receiving animation.

[0246] In this way, two devices in the embodiments of the present application can send and receive data simultaneously. The user can cancel the device from sending data. Among them, one device cancelling sending data does not affect the other device from sending data, and at the same time can still keep receiving the data sent by the other device. The user can interrupt the process of the device sending data, improving the flexibility of cross-device data transmission. Thus providing the user experience.

[0247] In some embodiments of the present application, when 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.

[0248] Or, 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.

[0249] Or, 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.

[0250] Exemplarily, when 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, refer to Figure 13In (A) therein, the first mobile phone can simultaneously display the first sending animation effect and the second receiving animation effect. Refer to Figure 13 In (B) therein, the second mobile phone can simultaneously display the first receiving animation effect and the second sending animation effect.

[0251] Exemplarily again, in the case where the second mobile phone sends the object data of the second transmission object during the process of the first mobile phone sending the object data of the first transmission object, refer to Figure 14 In (A) therein, the first mobile phone can first display the first sending animation effect, and then display the second receiving animation effect. Refer to Figure 14 In (B) therein, the second mobile phone can first display the second sending animation effect, and then display the first receiving animation effect.

[0252] Exemplarily again, in the case where the second mobile phone sends the object data of the second transmission object during the process of the first mobile phone sending the object data of the first transmission object, refer to Figure 15 In (A) therein, the first mobile phone can first display the second receiving animation effect, and then display the first sending animation effect. Refer to Figure 15 In (B) therein, the second mobile phone can first display the first receiving animation effect, and then display the second sending animation effect.

[0253] 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 during the process of sending the object data of the first transmission object. Similarly, the second mobile phone can also receive the object data of the first transmission object sent by the first mobile phone during the process of sending the object data of the second transmission object. That is to say, the first mobile phone and the second mobile phone can execute the data sending process or the data receiving process. Among them, the execution timing of sending data and receiving data can have a sequential order or can be carried out simultaneously. This improves the flexibility of data transmission and enhances the user experience.

[0254] Meanwhile, the first mobile phone and the second mobile phone can display the above-mentioned receiving animation effect and sending animation effect according to the execution timing of sending data and receiving data. In this way, the devices in the embodiments of the present application can not only send data and receive data simultaneously, but also display the receiving animation effect and the sending animation effect simultaneously during the process of receiving data and sending data. Of course, the display order of the receiving animation effect and the sending animation effect can also have a sequential order. This further improves the richness of the displayed content and the interest of cross-device data transmission for users. Users can obtain a better data transmission experience.

[0255] The above data transmission and sending in the embodiments of the present application can be applied to multiple scenarios, such as personal data exchange scenarios, product sales scenarios, and education scenarios, etc. The embodiments of the present application do not specifically limit the applicable scenarios.

[0256] In the scenario of personal data exchange, two users hope to quickly exchange contact information or send files when they meet. In this way, the two users can display the contact information or files to be sent on their mobile phones and touch the two mobile phones against each other. The two mobile phones detect the collision, start scanning for Bluetooth signals and automatically establish a Bluetooth communication connection. After the two mobile phones establish a Bluetooth communication connection, they automatically start the data transmission process and the dynamic effect display process to enable the two users to quickly exchange contact information or view files.

[0257] In the product sales scenario, a salesperson hopes to quickly display charts or documents to a customer. The salesperson can display the charts or documents to be displayed on their mobile phone and touch the customer's mobile phone. The salesperson's mobile phone detects the collision, starts scanning for Bluetooth signals and automatically establishes a Bluetooth communication connection with the customer's mobile phone. After the two mobile phones establish a Bluetooth communication connection, the salesperson's mobile phone automatically starts the data transmission process and the dynamic effect display process to enable the customer to receive and view the charts or documents.

[0258] In the education scenario, a teacher hopes to distribute or collect homework to students. Similarly, the teacher and the students can touch their devices against each other and establish a communication connection so that the two devices automatically start the data transmission process and the dynamic effect display process.

[0259] In some solutions, multiple embodiments of the present application can be combined and the combined solution can be implemented. Optionally, some operations in the processes of the method embodiments are optionally combined, and / or the order of some operations is optionally changed. Moreover, the execution order between the steps of each process is only exemplary and does not constitute a limitation on the execution order between the steps. The steps can also be in other execution orders. It is not intended to indicate that the execution order is the only order in which these operations can be performed.

[0260] Those of ordinary skill in the art will think of various ways to reorder the operations described in the embodiments of the present application. Additionally, it should be noted that the process details involved in a certain embodiment of the present application are similarly applicable to other embodiments in a similar manner, or different embodiments can be used in combination.

[0261] Furthermore, some steps in the method embodiments can be equivalently replaced with other possible steps. Or, some steps in the method embodiments can be optional and can be deleted in some usage scenarios. Or, other possible steps can be added to the method embodiments.

[0262] Moreover, the method embodiments can be implemented separately or in combination.

[0263] The embodiments of the present application also provide an electronic device, such as the above-mentioned mobile phone, e.g., Figure 16As shown, the mobile phone may include one or more processors 1610, a memory 1620, and a communication interface 1630.

[0264] The memory 1620 and the communication interface 1630 are coupled to the processor 1610. For example, the memory 1620 and the communication interface 1630 may be coupled to the processor 1610 through a bus 1640.

[0265] The communication interface 1630 is used for data transmission with other devices. Computer program code is stored in the memory 1620. The computer program code includes computer instructions, and when the computer instructions are executed by the processor 1610, the electronic device is caused to execute the relevant method steps in the embodiments of the present application.

[0266] The processor 1610 may be a processor or a controller. For example, it may be 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. It can implement or execute various exemplary logic blocks, modules, and circuits described in connection with the present disclosure. The processor may also be a combination that implements a computing function, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, and so on.

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

[0268] The embodiments of the present application also provide a communication system, which includes a first device and a second device; a first transmission object is included in the display screen of the first device.

[0269] The first device is configured to detect the approach or collision of the second device and establish a communication connection with the second device.

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

[0271] The first device is configured to display a first sending animation effect during the process of sending the object data of the first transmission object to the second device, and the first sending animation effect is used to present that the first image corresponding to the first transmission object moves to the screen boundary of the first device until it moves out of the screen of the first device.

[0272] The second device is configured to receive the object data of the first transmission object and display a first receiving animation effect, and the first receiving animation effect is used to present that the first image appears from the screen boundary of the second device and moves into the screen of the second device.

[0273] An embodiment of this application also provides an electronic device, which includes a memory and one or more processors; the memory is coupled to the processor; wherein, computer program code is stored in the memory, and the computer program code includes computer instructions. When the computer instructions are executed by the processor, the electronic device executes the relevant method steps in the above method embodiments.

[0274] An embodiment of this application also provides a communication device, which includes a memory and one or more processors; the memory is coupled to the processor; wherein, computer program code is stored in the memory, and the computer program code includes computer instructions. When the computer instructions are executed by the processor, the communication device executes the relevant method steps in the above method embodiments.

[0275] An embodiment of this application also provides a computer-readable storage medium, in which computer program code is stored. When the above processor executes the computer program code, the electronic device executes the relevant method steps in the above method embodiments.

[0276] An embodiment of this application also provides a computer program product, which contains instructions. When the instructions run on a computer or a processor, the computer or the processor executes the relevant method steps in the above method embodiments.

[0277] An embodiment of this application also provides a chip system, including: a processor, the processor is coupled to a memory, and the memory is used to store programs or instructions. When the programs or instructions are executed by the processor, the chip system implements the methods in any of the above method embodiments.

[0278] Optionally, the processor in the chip system can be one or more. The processor can be implemented by hardware or by 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 implemented by reading the software code stored in the memory.

[0279] Optionally, the memory in the chip system may also be one or more. The memory may be integrated with the processor or separately provided from the processor. The embodiments of the present application do not limit this. Exemplarily, the memory may be a non-transitory processor, such as a read-only memory (ROM). It may be integrated with the processor on the same chip or separately provided on different chips. The embodiments of the present application do not specifically limit the type of the memory and the setting manner of the memory and the processor.

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

[0281] The electronic device, computer storage medium, or computer program product provided in the present application is all used to execute the corresponding method provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding method provided above, and will not be elaborated here.

[0282] Through the description of the above embodiments, those skilled in the art can clearly understand that for the convenience and conciseness of description, only the above division of each functional module is used as an example. In actual applications, the above functions may be allocated to 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.

[0283] In several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of modules or units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the displayed or discussed couplings or direct couplings or communication connections to each other can be through some interfaces. The indirect couplings or communication connections of devices or units can be in electrical, mechanical or other forms.

[0284] The units described as separate components may or may not be physically separated. The components displayed as units may be one physical unit or multiple physical units, and they can be located in one place or distributed to multiple different places. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0285] In addition, in each embodiment of the present application, each functional unit can be integrated in a processing unit, or each unit can exist physically alone, or two or more units can be integrated in one unit. The above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.

[0286] If the integrated unit is implemented 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 solution of the embodiments of the present application, in essence, or the part that makes a contribution, or all or part of the technical solution, can be embodied in the form of a software product. The software product is stored in a storage medium and includes several instructions for causing a device (which can be a single-chip microcomputer, a chip, etc.) or a processor to execute all or part of the steps of the methods of the various embodiments of the present application. The aforementioned storage medium includes: various media such as USB flash drives, mobile hard disks, read only memory (ROM), random access memory (RAM), magnetic disks or optical discs that can store program codes.

[0287] The above content is only the specific implementation manner of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application should be covered by 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 includes a first device and a second device, the display screen of the first device includes a first transmission object, and the method includes: The first device detects that the second device approaches or collides with 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, and displays a first sending animation, where 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 it 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, where the first receiving animation is used to present that the first image appears from the screen boundary of the second device and moves to the screen of the second device.

2. The method according to claim 1, characterized in that: The display screen of the second device includes a second transmission object, and the method further includes: The second device sends object data corresponding to the second transmission object to the first device, and displays a second sending animation, where the second sending animation is used to present that the second image corresponding to the second transmission object moves 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 transmission object and displays a second receiving animation, where the second receiving animation is used to present the second image appearing from the screen boundary of the first device and moving to 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 displays the first sending animation and the second receiving animation at the same time, and the second device displays the first receiving animation and the second sending animation at the same time; 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. The method according to any one of claims 1 to 3, characterized in that: The first device sending the object data of the first transmission object to the second device includes: In response to a sliding operation on the first transmission object, the first device sends object data of the first transmission object to the second device.

5. The method according to any one of claims 1 to 4, characterized in that: The second device receiving the object data of the first transmission object includes: The second device displays an identifier of a first transmission object, where the identifier of the first transmission object is used to indicate that the first transmission object exists; In response to a sliding operation on the identifier, the second device receives object data of the first transmission object.

6. A data transmission method, characterized in that: Applied to a first device, wherein a display screen of the first device includes a first transmission object, the method includes: detecting proximity or collision with a second device, and establishing a communication connection with the second device; sending object data of the first transmission object to the second device; In the process of sending the object data of the first transmission object to the second device, a first sending animation is displayed, 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 it moves out of the screen of the first device.

7. The method according to claim 6, characterized in that The method further comprises: displaying the first image; The displaying of the first sending animation effect includes: In response to a first trigger operation on the first image, the first sending animation effect is displayed; the first trigger operation includes an operation for instructing the first image to move to a screen boundary of the first device.

8. The method according to claim 6 or 7, characterized in that: During the movement of the first image in the first sending animation, the display form of the first image changes with the change of the moving position.

9. The method according to claim 8, characterized in that During the movement of the first image in the first sending animation, the display size of the first image gradually decreases as the moving position changes until it fades out of the screen of the first device.

10. The method according to any one of claims 7 to 9, characterized in that: The method further comprises: Get a target direction, where the target direction is the direction from the center of the screen of the first device to the top end face of the first device, and the first sending animation is used to present the first image moving along the target direction to the screen boundary of the first device until it moves out of the screen of the first device.

11. The method according to claim 10, characterized in that The display screen of the second device includes a second transmission object, and the method further includes: Receive object data corresponding to the second transmission object sent by the second device, and display a second receiving animation, wherein the second receiving animation is used to present a second image corresponding to the second transmission object appearing from the screen boundary of the first device and moving to the screen of the first device.

12. The method according to claim 11, characterized in that During the process in which the first image moves in 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.

13. The method according to claim 11 or 12, 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.

14. The method according to any one of claims 11 to 13, characterized in that: When the first device receives the object data of the second transmission object sent by the second device during the process of sending the object data of the first transmission object, the first sending animation and the second receiving animation are displayed at the same time, 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.

15. The method according to any one of claims 11 to 14, characterized in that: The animation speed of the second receiving animation is negatively correlated with the data size of the object data of the second transmission object, the animation speed of the first sending animation is negatively correlated with the data size of the object data of the first transmission object, or the animation speed of the first sending animation is positively correlated with the operation speed of the first trigger operation.

16. The method according to any one of claims 11 to 15, characterized in that: The method further comprises: In a case where the first device receives the object data of the second transmission object sent by the second device during the process of sending the object data of the first transmission object, in response to a second trigger operation on the first image, not displaying the first image and canceling sending the object data of the first transmission object to the second device; The second receiving animation effect is kept displayed.

17. The method according to any one of claims 11 to 16, characterized in that: The object data corresponding to the second transmission object includes the second image, and the second image is used to indicate the second transmission object in the second device. The method further includes: After displaying the second receiving animation effect, displaying the second image; In response to a third trigger operation on the second image, acquiring the second transmission object according to the second image; Finding a target application that matches the second transmission object; The second transmission object is displayed using the target application.

18. The method according to any one of claims 11 to 16, characterized in that: The object data corresponding to the second transmission object includes the second image and content data of the second transmission object, and the method further includes: After displaying the second receiving animation effect, displaying the second image; In response to a third trigger operation on the second image, searching for a target application that matches the content data of the second transmission object; The second transmission object is displayed using the target application.

19. The method according to any one of claims 6 to 18, characterized in that: The object data of the first transmission object includes the first image, where the first image is used to indicate the first transmission object and is used by the second device to obtain the first transmission object; Alternatively, the object data of the first transmission object includes the 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 obtain the first transmission object.

20. The method according to any one of claims 11 to 18, characterized in that: During the process of sending the object data of the first transmission object and receiving the 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 for establishing a communication connection between the first device and the second device.

21. The method according to any one of claims 6 to 20, characterized in that: The first image includes an object screenshot of the first transmission object or an object snapshot corresponding to the first transmission object, and the method further includes: generating the object screenshot according to the first transmission object displayed in the display screen; Alternatively, extracting key object data from the transmission object data of the first transmission object; The object snapshot is generated according to the key object data.

22. The method according to any one of claims 6 to 21, characterized in that: The method further comprises: A target animation is displayed, where the target animation is used to present that the first device and the second device have been detected to be close to or collided with each other.

23. The method according to any one of claims 6 to 22, characterized in that: The first transmission object includes at least one of a file, a folder, a contact, or an application.

24. A data transmission method, characterized in that: Applied to the second device, the method includes: Detecting proximity or collision with a first device, and establishing a communication connection 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 to the screen of the second device. The first image is an image corresponding to the first transmission object displayed in the first device.

25. The method according to claim 24, characterized in that The display screen of the second device includes a second transmission object, and the method further includes: Sending object data corresponding to the second transmission object to the first device; During the process of sending the object data corresponding to the second transmission object to the first device, a second sending animation is displayed, 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 it moves out of the screen of the second device.

26. An electronic device, characterized in that: The electronic device includes a memory and one or more processors; the memory is coupled to the processor; wherein computer program code is stored in the memory, and the computer program code includes computer instructions, and when the computer instructions are executed by the processor, the electronic device executes the method as described in any one of claims 6 to 23, or executes the method as described in claim 24 or 25.

27. A communication system, characterized in that: The communication system includes a first device and a second device; a display screen of the first device includes a first transmission object; The first device is configured to detect that the second device approaches or collides with 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 sending animation during the process of sending the object data of the first transmission object to the second device, wherein 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 it moves out of the screen of the first device; The second device is configured to receive object data of the first transmission object and display a first receiving animation, wherein the first receiving animation is used to present that the first image appears from a screen boundary of the second device and moves into a screen of the second device.

28. A computer readable medium, characterized in that The computer-readable storage medium stores instructions, and when the instructions are executed on an electronic device, the electronic device executes the method according to any one of claims 6 to 23, or executes the method according to claim 24 or 25.

29. A computer program product, characterized in that The computer program product includes instructions, and when the instructions are executed on a computer or a processor, the computer or the processor executes the method according to any one of claims 6 to 23, or executes the method according to claim 24 or 25.

Citation Information

Patent Citations

  • Mobile communication terminal and data transmission method and system of mobile communication terminal

    CN101715246A

  • Sharing method and terminal equipment

    CN110224920A

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

    CN114915910A

  • Collision connection method and device

    CN115529576A

  • Screen-off display method and electronic equipment

    CN116097206A

Cited By

  • Communication method and system, electronic equipment, storage medium and program product

    CN120768978A