Data transmission method, device, equipment and storage medium
By establishing connections between multiple devices and using the touch screen pressure characteristics to automatically identify and process the pressing contact area, the problems of complex and inefficient user operations during data transmission between multiple devices are solved, and more efficient and flexible data transmission is achieved.
Patent Information
- Application Number
- CN202310142603.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-02-20
- Publication Date
- 2025-04-25
- Estimated Expiration
- 2043-02-20
AI Technical Summary
During the process of data transmission between multiple devices, users operate in complex ways and data transmission efficiency is low.
By establishing a connection between the first device and the second device, the touch screen pressure characteristics of the screen are used to realize the reception and processing of the press input, automatically identify the press contact area and determine the receiver of the data, thereby realizing the automatic transmission of data.
The steps of user operation are reduced, the efficiency and flexibility of data transmission are improved, and the data to be transmitted can be quickly identified and the recipient of the data can be determined.
Smart Images

Figure CN116132456B_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of communication technology, and specifically relates to a data transmission method, device, equipment and storage medium. Background Art
[0002] With the development of technology, data transmission between devices has become more frequent. For example, due to the limitation of the screen size of wearable devices, many operations are not convenient, such as editing text. In this way, text can be entered in the electronic device and then copied and transmitted to the wearable device.
[0003] However, this process requires the user to select or input the data to be transmitted on the electronic device, and select the wearable device to which the data is to be sent. Then, the data is transmitted to the wearable device through instant messaging software or Bluetooth sharing on both devices. At this time, the user also needs to trigger the wearable device to receive the data. This makes the user operation complicated and the data transmission efficiency low during the data transmission between multiple devices. Summary of the invention
[0004] The purpose of the embodiments of the present application is to provide a data transmission method, apparatus, device and storage medium, which can solve the problems of complex user operations and low data transmission efficiency in the process of transmitting data between multiple devices in the related art.
[0005] In a first aspect, an embodiment of the present application provides a data transmission method, which is applied to a first device, where the first device includes a first screen. The method may include:
[0006] When a connection is established with the second device, receiving a pressing input of the second screen of the second device on the first screen;
[0007] In response to the pressing input, acquiring a pressing contact area of the second screen on the first screen;
[0008] The first data is transmitted to the second device.
[0009] In a second aspect, an embodiment of the present application provides a data transmission device, which is applied to a first device, where the first device includes a first screen, and the data transmission device may include:
[0010] A receiving module, configured to receive a pressing input of a second screen of the second device on the first screen when a connection is established with the second device;
[0011] An acquisition module, configured to acquire a pressed contact area of the second screen on the first screen in response to a press input;
[0012] The transmission module is used to transmit the first data to the second device.
[0013] In a third aspect, an embodiment of the present application provides a first device, which includes a processor, a memory, and a program or instruction stored in the memory and executable on the processor, and when the program or instruction is executed by the processor, the steps of the data transmission method shown in the first aspect are implemented.
[0014] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of data transmission shown in the first aspect are implemented.
[0015] In a fifth aspect, an embodiment of the present application provides a chip, the chip including a processor and a display interface, the display interface and the processor are coupled, and the processor is used to run programs or instructions to implement the steps of the data transmission method shown in the first aspect.
[0016] In a sixth aspect, an embodiment of the present application provides a computer program product, which is stored in a storage medium and is executed by at least one processor to implement the steps of the data transmission method shown in the first aspect.
[0017] In an embodiment of the present application, when a connection is established between a first device and a second device, the first device can receive a press input from the second screen of the second device to the first screen, and then, in response to the press input, obtain the press contact area of the second screen on the first screen, and then transmit the first data to the second device. In this way, the touch screen pressure characteristics of the screens of each device can be utilized to press the screens of the first device and the second device against each other, so as to obtain the data of the press contact area and automatically identify the device for receiving the data. Therefore, the solution can quickly identify the data to be transmitted and accurately determine the recipient of the data without the user having to step by step select the data to be transmitted and the data recipient. While reducing user operations, it can more flexibly and conveniently transmit data between multiple devices to improve data transmission efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] Figure 1 A flowchart of a data transmission method based on a first device provided in an embodiment of the present application;
[0019] Figure 2 One of the device interaction diagrams of a data transmission method provided in an embodiment of the present application;
[0020] Figure 3 A second device interaction diagram of a data transmission method provided in an embodiment of the present application;
[0021] Figure 4 A third device interaction diagram of a data transmission method provided in an embodiment of the present application;
[0022] Figure 5 A fourth device interaction diagram of a data transmission method provided in an embodiment of the present application;
[0023] Figure 6 A schematic diagram of the structure of a data transmission device based on a first device provided in an embodiment of the present application;
[0024] Figure 7 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application;
[0025] Figure 8 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0026] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of this application.
[0027] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the terms used in this way are interchangeable where appropriate, so that the embodiments of the present application can be implemented in an order other than those illustrated or described herein, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.
[0028] In order to solve the problems in the related art, Figures 1 to 5 , the data transmission method provided in the embodiment of the present application is described in detail through specific embodiments and their application scenarios.
[0029] First, combine Figure 1 A data transmission method based on a first device provided in an embodiment of the present application is described in detail.
[0030] Figure 1 A flowchart of a data transmission method based on a first device provided in an embodiment of the present application.
[0031] like Figure 1 As shown, the data transmission method provided in the embodiment of the present application can be applied to a first device, and the first device can include a first screen. Based on this, the data transmission method can include the following steps:
[0032] Step 110, when establishing a connection with a second device, receiving a press input from a second screen of the second device to a first screen; Step 120, in response to the press input, obtaining a press contact area of the second screen on the first screen; Step 130, transmitting first data to the second device.
[0033] In this way, the touch screen pressure characteristics of the screens of each device can be utilized to press the screens of the first device and the second device into contact with each other, so as to obtain data in the pressed contact area and automatically identify the device used to receive the data. Therefore, this solution can quickly identify the data to be transmitted and accurately determine the recipient of the data without the user having to step by step select the data to be transmitted and the data recipient. While reducing user operations, it can more flexibly and conveniently transmit data between multiple devices to improve data transmission efficiency.
[0034] The above steps are described in detail below, as shown below.
[0035] First, referring to step 110, in one or more possible embodiments, the first device is an electronic device, and the second device is a wearable device.
[0036] For example, the electronic device is a mobile phone 201 and the wearable device is a smart watch 202. Figure 2 As shown, when the mobile phone 201 and the smart watch 202 are connected, the user can touch the second screen 2021 of the smart watch 202 with the first screen 2011 of the mobile phone 201 to make the first screen 2011 and the second screen 2021 completely fit together, and apply a certain pressing force to the mobile phone 210 or the smart watch 20. In this way, the mobile phone 201 will receive the pressing input of the second screen 2021 of the smart watch 20 on the first screen 2011 through the screen pressure sensor corresponding to the first screen 2011 in the mobile phone 201, so as to obtain the pressing contact area of the second screen 2021 on the first screen 2011.
[0037] It should be noted that the first device in the embodiment of the present application may also be a tablet computer, and the second device may also be a mobile phone, that is, the first device and the second device in the embodiment of the present application may be devices with a touch screen, a screen pressure sensor, and a device with a data transmission function.
[0038] Next, referring to step 120, in one or more possible embodiments, before step 120, the data transmission method may further include:
[0039] In response to a press input, determining whether a duration of the press input is greater than or equal to a preset duration;
[0040] When it is determined that the duration of the press input is greater than or equal to the preset duration, a press contact area of the second device on the first screen is acquired.
[0041] Specifically, the pressing contact area of the second device on the first screen is calculated through the screen pressure sensor corresponding to the first screen in the first device.
[0042] For example, Figure 2 For example, after the first screen 2011 of the mobile phone 201 and the second screen 2021 of the smart watch 202 are pressed and contacted, there will be a contact and overlapping area of the second screen 2021 on the first screen 2011, and this area will be subjected to a certain pressure. In order to reduce the detection error, at this time, the mobile phone 201 can use the screen pressure sensor to continuously detect whether the duration of the press input is greater than or equal to the preset duration (such as 3 seconds). If the duration of the press input is greater than or equal to the preset duration (that is, the press duration is greater than or equal to 3 seconds), the overlapping area of the second screen 2021 on the first screen 2011 is determined as the press contact area; conversely, if the duration of the press input is less than the preset duration (that is, the press duration is less than 3 seconds), the press input can be determined to be an erroneous input. At this time, the mobile phone 201 does not respond to the erroneous input.
[0043] Similarly, for the second screen 2021 of the smart watch 202, after the first screen 2011 of the mobile phone 201 and the second screen 2021 of the smart watch 202 are pressed and contacted, the first screen 2011 will also have a contact and overlapping area on the second screen 2021, and this area will be subjected to a certain pressure. At this time, the smart watch 202 can also use the screen pressure sensor of the smart watch 202 to continuously detect whether the duration of the press input of the first screen 2011 to the second screen 2021 is greater than or equal to a preset duration (such as 3 seconds). If the duration of the press input is greater than or equal to the preset duration (that is, the press duration is greater than or equal to 3 seconds), the overlapping area of the first screen 2011 on the second screen 2021 is determined as the press contact area; conversely, if the duration of the press input is less than the preset duration (that is, the press duration is less than 3 seconds), it can be determined that the press input is an erroneous input. At this time, the smart watch 202 may not receive the first data transmitted by the first device.
[0044] Then, step 130 is involved. In the embodiment of the present application, the sender and the receiver of the data can be further determined according to the relative positions between the mobile phone 201 and the smart watch 202. Based on this, in one or more possible embodiments, step 130 can specifically include:
[0045] When the position relationship between the first device and the second device meets a preset condition, transmitting the first data to the second device;
[0046] The positional relationship between the first device and the second device satisfies a preset condition, which includes: the first device and the second device are stacked, and the first device is in a preset direction of the second device.
[0047] For example, Figure 2 As shown, if the smart watch 202 is stacked on the mobile phone 201, it is considered that the user is holding the smart watch 202 to press the mobile phone 201, which can indicate that the positional relationship between the mobile phone 201 and the smart watch 202 meets the preset condition. At this time, the sender of the data can be determined as the mobile phone 201, and the receiver of the data can be determined as the smart watch 202. In this way, the mobile phone 201 can transmit the first data to the smart watch 202. Figure 3 As shown, if the mobile phone 201 is stacked on the smart watch 202, it is considered that the user is holding the mobile phone 201 and pressing the smart watch 202. At this time, the sender of the data can be determined as the smart watch 202, and the receiver of the data can be determined as the mobile phone 201. In this way, the mobile phone 201 can receive the second data transmitted by the smart watch 202.
[0048] Or, if Figure 4 As shown, if the mobile phone 201 and the smart watch 202 are placed side by side and the side of the mobile phone 201 is in contact with the side of the smart watch 202, it can be determined that the positional relationship between the mobile phone 201 and the smart watch 202 meets the preset conditions. At this time, the sender of the data can be determined as the mobile phone 201, and the receiver of the data can be determined as the smart watch 202. In this way, the mobile phone 201 can transmit the first data to the smart watch 202.
[0049] Therefore, the above scheme can quickly identify the data to be transmitted and accurately determine the recipient of the data without the user having to step by step select the data to be transmitted and the data recipient. While reducing user operations, it can more flexibly and conveniently transmit data between multiple devices to improve data transmission efficiency.
[0050] In addition, in order to realize data transmission among multiple devices, before transmitting data, it is necessary to verify the identities between the devices transmitting data. The following provides a method for verifying the identities of the two parties, namely the mobile phone 201 and the smart watch 202.
[0051] Method 1: The mobile phone 201 sends the first size of the pressed contact area of the second screen on the first screen to the watch 202. When the smart watch 202 receives the first size sent by the mobile phone 201, it determines whether the error value between the first size and the second size is less than or equal to the preset error value, where the second size is the screen size of the second screen. If it is determined that the error value between the first size and the second size is less than or equal to the preset error value, it means that the identity authentication between the mobile phone 201 and the smart watch 202 is successful; if it is determined that the error value between the first size and the second size is greater than the preset error value, it means that the identity authentication between the mobile phone 201 and the smart watch 202 has failed.
[0052] Method 2: The second size information of the second screen of the smart watch 202 is stored in the mobile phone 201. When the mobile phone 201 obtains the first size of the pressed contact area of the second screen on the first screen, it is determined whether the error value between the first size and the second size is less than or equal to the preset error value. If it is determined that the error value between the first size and the second size is less than or equal to the preset error value, it means that the identity authentication between the mobile phone 201 and the smart watch 202 is successful; if it is determined that the error value between the first size and the second size is greater than the preset error value, it means that the identity authentication between the mobile phone 201 and the smart watch 202 has failed.
[0053] In one or more possible embodiments, step 130 may specifically include:
[0054] When the pressed contact area displays a first object, transmitting first data corresponding to the first object to the second device;
[0055] Alternatively, when the first object is not displayed in the pressed contact area, first data is transmitted to the second device, where the first data is used to instruct the second device to send second data.
[0056] Exemplarily, if the pressed contact area is a local area of the mobile phone desktop, and the local area does not contain any application icons, desktop component icons, text information, etc., then it can be represented that the pressed contact area does not display the first object; or, if the pressed contact area is a blank (or blackened) area in a document or image, then it can also be represented that the pressed contact area does not display the first object.
[0057] Further, in one or more possible embodiments, after the step of transmitting the first data to the second device when the pressed contact area does not display the first object, the data transmission method may further include:
[0058] receiving second data sent by the second device, where the second data includes data corresponding to a second object displayed on a second screen of the second device;
[0059] Information corresponding to the second data is displayed in the pressed contact area.
[0060] For example, Figure 5 As shown, if the press contact area 50 in the mobile phone 201 does not display the first object (that is, the displayed content in the press contact area 50 is blank), the mobile phone 201 sends the first data to the smart watch 202, and the first data instructs the smart watch 202 to transmit the second data to the mobile phone 201. In this way, when the mobile phone 201 receives the second data sent by the second device, it displays the information corresponding to the second data in the press contact area, such as "Today in City A, it is cloudy, 5 degrees, and windy. Please pay attention to travel safety."
[0061] It should be noted that if the second data is an application installation package corresponding to the application icon, the mobile phone 201 can display information prompting whether to install the application installation package in the pressed contact area 50. In this way, when receiving the user's input of selecting to install the application installation package, the application installation package is installed, and after the installation is completed, the corresponding application icon is displayed in the pressed contact area 50. Of course, the mobile phone 201 can also display the logo of the application installation package in the pressed contact area 50, and create a new window to display the prompt information of whether to install the application installation package.
[0062] In addition, in one or more possible embodiments, step 130 may specifically include:
[0063] When the first object is an application icon, transmitting an application installation package corresponding to the application icon to the second device;
[0064] Alternatively, when the first object is at least one of an image, a video, a text, and an audio, a copy of the first object is transmitted to the second device, or a download path of the first object is transmitted to the second device.
[0065] Based on this, the process of determining the first data is described in detail below.
[0066] In an example, the first object may be an application installation package corresponding to the application icon. Before step 130, the data transmission method may further include:
[0067] Obtain an application installation package of the application corresponding to the application icon;
[0068] The application installation package is determined as the first data.
[0069] In another example, the first object is at least one of the following: image, video, text, audio. Before step 130, the data transmission method may further include:
[0070] determining the copy of the first object as first data;
[0071] Alternatively, the download path of the first object is determined as the first data.
[0072] In summary, the data processing method provided in the embodiment of the present application can utilize the touch screen pressure characteristics of the screens of each device to press the screens of the first device and the second device into contact with each other, so as to obtain data in the pressed contact area and automatically identify the device used to receive the data. Therefore, this solution can quickly identify the data to be transmitted and accurately determine the recipient of the data without the user having to step by step select the data to be transmitted and the data recipient. While reducing user operations, it can more flexibly and conveniently transmit data between multiple devices to improve data transmission efficiency.
[0073] It should be noted that the working principle of the second device is the same as that of the first device, which will not be repeated here.
[0074] The data transmission method provided in the embodiment of the present application can be executed by a data transmission device. In the embodiment of the present application, a data transmission device executing the data transmission method is taken as an example to illustrate the data transmission device provided in the embodiment of the present application.
[0075] Based on the same inventive concept, the present application also provides a data transmission device based on the first device. Figure 6 Provide detailed explanation.
[0076] Figure 6 A structural schematic diagram of a data transmission device based on a first device provided in an embodiment of the present application.
[0077] like Figure 6 As shown, the data transmission device 60 is applied to a first device, the first device includes a first screen, and the data transmission device 60 may specifically include:
[0078] The receiving module 601 is used to receive a pressing input of the second screen of the second device on the first screen when a connection is established with the second device;
[0079] An acquisition module 602 is used to acquire a pressed contact area of the second screen on the first screen in response to a press input;
[0080] The transmission module 603 is used to transmit the first data to the second device.
[0081] The data transmission device 60 is described in detail below, as follows:
[0082] In one or more possible embodiments, the transmission module 603 is specifically configured to, when the pressed contact area displays a first object, transmit first data corresponding to the first object to the second device;
[0083] Alternatively, when the first object is not displayed in the pressed contact area, first data is transmitted to the second device, where the first data is used to instruct the second device to send second data.
[0084] In another or more possible embodiments, the data transmission device 60 in the embodiment of the present application may further include a display module; wherein,
[0085] The receiving module 601 is further configured to receive second data sent by the second device after the transmission module transmits the first data to the second device when no first object is displayed on the pressed contact area, wherein the second data includes data corresponding to the second object displayed on the second screen of the second device;
[0086] The display module is used to display information corresponding to the second data in the pressed contact area.
[0087] In one or more possible embodiments, the transmission module 603 may be specifically configured to transmit, when the first object is an application icon, an application installation package corresponding to the application icon to the second device;
[0088] Alternatively, when the first object is at least one of an image, a video, a text, and an audio, a copy of the first object is transmitted to the second device, or a download path of the first object is transmitted to the second device.
[0089] In one or more possible embodiments, the transmission module 603 is specifically configured to transmit the first data to the second device when the position relationship between the first device and the second device meets a preset condition;
[0090] The positional relationship between the first device and the second device satisfies a preset condition, which includes: the first device and the second device are stacked, and the first device is in a preset direction of the second device.
[0091] The data transmission device in the embodiment of the present application can be an electronic device, or a component in the electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal, or it can be other devices other than a terminal. Exemplarily, the electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, a vehicle-mounted electronic device, a mobile Internet device (Mobile Internet Device, MID), an augmented reality (augmented reality, AR) / virtual reality (virtual reality, VR) device, a robot, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant, PDA), etc., and can also be a server, a network attached storage (Network Attached Storage, NAS), a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.
[0092] The data transmission device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an IOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.
[0093] The device coordination device provided in the embodiment of the present application can achieve Figures 1 to 5 The various processes implemented in the data transmission method embodiment shown achieve the same technical effect, and to avoid repetition, they will not be described here.
[0094] Based on this, in the device collaboration device provided in the embodiment of the present application, when the first device and the second device establish a connection, the first device can receive the pressing input of the second screen of the second device on the first screen, and then, in response to the pressing input, obtain the pressing contact area of the second screen on the first screen, and then transmit the first data to the second device. In this way, the touch screen pressure characteristics of the screens of each device can be used to press the screens of the first device and the second device against each other, so as to obtain the data of the pressing contact area and automatically identify the device for receiving the data. Therefore, the scheme can quickly identify the data to be transmitted and accurately determine the recipient of the data without the user step by step selecting the data to be transmitted and the data recipient. While reducing user operations, it can be more flexible and convenient to transmit data between multiple devices to improve data transmission efficiency.
[0095] Optional, such as Figure 7As shown, an embodiment of the present application also provides an electronic device 70, including a processor 701 and a memory 702, wherein the memory 702 stores programs or instructions that can be executed on the processor 701, and when the program or instructions are executed by the processor 701, the various steps of the above-mentioned data transmission method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, they are not repeated here.
[0096] It should be noted that the electronic devices in the embodiments of the present application include the above-mentioned mobile electronic devices and non-mobile electronic devices.
[0097] Figure 8 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application.
[0098] The electronic device 800 includes but is not limited to: a radio frequency unit 801, a network module 802, an audio output unit 803, an input unit 804, a sensor 805, a display unit 806, a user input unit 807, an interface unit 808, a memory 809, a processor 810 and other components.
[0099] Those skilled in the art will appreciate that the electronic device 800 may also include a power source (such as a battery) for supplying power to each component, and the power source may be logically connected to the processor 810 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Figure 8 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.
[0100] In the embodiment of the present application, the user input unit 807 is used to receive a press input of the second screen of the second device to the first screen when the connection is established with the second device. The processor 810 is used to obtain the press contact area of the second screen on the first screen in response to the press input. The network module 802 is used to transmit the first data to the second device.
[0101] The electronic device 800 is described in detail below, as follows:
[0102] In one or more possible embodiments, the network module 802 may be specifically configured to, when the pressed contact area displays a first object, transmit first data corresponding to the first object to the second device;
[0103] Alternatively, when the first object is not displayed in the pressed contact area, first data is transmitted to the second device, where the first data is used to instruct the second device to send second data.
[0104] In another or more possible embodiments, the network module 802 may also be configured to, after the transmission module transmits the first data to the second device when no first object is displayed on the pressed contact area, receive second data sent by the second device, where the second data includes data corresponding to the second object displayed on the second screen of the second device;
[0105] The display unit 806 is configured to display information corresponding to the second data in the pressed contact area.
[0106] In one or more further possible embodiments, the network module 802 may be specifically configured to, when the first object is an application icon, transmit an application installation package corresponding to the application icon to the second device;
[0107] Alternatively, when the first object is at least one of an image, a video, a text, and an audio, a copy of the first object is transmitted to the second device, or a download path of the first object is transmitted to the second device.
[0108] In one or more possible embodiments, the network module 802 may be specifically configured to transmit the first data to the second device when the position relationship between the first device and the second device satisfies a preset condition;
[0109] The positional relationship between the first device and the second device satisfies a preset condition, which includes: the first device and the second device are stacked, and the first device is in a preset direction of the second device.
[0110] It should be understood that the input unit 804 may include a graphics processing unit (GPU) 8041 and a microphone 8042, and the graphics processor 8041 processes the image data of a static image or video obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The display unit 806 may include a display panel, and the display panel may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 807 includes at least one of a touch panel 8071 and other input devices 8072. The touch panel 8071 is also referred to as a touch screen. The touch panel 8071 may include two parts, a touch detection device and a touch display. Other input devices 8072 may include, but are not limited to, a physical keyboard, function keys (such as a volume display button, a switch button, etc.), a trackball, a mouse, and a joystick, which will not be repeated here.
[0111] The memory 809 can be used to store software programs and various data. The memory 809 can mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area can store an operating system, an application program or instructions required for at least one function (such as a sound playback function, an image playback function, etc.), etc. In addition, the memory 809 can include a volatile memory or a non-volatile memory, or the memory 809 can include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDRSDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synchronous link dynamic random access memory (SLDRAM) and a direct memory bus random access memory (DRRAM). The memory 809 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.
[0112] The processor 810 may include one or more processing units; optionally, the processor 810 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to the operating system, user interface, and application programs, and the modem processor mainly processes wireless display signals, such as a baseband processor. It is understandable that the modem processor may not be integrated into the processor 810.
[0113] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the various processes of the above-mentioned data transmission method embodiment are implemented and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0114] The processor is the processor in the electronic device in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory ROM, a random access memory RAM, a magnetic disk or an optical disk.
[0115] In addition, an embodiment of the present application further provides a chip, which includes a processor and a display interface, the display interface and the processor are coupled, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned data transmission method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0116] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.
[0117] An embodiment of the present application provides a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to implement the various processes of the above-mentioned data transmission method embodiment and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0118] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.
[0119] In addition, it should be noted that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in a reverse order according to the functions involved. For example, the described methods may be performed in an order different from that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
[0120] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods of each embodiment of the present application.
[0121] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.
Claims
1. A data transmission method, characterized in that: Applied to a first device, the first device includes a first screen, including: When a connection is established with a second device, receiving a pressing input of the first screen by a second screen of the second device; In response to the pressing input, acquiring a pressing contact area of the second screen on the first screen; Transmitting the first data to the second device; wherein the transmitting the first data to the second device comprises: when the first object is not displayed in the pressed contact area, transmitting the first data to the second device, the first data being used to instruct the second device to send the second data; when the first object is displayed in the pressed contact area, transmitting the first data corresponding to the first object to the second device; receiving second data sent by the second device, where the second data includes data corresponding to a second object displayed on a second screen of the second device; Information corresponding to the second data is displayed in the pressed contact area.
2. The method according to claim 1, characterized in that In a case where a first object is displayed in the pressed contact area, transmitting first data corresponding to the first object to the second device, the method comprising: When the first object is an application icon, transmitting an application installation package corresponding to the application icon to the second device; Alternatively, when the first object is at least one of an image, a video, a text, and an audio, a copy of the first object is transmitted to the second device, or a download path of the first object is transmitted to the second device.
3. The method according to claim 1, characterized in that The transmitting the first data to the second device includes: When the position relationship between the first device and the second device meets a preset condition, transmitting the first data to the second device; The positional relationship between the first device and the second device satisfies a preset condition, which includes: the first device and the second device are stacked, and the first device is located in a preset direction of the second device.
4. A data transmission device, characterized in that: Applied to a first device, the first device includes a first screen, including: A receiving module, configured to receive a pressing input of the first screen by a second screen of the second device when a connection is established with the second device; an acquisition module, configured to acquire, in response to the pressing input, a pressing contact area of the second screen on the first screen; A transmission module, used to transmit the first data to the second device; wherein, The transmission module is specifically used to transmit first data to the second device when the first object is not displayed in the pressed contact area, and the first data is used to instruct the second device to send second data; when the first object is displayed in the pressed contact area, the first data corresponding to the first object is transmitted to the second device; The receiving module is further configured to, after the transmission module transmits the first data to the second device when no first object is displayed in the pressed contact area, receive second data sent by the second device, wherein the second data includes data corresponding to the second object displayed on the second screen of the second device; A display module is configured to display information corresponding to the second data in the pressed contact area.
5. The device according to claim 4, characterized in that The transmission module is specifically configured to, when the first object is an application icon, transmit an application installation package corresponding to the application icon to the second device; Alternatively, when the first object is at least one of an image, a video, a text, and an audio, a copy of the first object is transmitted to the second device, or a download path of the first object is transmitted to the second device.
6. The device according to claim 4, characterized in that The transmission module is specifically configured to transmit the first data to the second device when the position relationship between the first device and the second device meets a preset condition; The positional relationship between the first device and the second device satisfies a preset condition, which includes: the first device and the second device are stacked, and the first device is located in a preset direction of the second device.
7. A first device for data transmission, characterized in that: include: A processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the data transmission method according to any one of claims 1 to 3.
8. A readable storage medium, characterized in that: The readable storage medium stores a program or instruction, and when the program or instruction is executed by the processor, the data transmission method according to any one of claims 1 to 3 is implemented.
Citation Information
Patent Citations
Method realizing data transmission of intelligent watch, device and intelligent watch
CN105137750A
Cross-device control method, cross-device control device and electronic device
CN115469958A
Method for transmitting data
US20170139494A1