Data transmission method and apparatus, device, and storage medium
By receiving the screen press input of the second device and automatically identifying the contact area, the problem of complexity and low efficiency of data transmission between devices is solved, and fast and convenient data transmission is achieved.
Patent Information
- Application Number
- PCT/CN2024/077345
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-02-20
- Filing Date
- 2024-02-18
- Publication Date
- 2024-08-29
AI Technical Summary
During the process of data transmission between devices, user operations are complicated and data transmission efficiency is low. Especially due to the limitation of the screen size of wearable devices, the transmission process is cumbersome.
By receiving the screen press input of the second device, the press contact area is obtained, and the data recipient is automatically identified when the preset conditions are met, realizing rapid data transmission and reducing user operations.
It improves the efficiency and convenience of data transmission between multiple devices, reduces user operation steps, accurately identifies data recipients, and achieves flexible and convenient data transmission.
Smart Images

Figure CN2024077345_29082024_PF_FP_ABST
Abstract
Description
Data transmission method, device, equipment and storage medium
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This application claims priority to Chinese patent application No. 202310142603.4 filed in China on February 20, 2023, the entire contents of which are incorporated herein by reference. Technical Field
[0003] The present application belongs to the field of communication technology, and specifically relates to a data transmission method, apparatus, device and storage medium. Background Art
[0004] With the development of technology, data transmission between devices has become more frequent. For example, due to the limited screen size of wearable devices, many operations such as editing text are not convenient. In this way, text can be entered on the electronic device and then copied and transmitted to the wearable device.
[0005] 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.
[0006] Summary of the Invention
[0007] 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.
[0008] 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:
[0009] When a connection is established with the second device, receiving a press input from the second screen of the second device to the first screen;
[0010] In response to a press input, acquiring a press contact area of the second screen on the first screen;
[0011] The first data is transmitted to the second device.
[0012] In a second aspect, an embodiment of the present application provides a data transmission apparatus, applied to a first device, the first device including a first screen, and the data transmission apparatus may include:
[0013] a receiving module, configured to receive a pressing input from a second screen of the second device to the first screen when a connection is established with the second device;
[0014] an acquisition module, configured to acquire, in response to a press input, a press contact area of the second screen on the first screen;
[0015] The transmission module is configured to transmit the first data to the second device.
[0016] 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 runnable on the processor. When the program or instruction is executed by the processor, the steps of the data transmission method shown in the first aspect are implemented.
[0017] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the steps of data transmission as shown in the first aspect are implemented.
[0018] In a fifth aspect, an embodiment of the present application 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 steps of the data transmission method shown in the first aspect.
[0019] 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.
[0020] 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 to obtain the data of the press contact area and automatically identify the device for receiving 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. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] FIG1 is a flowchart of a data transmission method based on a first device provided in an embodiment of the present application;
[0022] FIG2 is a schematic diagram of one of device interactions of a data transmission method provided in an embodiment of the present application;
[0023] FIG3 is a second schematic diagram of device interaction of a data transmission method provided in an embodiment of the present application;
[0024] FIG4 is a third diagram of device interaction of a data transmission method provided in an embodiment of the present application;
[0025] FIG5 is a fourth schematic diagram of device interaction of a data transmission method provided in an embodiment of the present application; FIG6 is a schematic diagram of the structure of a data transmission device based on a first device provided in an embodiment of the present application;
[0026] FIG7 is a schematic structural diagram of an electronic device provided in an embodiment of the present application;
[0027] FIG8 is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0028] The following will be combined with the accompanying drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the embodiments described are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field are within the scope of protection of this application.
[0029] The terms "first," "second," and the like in the specification and claims of this application are used to distinguish similar objects, and are not used to describe a specific order or precedence. It should be understood that the terms used in this manner are interchangeable where appropriate, so that the embodiments of this application can be implemented in an order other than that illustrated or described herein, and that the objects distinguished by "first," "second," and the like are generally of the same type, and do not limit the number of objects; for example, the first object can be one or more. In addition, the term "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.
[0030] In order to solve the problems in the related art, the data transmission method provided by the embodiment of the present application is described in detail below through specific embodiments and application scenarios in combination with Figures 1 to 5.
[0031] First, a data transmission method based on a first device provided in an embodiment of the present application is described in detail with reference to FIG1 .
[0032] FIG1 is a flowchart of a data transmission method based on a first device provided in an embodiment of the present application.
[0033] As shown in FIG1 , the data transmission method provided in the embodiment of the present application can be applied to a first device, where the first device may include a first screen. Based on this, the data transmission method may include the following steps:
[0034] Step 110, when a connection is established with the second device, receiving a press input from the second screen of the second device to the 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 the first data to the second device.
[0035] 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 of 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.
[0036] The above steps are described in detail below.
[0037] 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.
[0038] For example, the electronic device is a mobile phone 201 and the wearable device is a smart watch 202. Based on this, as shown in FIG2 , 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 so that the first screen 2011 and the second screen 2021 are completely aligned, and apply a certain pressure 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.
[0039] It should be noted that the first device in the embodiment of the present application can also be a tablet computer, and the second device can also be a mobile phone, that is, the first device and the second device in the embodiment of the present application can be devices with a touch screen, a screen pressure sensor and a data transmission function device.
[0040] Next, referring to step 120, in one or more possible embodiments, before step 120, the data transmission method may further include:
[0041] In response to a press input, determining whether a duration of the press input is greater than or equal to a preset duration;
[0042] 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.
[0043] Specifically, the pressure 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.
[0044] For example, still taking Figure 2 as an 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 area where the second screen 2021 overlaps with the first screen 2011 is determined as the press contact area; on the contrary, 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.
[0045] 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 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 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.
[0046] Then, in step 130, the embodiment of the present application can further determine the sender and receiver of the data based on the relative positions of the mobile phone 201 and the smart watch 202. Based on this, in one or more possible embodiments, step 130 may specifically include:
[0047] When the positional relationship between the first device and the second device satisfies a preset condition, transmitting the first data to the second device;
[0048] The positional relationship between the first device and the second device meeting a preset condition includes: the first device and the second device are stacked, and the first device is in a preset direction of the second device.
[0049] For example, as shown in FIG2 , if smartwatch 202 is stacked on top of mobile phone 201, that is, it is considered that the user is holding smartwatch 202 and pressing mobile phone 201, then it can be indicated that the positional relationship between mobile phone 201 and smartwatch 202 meets the preset condition. In this case, the data sender can be determined as mobile phone 201, and the data receiver can be determined as smartwatch 202. In this way, mobile phone 201 can transmit the first data to smartwatch 202. Similarly, as shown in FIG3 , if mobile phone 201 is stacked on top of smartwatch 202, that is, it is considered that the user is holding mobile phone 201 and pressing smartwatch 202, in this case, the data sender can be determined as smartwatch 202, and the data receiver can be determined as mobile phone 201. In this way, mobile phone 201 can receive the second data transmitted by smartwatch 202.
[0050] Alternatively, as shown in Figure 4, 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.
[0051] Therefore, the above 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.
[0052] In addition, in order to realize data transmission between multiple devices, before transmitting data, it is necessary to verify the identities between the data transmitting devices. The following provides a method for verifying the identities of the two parties, namely the mobile phone 201 and the smart watch 202.
[0053] Method 1: Mobile phone 201 sends a first size of the pressed contact area of the second screen on the first screen to smartwatch 202. Upon receiving the first size sent by mobile phone 201, smartwatch 202 determines whether the error between the first size and the second size is less than or equal to a preset error value, where the second size is the screen size of the second screen. If the error between the first size and the second size is less than or equal to the preset error value, authentication between mobile phone 201 and smartwatch 202 is successful. If the error between the first size and the second size is greater than the preset error value, authentication between mobile phone 201 and smartwatch 202 has failed.
[0054] Method 2: Mobile phone 201 stores information about the second size of the second screen of smart watch 202. When mobile phone 201 obtains the first size of the pressed contact area of the second screen on the first screen, it determines whether the error between the first size and the second size is less than or equal to a preset error value. If the error between the first size and the second size is less than or equal to the preset error value, authentication between mobile phone 201 and smart watch 202 is successful. If the error between the first size and the second size is greater than the preset error value, authentication between mobile phone 201 and smart watch 202 has failed.
[0055] In one or more possible embodiments, step 130 may specifically include:
[0056] When a first object is displayed on the pressed contact area, transmitting first data corresponding to the first object to the second device;
[0057] Alternatively, when no first object is 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.
[0058] For example, 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.
[0059] Furthermore, in one or more possible embodiments, after the step of transmitting the first data to the second device when no first object is displayed in the pressed contact area, the data transmission method may further include:
[0060] 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;
[0061] Information corresponding to the second data is displayed in the pressed contact area.
[0062] Exemplarily, as shown in Figure 5, if the press contact area 50 in the mobile phone 201 does not display the first object (that is, the content displayed 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 information corresponding to the second data in the press contact area, such as "Today in City A, it is cloudy, 5 degrees, and there is a strong wind. Please pay attention to travel safety."
[0063] 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 press-contact area 50. In this way, when receiving the user's input selecting to install the application installation package, the application installation package is installed, and after the installation is complete, the corresponding application icon is displayed in the press-contact area 50. Of course, the mobile phone 201 can also display the application installation package logo in the press-contact area 50 and create a new window to display the prompt information whether to install the application installation package.
[0064] In addition, in one or more possible embodiments, step 130 may specifically include:
[0065] When the first object is an application icon, transmitting an application installation package corresponding to the application icon to the second device;
[0066] 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.
[0067] Based on this, the process of determining the first data is described in detail below.
[0068] In one 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:
[0069] Obtain the application installation package of the application corresponding to the application icon;
[0070] The application installation package is determined as the first data.
[0071] In another example, the first object is at least one of the following: an image, a video, text, or audio. Before step 130, the data transmission method may further include:
[0072] determining the copy of the first object as first data;
[0073] Alternatively, the download path of the first object is determined as the first data.
[0074] In summary, the data processing method provided in the embodiments of the present application can utilize the touch screen pressure characteristics of the screens of each device, and press the screens of the first device and the second device into contact with each other 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.
[0075] It should be noted that the working principle of the second device is the same as that of the first device, and will not be repeated here.
[0076] 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, the data transmission method performed by the data transmission device is taken as an example to illustrate the data transmission device provided in the embodiment of the present application.
[0077] Based on the same inventive concept, the present application also provides a data transmission device based on the first device, which will be described in detail with reference to FIG6 .
[0078] FIG6 is a schematic structural diagram of a data transmission device based on a first device provided in an embodiment of the present application.
[0079] As shown in FIG6 , the data transmission device 60 is applied to a first device, the first device including a first screen, and the data transmission device 60 may specifically include:
[0080] Receiving module 601, configured to receive a press input from a second screen of the second device to a first screen when a connection is established with the second device;
[0081] An acquisition module 602 is configured to acquire a pressed contact area of the second screen on the first screen in response to a press input;
[0082] The transmission module 603 is configured to transmit the first data to the second device.
[0083] The data transmission device 60 is described in detail below, as follows:
[0084] 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;
[0085] Alternatively, when no first object is 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.
[0086] 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,
[0087] The receiving module 601 is further configured to, after the transmitting 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;
[0088] The display module is configured to display information corresponding to the second data in the pressed contact area.
[0089] In one or more further possible embodiments, the transmission module 603 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;
[0090] 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.
[0091] In one or more further possible embodiments, the transmission module 603 is specifically configured to transmit the first data to the second device when a positional relationship between the first device and the second device satisfies a preset condition;
[0092] The positional relationship between the first device and the second device meeting a preset condition includes: the first device and the second device are stacked, and the first device is in a preset direction of the second device.
[0093] The data transmission device in the embodiment of the present application can be an electronic device or a component in an electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal or other device other than a terminal. For example, the electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, an in-vehicle electronic device, a mobile Internet device (MID), an augmented reality (AR) / virtual reality (VR) device, a robot, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a personal digital assistant (PDA), etc. It can also be a server, a network attached storage (NAS), a personal computer (PC), a television (TV), a teller machine or a self-service machine, etc., and the embodiment of the present application does not specifically limit it.
[0094] 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.
[0095] The device collaboration apparatus provided in the embodiment of the present application can implement the various processes implemented in the data transmission method embodiments shown in Figures 1 to 5, and achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0096] Based on this, the device collaboration device provided in the embodiment of the present application can, when the first device and the second device establish a connection, receive the press input of the second screen of the second device on 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 to obtain the data of the press contact area and automatically identify the device for receiving 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.
[0097] Optionally, as shown in Figure 7, an embodiment of the present application also provides an electronic device 70, including a processor 701 and a memory 702, and the memory 702 stores a program or instruction that can be run on the processor 701. When the program or instruction is 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, it will not be repeated here.
[0098] 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.
[0099] FIG8 is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application.
[0100] 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.
[0101] Those skilled in the art will appreciate that the electronic device 800 may further include a power source (e.g., a battery) to power various components. The power source may be logically connected to the processor 810 via a power management system, thereby enabling the power management system to manage charging, discharging, and power consumption. The electronic device structure shown in FIG8 does not limit the electronic device. The electronic device may include more or fewer components than shown, or may combine certain components, or have different component arrangements, which will not be described in detail here.
[0102] In this embodiment of the present application, the user input unit 807 is configured to receive a press input from the second screen of the second device to the first screen when a connection is established with the second device. The processor 810 is configured to obtain a press contact area of the second screen on the first screen in response to the press input. The network module 802 is configured to transmit the first data to the second device.
[0103] The electronic device 800 is described in detail below.
[0104] 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;
[0105] Alternatively, when no first object is 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.
[0106] In another or more possible embodiments, the network module 802 may be further 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;
[0107] The display unit 806 is configured to display information corresponding to the second data in the pressed contact area.
[0108] 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;
[0109] 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.
[0110] In one or more further possible embodiments, the network module 802 may be specifically configured to transmit the first data to the second device when a positional relationship between the first device and the second device satisfies a preset condition;
[0111] The positional relationship between the first device and the second device meeting a preset condition includes: the first device and the second device are stacked, and the first device is in a preset direction of the second device.
[0112] 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 the static image or video obtained by the image capture device (such as a camera) in the video capture mode or the 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 a touch panel 8071 and at least one of the other input devices 8072. The touch panel 8071 is also called 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.
[0113] The memory 809 can be used to store software programs and various data. The memory 809 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data. The first storage area may store an operating system, applications or instructions required for at least one function (such as a sound playback function, an image playback function, etc.). In addition, the memory 809 may include volatile memory or non-volatile memory, or the memory 809 may include both volatile and non-volatile memory. The non-volatile memory may 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 random access memory (RAM), static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct RAM 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.
[0114] Processor 810 may include one or more processing units. Optionally, processor 810 integrates an application processor and a modem processor. The application processor primarily handles operations related to the operating system, user interface, and application programs, while the modem processor primarily processes wireless display signals, such as a baseband processor. It is understood that the modem processor may not be integrated into processor 810.
[0115] 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.
[0116] 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.
[0117] 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. 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.
[0118] 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.
[0119] 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.
[0120] It should be noted that, in this document, the terms "comprises," "includes," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a process, method, article, or apparatus comprising a series of elements includes not only those elements but also other elements not explicitly listed, or elements inherent to such process, method, article, or apparatus. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of other identical elements in the process, method, article, or apparatus comprising the element.
[0121] Furthermore, it should be noted that the scope of the methods and apparatuses in the embodiments of the present application is not limited to performing functions in the order shown or discussed, but may also include performing functions substantially simultaneously or in reverse order depending on the functions involved. For example, the methods described may be performed in an order different from that described, and various steps may be added, omitted, or combined. Furthermore, features described with reference to certain examples may be combined in other examples.
[0122] 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 the necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this 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, magnetic disk, optical disk), and includes a number of instructions for enabling a terminal (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods of each embodiment of the present application.
[0123] 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 this application, ordinary technicians in this field can also make many forms without departing from the purpose of this application and the scope of protection of the claims, all of which are within the protection of this application.
Claims
1. A data transmission method, applied to a first device, wherein the first device includes a first screen, comprising: 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; The first data is transmitted to the second device.
2. The method according to claim 1, wherein: The transmitting the first data to the second device includes: 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; 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.
3. The method according to claim 2, wherein: In the case where the first object is not displayed in the pressed contact area, after transmitting the first data to the second device, the method further includes: 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.
4. The method according to claim 2, wherein: 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: In the case where the first object is an application icon, the application icon is transmitted to the second device. The application installation package corresponding to the icon; 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.
5. The method according to claim 1, wherein: 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.
6. A data transmission device, applied to a first device, wherein the first device includes a first screen, comprising: 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 is used to transmit the first data to the second device.
7. The device according to claim 6, wherein: The transmission module is specifically configured to transmit first data corresponding to the first object to the second device when the first object is displayed in the pressed contact area; 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.
8. The device according to claim 7, wherein: The data transmission device also includes a display module; wherein, The receiving module is further configured to, after the transmission module transmits the first data to the second device when the first object is not 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.
9. The device according to claim 7, wherein: 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.
10. The device according to claim 6, wherein: 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.
11. A first device, comprising: 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 steps of data transmission as described in any one of claims 1 to 5.
12. A readable storage medium storing a program or an instruction, wherein the program or the instruction, when executed by a processor, implements the data transmission step according to any one of claims 1 to 5.
13. An electronic device, comprising: the electronic device being configured to execute the steps of the data transmission method according to any one of claims 1 to 5.
14. A chip, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the steps of the data transmission method according to any one of claims 1 to 5.
15. A computer program product, wherein the computer program product is stored in a non-transitory storage medium, and wherein the computer program product is executed by at least one processor to implement the steps of the data transmission method according to any one of claims 1 to 5.
Citation Information
Patent Citations
Method and system enabling intelligent watch to synchronously display content of intelligent mobile phone
CN103491140A
Method realizing data transmission of intelligent watch, device and intelligent watch
CN105137750A
Data transmission method and device, equipment and storage medium
CN116132456A
Communication method for capacitive touch panel
US20130147760A1
Mobile terminal, glasses-type terminal, and mutual interworking method using screens thereof
US20160054567A1
