Data sharing method and apparatus, device, system, and storage medium
By acquiring device information through information carriers and establishing network connections using local area networks, the problem of cumbersome data sharing operations between devices is solved, enabling fast and secure data sharing between devices, simplifying the operation process and improving synchronization efficiency.
Patent Information
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- HUAWEI TECH CO LTD
- Filing Date
- 2025-06-04
- Publication Date
- 2026-06-04
AI Technical Summary
Existing technologies involve cumbersome data sharing operations between devices and suffer from problems such as the ease of losing USB drives, the potential for privacy breaches in communication software, and limitations on cloud storage data size.
It acquires device information through information carriers, establishes network connections using local area networks, metropolitan area networks, or wide area networks, and enables rapid networking and data sharing between devices. It supports acquiring device information through methods such as screen projectors, NFC radio frequency signals, and sub-ultrasonic signals, and supports encrypted and synchronous operation.
It enables fast, secure, and distance-free data sharing between devices, simplifies operation processes, reduces device storage requirements, and improves data synchronization efficiency.
Smart Images

Figure CN2025099077_04062026_PF_FP_ABST
Abstract
Description
Data sharing methods, devices, equipment, systems and storage media
[0001] This application claims priority to Chinese Patent Application No. 202411759926.9, filed on November 29, 2024, entitled “Data Sharing Method, Apparatus, Device, System and Storage Medium”, the entire contents of which are incorporated herein by reference. Technical Field
[0002] This application relates to the field of communication technology, and in particular to data sharing methods, apparatus, devices, systems and storage media. Background Technology
[0003] In scenarios involving multiple devices sharing data, it's necessary to share data from one device to at least another device. For example, a teacher prepares teaching materials on their personal device and then shares these materials to a large screen in the classroom for instruction.
[0004] In related technologies, taking data sharing between two devices as an example, one method is to transfer data from one device to another using a USB flash drive. Here, USB flash drive is short for Universal Serial Bus Flash Disk. Another method involves logging into communication software or a cloud drive on both devices. Data can then be transferred from one device to the other via the communication software, or one device can upload data to the cloud drive, and the other device can download it from the cloud drive.
[0005] However, all of the methods mentioned above require cumbersome operating procedures. Furthermore, using a USB flash drive makes it easy to lose or misplace the drive; using communication software can easily expose personal privacy; and using cloud storage has limitations on data size. Summary of the Invention
[0006] This application provides a data sharing method, apparatus, device, system, and storage medium for achieving rapid data sharing, solving the problem of complex operations during data sharing, and is not limited by distance, physical isolation, data volume, etc.
[0007] Firstly, a data sharing method is provided. Taking a first device executing the method as an example, the method includes: obtaining device information of a second device through an information carrier, wherein the information carrier is a medium carrying information, and the device information of the second device includes information required to establish a network connection with the second device; establishing a network connection between the first device and the second device based on the device information of the second device, so that the first device and the second device can communicate with each other through the network connection, wherein the network type of the network connection includes a local area network, a metropolitan area network, or a wide area network; and sharing data with the second device through the network connection.
[0008] This method enables the first and second devices to communicate and share data via a network connection. This communication eliminates the need for data copying or account login, making it convenient and easy to implement, and improving data sharing efficiency. Since the network type can be LAN, MAN, or WAN, data sharing through this network connection is not limited by distance, physical isolation, or data volume, enabling long-distance data sharing. Furthermore, device information is obtained through an information carrier, which is simple and convenient to use. This information includes the necessary data to establish a network connection with the second device, and network formation is automatic based on this information, eliminating the need for complex network configuration steps and resulting in rapid device networking.
[0009] In one possible implementation, the information carrier is a screen projector. The method by which the first device obtains the device information of the second device through the information carrier includes: the first device detecting that the screen projector has been inserted, and reading the device information of the second device stored in the screen projector. Thus, the screen projector enables rapid acquisition of device information, thereby achieving rapid networking between devices.
[0010] In one possible implementation, the information carrier is a near field communication (NFC) radio frequency signal. The first device obtains the device information of the second device through the information carrier by acquiring the device information of the second device from the NFC radio frequency signal. Thus, NFC enables rapid acquisition of device information, thereby facilitating rapid networking between devices.
[0011] In one possible implementation, the information carrier is a subsonic ultrasonic signal. The method by which the first device obtains the device information of the second device through the information carrier includes: the first device obtaining the device information of the second device from the subsonic ultrasonic signal. Therefore, subsonic ultrasonic signals enable rapid acquisition of device information, thereby achieving rapid networking between devices.
[0012] In summary, by using different information carriers, device information can be obtained flexibly, increasing the flexibility of rapid networking between devices.
[0013] In one possible implementation, the device information includes one or more of the following: device name, device address, network identifier, or network access password.
[0014] In one possible implementation, a first device contains first data, and a second device is granted first read / write permissions to the first data. The method by which the first device shares data with the second device via a network connection includes: upon receiving a first instruction from the second device to read the first data, the first device sends the first data to the second device via the network connection. This enables the first device to share the first data on its own device with the second device. In this case, the second device reads the first data on the first device in real time, without storing the first data locally on the second device, thus reducing the storage requirements on the second device.
[0015] In one possible implementation, after the first device sends first data to the second device via a network connection, the first device and the second device also synchronize their modification operations on the first data via the network connection. The network connection maintains communication between the first and second devices; therefore, the second device's modification operations on the first data can be sent to the first device in real time via the network connection, allowing the first device to synchronously modify the first data based on the received modification operations. After modifying the first data, the first device can also synchronize the modified first data to the second device in real time via the network connection. This simplifies the data synchronization process, eliminating the need for cumbersome operational steps.
[0016] In one possible implementation, the first device can encrypt the first data, so that the second device can only send the first command to the first device after completing the decryption and authentication of the first data. Thus, encryption can improve the security of data sharing.
[0017] In one possible implementation, the first device has a first space for storing data shared with the second device, and the second device is granted second read / write permissions to the first space. Another way for the first device to share data with the second device via a network connection includes: upon receiving a second instruction from the second device to read the first space, the first device sends the data in the first space to the second device via the network connection. Thus, data sharing is achieved by sharing space. In this case, the second device backs up and stores the first data shared by the first device; the locally stored first data allows the second device to quickly read or modify it, resulting in a faster response compared to real-time reading from the first device.
[0018] In one possible implementation, the second device includes a second space for storing data shared by the first device to the second device. After sending data from the first space to the second device via a network connection, the first device also synchronizes changes in the data in the first space with changes in the data in the second space via the network connection. The network connection maintains communication between the first and second devices; therefore, modifications made by the first device to the data in the first space are synchronized to the second device, enabling the second device to simultaneously modify the data in the second space; similarly, modifications made by the second device to the data in the second space are synchronized to the first device, enabling the first device to simultaneously modify the data in the first space. Thus, data synchronization is achieved through spatial synchronization, ensuring consistency between the data in the first space and the data in the second space.
[0019] In one possible implementation, the first device can encrypt the first space, so that the second device can only send the second command to the first device after completing the decryption and authentication of the first space. Thus, encryption can improve the security of data sharing.
[0020] In one possible implementation, the first device stores a sharing record of data sharing with the second device; therefore, after the first device shares data with the second device via a network connection, the method further includes: based on the sharing record, sharing data with the second device again via a network connection. This allows for faster and more convenient data sharing the next time data sharing is performed after one network setup is completed.
[0021] Secondly, a data sharing method is provided. Taking the execution of the method by a second device as an example, the method includes: the second device transmitting its device information through an information carrier, where the information carrier is a medium carrying information, and the device information includes information required to establish a network connection with the second device; the second device accepting a network connection established between the first device and the second device based on the device information of the second device, so that the second device and the first device can communicate with each other through the network connection, where the first device is the device that obtains the device information of the second device, and the network type of the network connection includes a local area network, a metropolitan area network, or a wide area network; and the second device sharing data with the first device through the network connection.
[0022] In one possible implementation, the information carrier is a screen projector, and the method by which the second device transmits its device information through the information carrier includes: the second device detects that the second device is inserted into the screen projector, stores the device information of the second device in the screen projector, so that the first device can obtain the device information of the second device through the screen projector.
[0023] In one possible implementation, the information carrier is an NFC radio frequency signal, and the second device transmits its device information via the information carrier in the following manner: the second device broadcasts its device information via the NFC radio frequency signal so that the first device can obtain the device information of the second device via the NFC radio frequency signal.
[0024] In one possible implementation, the information carrier is a subsonic signal, and the method by which the second device transmits its device information through the information carrier includes: the second device broadcasting its device information through the subsonic signal so that the first device can obtain the device information of the second device through the subsonic signal.
[0025] In one possible implementation, the second device shares data with the first device via a network connection in the following ways: the second device obtains first read / write permission for first data on the first device, and sends a first instruction to the first device to read the first data based on the first read / write permission; the second device receives the first data sent by the first device based on the first instruction via a network connection.
[0026] In one possible implementation, after the second device receives the first data sent by the first device based on the first instruction via a network connection, the second device also synchronizes the modification operation of the first data with the first device via a network connection.
[0027] In one possible implementation, if the first device encrypts the first data, then sending a first instruction to the first device to read the first data based on the first read / write permission includes: decrypting and authenticating the first data based on the first read / write permission; and sending the first instruction to the first device after completing the decryption and authentication of the first data.
[0028] In one possible implementation, another way in which the second device shares data with the first device via a network connection includes: the second device obtaining second read / write permissions for a first space on the first device, sending a second instruction to the first device to read the first space based on the second read / write permissions, wherein the first space stores data shared by the first device to the second device; and the second device receiving the data in the first space sent by the first device based on the second instruction via a network connection.
[0029] In one possible implementation, after the second device receives data from the first device in the first space based on the second instruction via a network connection, it stores the data in the first space in the second space on the second device; the first device and the second device are connected via a network to synchronize the data changes in the second space with the data changes in the first space.
[0030] In one possible implementation, the first device encrypts the first space, and the method of sending a second instruction to the first device to read the first space based on the second read and write permissions includes: performing decryption authentication on the first space based on the second read and write permissions; and sending the second instruction to the first device after completing the decryption authentication of the first space.
[0031] In one possible implementation, the second device stores a sharing record of data sharing with the first device; after the second device shares data with the first device via a network connection, it further includes: based on the sharing record, sharing data with the first device again via a network connection.
[0032] Thirdly, a data sharing apparatus is provided, which is applied to a first device to perform the methods of the first aspect or any possible implementation thereof. Specifically, the data sharing apparatus includes modules for performing the methods of the first aspect or any possible implementation thereof.
[0033] In one possible implementation, the device includes: an acquisition module for acquiring device information of a second device via an information carrier, the information carrier being a medium carrying information, the device information of the second device including information required to establish a network connection with the second device; a connection establishment module for establishing a network connection between the first device and the second device based on the device information of the second device, so that the first device and the second device can communicate with each other through the network connection, the network type of the network connection including a local area network, a metropolitan area network, or a wide area network; and a data sharing module for sharing data with the second device through the network connection.
[0034] In one possible implementation, the information carrier is a screen projector, and the acquisition module is used to read the device information of the second device stored in the screen projector when the insertion of the screen projector is detected.
[0035] In one possible implementation, the information carrier is an NFC radio frequency signal, and the acquisition module is used to acquire device information of the second device from the NFC radio frequency signal.
[0036] In one possible implementation, the information carrier is a subsonic signal, and the acquisition module is used to acquire device information of the second device from the subsonic signal.
[0037] In one possible implementation, the device information includes one or more of the following: device name, device address, network identifier, or network access password.
[0038] In one possible implementation, the first device has first data, and the second device is granted first read and write permissions to the first data; the data sharing module is used to send the first data to the second device via a network connection upon receiving a first instruction from the second device to read the first data.
[0039] In one possible implementation, the device further includes a first synchronization module for synchronizing modification operations on the first data with a second device via a network connection.
[0040] In one possible implementation, the device further includes a first encryption module for encrypting the first data, so that the second device can send a first instruction to the first device after completing the decryption and authentication of the first data.
[0041] In one possible implementation, the first device has a first space for storing data to be shared with the second device, and the second device is granted second read and write permissions to the first space; the data sharing module is used to send the data in the first space to the second device via a network connection upon receiving a second instruction from the second device to read the first space.
[0042] In one possible implementation, the second device includes a second space for storing data shared by the first device; the device also includes a second synchronization module for connecting to the second device via a network to synchronize data changes in the first space with data changes in the second space.
[0043] In one possible implementation, the device further includes a second encryption module for encrypting the first space, so that the second device can send a second instruction to the first device after completing the decryption and authentication of the first space.
[0044] In one possible implementation, the first device stores a sharing record of data sharing with the second device; the data sharing module is also used to share data with the second device again via a network connection based on the sharing record.
[0045] Fourthly, a data sharing apparatus is provided, which is applied to a second device for performing the methods of the second aspect or any possible implementation thereof. Specifically, the data sharing apparatus includes modules for performing the methods of the second aspect or any possible implementation thereof.
[0046] In one possible implementation, the device includes: a transmission module for transmitting device information of a second device via an information carrier, the information carrier being a medium carrying information, the device information of the second device including information required to establish a network connection with the second device; a connection establishment module for accepting a network connection established by a first device based on the device information of the second device between the first device and the second device, so that the second device and the first device can communicate with each other through the network connection, the first device being a device that obtains the device information of the second device, and the network type of the network connection including a local area network, a metropolitan area network, or a wide area network; and a data sharing module for sharing data with the first device through the network connection.
[0047] In one possible implementation, the information carrier is a screen projector, and the transmission module is used to store the device information of the second device in the screen projector when the insertion of the screen projector is detected, so that the first device can obtain the device information of the second device through the screen projector.
[0048] In one possible implementation, the information carrier is an NFC radio frequency signal, and the transmission module is used to broadcast the device information of the second device through the NFC radio frequency signal, so that the first device can obtain the device information of the second device through the NFC radio frequency signal.
[0049] In one possible implementation, the information carrier is a subsonic signal, and the transmission module is used to broadcast the device information of the second device through the subsonic signal, so that the first device can obtain the device information of the second device through the subsonic signal.
[0050] In one possible implementation, the data sharing module is configured to, upon obtaining first read / write permission for first data on the first device, send a first instruction to the first device to read the first data based on the first read / write permission; and receive the first data sent by the first device based on the first instruction via a network connection.
[0051] In one possible implementation, the device further includes a first synchronization module for synchronizing modification operations on the first data with the first device via a network connection.
[0052] In one possible implementation, the first device encrypts the first data, and the data sharing module is used to decrypt and authenticate the first data based on the first read and write permissions; after completing the decryption and authentication of the first data, it sends a first instruction to the first device.
[0053] In one possible implementation, the data sharing module is configured to, upon obtaining second read / write permissions for a first space on the first device, send a second instruction to the first device to read the first space based on the second read / write permissions, wherein the first space stores data shared by the first device to the second device; and receive data from the first space sent by the first device based on the second instruction via a network connection.
[0054] In one possible implementation, the data sharing module is further configured to store data in the first space into a second space on the second device; the device also includes a second synchronization module, configured to synchronize data changes in the second space with data changes in the first space via a network connection between the first device and the second device.
[0055] In one possible implementation, the first device encrypts the first space, and the data sharing module is used to decrypt and authenticate the first space based on the second read and write permissions; after completing the decryption and authentication of the first space, it sends a second instruction to the first device.
[0056] In one possible implementation, the second device stores a sharing record of data sharing with the first device; the data sharing module is also used to share data with the first device again via a network connection based on the sharing record.
[0057] Fifthly, an electronic device is provided, comprising: a processor coupled to a memory storing at least one program instruction or code, the at least one program instruction or code being loaded and executed by the processor to enable the electronic device to implement the data sharing method as described in either the first or second aspect above.
[0058] Optionally, the processor may be one or more, and the memory may be one or more.
[0059] Optionally, the memory may be integrated with the processor, or the memory may be separated from the processor.
[0060] In the specific implementation process, the memory can be a non-transitory memory, such as read-only memory (ROM), which can be integrated with the processor on the same chip or set on different chips. This application does not limit the type of memory or the way the memory and processor are set.
[0061] In a sixth aspect, a data sharing system is provided, the data sharing system comprising a first device and a second device; the first device is configured to perform the method described in the first aspect or any possible implementation thereof, and the second device is configured to perform the method described in the second aspect or any possible implementation thereof.
[0062] In a seventh aspect, a computer-readable storage medium is provided, the storage medium storing at least one instruction, the instruction being loaded and executed by a processor to cause a computer to implement the method of the first aspect or any possible implementation of the first aspect, or to implement the method of the second aspect or any possible implementation of the second aspect.
[0063] Eighthly, a computer program (product) is provided, the computer program (product) comprising: computer program code, which, when executed by a computer, causes the computer to perform the methods described in the preceding aspects.
[0064] In a ninth aspect, a chip is provided, including a processor for retrieving and executing instructions stored in a memory, causing a device on which the chip is mounted to perform the methods of the preceding aspects.
[0065] In a tenth aspect, another chip is provided, comprising: an input interface, an output interface, a processor, and a memory, wherein the input interface, the output interface, the processor, and the memory are connected via an internal connection path, and the processor is used to execute code in the memory, wherein when the code is executed, the processor is used to perform the methods in the foregoing aspects.
[0066] It should be understood that the beneficial effects achieved by the technical solutions of the second to tenth aspects of this application and their corresponding possible implementations can be found in the technical effects of the first aspect and its corresponding possible implementations described above, and will not be repeated here. Furthermore, the data sharing device mentioned in the third or fourth aspect may be the chip mentioned in the ninth or tenth aspect, or the data sharing device may also be the electronic device mentioned in the fifth aspect. Attached Figure Description
[0067] Figure 1 is a schematic diagram of the implementation environment of a data sharing method provided in an embodiment of this application;
[0068] Figure 2 is a schematic diagram of the implementation environment of another data sharing method provided in the embodiments of this application;
[0069] Figure 3 is a flowchart of a data sharing method provided in an embodiment of this application;
[0070] Figure 4 is a schematic diagram of device information transmission provided in an embodiment of this application;
[0071] Figure 5 is a schematic diagram of another device information transmission provided in an embodiment of this application;
[0072] Figure 6 is a schematic diagram of a data sharing based on network mapping provided in an embodiment of this application;
[0073] Figure 7 is a schematic diagram of another data sharing based on network mapping provided in an embodiment of this application;
[0074] Figure 8 is a schematic diagram of data sharing based on a synchronization space provided in an embodiment of this application;
[0075] Figure 9 is a schematic diagram of another data sharing based on synchronization space provided in an embodiment of this application;
[0076] Figure 10 is a schematic diagram of a data sharing device provided in an embodiment of this application;
[0077] Figure 11 is a schematic diagram of another data sharing device provided in an embodiment of this application;
[0078] Figure 12 is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation
[0079] To make the objectives, technical solutions, and advantages of this application clearer, the embodiments of this application will be described in further detail below with reference to the accompanying drawings.
[0080] In data sharing scenarios, how to quickly share data from one device to another is a pressing issue. Current technologies all require cumbersome steps. For example, USB flash drive sharing requires copying data from one device to a USB flash drive, and then copying the data from the USB flash drive to another device. Communication software or cloud storage sharing methods require logging into accounts on both devices, involving tedious authentication processes.
[0081] This application provides a data sharing method that enables simple and easy-to-operate data sharing. Figure 1 is a schematic diagram of an implementation environment provided by this application embodiment. As shown in Figure 1, the implementation environment includes one or more first devices 101 and one or more second devices 102. Each first device 101 can share data with one or more second devices 102. For example, any first device 101 can send data from that first device 101 to one or more second devices 102. Each second device 102 can share data from one or more first devices 101. For example, any second device 102 can receive data sent by one first device 101, or receive data sent by multiple first devices 101 respectively. Thus, one or more second devices 102 can receive and display data from one or more first devices 101, achieving data sharing.
[0082] This application does not limit the device type of the first device 101 or the second device 102. Optionally, both the first device 101 and the second device 102 can be terminals. For example, a terminal can be any electronic product that can interact with a user through one or more methods such as a keyboard, touchpad, touch screen, remote control, voice interaction, or handwriting device, such as a personal computer (PC), mobile phone, camera, printer, personal digital assistant (PDA), wearable device, pocket PC (PPC), tablet computer, or smart display terminal, etc.
[0083] Among them, the intelligent display terminal can be a large-screen terminal, which is a device that uses a large screen as a display terminal, also known as a large-screen device, used to intuitively display various data, videos, pictures, and other content. A large-screen terminal may include a signal source input section, a large-screen display, and a central control system. The central control system connects the signal source and the large-screen display, realizing signal switching and display functions. The large-screen display can be a light-emitting diode (LED) display or a liquid crystal display (LCD), etc. In one possible scenario, because a large-screen terminal is primarily a display device, it may not include high-performance processors or controllers, thus preventing the installation and use of communication software and other applications.
[0084] The method provided in this application can be applied to any scenario requiring data sharing, such as office or educational scenarios. In an office setting, staff typically prepare meeting materials on their personal devices (e.g., computers or mobile phones). When a meeting is needed, they share the prepared materials on their personal devices to a large-screen terminal in the conference room for presentation. In an educational setting, teachers prepare teaching materials on their personal devices. When a lesson is needed, they share the teaching materials on their personal devices to a large-screen terminal in the classroom for instruction.
[0085] For example, taking an educational scenario, Figure 2 is a schematic diagram of another implementation environment provided by an embodiment of this application. As shown in Figure 2, tablet computer 1 is located in teacher's office 1, large-screen terminal A is located in classroom 1, large-screen terminal B is located in classroom 2, and mobile phone 1 is located in classroom 2. Tablet computer 1 and mobile phone 1 correspond to the first device 101 in Figure 1, and large-screen terminal A and large-screen terminal B correspond to the second device 102 in Figure 1. Tablet computer 1 can share data with large-screen terminal A and / or large-screen terminal B, and mobile phone 1 can also share data with large-screen terminal A and / or large-screen terminal B. Large-screen terminal A can share data from tablet computer 1 and / or mobile phone 1, and large-screen terminal B can also share data from tablet computer 1 and / or mobile phone 1.
[0086] Referring to Figure 3, taking the interaction between the first device and the second device as an example, Figure 3 is a flowchart of a data sharing method provided by an embodiment of this application. The first device can be the first device 101 in Figure 1, and the second device can be the second device 102 in Figure 1; alternatively, the first device can be a tablet computer 1 or a mobile phone 1 in Figure 2, and the second device can be a large-screen terminal A or a large-screen terminal B in Figure 2. As shown in Figure 3, this data sharing method includes, but is not limited to, the following steps 301-304.
[0087] Step 301: The second device transmits its device information via an information carrier.
[0088] In this embodiment, the information carrier is a medium for carrying information. This information carrier is used to quickly obtain information, for example, by allowing information to be obtained without logging in or entering a password, thus improving the convenience of accessing device information. The information carrier can be a tangible or intangible carrier. For example, information carriers include, but are not limited to, tangible carriers such as USB flash drives or screen projectors, and intangible carriers such as NFC radio frequency signals, sub-ultrasonic signals, infrared signals, or Bluetooth signals. The information carrier does not include wired or wireless networks because when the first device and the second device first share data, they have not yet established a network connection, and therefore data transmission cannot be performed via the network. Furthermore, the information carrier does not include applications such as communication software or file transfer software, because such applications require cumbersome operations such as logging in or adding friends before information can be transmitted.
[0089] Optionally, device information refers to the information required for networking between devices, where networking refers to connecting devices to form a network. Networking the first device with the second device can refer to establishing a network connection between the first device and the second device. In this embodiment, the device information of the second device is the information required to establish a network connection with the second device. For example, device information includes one or more of the following: device name, device address, network identifier, or network access password. The device address is information that indicates the device's location, the network identifier is the identifier of the network the device is located in, and the network access password is the authentication password for the device to access the network it is located in. For example, the device address includes, but is not limited to, one or more of the following: medium access control (MAC) address or internet protocol (IP) address.
[0090] In one possible implementation, the second device is located within a local area network (LAN). A LAN is a network of devices and their peripherals connected via a transmission medium within a relatively small geographical area. This smaller geographical area can be, for example, the interior of an office, a building, a campus, or a company. Transmission media within a LAN include, but are not limited to, Ethernet, wireless networks, and fiber optic networks. Wireless networks can be, for example, wireless fidelity (Wi-Fi) networks or wireless local area networks (WLANs). Devices within a LAN typically share the same network protocols and communication standards, thereby ensuring efficient data transmission within the LAN.
[0091] Taking the local area network where the second device is located as an example of communication via a Wi-Fi network, the network identifier of the second device can be a Wi-Fi service set identifier (SSID), and the network access password of the second device can be the authentication password for the second device to access the local area network. This authentication password can be a Wi-Fi protected access (Wi-Fi WPA) password.
[0092] Step 302: The first device obtains the device information of the second device through the information carrier.
[0093] When the second device transmits its device information via an information carrier, the first device can obtain the device information of the second device through that information carrier. Alternatively, the second device can also obtain the device information of the second device through other means, such as manually inputting the device information.
[0094] This application embodiment uses three methods, namely a screen projector, NFC radio frequency signal, and subsonic signal, as examples to illustrate how the first device obtains device information of the second device.
[0095] Method 1: The first device obtains the device information of the second device through a screen mirroring device.
[0096] A screen mirroring device is a device that can wirelessly or wiredly transmit the screen content of one device to another, allowing multiple devices to display the same image. For example, a screen mirroring device can connect to a device via a universal serial bus (USB) interface and use wireless transmission technology to transmit the screen content of one device to another in real time. The screen mirroring device can be a small, wired projection adapter.
[0097] In one possible implementation, the second device detects that a screen projector has been inserted and stores the device information of the second device in the screen projector. Then, the screen projector is inserted into the first device, which detects that a screen projector has been inserted and reads the device information of the second device stored in the screen projector. Thus, device information can be quickly obtained through the screen projector.
[0098] For example, refer to Figure 4, which illustrates the transmission of device information. When the projector is inserted into the second device, it automatically acquires the device information of the second device. During this acquisition process, as shown in Figure 4, the screen of the second device displays "Acquiring device information." In one possible implementation, the projector has a built-in device information acquisition program. When the projector is inserted into the second device, it automatically starts the program, automatically acquiring the device information of the second device, which is then stored in the projector.
[0099] Optionally, while the screen displays "Retrieving Device Information," the second device cannot perform other operations to avoid interfering with the acquisition of device information. After the projector completes acquiring the device information of the second device, the screen of the second device stops displaying "Retrieving Device Information," and the second device resumes normal operation. After the projector completes acquiring the device information of the second device, for example, after the screen of the second device stops displaying "Retrieving Device Information," the projector is unplugged from the device. Then, the projector is plugged into the first device, and the first device reads the device information of the second device stored in the projector, thereby obtaining the device information of the second device. In one possible implementation, the projector has a built-in device information reading program. When the projector is plugged into the first device, the projector can automatically start the device information reading program to read the device information of the second device.
[0100] In addition to storing the device information of the second device, the screen mirroring device may also store device information of at least one other device. In this case, the first device can read the device information of all devices stored in the screen mirroring device, and then select the device information of the second device from the read device information. For example, as shown in Figure 4, after the screen mirroring device is inserted into the first device, if the first device reads the device information of multiple devices from the screen mirroring device, a pop-up window will display the device identifiers of multiple devices on the screen of the first device. Each device identifier corresponds to the device information of one device, and the user can select the second device to be paired with in the network from among the multiple devices. For example, the user can select the second device by clicking on any device identifier on the screen, triggering the first device to perform network pairing with the second device based on the device information of the second device.
[0101] Method 2: The first device obtains the device information of the second device through NFC radio frequency signals.
[0102] NFC, also known as Near Field Communication, is a short-range, high-frequency wireless communication technology used for contactless, point-to-point data transmission between devices. In one possible implementation, a second device broadcasts its device information via an NFC radio frequency signal; the first device then retrieves this broadcast device information from the NFC radio frequency signal. Thus, NFC enables rapid acquisition of device information.
[0103] For example, refer to Figure 5, which illustrates the transmission of device information. Both the first and second devices have built-in NFC functionality. Enabling the NFC function on the second device encodes its device information, required for network configuration, as a broadcast signal into the NFC radio frequency signal. This NFC radio frequency signal propagates through the air near the second device. Enabling the NFC function on the first device, and bringing it close to the second device, allows the first device to receive the NFC radio frequency signal propagated by the second device. The device information of the second device is obtained by parsing the NFC radio frequency signal and saved locally on the first device. In one possible scenario, parsing the NFC radio frequency signal may retrieve device information from multiple devices. As shown in Figure 5, a pop-up window on the first device's screen displays device identifiers for multiple devices, with each identifier corresponding to the device information of one device. The user then selects the second device from among these devices to form a network pair.
[0104] Method 3: Obtain the equipment information of the second device through sub-ultrasound.
[0105] Subsonic signals refer to signals with frequencies between 18-20 kHz, which can transmit data. In one possible implementation, the second device broadcasts its own device information via a subsonic signal; the first device then retrieves this broadcast device information from the subsonic signal. Thus, the subsonic function enables rapid acquisition of device information.
[0106] For example, both the first and second devices have built-in sub-ultrasonic functionality. Enabling the sub-ultrasonic function on the second device encodes its device information, required for network distribution, into the sub-ultrasonic signal as a broadcast signal. Enabling the sub-ultrasonic function on the first device allows it to receive the sub-ultrasonic signal transmitted by the second device. The device information of the second device is obtained by parsing the sub-ultrasonic signal and saved locally on the first device. In one possible scenario, parsing the sub-ultrasonic signal may yield device information for multiple devices. A pop-up window on the first device displays the device identifiers of these multiple devices, with each device identifier corresponding to the device information of one device. The user then selects the second device from among these devices for network pairing.
[0107] Step 303: The first device establishes a network connection between the first device and the second device based on the device information of the second device, so that the first device and the second device can communicate with each other through the network connection.
[0108] This application does not limit the networking method; it only requires that the first device and the second device communicate with each other via a network connection. The network type of the network connection includes a local area network (LAN), a metropolitan area network (MAN), or a wide area network (WAN). Taking a LAN as an example, the first device and the second device communicate with each other via a LAN. Optionally, the first device and the second device communicate with each other through the same LAN, that is, the first device and the second device are located in the same LAN; or, the first device and the second device communicate with each other through their respective LANs, that is, the first device is located in a first LAN, the second device is located in a second LAN, and the first LAN and the second LAN are interconnected.
[0109] In this embodiment, since the device information of the second device includes the information required to establish a network connection with the second device, the network connection between the first device and the second device can be established upon obtaining the device information of the second device. Optionally, both the first device and the second device are connected to the network. The device information of the second device includes the device address of the second device, thereby enabling the first device to communicate with the second device through the device address and complete the establishment of the network connection. Alternatively, only the second device is connected to the network. The device information of the second device includes the device address, network identifier, and network access password of the second device. The first device accesses the network where the second device is located based on the network identifier and network access password, and then communicates with the second device through the device address of the second device to complete the establishment of the network connection. For example, the network where the second device is located can be a local area network (LAN) connected to the second device. This LAN can be a WiFi network connected to the second device, or a hotspot network created by the second device.
[0110] In one possible implementation, the method by which the first device establishes a network connection with the second device based on the device information of the second device includes: the first device sending a connection request to the second device based on the device information of the second device; the second device accepting the connection request and returning a response to the connection request to the first device. Thus, a network connection is established between the first device and the second device, completing the networking between the first device and the second device.
[0111] After the first and second devices complete their initial network setup, they maintain communication through this network connection. That is, during data sharing, the first and second devices can maintain data transmission without needing to re-establish a network connection. Subsequently, when the first and second devices share data again, since the first device stores the device information of the second device from the previous network setup, as long as the second device has not updated this information, the first device can directly establish a network with the second device based on the locally stored device information, without needing to obtain the second device's device information again through an information carrier.
[0112] Step 304: The first device and the second device share data through a network connection.
[0113] After the first device and the second device establish a network connection, the first device can share data with the second device via the network connection, and similarly, the second device can share data with the first device via the network connection. In this embodiment, the shared data can refer to files, and the file types include, but are not limited to, videos, images, audio, or text. The files can be stored in folders.
[0114] In one possible implementation, after the first device and the second device share data via a network connection, the second device can save a sharing record of the data sharing with the first device, and the first device can also save a sharing record of the data sharing with the second device. The sharing record indicates the established network connection, and optionally, the sharing record may include at least one of device information, shared location, or shared content. Therefore, based on the sharing record, the first device can again share data with the second device via the network connection, achieving rapid data sharing without needing to re-acquire device information.
[0115] Optionally, a shared record can correspond to a user, meaning a user can quickly find their previous data-sharing record by authenticating their identity. In this case, the first device can obtain the shared record of data sharing with the second device through authentication, and then, based on this shared record, share data with the second device again through the established network connection. The second device can also obtain the shared record of data sharing with the first device through authentication, and can also share data with the first device again through the same network connection based on this shared record. This allows for faster and more convenient data sharing after the network setup is completed, with authentication enabled for subsequent data sharing. Authentication methods include, but are not limited to, facial recognition, fingerprint authentication, password authentication, or SMS authentication.
[0116] Taking the sharing of data on the first device to the second device as an example, the sharing methods include, but are not limited to, the following two.
[0117] The first sharing method involves achieving data sharing between the first and second devices through network mapping.
[0118] In this sharing method, the first device contains first data, and the second device is granted first read / write permissions to the first data. The method by which the first device shares data with the second device via a network connection includes: upon receiving a first instruction from the second device to read the first data, the first device sends the first data to the second device via the network connection. For example, the first device grants the second device first read / write permissions to the first data on the first device; upon obtaining the first read / write permissions, the second device sends a first instruction to the first device to read the first data based on the first read / write permissions; upon receiving the first instruction from the second device to read the first data, the first device sends the first data to the second device via the network connection; and the second device receives the first data sent by the first device based on the first instruction via the network connection.
[0119] This enables the first device to share its first data with the second device. In this scenario, the second device reads the first data from the first device in real time via network mapping, without storing the first data locally on the second device, thus reducing the storage requirements on the second device.
[0120] In one possible implementation, after the first device sends first data to the second device via a network connection, the first device and the second device also synchronize modification operations on the first data via the network connection. Modification operations include, but are not limited to, adding, deleting, or modifying data. Since the network connection maintains communication between the first and second devices, the second device's modification operations on the first data can be sent to the first device via the network connection, allowing the first device to synchronously modify the first data based on the received modification operations. After modifying the first data, the first device can also synchronize the modified first data to the second device in real time via the network connection. This simplifies the data synchronization process, eliminating the need for cumbersome operational steps.
[0121] In this embodiment, the first device can encrypt the first data so that the second device can only send the first instruction to the first device after completing the decryption and authentication of the first data. For example, the second device performs decryption and authentication of the first data based on first read / write permissions; after completing the decryption and authentication of the first data, it sends the first instruction to the first device. Thus, encryption improves the security of data sharing. Optionally, encryption methods include, but are not limited to, personal identification numbers (PINs), facial recognition, voiceprint recognition, or fingerprint recognition.
[0122] For example, Figures 6 and 7 illustrate a method of data sharing via network mapping. In this example, the screen of the first device displays folder 1, which is the shared folder to be shared. Folder 1 contains the files to be shared, i.e., the first data. When the first device is interconnected with multiple devices via a network connection (i.e., all devices are on the same network connection as the first device, such as devices 1, 2, and 3 as shown in Figure 7), the first device can choose which device to share folder 1 with. In Figure 7, the first device selects to share folder 1 with device 1, so device 1 corresponds to the second device. Optionally, the first device can encrypt folder 1.
[0123] After the first device selects folder 1 for sharing, it grants the second device read and write permissions for folder 1. This allows the second device to read the data within folder 1 in real time via a network connection. The shared folder from the first device can then be displayed on the second device's screen, and this shared folder includes the identifier of folder 1 selected by the first device. Since the shared data is not stored locally on the second device, the shared folder from the first device does not include the data from folder 1. Therefore, as shown in Figure 6, the shared folders of the first and second devices are connected via a network mapping module, which enables real-time data transmission between the shared folders of the first and second devices.
[0124] For example, when the second device selects the identifier of folder 1 in the shared folder, it triggers the real-time transmission of data within folder 1 from the first device to the second device, achieving real-time data sharing. This allows the second device to display the shared data on the first device in real time. If the first device encrypts folder 1, the second device needs to decrypt and authenticate folder 1 before triggering shared data transmission, or before displaying shared data. The second device may also share data with other devices. As shown in Figure 7, the second device's screen also displays a shared folder from a third device, which contains folder identifiers or file identifiers shared by the third device to the second device.
[0125] Optionally, the second device may save sharing records, such as the shared folders of the first device. A shared folder can correspond to one or more user identities. In this case, when the second device wants to share data again, it can directly access the saved shared folder corresponding to that user identity through authentication. Since this shared folder contains the folder or file identifiers shared by the first device to the second device, it can quickly access the shared data on the first device without needing to re-establish the network. For example, after authentication, the second device may ask the user if they want to open the corresponding shared folder. After the user confirms, the second device's screen will automatically display the user's corresponding shared folder.
[0126] Therefore, by using network mapping, shared data on the first device can be quickly obtained on the second device and used as if it were local data on the second device. Modifications to the shared data can be synchronized back to the first device in real time, greatly reducing the hassle of users having to copy materials back and forth.
[0127] The second sharing method is to achieve data sharing between the first and second devices through synchronization space.
[0128] In this second sharing method, the first device has a first space for storing data shared with the second device, and the second device is granted second read / write permissions to the first space. The method by which the first device shares data with the second device via a network connection includes: upon receiving a second instruction from the second device to read the first space, the first device sends data from the first space to the second device via the network connection. For example, the first device grants the second device second read / write permissions to the first device for the first space on the first device, where the first space is used to store data shared by the first device to the second device; upon obtaining the second read / write permissions to the first space on the first device, the second device sends a second instruction to the first device to read the first space based on the second read / write permissions; upon receiving the second instruction from the second device to read the first space, the second device sends data from the first space to the second device via the network connection; and the second device receives data from the first device sent by the first device based on the second instruction via the network connection.
[0129] Therefore, data sharing is achieved through shared space. In this scenario, the second device backs up and stores the first data shared by the first device. The locally stored first data allows the second device to quickly read or modify it, resulting in a faster response compared to reading from the first device in real time.
[0130] In one possible implementation, the second device includes a second space for storing data shared by the first device to the second device. For example, after the second device receives data in the first space sent by the first device based on a second instruction via a network connection, it stores the data in the first space into the second space on the second device.
[0131] Optionally, the first device is also connected to the second device via a network to synchronize data changes in the first space with data changes in the second space. Since the network connection maintains communication between the first and second devices, modifications made by the first device to the data in the first space can be synchronized to the second device, enabling the second device to simultaneously modify the data in the second space, and vice versa, ensuring consistency between the data in the first and second spaces.
[0132] In this embodiment, the first device can encrypt the first space so that the second device can only send the second instruction to the first device after completing the decryption authentication of the first space. For example, the second device performs decryption authentication of the first space based on second read / write permissions; after completing the decryption authentication of the first space, it sends the second instruction to the first device. Thus, encryption can improve the security of data sharing.
[0133] For example, Figures 8 and 9 illustrate a method of data sharing via a synchronization space. The screen of the first device displays the synchronization space of the second device (corresponding to the first space). The synchronization space file of the second device includes folders 1 and 2 that the first device intends to share with the second device. When the first device communicates with multiple devices via a network connection, the screen of the first device may also display the synchronization spaces of other devices, used to store data shared by the first device with these other devices. Optionally, the first device may encrypt the synchronization space of the second device.
[0134] In one possible scenario, both the first and second devices have synchronization software installed, enabling data synchronization between the first and second storage spaces. For example, when the first and second devices complete network formation, both devices will automatically download the synchronization software; alternatively, the user can download and install the software beforehand from a designated location. Within the synchronization software, the first device selects a folder as the synchronization space for data sharing with the second device and grants the second device read and write permissions to that space. In this case, the second device's synchronization software will also create a folder as the first device's synchronization space.
[0135] The first device stores shared folders 1 and 2 in a first space. The synchronization software periodically monitors changes in the first space on the first device and synchronizes these changes to the second space on the second device. Since the data in the first and second spaces is synchronized, the data shared by the first device to the second device is stored locally on the second device, allowing the second device to display the shared data on the first device in real time. Therefore, as shown in Figure 8, the first space of the first device and the second space of the second device are connected through a space synchronization module, which enables real-time data transmission between them.
[0136] If the first device encrypts the first space, the second device needs to decrypt and authenticate the first space before space synchronization can be triggered, or the shared data in the second space can be displayed only after the first space is decrypted and authenticated. The second device may also share data with other devices. As shown in Figure 9, the screen of the second device also displays the synchronization space of the third device, which includes data shared by the third device to the second device.
[0137] Optionally, the second device may store sharing records, such as the synchronization space of the first device. One synchronization space can correspond to one or more user identities. In this case, when the second device wants to share data again, it can directly access the saved synchronization space corresponding to that user identity through authentication. Since the synchronization space contains the data shared by the first device to the second device, the shared data can be quickly accessed based on this synchronization space without needing to re-establish the network. For example, the second device, after authentication, asks the user whether to open the corresponding synchronization space. After the user confirms, the user's synchronization space will automatically pop up on the second device's screen.
[0138] Therefore, by establishing a synchronization space between the first and second devices, rapid data sharing can be achieved, and any modifications made within the synchronization space will be promptly synchronized to the data copy stored in the synchronization space, greatly reducing the tedious process of users copying materials back and forth.
[0139] The above describes how the first device shares data from the first device to the second device. The method by which the second device shares data from the second device to the first device is similar to the method described above, and will be briefly introduced in this application embodiment.
[0140] In one possible implementation, the second device shares data with the first device via a network connection, including: the second device granting the first device third read / write permissions to second data on the second device; the first device, having obtained the third read / write permissions, sending a third instruction to the second device to read the second data based on those permissions; the second device, upon receiving the third instruction from the first device, sending the second data to the first device via the network connection; and the second device receiving the second data sent by the first device based on the third instruction via the network connection. Optionally, after sending the second data to the first device via the network connection, the second device also synchronizes modification operations on the second data with the first device via the network connection. The second device can encrypt the second data so that the first device can only send the third instruction to the second device after completing decryption authentication of the second data. That is, the first device can share data with the second device, and the second device can also share data with the first device, improving the flexibility and feasibility of data sharing.
[0141] In another possible implementation, the method by which the first device shares data with the second device via a network connection includes: the second device granting the first device a fourth read / write permission to a second space on the second device, the second space being used to store data shared by the second device to the first device; the first device, upon obtaining the fourth read / write permission to the second space on the second device, sending a fourth instruction to the second device to read the second space based on the fourth read / write permission; upon receiving the fourth instruction from the first device to read the second space, the second device sending the data in the second space to the first device via the network connection; and the first device receiving the data in the second space sent by the second device based on the fourth instruction via the network connection. Optionally, the second device includes a first space for storing data shared by the second device to the first device; after sending the data in the second space to the first device via the network connection, the second device also synchronizes changes in the data in the second space with changes in the data in the first space via the network connection. The second device may also encrypt the second space so that the first device can only send the fourth instruction to the second device after completing decryption authentication of the second space.
[0142] In scenarios where a first device and a second device share data, the first space on the first device is used to store data shared by the first device to the second device, and also to store data shared by the second device to the first device; similarly, the second space on the second device is used to store data shared by the first device to the second device, and also to store data shared by the second device to the first device. That is, the first device can share data with the second device through the first space, and the second device can also share data with the first device through the second space, thus improving the flexibility and feasibility of data sharing.
[0143] In summary, the data sharing method provided in this application enables rapid networking between a first device and a second device via information carriers such as screen projectors, NFC radio frequency signals, or subsonic signals, greatly increasing the convenience of networking between the two devices. Rapid data sharing and synchronization are achieved through network mapping or the creation of synchronization spaces. This solves the problem of quickly sharing or synchronizing files from personal devices to large-screen terminals, significantly improving the convenience of material sharing and display. Furthermore, the shared data can be optionally encrypted for privacy protection.
[0144] The data sharing method of this application embodiment has been described above. Corresponding to the above method, this application embodiment also provides a data sharing device. Figure 10 is a schematic diagram of the structure of a data sharing device provided in this application embodiment. This device is applied to a first device, which is the first device in the method shown in Figure 3 above. Based on the multiple modules shown in Figure 10, the data sharing device shown in Figure 10 can perform all or part of the operations performed by the first device. It should be understood that the device may include more additional modules than the modules shown or omit some of the modules shown. This application embodiment does not impose any limitations on this.
[0145] As shown in Figure 10, the device includes: an acquisition module 1001, used to acquire device information of a second device through an information carrier, the information carrier being a medium carrying information, the device information of the second device including information required to establish a network connection with the second device; a connection establishment module 1002, used to establish a network connection between the first device and the second device based on the device information of the second device, so that the first device and the second device can communicate with each other through the network connection, the network type of the network connection including a local area network, a metropolitan area network, or a wide area network; and a data sharing module 1003, used to share data with the second device through the network connection.
[0146] In one possible implementation, the information carrier is a screen projector, and the acquisition module 1001 is used to read the device information of the second device stored in the screen projector when the insertion of the screen projector is detected.
[0147] In one possible implementation, the information carrier is an NFC radio frequency signal, and the acquisition module 1001 is used to acquire device information of the second device from the NFC radio frequency signal.
[0148] In one possible implementation, the information carrier is a subsonic ultrasound signal, and the acquisition module 1001 is used to acquire the device information of the second device from the subsonic ultrasound signal.
[0149] In one possible implementation, the device information includes one or more of the following: device name, device address, network identifier, or network access password.
[0150] In one possible implementation, the first device has first data, and the second device is granted first read and write permissions to the first data; the data sharing module 1003 is used to send the first data to the second device via a network connection upon receiving a first instruction from the second device to read the first data.
[0151] In one possible implementation, the device further includes a first synchronization module for synchronizing modification operations on the first data with a second device via a network connection.
[0152] In one possible implementation, the device further includes a first encryption module for encrypting the first data, so that the second device can send a first instruction to the first device after completing the decryption and authentication of the first data.
[0153] In one possible implementation, the first device has a first space for storing data to be shared with the second device, and the second device is granted second read and write permissions to the first space; the data sharing module 1003 is used to send the data in the first space to the second device via a network connection when it receives a second instruction from the second device to read the first space.
[0154] In one possible implementation, the second device includes a second space for storing data shared by the first device; the device also includes a second synchronization module for connecting to the second device via a network to synchronize data changes in the first space with data changes in the second space.
[0155] In one possible implementation, the device further includes a second encryption module for encrypting the first space, so that the second device can send a second instruction to the first device after completing the decryption and authentication of the first space.
[0156] In one possible implementation, the first device stores a sharing record of data sharing with the second device; the data sharing module 1003 is also used to share data with the second device again via a network connection based on the sharing record.
[0157] Figure 11 is a schematic diagram of another data sharing device provided in an embodiment of this application. This device is applied to a second device, which is the second device in the method shown in Figure 3 above. Based on the multiple modules shown in Figure 11, the data sharing device shown in Figure 11 can perform all or part of the operations performed by the second device. It should be understood that the device may include more additional modules than the modules shown or omit some of the modules shown, and this embodiment of the application does not impose any limitations on this.
[0158] As shown in Figure 11, the device includes: a transmission module 1101, used to transmit device information of a second device through an information carrier, the information carrier being a medium carrying information, the device information of the second device including information required to establish a network connection with the second device; a connection establishment module 1102, used to accept a network connection established between the first device and the second device by the first device based on the device information of the second device, so that the second device and the first device can communicate with each other through the network connection, the first device being the device that obtains the device information of the second device, and the network type of the network connection including a local area network, a metropolitan area network, or a wide area network; and a data sharing module 1103, used to share data with the first device through the network connection.
[0159] In one possible implementation, the information carrier is a screen projector, and the transmission module 1101 is used to store the device information of the second device in the screen projector when the insertion of the screen projector is detected, so that the first device can obtain the device information of the second device through the screen projector.
[0160] In one possible implementation, the information carrier is an NFC radio frequency signal, and the transmission module 1101 is used to broadcast the device information of the second device through the NFC radio frequency signal so that the first device can obtain the device information of the second device through the NFC radio frequency signal.
[0161] In one possible implementation, the information carrier is a subsonic signal, and the transmission module 1101 is used to broadcast the device information of the second device through the subsonic signal so that the first device can obtain the device information of the second device through the subsonic signal.
[0162] In one possible implementation, the data sharing module 1103 is used to send a first instruction to the first device to read the first data based on the first read / write permission when it obtains the first read / write permission for the first data on the first device; and to receive the first data sent by the first device based on the first instruction through a network connection.
[0163] In one possible implementation, the device further includes a first synchronization module for synchronizing modification operations on the first data with the first device via a network connection.
[0164] In one possible implementation, the first device encrypts the first data, and the data sharing module 1103 is used to decrypt and authenticate the first data based on the first read and write permissions; after completing the decryption and authentication of the first data, it sends a first instruction to the first device.
[0165] In one possible implementation, the data sharing module 1103 is used to send a second instruction to the first device to read the first space based on the second read / write permission when it obtains the second read / write permission to the first space on the first device. The first space stores data shared by the first device to the second device. The module also receives data in the first space sent by the first device based on the second instruction via a network connection.
[0166] In one possible implementation, the data sharing module 1103 is further configured to store data in the first space into a second space on the second device; the device also includes a second synchronization module, configured to synchronize data changes in the second space with data changes in the first space via a network connection between the first device and the second device.
[0167] In one possible implementation, the first device encrypts the first space, and the data sharing module 1103 is used to decrypt and authenticate the first space based on the second read and write permissions; after completing the decryption and authentication of the first space, it sends a second instruction to the first device.
[0168] In one possible implementation, the second device stores a sharing record of data sharing with the first device; the data sharing module 1103 is also used to share data with the first device again via a network connection based on the sharing record.
[0169] It should be understood that the devices provided in Figures 10 or 11 above are only illustrated by the division of the above-described functional modules. In practical applications, the functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. Furthermore, the devices and methods provided in the above embodiments belong to the same concept, and their specific implementation process and beneficial effects are detailed in the method embodiments, and will not be repeated here.
[0170] Referring to Figure 12, Figure 12 shows a schematic diagram of the structure of an electronic device provided in an exemplary embodiment of this application. The electronic device can be a terminal, such as a smartphone, tablet computer, in-vehicle terminal, laptop computer, or desktop computer. The terminal may also be referred to as user equipment, portable terminal, laptop terminal, desktop terminal, or other names.
[0171] Typically, a terminal includes a processor 701 and a memory 702.
[0172] Processor 701 may include one or more processing cores, such as a quad-core processor or an octa-core processor. Processor 701 may be implemented using at least one hardware form selected from DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). Processor 701 may also include a main processor and a coprocessor. The main processor, also known as a CPU (Central Processing Unit), is used to process data in the wake-up state; the coprocessor is a low-power processor used to process data in the standby state. In some embodiments, processor 701 may integrate a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content required to be displayed on the screen.
[0173] The memory 702 may include one or more computer-readable storage media, which may be non-transitory. The memory 702 may also include high-speed random access memory and non-volatile memory, such as one or more disk storage devices or flash memory devices. In some embodiments, the non-transitory computer-readable storage media in the memory 702 are used to store at least one instruction, which is executed by the processor 701 to implement the data sharing method provided in the method embodiments of this application.
[0174] In some embodiments, the terminal may also optionally include: a peripheral device interface 703 and at least one peripheral device. The processor 701, memory 702, and peripheral device interface 703 can be connected via a bus or signal line. Each peripheral device can be connected to the peripheral device interface 703 via a bus, signal line, or circuit board. Specifically, the peripheral device includes at least one of: a radio frequency circuit 704, a display screen 705, a camera assembly 706, an audio circuit 707, and a power supply 708.
[0175] Peripheral device interface 703 can be used to connect at least one I / O (Input / Output) related peripheral device to processor 701 and memory 702. In some embodiments, processor 701, memory 702 and peripheral device interface 703 are integrated on the same chip or circuit board; in some other embodiments, any one or two of processor 701, memory 702 and peripheral device interface 703 can be implemented on separate chips or circuit boards, which is not limited in this embodiment.
[0176] The radio frequency (RF) circuit 704 is used to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. The RF circuit 704 communicates with communication networks and other communication devices via electromagnetic signals. The RF circuit 704 converts electrical signals into electromagnetic signals for transmission, or converts received electromagnetic signals back into electrical signals. Optionally, the RF circuit 704 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a user identity module card, etc. The RF circuit 704 can communicate with other terminals through at least one wireless communication protocol. This wireless communication protocol includes, but is not limited to: metropolitan area networks (MANs), various generations of mobile communication networks (2G, 3G, 4G, and 5G), wireless local area networks (WLANs), and / or Wireless Fidelity (WiFi) networks. In some embodiments, the RF circuit 704 may also include circuitry related to NFC (Near Field Communication), which is not limited in this application.
[0177] Display screen 705 is used to display a UI (User Interface). This UI may include graphics, text, icons, videos, and any combination thereof. When display screen 705 is a touch display screen, it also has the ability to collect touch signals on or above its surface. These touch signals can be input as control signals to processor 701 for processing. In this case, display screen 705 can also be used to provide virtual buttons and / or a virtual keyboard, also known as soft buttons and / or a soft keyboard. In some embodiments, display screen 705 may be a single screen, disposed on the front panel of the terminal; in other embodiments, display screen 705 may be at least two screens, disposed on different surfaces of the terminal or in a folded design; in still other embodiments, display screen 705 may be a flexible display screen, disposed on a curved or folded surface of the terminal. Furthermore, display screen 705 may be configured as a non-rectangular, irregular shape, i.e., a non-rectangular screen. Display screen 705 may be made of materials such as LCD (Liquid Crystal Display) or OLED (Organic Light-Emitting Diode).
[0178] The camera assembly 706 is used to acquire images or videos. Optionally, the camera assembly 706 includes a front-facing camera and a rear-facing camera. Typically, the front-facing camera is located on the front panel of the terminal, and the rear-facing camera is located on the back of the terminal. In some embodiments, there are at least two rear-facing cameras, which are any one of a main camera, a depth-sensing camera, a wide-angle camera, and a telephoto camera, to achieve background blurring by fusion of the main camera and the depth-sensing camera, panoramic shooting by fusion of the main camera and the wide-angle camera, VR (Virtual Reality) shooting, or other fusion shooting functions. In some embodiments, the camera assembly 706 may also include a flash. The flash can be a single-color temperature flash or a dual-color temperature flash. A dual-color temperature flash refers to a combination of a warm-light flash and a cool-light flash, which can be used for light compensation at different color temperatures.
[0179] The audio circuit 707 may include a microphone and a speaker. The microphone is used to collect sound waves from the user and the environment, converting the sound waves into electrical signals that are input to the processor 701 for processing, or input to the radio frequency circuit 704 for voice communication. For stereo sound acquisition or noise reduction purposes, multiple microphones may be used, each positioned at a different location on the terminal. The microphone may also be an array microphone or an omnidirectional microphone. The speaker is used to convert the electrical signals from the processor 701 or the radio frequency circuit 704 into sound waves. The speaker may be a conventional diaphragm speaker or a piezoelectric ceramic speaker. When the speaker is a piezoelectric ceramic speaker, it can convert electrical signals not only into audible sound waves but also into inaudible sound waves for purposes such as distance measurement. In some embodiments, the audio circuit 707 may also include a headphone jack.
[0180] Power supply 708 is used to power the various components in the terminal. Power supply 708 can be AC power, DC power, a disposable battery, or a rechargeable battery. When power supply 708 includes a rechargeable battery, the rechargeable battery can support wired or wireless charging. The rechargeable battery can also be used to support fast charging technology.
[0181] In some embodiments, the terminal further includes one or more sensors 709. The one or more sensors 709 include, but are not limited to: an accelerometer 710, a gyroscope 711, a pressure sensor 712, an optical sensor 713, and a proximity sensor 714.
[0182] Accelerometer 710 can detect the magnitude of acceleration along the three axes of a coordinate system established by the terminal. For example, accelerometer 710 can be used to detect the components of gravitational acceleration along the three axes. Processor 701 can control display screen 705 to display the user interface in either a landscape or portrait view based on the gravitational acceleration signal acquired by accelerometer 710. Accelerometer 710 can also be used for games or for acquiring user motion data.
[0183] The gyroscope sensor 711 can detect the terminal's orientation and rotation angle. The gyroscope sensor 711, in conjunction with the accelerometer sensor 710, can collect the user's 3D movements on the terminal. Based on the data collected by the gyroscope sensor 711, the processor 701 can perform the following functions: motion sensing (e.g., changing the UI based on the user's tilt), image stabilization during shooting, game control, and inertial navigation.
[0184] The pressure sensor 712 can be disposed on the side bezel of the terminal and / or the lower layer of the display screen 705. When the pressure sensor 712 is disposed on the side bezel of the terminal, it can detect the user's grip signal on the terminal, and the processor 701 can perform left / right hand recognition or quick operation based on the grip signal collected by the pressure sensor 712. When the pressure sensor 712 is disposed on the lower layer of the display screen 705, the processor 701 can control the operable controls on the UI interface based on the user's pressure operation on the display screen 705. The operable controls include at least one of button controls, scroll bar controls, icon controls, and menu controls.
[0185] An optical sensor 713 is used to collect ambient light intensity. In one embodiment, the processor 701 can control the display brightness of the display screen 705 based on the ambient light intensity collected by the optical sensor 713. Specifically, when the ambient light intensity is high, the display brightness of the display screen 705 is increased; when the ambient light intensity is low, the display brightness of the display screen 705 is decreased. In another embodiment, the processor 701 can also dynamically adjust the shooting parameters of the camera assembly 706 based on the ambient light intensity collected by the optical sensor 713.
[0186] The proximity sensor 714, also known as a distance sensor, is typically installed on the front panel of the terminal. The proximity sensor 714 is used to detect the distance between the user and the front of the terminal. In one embodiment, when the proximity sensor 714 detects that the distance between the user and the front of the terminal is gradually decreasing, the processor 701 controls the display screen 705 to switch from a screen-on state to a screen-off state; when the proximity sensor 714 detects that the distance between the user and the front of the terminal is gradually increasing, the processor 701 controls the display screen 705 to switch from a screen-off state to a screen-on state.
[0187] Those skilled in the art will understand that the structure shown in Figure 12 does not constitute a limitation on the computer device and may include more or fewer components than shown, or combine certain components, or employ different component arrangements.
[0188] This application also provides a data sharing system, which includes a first device and a second device. For example, the first device is the electronic device shown in FIG12, and the second electronic device is also the electronic device shown in FIG12. The data sharing method performed by the first device and the second device can be found in the relevant description of the embodiment shown in FIG3 above, and will not be repeated here.
[0189] This application also provides a communication device, which includes a transceiver, a memory, and a processor. The transceiver, the memory, and the processor communicate with each other via an internal connection path. The memory stores instructions, and the processor executes the instructions stored in the memory to control the transceiver to receive and transmit signals. When the processor executes the instructions stored in the memory, it causes the processor to perform a method required by a first device or a second device.
[0190] It should be understood that the aforementioned processor can be a CPU, or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. General-purpose processors can be microprocessors or any conventional processor. It is worth noting that the processor can be a processor supporting the Advanced Reduced Instruction Set Computing (RISC) machine (ARM) architecture.
[0191] Furthermore, in an alternative embodiment, the memory described above may include read-only memory and random access memory, and provide instructions and data to the processor. The memory may also include non-volatile random access memory. For example, the memory may also store device type information.
[0192] The memory can be volatile or non-volatile, or may include both. The non-volatile memory can be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. The volatile memory can be random access memory (RAM), which serves as an external cache. Many forms of RAM are available by way of example, but not limitation. Examples include static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous linked dynamic random access memory (SLDRAM), and direct rambus RAM (DR RAM).
[0193] This application also provides a computer-readable storage medium storing at least one instruction, which is loaded and executed by a processor to enable the computer to implement any of the data sharing methods described above.
[0194] This application also provides a computer program (product) that, when executed by a computer, causes the processor or computer to perform the corresponding steps and / or processes in the above method embodiments.
[0195] This application also provides a chip, including a processor, for calling and executing instructions stored in a memory, causing a device equipped with the chip to perform any of the data sharing methods described above.
[0196] This application embodiment also provides another chip, including: an input interface, an output interface, a processor, and a memory. The input interface, output interface, processor, and memory are connected through an internal connection path. The processor is used to execute code in the memory. When the code is executed, the processor is used to execute any of the data sharing methods described above.
[0197] In the above embodiments, implementation can be achieved, in whole or in part, through software, hardware, firmware, or any combination thereof. When implemented in software, it can be implemented, in whole or in part, as a computer program product. A computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the processes or functions according to this application are generated, in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that integrates one or more available media. The available medium can be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid-state disk), etc.
[0198] Those skilled in the art will recognize that the method steps and modules described in conjunction with the embodiments disclosed herein can be implemented in software, hardware, firmware, or any combination thereof. To clearly illustrate the interchangeability of hardware and software, the steps and components of each embodiment have been generally described in terms of functionality in the foregoing description. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0199] Those skilled in the art will understand that all or part of the steps of the above embodiments can be implemented by hardware or by a program instructing related hardware. The program can be stored in a computer-readable storage medium, such as a read-only memory, a disk, or an optical disk.
[0200] When implemented using software, it can be implemented wholly or partially as a computer program product. This computer program product includes one or more computer program instructions. As an example, the methods of this application embodiment can be described in the context of machine-executable instructions, such as program modules that execute on a device on a real or virtual processor of the target. Generally, program modules include routines, programs, libraries, objects, classes, components, data structures, etc., which perform specific tasks or implement specific abstract data structures. In various embodiments, the functionality of program modules can be combined or divided among the described program modules. The machine-executable instructions for the program modules can execute within a local or distributed device. In a distributed device, the program modules can reside on both local and remote storage media.
[0201] Computer program code used to implement the methods of the embodiments of this application may be written in one or more programming languages. This computer program code may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing apparatus, such that when executed by the computer or other programmable data processing apparatus, the program code causes the functions / operations specified in the flowcharts and / or block diagrams to be implemented. The program code may be executed entirely on a computer, partially on a computer, as a standalone software package, partially on a computer and partially on a remote computer, or entirely on a remote computer or server.
[0202] In the context of the embodiments of this application, computer program code or related data may be carried by any suitable carrier to enable a device, apparatus, or processor to perform the various processes and operations described above. Examples of carriers include signals, computer-readable media, etc.
[0203] Examples of signals may include electrical, optical, radio, sound, or other forms of propagation signals, such as carrier waves, infrared signals, etc.
[0204] A machine-readable medium can be any tangible medium that contains or stores programs for or relating to an instruction execution system, apparatus, or device. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. Machine-readable media can include, but are not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination thereof. More detailed examples of machine-readable storage media include electrical connections with one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical storage devices, magnetic storage devices, or any suitable combination thereof.
[0205] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and modules described above can be found in the corresponding processes in the foregoing method embodiments, and will not be repeated here.
[0206] In the embodiments provided in this application, it should be understood that the disclosed systems, devices, and methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative; for instance, the division of modules is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple modules or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the couplings or direct couplings or communication connections shown or discussed may be indirect couplings or communication connections through some interfaces, devices, or modules, or they may be electrical, mechanical, or other forms of connection.
[0207] The modules described as separate components may or may not be physically separate. The components shown as modules may or may not be physical modules; that is, they may be located in one place or distributed across multiple network modules. Some or all of the modules can be selected to achieve the purpose of the embodiments of this application, depending on actual needs.
[0208] Furthermore, the functional modules in the various embodiments of this application can be integrated into one processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The integrated modules described above can be implemented in hardware or as software functional modules.
[0209] If the integrated module is implemented as a software functional module and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or electronic device, etc.) to execute all or part of the steps of the methods in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0210] In this application, the terms "first," "second," etc., are used to distinguish identical or similar items that have substantially the same function and purpose. It should be understood that there is no logical or temporal dependency between "first," "second," and "nth," nor does it limit the quantity or order of execution. It should also be understood that although the following description uses the terms "first," "second," etc., to describe various elements, these elements should not be limited by the terms. These terms are merely used to distinguish one element from another. For example, without departing from the scope of various examples, a first image can be referred to as a second image, and similarly, a second image can be referred to as a first image. Both the first image and the second image can be images, and in some cases, they can be separate and distinct images.
[0211] It should also be understood that, in the various embodiments of this application, the sequence number of each process does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.
[0212] In this application, the term "at least one" means one or more, and the term "multiple" means two or more. For example, multiple second messages refer to two or more second messages. The terms "system" and "network" are often used interchangeably in this document.
[0213] It should be understood that the terminology used in the description of the various examples herein is for the purpose of describing particular examples only and is not intended to be limiting. As used in the description of the various examples and the appended claims, the singular forms “a” and “the” are intended to include the plural forms as well, unless the context clearly indicates otherwise.
[0214] It should also be understood that the term "and / or" as used herein refers to and covers any and all possible combinations of one or more of the associated listed items. The term "and / or" describes an association between related objects, indicating that three relationships can exist; for example, A and / or B can represent: A alone, A and B simultaneously, or B alone. Additionally, the character " / " in this application generally indicates that the preceding and following related objects are in an "or" relationship.
[0215] It should also be understood that the term “comprising” (also referred to as “includes”, “including”, “comprises” and / or “comprising”) as used in this specification specifies the presence of the stated features, integers, steps, operations, elements, and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and / or groups thereof.
[0216] It should also be understood that the terms “if” and “if” can be interpreted as meaning “when” or “upon”, or “in response to determination” or “in response to detection”. Similarly, depending on the context, the phrases “if determination…” or “if detection [the stated condition or event]” can be interpreted as meaning “when determination…”, or “in response to determination…”, or “when detection [the stated condition or event]” or “in response to detection [the stated condition or event]”.
[0217] It should be understood that determining B based on A does not mean determining B solely based on A; B can also be determined based on A and / or other information.
[0218] It should also be understood that the phrases "an embodiment," "an embodiment," and "a possible implementation" used throughout the specification mean that a specific feature, structure, or characteristic related to an embodiment or implementation is included in at least one embodiment of this application. Therefore, the phrases "in an embodiment," "an embodiment," or "a possible implementation" appearing throughout the specification do not necessarily refer to the same embodiment. Furthermore, these specific features, structures, or characteristics can be combined in any suitable manner in one or more embodiments.
[0219] The above description is only an optional embodiment of this application and is not intended to limit this application. Any modifications, equivalent substitutions, improvements, etc., made within the principles of this application should be included within the protection scope of this application.
Claims
1. A data sharing method, characterized in that, The method includes: The first device obtains the device information of the second device through an information carrier, wherein the information carrier is a medium that carries information, and the device information of the second device includes the information required to establish a network connection with the second device. The first device establishes a network connection between itself and the second device based on the device information of the second device, so that the first device and the second device can communicate with each other through the network connection. The network type of the network connection includes a local area network, a metropolitan area network, or a wide area network. The first device shares data with the second device through the network connection.
2. The method according to claim 1, characterized in that, The information carrier is a screen projector. The first device obtains the device information of the second device through the information carrier, including: The first device detects that the first device has been inserted into the screen projector and reads the device information of the second device stored in the screen projector.
3. The method according to claim 1, characterized in that, The information carrier is a near-field communication (NFC) radio frequency signal. The first device obtains the device information of the second device through the information carrier, including: The first device obtains the device information of the second device from the NFC radio frequency signal.
4. The method according to claim 1, characterized in that, The information carrier is a subsonic ultrasonic signal. The first device obtains the device information of the second device through the information carrier, including: The first device acquires the device information of the second device from the subsonic signal.
5. The method according to any one of claims 1-4, characterized in that, The device information includes one or more of the following: device name, device address, network identifier, or network access password.
6. The method according to any one of claims 1-5, characterized in that, The first device contains first data, and the second device is granted first read and write permissions to the first data; The first device shares data with the second device via the network connection, including: Upon receiving a first instruction from the second device to read the first data, the first data is sent to the second device via the network connection.
7. The method according to claim 6, characterized in that, After sending the first data to the second device via the network connection, the method further includes: The first device and the second device synchronize their modification operations on the first data through the network connection.
8. The method according to claim 6 or 7, characterized in that, The method further includes: The first device encrypts the first data so that the second device, after completing the decryption and authentication of the first data, sends the first instruction to the first device.
9. The method according to any one of claims 1-5, characterized in that, The first device has a first space, which is used to store data shared with the second device, and the second device is granted a second read and write permission to the first space. The first device shares data with the second device via the network connection, including: Upon receiving a second instruction from the second device to read the first space, the data in the first space is sent to the second device via the network connection.
10. The method according to claim 9, characterized in that, The second device includes a second space for storing data shared by the first device; after sending the data in the first space to the second device via the network connection, the method further includes: The first device and the second device are connected through the network to synchronize data changes in the first space and data changes in the second space.
11. The method according to claim 9 or 10, characterized in that, The method further includes: The first device encrypts the first space so that the second device, after completing the decryption and authentication of the first space, sends the second instruction to the first device.
12. The method according to any one of claims 1-11, characterized in that, The first device stores a sharing record of data sharing with the second device; after the first device shares data with the second device through the network connection, it further includes: Based on the shared record, data is shared again with the second device via the network connection.
13. A data sharing method, characterized in that, The method includes: The second device transmits its device information via an information carrier, which is a medium that carries information. The device information of the second device includes information required to establish a network connection with the second device. The second device accepts a network connection established by the first device based on the device information of the second device, so that the second device and the first device can communicate with each other through the network connection. The first device is the device that obtains the device information of the second device. The network type of the network connection includes a local area network, a metropolitan area network, or a wide area network. The second device shares data with the first device through the network connection.
14. The method according to claim 13, characterized in that, The information carrier is a screen projector, and the second device transmits its device information through the information carrier, including: The second device detects that the second device is inserted into the screen projector, and stores the device information of the second device in the screen projector so that the first device can obtain the device information of the second device through the screen projector.
15. The method according to claim 13, characterized in that, The information carrier is a near-field communication (NFC) radio frequency signal. The second device transmits its device information via the information carrier, including: The second device broadcasts its device information via the NFC radio frequency signal, so that the first device can obtain the device information of the second device via the NFC radio frequency signal.
16. The method according to claim 13, characterized in that, The information carrier is a subsonic signal, and the second device transmits its device information through the information carrier, including: The second device broadcasts its device information via the subsonic signal, so that the first device can obtain the device information of the second device via the subsonic signal.
17. The method according to any one of claims 13-16, characterized in that, The second device shares data with the first device via the network connection, including: The second device obtains first read and write permissions for the first data on the first device, and sends a first instruction to the first device to read the first data based on the first read and write permissions; The second device receives the first data sent by the first device based on the first instruction via the network connection.
18. The method according to claim 17, characterized in that, After the second device receives the first data sent by the first device based on the first instruction via the network connection, the method further includes: The second device and the first device synchronize their modification operations on the first data through the network connection.
19. The method according to claim 17 or 18, characterized in that, The first device encrypts the first data, and the step of sending a first instruction to the first device to read the first data based on the first read / write permission includes: Decrypt and authenticate the first data based on the first read / write permission; After completing the decryption and authentication of the first data, the first instruction is sent to the first device.
20. The method according to any one of claims 13-16, characterized in that, The second device shares data with the first device via the network connection, including: The second device obtains a second read / write permission to the first space on the first device, and sends a second instruction to the first device to read the first space based on the second read / write permission. The first space stores data shared by the first device to the second device. The second device receives data from the first space sent by the first device based on the second instruction via the network connection.
21. The method according to claim 20, characterized in that, After the second device receives data from the first device in the first space based on the second instruction via the network connection, the method further includes: The data in the first space is stored in the second space on the second device; The first device and the second device are connected through the network to synchronize data changes in the second space with data changes in the first space.
22. The method according to claim 20 or 21, characterized in that, The first device encrypts the first space, and the step of sending a second instruction to the first device to read the first space based on the second read / write permission includes: Decrypt and authenticate the first space based on the second read / write permission; After completing the decryption and authentication of the first space, the second instruction is sent to the first device.
23. The method according to any one of claims 13-22, characterized in that, The second device stores a sharing record of data sharing with the first device; after the second device shares data with the first device via the network connection, it further includes: Based on the shared record, data is shared again with the first device via the network connection.
24. A data sharing device, characterized in that, The device is applied to the first apparatus, the device comprising: The acquisition module is used to acquire device information of the second device through an information carrier, wherein the information carrier is a medium that carries information, and the device information of the second device includes information required to establish a network connection with the second device. A connection establishment module is used to establish a network connection between the first device and the second device based on the device information of the second device, so that the first device and the second device can communicate with each other through the network connection. The network type of the network connection includes a local area network, a metropolitan area network, or a wide area network. The data sharing module is used to share data with the second device through the network connection.
25. A data sharing device, characterized in that, The device is applied to a second device, the device comprising: The transmission module is used to transmit device information of the second device through an information carrier, wherein the information carrier is a medium for carrying information, and the device information of the second device includes information required to establish a network connection with the second device. A connection establishment module is used to accept a network connection between the first device and the second device established by the first device based on the device information of the second device, so that the second device and the first device can communicate with each other through the network connection. The first device is a device that obtains the device information of the second device. The network type of the network connection includes a local area network, a metropolitan area network, or a wide area network. The data sharing module is used to share data with the first device through the network connection.
26. An electronic device, characterized in that, The electronic device includes: a processor coupled to a memory, the memory storing at least one program instruction or code, the at least one program instruction or code being loaded and executed by the processor to enable the electronic device to implement the data sharing method according to any one of claims 1-23.
27. A data sharing system, characterized in that, The data sharing system includes a first device and a second device; The first device is used to perform the data sharing method according to any one of claims 1-12, and the second device is used to perform the data sharing method according to any one of claims 13-23.
28. A computer-readable storage medium, characterized in that, The computer storage medium stores at least one instruction, which is loaded and executed by a processor to enable the computer to implement the data sharing method as described in any one of claims 1-23.
29. A computer program product, characterized in that, The computer program product includes: computer program code, which is loaded and executed by a computer to enable the computer to implement the data sharing method according to any one of claims 1-23.