Data transmission method, device and system

By introducing the viewfinder interface and device identification mechanism into electronic devices, the data transmission process between electronic devices is simplified, the problem of cumbersome transmission process is solved, and efficient data transmission and convenient user experience are achieved.

CN118694732APending Publication Date: 2024-09-24HUAWEI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310311356.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-21
Publication Date
2024-09-24

AI Technical Summary

Technical Problem

In the existing technology, the data transmission process between electronic devices is cumbersome, which affects the data processing efficiency, and the transmission method is complex, making it difficult to achieve efficient cross-device data flow.

Method used

By introducing a viewfinder interface into electronic devices, users can transfer data from the local device to the opposite device through drag and drop operations, using the device's identification and connection request mechanism to simplify the data transmission process, identify peripheral devices and determine the target device, achieving Efficient transfer of data between devices.

Benefits of technology

It simplifies the data transmission process, improves data transmission efficiency, reduces user operation costs, enhances user experience, and enables convenient cross-device data flow.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118694732A
    Figure CN118694732A
Patent Text Reader

Abstract

The invention provides a data transmission method, device and system. The method can be applied to a first electronic device, the first electronic device displays first data, and in response to a first operation of a user on the first data, the first electronic device opens a view finding interface; and in response to a second operation of the user on the first data, the first electronic equipment sends the first data to the opposite-end equipment, and the opposite-end equipment displays the first data. According to the data transmission method, a user can realize data transmission through the view-finding interface of the first electronic equipment, so that the data transmission efficiency is improved, and the user can conveniently process data on opposite-end equipment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present application relate to the field of electronic devices, and more specifically, to a method, device, and system for transmitting data. Background Art

[0002] With the development of science and technology, users can collaboratively process data through electronic devices such as smartphones, tablets, and personal computers. To facilitate data processing, the transmission of data between electronic devices is the key to affecting data processing efficiency. At present, the process of transmitting data between devices is relatively cumbersome, which affects the efficiency of data transmission.

[0003] Therefore, how to provide a method for transmitting data with simple operation to improve the efficiency of transmitting data is a problem that needs to be solved urgently. Summary of the invention

[0004] The embodiments of the present application provide a method, device and system for transmitting data. The method simplifies the process of transmitting data between various devices and improves the efficiency of transmitting data.

[0005] In a first aspect, a method for transmitting data is provided, the method being applied to a first electronic device, the first electronic device displaying first data, the method comprising: in response to a first operation of a user on the first data, the first electronic device opening a viewfinder interface, the viewfinder interface comprising at least one peripheral device; in response to a second operation of the user on the first data, the first electronic device sending the first data to a peer device, the first data being used for display on the peer device, the peer device belonging to the at least one peripheral device.

[0006] Exemplarily, the first electronic device can be understood as the local device, the first data can be understood as the data to be transmitted, the first operation can be understood as the user dragging the first data to the edge of the first electronic device and maintaining a certain time threshold, and the second operation can be understood as the user releasing the drag of the first data.

[0007] Based on the above scheme, the user can realize data transmission through the viewfinder interface of the first electronic device, and the user can directly realize the flow of data through the user interface of the first electronic device, which simplifies the process of transmitting data, improves the efficiency of transmitting data, facilitates the user to process data on the other device, and improves the user experience.

[0008] In combination with the first aspect, in some implementations of the first aspect, the viewfinder interface includes at least one second electronic device, and the method further includes: determining the at least one surrounding device from the at least one second electronic device.

[0009] Exemplarily, the viewfinder interface may display devices within the viewfinder range of at least one first electronic device camera, which may be understood as second electronic devices. The first electronic device needs to identify these electronic devices, filter out peripheral devices from at least one second electronic device, and then filter out the target device from the peripheral devices.

[0010] In combination with the first aspect, in certain implementations of the first aspect, determining at least one surrounding device from the at least one second electronic device includes: determining the at least one surrounding device from the at least one second electronic device based on at least one of the following: a device type of the at least one second electronic device, account information of the at least one second electronic device, and location information of the at least one second electronic device.

[0011] In combination with the first aspect, in some implementations of the first aspect, the method further includes: identifying a device type of the at least one second electronic device on the viewfinder interface.

[0012] Exemplarily, the device type of the second electronic device can be understood as a specific device type such as a smart screen, a personal computer, etc., the account information of the second electronic device can be understood as the user account information logged in to the second electronic device, and the location information of the second electronic device can be understood as the specific area where the second electronic device is located (for example, a bedroom, a living room).

[0013] Based on the above scheme, the first electronic device can determine the surrounding devices from the second electronic device through some specific information. When the first electronic device obtains the device type of the second electronic device through the viewfinder interface, it can also determine the surrounding devices in combination with specific information such as the account information of the second electronic device and the location information of the second electronic device. For example, the first electronic device determines the smart screen with the same account as the first electronic device and in the same area as the surrounding device.

[0014] In combination with the first aspect, in certain implementations of the first aspect, the method further includes: in response to opening the viewfinder interface, sending a connection request message; the at least one second electronic device displays a first mark, wherein determining the at least one surrounding device from the at least one second electronic device includes: scanning the first mark of the at least one second electronic device on the viewfinder interface; determining the at least one surrounding device based on the first mark of the at least one second electronic device.

[0015] Exemplarily, the first mark may be a plain code or a hidden code. The plain code may be a QR code or a dynamic code. The first mark of the second electronic device may be displayed in response to an operation of the user on the second electronic device, or may be displayed in advance on the second electronic device.

[0016] Based on the above solution, the first electronic device opens the viewfinder interface and can identify the surrounding devices by scanning the clear code or hidden code through the viewfinder interface.

[0017] It should be noted that when the second electronic device and the first electronic device are different account devices, the second electronic device can periodically display the first mark, and when the second electronic device receives the connection request information sent by the first electronic device, the period of displaying the first mark by the second electronic device can be shortened. Of course, the second electronic device can also continuously display the first mark.

[0018] In combination with the first aspect, in certain implementations of the first aspect, the method further includes: displaying a second mark on the peripheral device of the viewfinder interface according to the type of the first data, the second mark being used to prompt a user that the peripheral device is a potentially available device for the first data.

[0019] Based on the above solution, the first electronic device can also mark potential available devices on the viewfinder interface according to the type of the first data to prompt the user to select available peripheral devices, thereby improving the efficiency of the user in selecting peripheral devices.

[0020] In combination with the first aspect, in some implementations of the first aspect, before the first electronic device sends the first data to the opposite device, the method further includes: determining the opposite device from the at least one surrounding device based on the area where the second operation is located.

[0021] Exemplarily, the area where the second operation is located is the release location of the first data.

[0022] Based on the above scheme, the first electronic device can determine the opposite device from at least one peripheral device, and the opposite device receives the first data as the target device and processes the first data. The first data can be processed by displaying, pasting or sending. The first electronic device determines the opposite device according to the user's operation on the interactive interface in a more convenient way, which improves the efficiency of data transmission.

[0023] In combination with the first aspect, in certain implementations of the first aspect, the at least one peripheral device includes a first peripheral device and a second peripheral device, wherein the determining the opposite device from the at least one peripheral device based on the area where the second operation is located includes: when the area where the second operation is located overlaps with the hot zone of the first peripheral device, determining that the first peripheral device is the opposite device; when the area where the second operation is located overlaps with the hot zone of the second peripheral device, determining that the second peripheral device is the opposite device.

[0024] In combination with the first aspect, in certain implementations of the first aspect, the method also includes: when the area where the second operation is located overlaps with the hot zone of the first surrounding device and overlaps with the hot zone of the second surrounding device, in response to the user's third operation of the third mark on the first surrounding device, determining that the first surrounding device is the opposite device; or in response to the user's third operation of the fourth mark on the second surrounding device, determining that the second surrounding device is the opposite device.

[0025] It should be noted that the first electronic device determines the opposite device based on the overlapping relationship between the release position of the first data and the hot zone of the peripheral device. When the release position of the first data overlaps with the hot zone of a peripheral device, the first electronic device determines that the peripheral device is the opposite device. When the release position of the first data overlaps with the hot zones of multiple peripheral devices, the first electronic device determines that one of the peripheral devices is the opposite device based on the user's selection operation. The user's selection operation can be understood as the user clicking the third mark of the first peripheral device or the user clicking the fourth mark of the second peripheral device.

[0026] Based on the above solution, the first electronic device can determine the opposite device according to the release position of the data to be transmitted, which simplifies the steps of determining the opposite device, saves the process of determining the opposite device, and further improves the efficiency of transmitting data.

[0027] In a second aspect, a method for transmitting data is provided, which is applied to a third electronic device, and the method includes: in response to receiving first data from a first electronic device, displaying the first data; wherein displaying the first data includes: displaying a thumbnail of the first data on a first interface of the third electronic device, the first interface being a default path for the first data; or displaying the first data on a second interface of the third electronic device, the second interface being an interface of a first application of the third electronic device, the first application being an application for processing the first data.

[0028] Exemplarily, the third electronic device can be understood as the peer device. The first interface of the third electronic device can be understood as the interface corresponding to the default path for storing the data to be transmitted. The data to be transmitted can be directly displayed or pasted on the interface of the first application, or sent through the first application.

[0029] Based on the above solution, after receiving the data to be transmitted, the peer device can display it on the peer device, which is convenient for the user to directly obtain the first data through the user interface of the peer device. After the data is transmitted, the user can process the data on the peer device.

[0030] In combination with the second aspect, in some implementations of the second aspect, before displaying the first data, the method further includes: displaying first prompt information, where the first prompt information is used to prompt the user to confirm displaying the first data on the third electronic device.

[0031] Exemplarily, when the peer device and the local device are devices with different accounts, the user can confirm on the peer device whether to receive data from the local device on the peer device.

[0032] Based on the above scheme, before the peer device displays the first data, the user can confirm whether to receive the first data on the peer device. When the user confirms to receive the first data on the peer device, the first data can be displayed on the peer device. This provides a way for the user to choose whether to receive the data to be transmitted, thereby avoiding data congestion or resource waste that may be caused by directly displaying unfiltered data on the peer device.

[0033] In combination with the second aspect, in certain implementations of the second aspect, the method also includes: sending account information of the third electronic device and location information of the third electronic device to the first electronic device, wherein the account information of the third electronic device and the location information of the third electronic device are used to determine at least one surrounding device, and the third electronic device belongs to the at least one surrounding device.

[0034] In combination with the second aspect, in certain implementations of the second aspect, the method further includes: in response to receiving connection request information from the first electronic device, displaying a first mark, the first mark being used to determine at least one surrounding device, to which the third electronic device belongs.

[0035] According to a third aspect, a system for transmitting data is provided, comprising a first electronic device and a second electronic device, wherein the first electronic device displays first data, and the first electronic device is used to open a viewfinder interface in response to a first operation of a user on the first data, wherein the viewfinder interface includes at least one peripheral device; the first electronic device is also used to send the first data to a peer device in response to a second operation of the user on the first data, wherein the first data is displayed by the user on the peer device; and the second electronic device displays the first data in response to receiving the first data from the first electronic device, wherein the second electronic device includes the at least one peripheral device, and the at least one peripheral device includes the peer device.

[0036] In combination with the third aspect, in some implementations of the third aspect, the viewfinder interface includes at least one of the second electronic devices, and the first electronic device is further used to determine the at least one surrounding device from the at least one second electronic device.

[0037] In combination with the third aspect, in certain implementations of the third aspect, the first electronic device is further used to determine the at least one surrounding device from at least one of the second electronic devices based on at least one of the following: a device type of at least one of the second electronic devices, account information of at least one of the second electronic devices, and location information of at least one of the second electronic devices; the second electronic device is further used to send the account information of the second electronic device and the location information of the second electronic device to the first electronic device.

[0038] In combination with the third aspect, in some implementations of the third aspect, the first electronic device is further used to identify a device type of at least one of the second electronic devices on the viewfinder interface.

[0039] In combination with the third aspect, in certain implementations of the third aspect, the first electronic device is further used to send a connection request message in response to opening the viewfinder interface; the second electronic device is further used to display a first mark in response to receiving the connection request message from the first electronic device; the first electronic device is further used to scan the first mark of at least one of the second electronic devices on the viewfinder interface; the first electronic device is further used to determine the at least one surrounding device based on the first mark of at least one of the second electronic devices.

[0040] In combination with the third aspect, in certain implementations of the third aspect, the first electronic device is further used to display a second mark on the peripheral device of the viewfinder interface according to the type of the first data, and the second mark is used to prompt the user that the peripheral device is a potentially available device for the first data.

[0041] In combination with the third aspect, in some implementations of the third aspect, the first electronic device is further used to determine the opposite device from the at least one peripheral device according to the area where the second operation is located.

[0042] In combination with the third aspect, in certain implementations of the third aspect, the at least one peripheral device includes a first peripheral device and a second peripheral device, and when the area where the second operation is located overlaps with the hot zone of the first peripheral device, the first electronic device is also used to determine that the first peripheral device is the opposite device; when the area where the second operation is located overlaps with the hot zone of the second peripheral device, the first electronic device is also used to determine that the second peripheral device is the opposite device.

[0043] In combination with the third aspect, in certain implementations of the third aspect, when the area where the second operation is located overlaps with the hot zone of the first surrounding device and overlaps with the hot zone of the second surrounding device, the first electronic device is further used to respond to the user's third operation of a third mark on the first surrounding device to determine that the first surrounding device is the opposite device; or the first electronic device is further used to respond to the user's third operation of a fourth mark on the second surrounding device to determine that the second surrounding device is the opposite device.

[0044] In a fourth aspect, a device for transmitting data is provided, which is a device, or a device having some or all of the functions of a device, and displays first data. The device includes: a processing module, for responding to a first operation of a user on the first data, causing a first electronic device to open a viewfinder interface, wherein the viewfinder interface includes at least one peripheral device; and responding to a second operation of the user on the first data, causing the first electronic device to send the first data to a peer device, wherein the first data is used for display on the peer device, and the peer device belongs to the at least one peripheral device.

[0045] In combination with the fourth aspect, in some implementations of the fourth aspect, the viewfinder interface includes at least one second electronic device, and the processing module is further used to determine the at least one peripheral device from the at least one second electronic device.

[0046] In combination with the fourth aspect, in certain implementations of the fourth aspect, the processing module is further used to determine the at least one surrounding device from the at least one second electronic device based on at least one of the following: a device type of the at least one second electronic device, account information of the at least one second electronic device, and location information of the at least one second electronic device.

[0047] In combination with the fourth aspect, in some implementations of the fourth aspect, the processing module is further used to identify a device type of the at least one second electronic device in the viewfinder interface.

[0048] In combination with the fourth aspect, in certain implementations of the fourth aspect, the device also includes a transceiver module, which is further used to send a connection request message in response to the opening of the viewfinder interface; the at least one second electronic device displays a first mark, and the processing module is further used to scan the first mark of the at least one second electronic device on the viewfinder interface; and determine the at least one surrounding device based on the first mark of the at least one second electronic device.

[0049] In combination with the fourth aspect, in certain implementations of the fourth aspect, the processing module is further used to display a second mark on the peripheral device of the viewfinder interface according to the type of the first data, and the second mark is used to prompt the user that the peripheral device is a potentially available device for the first data.

[0050] In combination with the fourth aspect, in certain implementations of the fourth aspect, the processing module is further used to determine the opposite-end device from the at least one peripheral device according to the area where the second operation is located.

[0051] In combination with the fourth aspect, in certain implementations of the fourth aspect, the at least one peripheral device includes a first peripheral device and a second peripheral device, and the processing module is further used to determine that the first peripheral device is the opposite device when the area where the second operation is located overlaps with the hot zone of the first peripheral device; the processing module is further used to determine that the second peripheral device is the opposite device when the area where the second operation is located overlaps with the hot zone of the second peripheral device.

[0052] In combination with the fourth aspect, in certain implementations of the fourth aspect, the processing module is further used to determine that the first peripheral device is the opposite device in response to a third operation of a third mark of the first peripheral device by a user when the area where the second operation is located overlaps with the hot zone of the first peripheral device and overlaps with the hot zone of the second peripheral device; or the processing module is further used to determine that the second peripheral device is the opposite device in response to a third operation of a fourth mark of the second peripheral device by a user.

[0053] In a fifth aspect, a device for transmitting data is provided, which includes a device, or a device having some or all of the functions of the device, and the device includes a processing module, and the processing module is used to display the first data in response to receiving the first data from the first electronic device; wherein, the display of the first data, the processing module is specifically used to display a thumbnail of the first data on a first interface of a third electronic device, and the first interface is a default path for the first data; or to display the first data on a second interface of the third electronic device, and the second interface is an interface of a first application of the third electronic device, and the first application is an application for processing the first data.

[0054] In combination with the fifth aspect, in certain implementations of the third aspect, the processing module is further used to display a first prompt message, where the first prompt message is used to prompt the user to confirm displaying the first data on the third electronic device.

[0055] In combination with the fifth aspect, in certain implementations of the fifth aspect, the device also includes a transceiver module, which is used to send the account information of the third electronic device and the location information of the third electronic device to the first electronic device, wherein the account information of the third electronic device and the location information of the third electronic device are used to determine at least one surrounding device, and the third electronic device belongs to the at least one surrounding device.

[0056] In combination with the fifth aspect, in certain implementations of the fifth aspect, the processing module is further used to display a first mark in response to receiving a connection request information from the first electronic device, wherein the first mark is used to determine at least one surrounding device, and the third electronic device belongs to the at least one surrounding device.

[0057] In a sixth aspect, a device for transmitting data is provided, comprising: a processor coupled to a memory, the memory being used to store a computer program, the processor being used to run the computer program, so that the device for transmitting data executes a method as in the first aspect and any possible implementation thereof, or so that the device for transmitting data executes a method as in the second aspect and any possible implementation thereof.

[0058] In combination with the sixth aspect, in some implementations of the sixth aspect, the device further includes one or more of the memory and the transceiver, the transceiver being used to receive a signal and / or send a signal.

[0059] In the seventh aspect, a computer-readable storage medium is provided, which includes a computer program or instructions. When the computer program or instructions are run on a computer, the method in the first aspect and any possible implementation thereof is executed, or the method in the second aspect and any possible implementation thereof is executed.

[0060] In an eighth aspect, a computer program product is provided, which includes a computer program or instructions. When the computer program or instructions are run on a computer, the method in the first aspect and any possible implementation thereof is executed, or the method in the second aspect and any possible implementation thereof is executed.

[0061] In a ninth aspect, a computer program is provided, which, when executed on a computer, enables the method in the first aspect and any possible implementation thereof to be executed, or enables the method in the second aspect and any possible implementation thereof to be executed. BRIEF DESCRIPTION OF THE DRAWINGS

[0062] Figure 1 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application.

[0063] Figure 2 It is a software structure block diagram of the electronic device provided in the embodiment of the present application.

[0064] Figure 3 It is a schematic diagram of a scenario applicable to the data transmission method provided in an embodiment of the present application.

[0065] Figure 4 It is a flowchart of a method for transmitting data provided in an embodiment of the present application.

[0066] Figure 5 It is a schematic diagram of a framing interface prompting potentially available devices provided by an embodiment of the present application.

[0067] Figure 6 It is a flowchart of a method for identifying peripheral devices provided in an embodiment of the present application.

[0068] Figure 7 It is a flowchart of a method for identifying peripheral devices provided in an embodiment of the present application.

[0069] Figure 8 It is a flowchart of a method for determining a peer device provided in an embodiment of the present application.

[0070] Fig. 9 This is a schematic diagram of displaying data on a peer device provided in an embodiment of the present application.

[0071] Fig.10 It is a schematic flow chart of a method for transmitting data provided in an embodiment of the present application. DETAILED DESCRIPTION

[0072] The technical solutions in the embodiments of the present application will be described below in conjunction with the accompanying drawings.

[0073] The terms used in the following embodiments are only for the purpose of describing specific embodiments, and are not intended to be used as limitations on the present application. As used in the specification and the appended claims of the present application, the singular expressions "one", "a kind of", "said", "above", "the" and "this" are intended to also include expressions such as "one or more", unless there is a clear contrary indication in the context. It should also be understood that in the following embodiments of the present application, "at least one", "one or more" refer to one, two or more. The term "and / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist; for example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The character " / " generally indicates that the objects associated before and after are in an "or" relationship.

[0074] References to "one embodiment" or "some embodiments" etc. described in this specification mean that a particular feature, structure or characteristic described in conjunction with the embodiment is included in one or more embodiments of the present application. Thus, the phrases "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear at different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.

[0075] The following describes an electronic device, a user interface for such an electronic device, and embodiments for using such an electronic device. In some embodiments, the electronic device may be a portable electronic device that also includes other functions such as a personal digital assistant and / or a music player function, such as a mobile phone, a tablet computer, a wearable electronic device with wireless communication function (such as a smart watch), etc. Exemplary embodiments of portable electronic devices include but are not limited to devices equipped with Or a portable electronic device with other operating systems. The portable electronic device may also be other portable electronic devices, such as a laptop computer. It should also be understood that in some other embodiments, the electronic device may not be a portable electronic device, but a desktop computer. In some other embodiments, the electronic device may be an instrument for measurement, such as an oscilloscope.

[0076] For example, Figure 11 shows a schematic diagram of the structure of the electronic device 100. The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.

[0077] It is to be understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.

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

[0079] The controller may be the nerve center and command center of the electronic device 100. The controller may generate an operation control signal according to the instruction operation code and the timing signal to complete the control of fetching and executing instructions.

[0080] The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.

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

[0082] The wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.

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

[0084] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G, etc., applied to the electronic device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the same device as at least some of the modules of the processor 110.

[0085] The modem processor may include a modulator and a demodulator. Among them, the modulator is used to modulate the low-frequency baseband signal to be sent into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After the low-frequency baseband signal is processed by the baseband processor, it is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to a speaker 170A, a receiver 170B, etc.), or displays an image or video through a display screen 194. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 110 and be set in the same device as the mobile communication module 150 or other functional modules.

[0086] The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., which are applied to the electronic device 100. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the frequency of the electromagnetic wave signal and performs filtering, and sends the processed signal to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, modulate the frequency of it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.

[0087] In some embodiments, the antenna 1 of the electronic device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology. The wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technology. The GNSS may include a global positioning system (GPS), a global navigation satellite system (GLONASS), a Beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS) and / or a satellite based augmentation system (SBAS).

[0088] The electronic device 100 implements the display function through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or change display information.

[0089] The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the electronic device 100 may include 1 or N display screens 194, where N is a positive integer greater than 1.

[0090] The electronic device 100 can realize the shooting function through ISP, camera 193, video codec, GPU, display screen 194 and application processor.

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

[0092] The camera 193 is used to capture still images or videos. The object generates an optical image through the lens and projects it onto the photosensitive element. The photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, and then passes the electrical signal to the ISP to be converted into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV or other format. In some embodiments, the electronic device 100 may include 1 or N cameras 193, where N is a positive integer greater than 1.

[0093] The digital signal processor is used to process digital signals, and can process not only digital image signals but also other digital signals. For example, when the electronic device 100 is selecting a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy.

[0094] Video codecs are used to compress or decompress digital videos. The electronic device 100 may support one or more video codecs. Thus, the electronic device 100 may play or record videos in a variety of coding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.

[0095] NPU is a neural network (NN) computing processor. By drawing on the structure of biological neural networks, such as the transmission mode between neurons in the human brain, it can quickly process input information and can also continuously self-learn. Through NPU, applications such as intelligent cognition of electronic device 100 can be realized, such as image recognition, face recognition, voice recognition, text understanding, etc.

[0096] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function, such as storing music, video and other files in the external memory card.

[0097] The internal memory 121 can be used to store computer executable program codes, which include instructions. The processor 110 executes various functional applications and data processing of the electronic device 100 by running the instructions stored in the internal memory 121. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area may store data created during the use of the electronic device 100 (such as audio data, a phone book, etc.), etc. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc.

[0098] The electronic device 100 can implement audio functions such as music playing and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor.

[0099] The audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals. The audio module 170 can also be used to encode and decode audio signals. In some embodiments, the audio module 170 can be arranged in the processor 110, or some functional modules of the audio module 170 can be arranged in the processor 110.

[0100] The speaker 170A, also called a "speaker", is used to convert an audio electrical signal into a sound signal. The electronic device 100 can listen to music or listen to a hands-free call through the speaker 170A.

[0101] The receiver 170B, also called a "earpiece", is used to convert audio electrical signals into sound signals. When the electronic device 100 receives a call or voice message, the voice can be received by placing the receiver 170B close to the human ear.

[0102] Microphone 170C, also called "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can speak by putting their mouth close to microphone 170C to input the sound signal into microphone 170C. The electronic device 100 can be provided with at least one microphone 170C. In other embodiments, the electronic device 100 can be provided with two microphones 170C, which can not only collect sound signals but also realize noise reduction function. In other embodiments, the electronic device 100 can also be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify the sound source, realize directional recording function, etc.

[0103] The pressure sensor 180A is used to sense the pressure signal and can convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A can be set on the display screen 194. There are many types of pressure sensors 180A, such as resistive pressure sensors, inductive pressure sensors, capacitive pressure sensors, etc. The capacitive pressure sensor can be a parallel plate including at least two conductive materials. When a force acts on the pressure sensor 180A, the capacitance between the electrodes changes. The electronic device 100 determines the intensity of the pressure based on the change in capacitance. When a touch operation acts on the display screen 194, the electronic device 100 detects the touch operation intensity according to the pressure sensor 180A. The electronic device 100 can also calculate the touch position based on the detection signal of the pressure sensor 180A. In some embodiments, touch operations acting on the same touch position but with different touch operation intensities can correspond to different operation instructions. For example, when a touch operation with a touch operation intensity greater than or equal to the first pressure threshold acts on the alarm application icon, an instruction to create a new alarm is executed.

[0104] The fingerprint sensor 180H is used to collect fingerprints. The electronic device 100 can use the collected fingerprint characteristics to realize fingerprint unlocking, access application locks, fingerprint photography, fingerprint answering calls, etc. For example, when the mobile phone detects a user's touch operation on the lock screen interface, the mobile phone can collect the user's fingerprint information through the fingerprint sensor 180H, and match the collected fingerprint information with the fingerprint information preset in the mobile phone. If the match is successful, the mobile phone can enter the non-lock screen interface from the lock screen interface.

[0105] The touch sensor 180K is also called a "touch panel". The touch sensor 180K can be set on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, also called a "touch screen". The touch sensor 180K is used to detect touch operations acting on or near it. The touch sensor can pass the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through the display screen 194. In other embodiments, the touch sensor 180K can also be set on the surface of the electronic device 100, which is different from the position of the display screen 194.

[0106] Figure 2 1 is a software structure diagram of the electronic device 100 of the embodiment of the present application. The layered architecture divides the software into several layers, each layer has a clear role and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, from top to bottom, namely, the application layer, the application framework layer, the Android runtime (Android runtime) and the system library, and the kernel layer. The application layer can include a series of application packages.

[0107] like Figure 2 As shown, the application layer may include camera, settings, skin module, user interface (UI), third-party applications, etc. Among them, the third-party applications may include gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message, etc.

[0108] The application framework layer provides an application programming interface (API) and a programming framework for the applications in the application layer. The application framework layer may include some predefined functions.

[0109] like Figure 2 As shown, the application framework layer may include a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, and the like.

[0110] The window manager is used to manage window programs. The window manager can obtain the display screen size, determine whether there is a status bar, lock the screen, capture the screen, etc. The content provider is used to store and obtain data and make the data accessible to applications. The data may include video, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.

[0111] The view system includes visual controls, such as controls for displaying text, controls for displaying images, etc. The view system can be used to build applications. The display interface can be composed of one or more views.

[0112] The phone manager is used to provide communication functions of the electronic device 100, such as management of call status (including connecting, hanging up, etc.).

[0113] The resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.

[0114] The notification manager enables applications to display notification information in the status bar. It can be used to convey notification-type messages and can disappear automatically after a short stay without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc. The notification manager can also be a notification that appears in the system top status bar in the form of a chart or scroll bar text, such as notifications of applications running in the background, or a notification that appears on the screen in the form of a dialog window. For example, a text message is displayed in the status bar, a prompt sound is emitted, an electronic device vibrates, an indicator light flashes, etc.

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

[0116] The core library consists of two parts: one part is the function that needs to be called by the Java language, and the other part is the Android core library.

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

[0118] The system library may include multiple functional modules, such as surface manager, media libraries, 3D graphics processing library (such as OpenGL ES), 2D graphics engine (such as SGL), etc.

[0119] The surface manager is used to manage the display subsystem and provide the fusion of 2D and 3D layers for multiple applications.

[0120] The media library supports playback and recording of a variety of commonly used audio and video formats, as well as static image files, etc. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.

[0121] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.

[0122] A 2D graphics engine is a drawing engine for 2D drawings.

[0123] In addition, the system library may also include status monitoring service modules, such as a physical status recognition module for analyzing and identifying user gestures; a sensor service module for monitoring sensor data uploaded by various sensors at the hardware layer to determine the physical status of the electronic device 100.

[0124] The kernel layer is the layer between hardware and software. The kernel layer contains at least display driver, camera driver, audio driver, and sensor driver.

[0125] The hardware layer can include various types of sensors, such as Figure 1 Various types of sensors introduced in.

[0126] Combined with the above Figure 1 and Figure 2 The electronic device introduced in the embodiment of the present application may be a mobile phone terminal, a tablet computer, a smart screen and other intelligent devices. The physical devices involved in the electronic device 100 mainly include hardware components such as sensors, decision support systems (DSS) display chips, touch screens, fingerprint recognition modules, etc.; as well as kernel software layers such as screen management modules, display drivers, fingerprint drivers, and anti-mistouch; application framework layer functions such as anti-mistouch input, screen control, always on display (AOD) services, power management, etc.; and application layer services such as special adaptation applications (camera), third-party applications, system sleep, and AOD.

[0127] With the development of science and technology, users can collaboratively process tasks through electronic devices such as smartphones, tablets, personal computers, and smart screens. To facilitate the flow or transmission of tasks between various smart devices, for example, specific data can be transmitted by logging into the same application on two electronic devices, or by the communication function of the electronic device itself. If transmitted through an application, each electronic device needs to have the same application installed, and the specific transmission process is relatively cumbersome, and efficient data transmission cannot be achieved. The method of using the communication function of an electronic device for data transmission is limited to the specific device design of the electronic device or to other cumbersome operating procedures, and more efficient data transmission cannot be achieved.

[0128] Therefore, in response to the above technical problems, an embodiment of the present application provides a method for transmitting data, which triggers the cross-device transmission function through the user's operation on transmitting data, and uses the electronic device's framing interface to identify peripheral devices and realize data transmission.

[0129] The framing interface in this application refers to the interface where the object to be photographed can be seen from the display screen of the electronic device after the camera of the electronic device is turned on. It may also be called a "preview interface", "shooting interface", etc. This application does not limit the name.

[0130] like Figure 3 , a schematic diagram of a scenario in which the method for transmitting data provided in an embodiment of the present application can be applied is shown. The scenario includes multiple electronic devices, for example, a smart screen 310, a personal computer 320, a smart phone 330, and a tablet computer 340. Figure 3 The direction of the arrow in the figure can indicate the direction of data transmission between electronic devices. For example, the smart phone 330 can transmit data to the smart screen 310, the personal computer 320, and the tablet computer 340. The specific content of the data, such as files, pictures, videos, etc., can be displayed on the screens of the smart screen 310, the personal computer 320, and the tablet computer 340.

[0131] For ease of understanding, Figure 4 The present invention provides a schematic diagram of a data transmission process. The following takes the example of a smartphone transmitting data to a smart screen to introduce the data transmission process.

[0132] like Figure 4As shown in (a) in the figure, the photo interface of a smartphone is shown. The photo interface includes multiple pictures, for example, picture 401. The bottom of the photo interface includes four control information, namely photos, albums, moments and discovery controls. The control is a visual graphical interface element presented to the user. It is a software component included in the application, which controls the data processed by the application and the interactive operations on the data. The user can interact with the control through touch, sliding and other operations to read and edit the relevant information of the application. Generally speaking, controls can include visual interface elements such as icons, buttons, menus, tabs, text boxes, status bars, etc. In response to user operations on different controls (for example: touch operations, or click operations), different interfaces can be displayed on the screen of the electronic device. The current display interface shows the display interface corresponding to the photo control. This interface shows today's pictures and yesterday's pictures. In response to the user dragging picture 401 to the right edge of the photo interface and maintaining a certain time threshold, the smartphone can display the following Figure 4 The graphical user interface (GUI) shown in (b) in FIG.

[0133] like Figure 4 As shown in (b) of FIG. 1 , in response to the user dragging the image 401 to the right edge of the display interface and maintaining the operation for a certain time threshold, the smartphone displays the viewfinder interface. The viewfinder interface can be a smartphone opening the camera and displaying the surrounding information obtained by the camera. For example, when there is a smart screen around the smartphone, the smartphone's viewfinder interface displays the smart screen 402 and the image thumbnail 403. In response to the user releasing the image thumbnail 403, the smartphone can display the following Figure 4 The GUI shown in (c) in FIG. 4 , wherein the picture thumbnail 403 is a thumbnail of the picture 401 .

[0134] like Figure 4 As shown in (c) in the figure, in response to the user releasing the picture thumbnail 403, the smart screen can display the picture 401. At the same time, the picture 401 is also displayed on the smart screen 402 of the smartphone viewfinder interface. When the picture 401 is displayed on the smart screen, the data transmission process is completed. The user can observe the picture 401 on the interactive interface of the smart screen.

[0135] According to the above Figure 4 The main process of transmitting data is described in detail. The method for transmitting data provided in the embodiment of the present application is mainly divided into the following steps:

[0136] Step 1: Open the viewfinder interface.

[0137] For example, Figure 4As shown in (a), the user can trigger the opening of the smartphone viewfinder interface by dragging the data to be transmitted (e.g., picture 401) to the edge of the smartphone and maintaining it for a certain time threshold. The specific form of the data to be transmitted can be video, picture, file, etc., which is not limited in this application.

[0138] It should be noted that if Figure 4 The smartphone shown can be understood as the local device, and the smart screen can be understood as the peer device. The data to be transmitted can be transmitted from the local device to the peer device. This application does not limit the number of peer devices, and the local device can transmit data to one or more peer devices.

[0139] For example, the local device may be provided with a viewfinder interface control, and in response to the user clicking the viewfinder interface control, the viewfinder interface may be opened. The present application does not limit the specific method of triggering the viewfinder interface to open, including but not limited to the following: Figure 4 Drag method as shown in .

[0140] Exemplarily, the viewfinder interface may display thumbnails of the data to be transmitted. The thumbnails may be as follows: Figure 4 The viewfinder interface can also display peripheral devices, such as Figure 4 The smart screen shown in .

[0141] It should be noted that, generally speaking, before opening the viewfinder interface, the local device will display the current interface, which may be the interface of a certain application. The process of the local device opening the viewfinder interface can be understood as the process of the local device switching from the current interface to the viewfinder interface, and this application does not limit the specific method of switching.

[0142] Step 2: Identify peripheral devices.

[0143] Exemplarily, when the local device opens the viewfinder interface, the function of transmitting data across devices is also turned on synchronously. The local device can send request information to other devices around the local device to request other devices to trigger the connection function and / or positioning function. The local device needs to filter out one or more devices from one or more other surrounding devices as peripheral devices. The opposite device mentioned above belongs to one or more peripheral devices, and the opposite device can be understood as the target device for data transmission.

[0144] The following describes several ways to identify peripheral devices.

[0145] Method 1: The local device can prompt potential available devices on the viewfinder interface according to the type of data to be transmitted.

[0146] like Figure 5As shown in FIG. 1 , a method of prompting a potential available device in a viewfinder interface is shown. For example, when the type of data to be transmitted is as follows Figure 4 When the picture shown in the figure is shown in the figure, the potentially available devices may be the tablet computer and smart screen in the framing interface. Therefore, in the framing interface, the "Tablet" label and the "Smart Screen" label may be displayed next to the tablet computer and the smart screen, respectively. The label can be used to prompt the user that the device corresponding to the label is a potentially available device, and then prompt the user that the data of the data type to be transmitted can be transmitted to the corresponding potentially available device, and displayed, played or other processing tasks are performed on the potentially available device. If the framing interface also includes other devices (for example, smart speakers) in addition to potentially available devices, the label may not be displayed next to the device to remind the user that the device is not a potentially available device. For another example, when the type of data to be transmitted is a video, the tablet computer, smart screen or personal computer in the framing interface can be marked as a potentially available device. For another example, when the type of data to be transmitted is a file, the tablet computer, smart screen, personal computer or printer in the framing interface can be marked as a potentially available device. The identified potentially available device can be used as a reference for the local device to identify peripheral devices.

[0147] In the first method, the local device can screen potential available devices from other surrounding devices according to the type of data to be transmitted, provide a reference for the local device to identify surrounding devices, and improve the efficiency of determining the opposite device.

[0148] Method 2: The local device identifies other devices around it based on their form factors, such as personal computers, tablets, smart screens, etc.

[0149] It should be noted that the accuracy of identifying other surrounding devices by device form is usually low. Usually, the type of the surrounding device can be identified by the device form, but it is difficult to identify the specific device. When multiple devices with similar forms are displayed in the local device viewfinder interface, it is difficult for the local device to determine which device or devices can be used as peripheral devices.

[0150] In one implementation, when the local device identifies other devices around it based on the device form, the local device can further determine whether the device and the local device are devices of the same account or the same user. The local device can determine other devices around it with the same account as the local device as peripheral devices.

[0151] In one implementation, when the local device identifies other devices around it according to the device form, the local device can further determine whether the area where the local device is located is the same as that of the local device through positioning technologies such as global positioning system (GPS), Wi-Fi or Bluetooth. The local device can determine other devices around the local device in the same area as the local device as peripheral devices.

[0152] It should be noted that when the local device identifies other devices around it by device form, it can determine whether the device is a peripheral device by combining the account information of other devices around it and / or the location information of other devices around it and the local device. For example, in the viewfinder interface, there may be multiple smart screens with the same account as the local device. The local device uses the location information and account information to identify the smart screens with the same account and located in the same area as the local device as the peripheral devices.

[0153] For example, Figure 6 FIG. 1 shows an implementation method of identifying other surrounding devices by device form in this application. Figure 6 As shown in the figure, the smartphone opens the viewfinder interface, and identifies the surrounding devices as two smart screens with similar shapes based on the device shape. The local device determines a smart screen ( Figure 6 The smart screen on the left in the middle) is located in the living room, and the other smart screen ( Figure 6 The smart screen on the right in the middle and the local device are both located in the bedroom. In the framing interface, a prompt box 601 may be displayed around the smart screen located in the bedroom, and the prompt box 601 is used to indicate that the smart screen located in the bedroom can be selected as a peripheral device.

[0154] Furthermore, the local device can also detect the account information of the smart screen located in the bedroom. When the smart screen and the local device are the same account, the local device can select the smart screen as the peer device to transmit data.

[0155] In one implementation, the second method can be combined with the first method. When the smartphone opens the viewfinder interface, the viewfinder interface can not only display Figure 6 Other devices around the device can also display labels next to potential available devices based on the type of data to be transmitted. For example, when the data to be transmitted is a picture, Figure 6 The two smart screens displayed in the framing interface of the smartphone shown can have a "Smart Screen" label displayed next to them, which means that both smart screens are potentially available devices.

[0156] Method three: the local device identifies the surrounding devices according to the clear code or hidden code.

[0157] Exemplarily, after the local device opens the viewfinder interface, the local device sends a connection request message to other surrounding devices. Other surrounding devices display a clear code or a hidden code according to the connection request message, and the local device identifies the surrounding devices by identifying the clear code or hidden code displayed by other surrounding devices. The clear code may be a QR code or a dynamic code, and the hidden code may be a digital watermark.

[0158] Combine the following Figure 7 , several specific implementations of method three are introduced.

[0159] In one implementation, the local device opens a viewfinder interface, and other surrounding devices are displayed in the viewfinder interface. In response to the connection request information from the local device, the other surrounding devices display a hidden code. The local device scans the hidden code to determine that the device is a peripheral device and connects to the peripheral device.

[0160] For example, Figure 7 (a) in the figure shows the local device smartphone and other surrounding devices smart screens. Among them, the smart screen is in the bright screen state. The user drags the thumbnail 701 to the edge of the smartphone, triggering the smartphone to open the viewfinder interface. The smart screen is in the bright screen state and displays a hidden code (not shown in the figure). When the smartphone scans the hidden code in the viewfinder interface, the smartphone can connect to the smart screen.

[0161] In one implementation, the local device opens a viewfinder interface, and other surrounding devices are displayed in the viewfinder interface. In response to the connection request information from the local device, the other surrounding devices display a plain code (e.g., a QR code). The local device scans the plain code to determine that the device is a peripheral device and connects to the peripheral device.

[0162] For example, Figure 7 (b) in the figure shows the local device smartphone and other surrounding devices smart screens. Among them, the smart screen is in the bright screen state. The user drags the thumbnail 701 to the edge of the smartphone, triggering the smartphone to open the viewfinder interface. The smart screen is in the bright screen state and displays a QR code 702. When the smartphone scans the QR code in the viewfinder interface, the smartphone can connect to the smart screen.

[0163] In one implementation, the local device opens a viewfinder interface, which displays other surrounding devices. In response to the connection request information from the local device, the other surrounding devices display a dynamic code. The local device scans the dynamic code to determine that the device is a surrounding device and connects to the surrounding device.

[0164] For example, Figure 7(c) in the figure shows the local device smartphone and other surrounding devices smart screens. Among them, the smart screen is initially turned on and the screen is off. The user drags the thumbnail 701 to the edge of the smartphone, triggering the smartphone to open the framing interface. Subsequently, the screen of the smart screen lights up and displays a dynamic code 703. When the smartphone scans the dynamic code during framing, the smartphone can be connected to the smart screen. In response to the user releasing the thumbnail 701, the picture 704 corresponding to the thumbnail 701 is displayed on the smart screen.

[0165] In one implementation, the user manually operates to make other devices around display a clear code or a hidden code, so that the local device can determine that the device is a peripheral device by scanning the code and achieve connection with the peripheral device.

[0166] For example, Figure 7 (d) in the figure shows other smart screens of surrounding devices. The smart screen displays an account center interface. The interface includes personal information, account security, help and customer service options. In response to the user clicking on the personal information option 705, the smart screen can display a QR code 706. When the smartphone scans the QR code 706 in the viewfinder interface, the smartphone can connect to the smart screen.

[0167] It should be noted that the peripheral device can be a device with the same account as the local device, or a device with a different account from the local device. Among them, the peripheral device with the same account as the local device can also be understood as a device that has been authorized by the local device. When the peripheral device has the same account as the local device, the peripheral device can continue to display the plain code or hidden code. When the peripheral device has a different account from the local device, the peripheral device can continue to display the plain code or hidden code, or the peripheral device can periodically display the plain code or hidden code, and when the peripheral device receives a connection request message from the local device, the period for the peripheral device to display the plain code or hidden code can be appropriately shortened. This is because the peripheral device with a different account from the local device cannot determine when the local device needs to transmit data. The periodic display of the plain code or QR code by the peripheral device can reduce the power consumption of the peripheral device to a certain extent and save resources.

[0168] It should be noted that, in the process of the local device identifying the peripheral device, the peripheral device can be in a screen-on state or in a screen-off state. In other words, whether the peripheral device is in a screen-on state, the peripheral device can display a clear code or a hidden code in response to the connection request information from the local device.

[0169] In one implementation, method 3 can be combined with method 1. The viewfinder interface of the smart phone can not only display Figure 7 Other surrounding devices are shown, and clear or hidden codes are displayed on other surrounding devices. Labels can also be displayed next to potentially available devices based on the type of data to be transmitted, etc.

[0170] It should be noted that the above-mentioned method 1, method 2 and method 3 can be three independent methods for the local device to identify the surrounding devices, or can be combined with each other to identify the surrounding devices. The above-mentioned three methods of identifying the surrounding devices are only exemplary, and other methods that can be easily thought of or replaced by those skilled in the art based on these three methods also belong to the protection scope of this application.

[0171] Step 3: Determine the peer device.

[0172] Exemplarily, after the local device recognizes that there are one or more peripheral devices around, the local device can determine the opposite device according to the release position of the data to be transmitted. The opposite device is a peripheral device, and the local device can transmit data to the opposite device and process the data on the opposite device.

[0173] Combine the following Figure 8 , specifically introduces the methods of determining the peer device in several situations.

[0174] In one implementation, when there is a peripheral device in the viewing interface of the local device, the peripheral device is the opposite device.

[0175] For example, Figure 8 As shown in (a), the viewfinder interface of the local device only has one peripheral device, the smart screen, and a "smart screen" label can also be displayed next to the smart screen. The user can release the data to be transmitted 801 at any position, and the data to be transmitted can be transmitted to the smart screen, which is the opposite device.

[0176] In one implementation, when there are multiple peripheral devices or peripheral device logos in the viewfinder interface of the local device, each peripheral device is provided with a hot zone. The hot zone can be understood as a circular area with the center position of the peripheral device as the center and R as the radius. When the release position of the data to be transmitted is not within the hot zone of any peripheral device, the data to be transmitted will not start to be transmitted. When the release position of the data to be transmitted overlaps with the hot zone of one of the peripheral devices, the peripheral device is the opposite device and can receive the data to be transmitted.

[0177] For example, Figure 8 As shown in (b), there are two peripheral devices in the viewfinder interface of the local device, namely a smart screen and a tablet computer. There are hot zones around the smart screen and the tablet computer. The release position of the data 801 to be transmitted does not overlap with the hot zone of the smart screen, nor does it overlap with the hot zone of the tablet computer. When the user releases the data 801 to be transmitted, the data 801 to be transmitted will not be displayed on the smart screen or the tablet computer.

[0178] For example, Figure 8As shown in (c) of the figure, there are three peripheral devices on the local device's framing interface, namely, a smart screen, a smart speaker, and a tablet. When the release location of the data to be transmitted is not within the hot zone of the above three peripheral devices, the framing interface can display the peripheral devices and their labels (see Figure 5 The device identification of the surrounding device shown), or the viewfinder interface can display the surrounding devices and the surrounding device list 802; or the viewfinder interface can only display the surrounding devices.

[0179] For example, Figure 8 As shown in (d), there are two peripheral devices on the viewfinder interface of the local device, namely a smart screen and a tablet computer. There are hot spots around the smart screen and the tablet computer. When the release position of the data to be transmitted overlaps with the hot spot of the smart screen, the data to be transmitted is displayed as a thumbnail 803. Thumbnail 803 is the data to be transmitted that has changed in shape or size. When the user releases thumbnail 803, the data to be transmitted can be displayed on the smart screen.

[0180] In one implementation, when there are multiple peripheral devices or peripheral device identifiers in the viewfinder interface of the local device, each peripheral device is provided with a hot zone. When the release position of the data to be transmitted overlaps with the hot zones of multiple peripheral devices, the user needs to select one of the multiple peripheral devices as the peer device.

[0181] For example, Figure 8 As shown in (e) in the figure, there are two peripheral devices on the viewfinder of the local device, namely, a smart screen and a tablet computer. Among them, there is a hot zone overlap between the smart screen and the tablet computer. When the release position of the data to be transmitted overlaps with the hot zone overlap, the data to be transmitted is displayed as a thumbnail 803. When the user releases the thumbnail 803, it can be displayed as follows Figure 8 The viewfinder interface shown in (f) in FIG. Figure 8 In the framing interface shown in (f) of FIG. 1 , the smart screen displays a prompt message 804, and the tablet displays a prompt message 805. In response to the user clicking the prompt message 804, the smart screen is selected as the peer device, and the prompt message 804 can be highlighted, further prompting the user that the smart screen has been selected as the peer device. Alternatively, in response to the user clicking the prompt message 804, the smart screen is selected as the peer device, and the "Smart Screen" label corresponding to the smart screen can be highlighted to prompt the user that the smart screen has been selected as the peer device.

[0182] In one implementation, when a potential available device (such as Figure 5 Smart screens and tablets in the market) and non-potentially available devices (such as Figure 5When selecting a Bluetooth speaker in the list, the user can further select a peer device to transmit data. When the user selects a non-potentially available device, the viewfinder interface can also display a prompt message to remind the user that the device cannot be selected or that the device is not suitable for receiving the type of data to be transmitted. When the user selects a potentially available device, the label of the potentially available device can be highlighted to remind the user that the device has been selected to receive the data to be transmitted.

[0183] It should be noted that the above step 3 exemplifies several specific ways of determining a peer device from at least one peripheral device. The present application embodiment does not limit the specific number of peer devices to be determined, and the local device can determine multiple peer devices from multiple peripheral devices in a similar manner as described above.

[0184] Step 4: Display the data on the peer device.

[0185] Exemplarily, after determining the peer device, the local device may receive data from the peer device and process the data on the peer device, for example, display the data on the screen of the peer device or open the data on the screen of the peer device.

[0186] The following example shows the data displayed on the peer device in the form of a picture. Fig. 9 , introduces several specific ways to display data on the peer device.

[0187] Method 1: The peer device receives the image from the local device and directly displays it on the screen of the peer device.

[0188] For example, Fig. 9 As shown in (a) of FIG. 1 , the peer device is a personal computer. In response to the user releasing the image 901, the image 901 may be displayed on the screen of the personal computer, so that the user can directly obtain data through the interactive interface of the peer device.

[0189] Method 2: The peer device receives the image from the local device and stores it in the default path.

[0190] For example, Fig. 9 As shown in (b) in FIG. 1 , the peer device is a personal computer. In response to the user releasing the image, the image is displayed in the form of a thumbnail 902 in the default path “shared content” of the personal computer.

[0191] In method three, the peer device receives the image from the local device and processes it through the application program of the peer device.

[0192] For example, Fig. 9As shown in (c) in the figure, the peer device is a personal computer, and a social application is opened. The current interface of the personal computer is displayed as the interface of the social application, and the social application can directly process, for example, send or paste. The social application displays a chat box, and in response to the user releasing the picture 901, the picture 901 is pasted in the chat box and sent.

[0193] In one implementation, when the user accounts of the peer device and the local device are different, the peer device needs to confirm whether to receive the data from the local device before receiving the data transmitted from the local device.

[0194] For example, Fig. 9 As shown in (d) in FIG. 1 , the peer device is a personal computer. In response to the user releasing the picture, the personal computer displays a prompt box 903 to prompt the user to determine whether to receive the picture from device 1 (the local device) through the peer device. When the user clicks the "Receive" control 904, the peer device can process the received picture in any of the above-mentioned methods 1, 2 or 3.

[0195] like Fig.10 As shown, a schematic flow chart of a method for transmitting data provided by an embodiment of the present application is shown. For example, the method can be applied to Figure 3 The method for transmitting data is described in detail below.

[0196] S1001: In response to a first operation of a user on first data, a first electronic device opens a viewfinder interface.

[0197] Exemplarily, the first electronic device can be understood as a local device, for example, Figure 4 The first electronic device displays first data, which can be understood as data to be transmitted by the local device. The present application does not limit the specific form of the first data, such as files, pictures, videos, etc.

[0198] Exemplarily, the first operation of the user on the first data may be that the user drags the first data to the edge of the first electronic device and maintains a certain time threshold, and this operation may trigger the opening of the viewfinder interface of the first electronic device. The first electronic device may also be provided with a viewfinder interface control, and in response to the user clicking the viewfinder interface control, the first electronic device opens the viewfinder interface. In other words, the embodiment of the present application does not limit the specific method of triggering the opening of the viewfinder interface.

[0199] It should be noted that when the first operation is that the user drags to the edge of the first electronic device and maintains a certain time threshold, the steps for opening the viewfinder interface of the first electronic device are simplified, the cost of users learning to open the viewfinder interface is reduced, and the process of transmitting data is smoother and more convenient.

[0200] S1002: In response to a second operation of a user on first data, the first electronic device sends the first data to a peer device.

[0201] Exemplarily, the viewfinder interface includes at least one peripheral device. The first data is used for display on the peer device, and the peer device data is at least one peripheral device. That is, the peer device can be understood as the target device for transmitting the first data. For example, the peer device can be Figure 4 The smart screen shown.

[0202] Exemplarily, the second operation of the user may be that the user releases the first data dragged to the edge of the first electronic device.

[0203] In one implementation, the viewfinder interface includes at least one second electronic device, and the first electronic device determines at least one surrounding device from the at least one second electronic device. Several methods for the first electronic device to determine the surrounding device will be specifically introduced below.

[0204] First, the first electronic device determines at least one surrounding device from at least one second electronic device based on at least one of the following: device type of at least one second electronic device, account information of at least one second electronic device, and location information of at least one second electronic device.

[0205] Correspondingly, the third electronic device sends the account information of the third electronic device and the location information of the third electronic device to the first electronic device. The third electronic device can be understood as the second electronic device, the account information of the third electronic device can be understood as the account information of the second electronic device, and the location information of the third electronic device can be understood as the location information of the second electronic device.

[0206] In one implementation, the first electronic device identifies a device type of at least one second electronic device on a viewfinder interface.

[0207] It should be noted that the first electronic device can identify the device form through the viewfinder interface, thereby obtaining the device type of at least one second electronic device.

[0208] Exemplarily, the first electronic device obtains the device form through the viewfinder interface, thereby determining the device type of the second electronic device. The first electronic device obtains the account information of the second electronic device, and determines whether the first electronic device and the second electronic device are devices of the same account or the same user. The first electronic device determines whether the first electronic device and the second electronic device are located in the same area through positioning technologies such as GPS, Wi-Fi, or Bluetooth. When the second electronic device and the first electronic device are devices of the same account, and the second electronic device and the first electronic device are located in the same area, the first electronic device determines that the second electronic device is a peripheral device, and can also determine the device type of the peripheral device, such as a smart screen, a personal computer, etc. The specific implementation method is as described above. Figure 6 The description is not repeated here.

[0209] Second, the first electronic device sends a connection request message in response to the opening of the viewfinder interface; at least one second electronic device displays a first mark; the first electronic device scans the first mark of at least one second electronic device on the viewfinder interface; and determines at least one surrounding device according to the first mark of at least one second electronic device.

[0210] Exemplarily, the first mark is a plain code or a hidden code displayed by the second electronic device, and the plain code may be a QR code or a dynamic code.

[0211] Accordingly, the third electronic device displays the first mark in response to receiving the connection request information from the first electronic device. The third electronic device can be understood as the second electronic device.

[0212] It should be noted that the second electronic device receives the connection request information sent by the first electronic device, and displays the first mark on the second electronic device according to the connection request information. The first electronic device can scan the mark through the viewfinder interface to recognize the second electronic device and determine that the second electronic device is a peripheral device. The specific implementation method is as described above. Figure 7 The description is not repeated here.

[0213] Thirdly, the first electronic device displays a second mark on the peripheral device of the viewfinder interface according to the type of the first data, and the second mark is used to prompt the user that the peripheral device is a potentially available device.

[0214] Exemplarily, the second marker is as follows Figure 5 For example, when the type of the first data is a picture, the second mark "smart screen" label and "tablet computer" label can be displayed next to the peripheral devices smart screen and tablet computer, respectively, to prompt the user that the smart screen and tablet computer can process the first data.

[0215] It should be noted that the above three methods for the first electronic device to determine the surrounding devices are only exemplary descriptions, and the first electronic device can combine the above three methods to determine the surrounding devices.

[0216] In one implementation, before the first electronic device sends the first data to the opposite device, the first electronic device determines the opposite device from at least one surrounding device according to the area where the second operation is located.

[0217] Exemplarily, the area where the second operation is located can be understood as the release location of the first data. The first electronic device determines the opposite end device from at least one peripheral device according to the release location of the first data.

[0218] Exemplarily, the at least one peripheral device includes a first peripheral device and a second peripheral device.

[0219] In one implementation, when the area where the second operation is located overlaps with the hot zone of the first surrounding device, the first surrounding device is determined to be the opposite device; when the area where the second operation is located overlaps with the hot zone of the second surrounding device, the second surrounding device is determined to be the opposite device.

[0220] That is, when the area where the second operation is located overlaps with the hot zone of any peripheral device, the first electronic device determines that the peripheral device is a peer device.

[0221] In one implementation, when the area where the second operation is located overlaps with the hot zone of the first surrounding device and overlaps with the hot zone of the second surrounding device, in response to the user's third operation on the third mark of the first surrounding device, the first surrounding device is determined to be a counterpart device; or in response to the user's third operation on the fourth mark of the second surrounding device, the second surrounding device is determined to be a counterpart device.

[0222] Exemplarily, the third mark of the first peripheral device is as follows Figure 8 In the prompt information 804 shown in (f), the fourth mark of the second peripheral device is as follows Figure 8 The prompt information 805 shown in (f) in FIG.

[0223] That is, when the area where the second operation is located overlaps with the hot zones of multiple peripheral devices, the user is required to further select one of the peripheral devices from the multiple peripheral devices as the opposite-end device.

[0224] It should be noted that the above is only an exemplary description of a method of determining a peer device from at least one peripheral device. It is also possible to determine multiple peer devices from multiple peripheral devices to receive the first data and process the first data.

[0225] In one implementation, the third electronic device displays the first data in response to receiving the first data from the first electronic device, wherein the third electronic device can be understood as the above-mentioned opposite-end device.

[0226] Specifically, a thumbnail of the first data can be displayed on the first interface of the third electronic device, and the first interface is the default path of the first data. That is, the peer device can store the first data in the default path, and the first data can be displayed as a thumbnail in the default path.

[0227] Specifically, the first data can be displayed on the second interface of the third electronic device, the second interface is the interface of the first application of the third electronic device, and the first application is the application that processes the first data. In other words, the peer device displays the interface of the application, and the application can send or paste the first data.

[0228] In one implementation, before the third electronic device displays the first data, the third electronic device displays first prompt information, where the first prompt information is used to prompt the user to confirm displaying the first data on the third electronic device.

[0229] For example, the first prompt information may be as follows: Fig. 9 In other words, before the data is displayed on the peer device, the user can further confirm whether to display the transmitted data on the peer device.

[0230] A method for transmitting data provided in an embodiment of the present application simplifies the process of determining a target device for transmitting data, while avoiding the problem that the transmitted data needs to be limited to a certain application, thereby achieving more efficient data transmission and improving the user experience of transferring data between various electronic devices.

[0231] The embodiment of the present application provides a computer program product, which, when executed on a device (including a first electronic device, a second electronic device, or a third electronic device), enables the device to execute the technical solution in the above embodiment. Its implementation principle and technical effect are similar to those of the above method-related embodiments, and will not be repeated here.

[0232] The embodiment of the present application provides a readable storage medium, which contains instructions. When the instructions are executed on a device, the device executes the technical solution of the above embodiment. The implementation principle and technical effect are similar and will not be repeated here.

[0233] The embodiment of the present application provides a chip, which is used to execute instructions. When the chip is running, the technical solution in the above embodiment is executed. The implementation principle and technical effect are similar and will not be repeated here.

[0234] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the embodiments of the present application.

[0235] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described devices and units (modules) can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0236] In the several embodiments provided in the present application, it should be understood that the disclosed devices, apparatuses and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the unit is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0237] The units described above as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0238] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0239] If the above functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program code.

[0240] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A method for transmitting data, characterized in that: The method is applied to a first electronic device, where the first electronic device displays first data, and the method includes: In response to a first operation of the user on the first data, the first electronic device opens a viewfinder interface, where the viewfinder interface includes at least one peripheral device; In response to a second operation of the user on the first data, the first electronic device sends the first data to a peer device, where the first data is used for display on the peer device, and the peer device belongs to the at least one peripheral device.

2. The method according to claim 1, characterized in that: The viewfinder interface includes at least one second electronic device, and the method further includes: The at least one surrounding device is determined from the at least one second electronic device.

3. The method according to claim 2, characterized in that The determining at least one surrounding device from the at least one second electronic device comprises: The at least one surrounding device is determined from the at least one second electronic device according to at least one of the following: The device type of the at least one second electronic device, the account information of the at least one second electronic device, and the location information of the at least one second electronic device.

4. The method according to claim 3, characterized in that The method further comprises: The device type of the at least one second electronic device is identified in the viewfinder interface.

5. The method according to claim 2, characterized in that: The method further comprises: In response to the opening of the viewfinder interface, sending a connection request message; The at least one second electronic device displays a first mark, wherein determining the at least one surrounding device from the at least one second electronic device includes: Scanning the first mark of the at least one second electronic device on the framing interface; The at least one surrounding device is determined according to the first tag of the at least one second electronic device.

6. The method according to any one of claims 3 to 5, characterized in that The method further comprises: A second mark is displayed on the peripheral device of the viewfinder interface according to the type of the first data, and the second mark is used to prompt the user that the peripheral device is a potential available device for the first data.

7. The method according to any one of claims 1 to 6, characterized in that Before the first electronic device sends the first data to the opposite device, the method further includes: The opposite-end device is determined from the at least one surrounding device according to the area where the second operation is performed.

8. The method according to claim 7, characterized in that The at least one surrounding device includes a first surrounding device and a second surrounding device, wherein determining the opposite end device from the at least one surrounding device according to the area where the second operation is located includes: When the area where the second operation is located overlaps with the hot zone of the first peripheral device, determining that the first peripheral device is the opposite-end device; When the area where the second operation is located overlaps with the hot zone of the second peripheral device, it is determined that the second peripheral device is the opposite-end device.

9. The method according to claim 8, characterized in that The method further comprises: When the area where the second operation is located overlaps with the hot zone of the first peripheral device and overlaps with the hot zone of the second peripheral device, In response to a third operation of the user on a third mark of the first surrounding device, determining that the first surrounding device is the opposite-end device; or In response to a third operation of the user on a fourth mark of the second surrounding device, the second surrounding device is determined to be the opposite-end device.

10. A method for transmitting data, characterized in that: The method is applied to a third electronic device, and the method includes: In response to receiving first data from a first electronic device, displaying the first data; The displaying of the first data includes: Displaying a thumbnail of the first data on a first interface of the third electronic device, where the first interface is a default path for the first data; or The first data is displayed on a second interface of the third electronic device, where the second interface is an interface of a first application of the third electronic device, and the first application is an application for processing the first data.

11. The method according to claim 10, characterized in that Before displaying the first data, the method further includes: Displaying first prompt information, where the first prompt information is used to prompt a user to confirm displaying the first data on the third electronic device.

12. The method according to claim 10 or 11, characterized in that: The method further comprises: Sending the account information of the third electronic device and the location information of the third electronic device to the first electronic device, wherein the account information of the third electronic device and the location information of the third electronic device are used to determine at least one surrounding device, and the third electronic device belongs to the at least one surrounding device.

13. The method according to claim 10 or 12, characterized in that: The method further comprises: In response to receiving the connection request information from the first electronic device, a first mark is displayed, where the first mark is used to determine at least one surrounding device, and the third electronic device belongs to the at least one surrounding device.

14. A system for transmitting data, characterized in that: The device comprises a first electronic device and a second electronic device, wherein the first electronic device displays first data. The first electronic device is configured to open a viewfinder interface in response to a first operation of a user on the first data, wherein the viewfinder interface includes at least one peripheral device; The first electronic device is further configured to send the first data to a peer device in response to a second operation of the user on the first data, and the first data is displayed by the user on the peer device; The second electronic device displays the first data in response to receiving the first data from the first electronic device, wherein the second electronic device includes the at least one peripheral device, and the at least one peripheral device includes the opposite-end device.

15. The system according to claim 14, characterized in that The viewfinder interface includes at least one second electronic device, The first electronic device is further configured to determine the at least one surrounding device from at least one of the second electronic devices.

16. The system according to claim 15, characterized in that The first electronic device is further configured to determine the at least one surrounding device from at least one of the second electronic devices according to at least one of the following: a device type of at least one of the second electronic devices, account information of at least one of the second electronic devices, and location information of at least one of the second electronic devices; The second electronic device is further used to send the account information of the second electronic device and the location information of the second electronic device to the first electronic device.

17. The system according to claim 16, characterized in that The first electronic device is further used to identify a device type of at least one of the second electronic devices on the viewfinder interface.

18. The system according to claim 15, characterized in that The first electronic device is further configured to send connection request information in response to the opening of the viewfinder interface; The second electronic device is further configured to display a first mark in response to receiving the connection request information from the first electronic device; The first electronic device is further used to scan the first mark of at least one second electronic device on the framing interface; The first electronic device is further configured to determine the at least one surrounding device according to the first tag of at least one second electronic device.

19. The system according to any one of claims 16 to 18, characterized in that The first electronic device is further used to display a second mark on the peripheral device of the viewfinder interface according to the type of the first data, and the second mark is used to prompt the user that the peripheral device is a potential available device for the first data.

20. The system according to any one of claims 14 to 19, characterized in that The first electronic device is further configured to determine the opposite device from the at least one surrounding device according to the area where the second operation is performed.

21. The system according to claim 20, characterized in that The at least one peripheral device includes a first peripheral device and a second peripheral device, When the area where the second operation is located overlaps with the hot zone of the first peripheral device, the first electronic device is further used to determine that the first peripheral device is the opposite end device; When the area where the second operation is located overlaps with the hot zone of the second peripheral device, the first electronic device is further used to determine that the second peripheral device is the opposite device.

22. The system according to claim 21, characterized in that When the area where the second operation is located overlaps with the hot zone of the first peripheral device and overlaps with the hot zone of the second peripheral device, The first electronic device is further configured to determine that the first surrounding device is the opposite-end device in response to a third operation of a user on a third mark of the first surrounding device; or The first electronic device is further configured to determine that the second surrounding device is the opposite-end device in response to a third operation of a user on a fourth mark of the second surrounding device.

23. A device for transmitting data, characterized in that: The method comprises a module for executing the method as claimed in any one of claims 1 to 9, or comprises a module for executing the method as claimed in any one of claims 10 to 13.

24. A device for transmitting data, characterized in that: include: A processor coupled to a memory, the memory being used to store a computer program, the processor being used to run the computer program so that the device for transmitting data performs the method as claimed in any one of claims 1 to 9, or the device for transmitting data performs the method as claimed in any one of claims 10 to 13.

25. The data transmission device according to claim 24, characterized in that: Also included is one or more of the memory and the transceiver, wherein the transceiver is used to receive signals and / or send signals.

26. A computer-readable storage medium, characterized in that: The computer-readable storage medium comprises a computer program or an instruction, and when the computer program or the instruction is run on a computer, the method according to any one of claims 1 to 9 is executed, or the method according to any one of claims 10 to 13 is executed.

27. A computer program product, characterized in that The computer program product comprises a computer program or instructions, and when the computer program or instructions are run on a computer, the method according to any one of claims 1 to 9 is executed, or the method according to any one of claims 10 to 13 is executed.