Data sharing method, device, medium and product
By sensing magnetic and ambient light data from terminal devices and using broadcast signals to achieve automatic data sharing between terminal devices, the problem of cumbersome processes and hardware constraints in existing technologies is solved, thereby improving the efficiency of human-computer interaction and the convenience of data sharing.
Patent Information
- Application Number
- PCT/CN2025/070144
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2024-06-19
- Filing Date
- 2025-01-02
- Publication Date
- 2025-12-26
AI Technical Summary
The existing data sharing process between terminal devices is cumbersome, the human-computer interaction efficiency is low, and it requires the additional deployment of NFC tags, which imposes significant hardware constraints.
By sensing magnetic data and ambient light data in terminal devices, and using broadcast signals to carry magnetic data and device information, the distance and correlation between terminals can be determined, automatically triggering data sharing and simplifying the operation process.
It enables efficient data sharing between terminal devices, simplifies operation processes, improves human-computer interaction efficiency, and achieves ultra-close-range sensing and seamless data sharing without relying on NFC tags.
Smart Images

Figure CN2025070144_26122025_PF_FP_ABST
Abstract
Description
Data sharing methods, equipment, media and products
[0001] This application claims priority to Chinese Patent Application No. 202410802035.0, filed on June 19, 2024, entitled “Data Sharing Method, Apparatus, Medium and Product”, the entire contents of which are incorporated herein by reference. Technical Field
[0002] This application relates to the field of terminal technology, and in particular to a data sharing method, device, medium and product. Background Technology
[0003] With the rapid development of science and technology, terminal devices have become indispensable communication tools in people's daily lives and work. Furthermore, as people's pace of life accelerates, achieving efficient data sharing between terminal devices has become extremely important. Summary of the Invention
[0004] This application provides a data sharing method, device, medium, and product for achieving efficient data sharing between terminal devices.
[0005] To achieve the above objectives, the embodiments of this application provide the following technical solutions:
[0006] Firstly, a data sharing method is provided. This method can be executed by a first terminal, or by a component of the first terminal, such as its processor, chip, or chip system, or by a logic module or software capable of implementing all or part of the functions of the first terminal. Taking the method being executed by the first terminal as an example, the method includes:
[0007] The first terminal displays a first interface. This first interface includes the data to be shared. It is understood that the first interface refers to the interface currently displayed on the first terminal's screen, and can be any type of interface, such as an image interface, a video interface, a Wi-Fi information interface, an electronic red envelope information interface, or a contact information interface, etc. Correspondingly, the data to be shared can be the images, videos, Wi-Fi information, electronic red envelope information, and contact information displayed on this first interface, etc.
[0008] The first terminal determines whether a preset condition is met, and in response to the preset condition being met, sends the data to the second terminal. The preset condition includes one or more of the following: the distance between the first terminal and the second terminal, as indicated by a broadcast signal from the second terminal, is less than a preset threshold; and the magnetic data of the first terminal and the magnetic data of the second terminal meet a preset correlation condition.
[0009] In other words, in some embodiments, the first terminal sends the data to the second terminal in response to a broadcast signal from the second terminal indicating that the distance between the first terminal and the second terminal is less than a preset threshold. Alternatively, in other embodiments, the first terminal sends the data to the second terminal in response to a preset correlation condition between the magnetic data of the first terminal and the magnetic data of the second terminal. Or, in still other embodiments, the first terminal sends the data to the second terminal in response to a broadcast signal from the second terminal indicating that the distance between the first terminal and the second terminal is less than a preset threshold, and the magnetic data of the first terminal and the magnetic data of the second terminal satisfy a preset correlation condition.
[0010] It is understandable that by determining whether the distance between the first and second terminals, as indicated by the broadcast signal from the second terminal, is less than a preset threshold, it is possible to determine whether the positions of the first and second terminals are close, and thus, data sharing between the first and second terminals can be achieved when they are close. Similarly, by determining whether the magnetic data of the first terminal and the magnetic data of the second terminal meet a preset correlation condition, it is possible to determine whether the orientations of the first and second terminals are in a state of extreme closeness, and thus, data sharing between the first and second terminals can be achieved when they are in a state of extreme closeness.
[0011] The above technical solution provides an efficient data sharing scheme between terminal devices. Specifically, when the first terminal displays a first interface, as long as the distance between the first and second terminals is less than a preset threshold and / or the magnetic data of the first and second terminals meets a preset correlation condition, the first terminal can be automatically triggered to share data. This achieves data sharing between the first and second terminals, enabling one-touch instant sharing between the two terminals, simplifying the data sharing process between the two terminals, and improving human-computer interaction efficiency.
[0012] In conjunction with the first aspect described above, in one possible implementation, the method further includes:
[0013] In response to receiving the broadcast signal from the second terminal, the first terminal determines whether the distance between the first terminal and the second terminal indicated by the broadcast signal is less than a preset threshold, and determines whether the magnetic data of the first terminal and the magnetic data of the second terminal meet the preset correlation condition.
[0014] In other words, in response to receiving the broadcast signal from the second terminal, the first terminal first determines whether the distance between the first terminal and the second terminal indicated by the broadcast signal is less than a preset threshold. If the distance is less than the preset threshold, the first terminal determines its magnetic field data. Then, it determines whether the magnetic field data of the first terminal and the magnetic field data of the second terminal satisfy a preset correlation condition. If the magnetic field data of the first terminal and the magnetic field data of the second terminal satisfy the preset correlation condition, the first terminal sends data to the second terminal.
[0015] In the above implementation, a judgment process is provided that first determines whether the distance between the first terminal and the second terminal indicated by the broadcast signal is less than a preset threshold, and then determines whether the magnetic data of the first terminal and the magnetic data of the second terminal meet the preset correlation condition.
[0016] It is worth noting that, in some other embodiments, the first terminal may first determine whether the magnetic data of the first terminal and the magnetic data of the second terminal meet a preset correlation condition, and then determine whether the distance between the first terminal and the second terminal is less than a preset threshold. That is, in response to receiving a broadcast signal from the second terminal, the first terminal first determines its own magnetic data and then determines whether the magnetic data of the first terminal and the magnetic data of the second terminal meet the preset correlation condition. Then, in response to the magnetic data of the first terminal and the magnetic data of the second terminal meeting the preset correlation condition, it determines whether the distance between the first terminal and the second terminal is less than a preset threshold. If the distance is less than the preset threshold, the first terminal sends data to the second terminal.
[0017] In conjunction with the first aspect above, in one possible implementation, the broadcast signal carries the magnetic data of the second terminal.
[0018] In the above implementation, the magnetic data of the second terminal is carried in the broadcast signal so that the subsequent process of judging whether the preset conditions are met can be performed based on the magnetic data of the second terminal carried in the broadcast signal, thereby ensuring the smooth progress of data sharing.
[0019] In conjunction with the first aspect above, in one possible implementation, the broadcast signal also carries device information of the second terminal;
[0020] Sending the data to the second terminal includes:
[0021] Based on the device information of the second terminal, the data is sent to the second terminal.
[0022] In the above implementation, by carrying the device information of the second terminal in the broadcast signal, the subsequent data sharing process with the second terminal can be performed based on the device information of the second terminal carried in the broadcast signal, thereby ensuring the smooth progress of data sharing.
[0023] Secondly, a data sharing method is provided. This method can be executed by a second terminal, or by a component of the second terminal, such as its processor, chip, or chip system. It can also be implemented by a logic module or software capable of realizing all or part of the functions of the second terminal. Taking the method being executed by a second terminal as an example, the method includes:
[0024] The second terminal acquires ambient light data. This ambient light data is used to characterize the lighting conditions of the surrounding environment, such as ambient light intensity.
[0025] The second terminal determines whether the ambient light data is less than a preset light intensity. In response to the ambient light data being less than the preset light intensity, it sends a broadcast signal. The broadcast signal is used to indicate the distance between the first terminal and the second terminal.
[0026] It is understandable that by determining whether the ambient light data is less than the preset light intensity, it is possible to determine whether the second terminal is blocked. In the event that the second terminal is blocked, the process of sending a broadcast signal can be triggered so that other terminal devices that may be close to the second terminal, such as the first terminal, can detect the broadcast signal.
[0027] Then the second terminal receives the data returned by the first terminal in response to the broadcast signal.
[0028] The above technical solution provides an efficient data sharing scheme between terminal devices. Specifically, when the second terminal detects that the ambient light intensity is less than a preset value, it can trigger the second terminal to send a broadcast signal so that other nearby terminal devices, such as the first terminal, can detect the broadcast signal. Then, by receiving the data returned by the first terminal in response to the broadcast signal, the second terminal can automatically receive the data, thereby achieving data sharing between the first and second terminals. This enables one-touch instant sharing between the two terminals, simplifying the data sharing process and improving human-computer interaction efficiency.
[0029] In conjunction with the second aspect above, in one possible implementation, the broadcast signal carries the magnetic data of the second terminal.
[0030] In the above implementation, the magnetic data of the second terminal is carried in the broadcast signal so that the subsequent process of judging whether the preset conditions are met can be performed based on the magnetic data of the second terminal carried in the broadcast signal, thereby ensuring the smooth progress of data sharing.
[0031] In conjunction with the second aspect described above, in one possible implementation, the broadcast signal also carries device information of the second terminal.
[0032] In the above implementation, by carrying the device information of the second terminal in the broadcast signal, the subsequent data sharing process with the second terminal can be performed based on the device information of the second terminal carried in the broadcast signal, thereby ensuring the smooth progress of data sharing.
[0033] In conjunction with the second aspect described above, in one possible implementation, after receiving the data returned by the first terminal in response to the broadcast signal, the method further includes:
[0034] Display a second interface. This second interface includes the data. It can be understood that the second interface can be the currently displayed interface on the second terminal's screen, or it can be a newly displayed interface on the second terminal's screen. For example, the second terminal can display the data within the currently displayed interface as a floating window or a pop-up window. Alternatively, the second terminal can use a full-screen or half-screen display to display the new interface containing the data.
[0035] The following example illustrates the process of displaying data, using images, videos, Wi-Fi information, electronic red envelope information, and contact information as examples.
[0036] If the data is an image, the image is displayed on the second interface. This enables image sharing between the first and second terminals, achieving instant, one-touch image sharing across both devices, simplifying the image sharing process and improving human-computer interaction efficiency.
[0037] If the data is a video, the video is played on the second interface. This enables video sharing between the first and second terminals, achieving one-touch instant video sharing across both devices, simplifying the video sharing process and improving human-computer interaction efficiency.
[0038] If the data is wireless LAN information, the wireless LAN information is displayed on the second interface. This enables network sharing between the first and second terminals, achieving one-touch instant network sharing between the two terminals, simplifying the network sharing process and improving human-computer interaction efficiency.
[0039] If the data is information about an electronic red envelope, the information about the electronic red envelope is displayed on the second interface. In this way, red envelope sharing can be realized between the first terminal and the second terminal, realizing one-touch instant sharing of red envelopes based on both terminals, simplifying the red envelope sharing process between the two terminals, and improving human-computer interaction efficiency.
[0040] If the data is contact information, the contact information is displayed on the second interface. This enables contact sharing between the first and second terminals, achieving one-touch instant contact sharing across both terminals, simplifying the contact sharing process between the two terminals, and improving human-computer interaction efficiency.
[0041] In conjunction with the second aspect described above, in one possible implementation, the method further includes:
[0042] Based on this data, perform preset processing. The preset processing can be a predefined processing operation, or it can support user-defined processing operations.
[0043] The following example illustrates the process of performing preset processing, using data such as images, videos, Wi-Fi information, electronic red envelope information, and contact information.
[0044] If the data is an image, the image will be stored in the local image library. This enables automatic image storage and improves the efficiency of human-computer interaction.
[0045] If the data is this video, then the video is stored in the local image library. This enables automatic video storage and improves the efficiency of human-computer interaction.
[0046] If the data is information about the wireless LAN, the connection to the wireless LAN is established based on that information. This enables automatic connection to wireless LANs (such as Wi-Fi or hotspots), improving human-computer interaction efficiency.
[0047] Given that the data pertains to the electronic red envelope, the corresponding amount can be retrieved. This enables automatic claiming of electronic red envelopes, improving the efficiency of human-computer interaction.
[0048] If the data contains the contact information, add that contact information to the contact database. This enables automatic contact addition and improves the efficiency of human-computer interaction.
[0049] Thirdly, a data sharing device is provided for implementing any of the methods provided in the first aspect. This data sharing device includes modules, units, or means corresponding to the aforementioned methods. The actions performed by these modules, units, or means can be implemented in hardware, software, or by hardware executing corresponding software. The hardware or software includes one or more modules or units corresponding to the aforementioned functions.
[0050] In one possible implementation, the device may include a display module and a transmission module; wherein:
[0051] The display module is used to display the first interface, which includes the data to be shared.
[0052] The sending module is used to send the data to the second terminal in response to the fulfillment of preset conditions;
[0053] The preset conditions include one or more of the following: the distance between the first terminal and the second terminal indicated by the broadcast signal from the second terminal is less than a preset threshold, and the magnetic data of the first terminal and the magnetic data of the second terminal meet a preset correlation condition.
[0054] Fourthly, a data sharing device is provided for implementing any of the methods provided in the second aspect above. This data sharing device includes modules, units, or means corresponding to the above methods. The actions performed by these modules, units, or means can be implemented in hardware, software, or by hardware executing corresponding software. The hardware or software includes one or more modules or units corresponding to the above functions.
[0055] In one possible implementation, the device may include an acquisition module, a transmission module, and a receiving module; wherein:
[0056] The acquisition module is used to acquire ambient light data;
[0057] The transmitting module is used to transmit a broadcast signal in response to the ambient light data being less than a preset light intensity. The broadcast signal is used to indicate the distance between the first terminal and the second terminal.
[0058] A receiving module is used to receive data returned by the first terminal in response to the broadcast signal.
[0059] Fifthly, a data sharing system is provided, comprising a first terminal and a second terminal, wherein,
[0060] The second terminal acquires ambient light data;
[0061] In response to the ambient light data being less than a preset light intensity, the second terminal sends a broadcast signal, which is used to indicate the distance between the first terminal and the second terminal;
[0062] The first terminal displays a first interface, which includes the data to be shared;
[0063] The first terminal responds to a broadcast signal from the second terminal indicating that the distance between the first terminal and the second terminal is less than a preset threshold, and that the magnetic data of the first terminal and the magnetic data of the second terminal meet a preset correlation condition, and sends the data to the second terminal.
[0064] The second terminal receives the data returned by the first terminal in response to the broadcast signal.
[0065] In a sixth aspect, a terminal device is provided, comprising: a memory and a processor, the memory and the processor being connected; the memory being used to store computer-executed instructions; and the processor being used to invoke the computer-executed instructions to implement the methods of the first aspect, the second aspect, or any implementation thereof described above.
[0066] The terminal device in the sixth aspect can be: a terminal device in any implementation of the first or second aspect, or a device containing the terminal device, or a device contained in the terminal device, such as a chip.
[0067] In a seventh aspect, a chip is provided, comprising: a processor and an interface circuit; the interface circuit being configured to receive computer execution instructions and transmit them to the processor; and the processor being configured to execute the computer execution instructions to perform the methods of the first aspect, the second aspect, or any implementation thereof described above.
[0068] Eighthly, a computer-readable storage medium is provided, including computer-executable instructions that, when executed on a terminal device, cause the terminal device to perform the methods described in the first aspect, the second aspect, or any implementation thereof.
[0069] Ninthly, a computer program product is provided, including computer execution instructions, which, when executed on a terminal device, cause the terminal device to perform the methods described in the first aspect, the second aspect, or any implementation thereof.
[0070] It should be noted that the technical effects of any of the implementation methods in aspects three through nine can be found in the technical effects of the corresponding implementation methods in aspects one or two, and will not be repeated here.
[0071] It should be noted that any of the possible implementations of any of the above aspects can be combined, provided that the solutions do not contradict each other. Attached Figure Description
[0072] Figure 1 is a schematic diagram of a data sharing method provided by related technologies;
[0073] Figure 2 is a schematic diagram of the system architecture of a data sharing method provided in an embodiment of this application;
[0074] Figure 3 is a schematic diagram of the hardware structure of a terminal device provided in an embodiment of this application;
[0075] Figure 4 is a flowchart illustrating a data sharing method provided in an embodiment of this application;
[0076] Figure 5 is a flowchart illustrating another data sharing method provided in an embodiment of this application;
[0077] Figure 6 is a schematic diagram of an image sharing scenario provided by an embodiment of this application;
[0078] Figure 7 is a schematic diagram of a wallpaper sharing scenario provided in an embodiment of this application;
[0079] Figure 8 is a schematic diagram of a video sharing scenario provided in an embodiment of this application;
[0080] Figure 9 is a schematic diagram of a network sharing scenario provided by an embodiment of this application;
[0081] Figure 10 is a schematic diagram of a red envelope sharing scenario provided by an embodiment of this application;
[0082] Figure 11 is a schematic diagram of a contact sharing scenario provided by an embodiment of this application;
[0083] Figure 12 is a schematic diagram of a data sharing process provided in an embodiment of this application;
[0084] Figure 13 is a schematic diagram of a data sharing device provided in an embodiment of this application;
[0085] Figure 14 is a schematic diagram of another data sharing device provided in an embodiment of this application. Detailed Implementation
[0086] In the description of this application, unless otherwise stated, " / " indicates that the objects before and after are in an "or" relationship. For example, A / B can mean A or B. "And / or" in this application is merely a description of the relationship between the related objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists alone, A and B exist simultaneously, and B exists alone. A and B can be singular or plural.
[0087] In the description of this application, unless otherwise stated, "multiple" means two or more. "At least one of the following or similar expressions" refers to any combination of these items, including any combination of single or multiple items. For example, at least one of a, b and / or c can represent: a, b, c, ab, ac, bc, or abc, where a, b, and c can be single or multiple.
[0088] Furthermore, to facilitate a clear description of the technical solutions in the embodiments of this application, the terms "first" and "second" are used in the embodiments of this application to distinguish identical or similar items with substantially the same function and effect. Those skilled in the art will understand that the terms "first" and "second" do not limit the quantity or execution order, and the terms "first" and "second" are not necessarily different.
[0089] In the embodiments of this application, the words "exemplarily" or "for example" are used to indicate examples, illustrations, or explanations. Any embodiment or design described as "exemplarily" or "for example" in the embodiments of this application should not be construed as being more preferred or advantageous than other embodiments or design solutions. Specifically, the use of the words "exemplarily" or "for example" is intended to present the relevant concepts in a specific manner to facilitate understanding.
[0090] It is understood that the term "embodiment" used throughout the specification means that a specific feature, structure, or characteristic related to an embodiment is included in at least one embodiment of this application. Therefore, throughout the specification, various embodiments 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. It is 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.
[0091] It is understood that some optional features in the embodiments of this application can be implemented independently in certain scenarios without relying on other features, such as the current solution on which they are based, to solve the corresponding technical problems and achieve the corresponding effects. Alternatively, they can be combined with other features as needed in certain scenarios. Correspondingly, the apparatus given in the embodiments of this application can also implement these features or functions, which will not be elaborated here.
[0092] In this application, unless otherwise specified, the same or similar parts between the various embodiments can be referred to each other. In the various embodiments of this application, unless otherwise specified or logically conflicting, the terminology and / or descriptions between different embodiments are consistent and can be mutually referenced. Technical features in different embodiments can be combined to form new embodiments based on their inherent logical relationships. The following embodiments of this application do not constitute a limitation on the scope of protection of this application.
[0093] To facilitate understanding of the technical solutions in the embodiments of this application, the relevant terms involved in the embodiments of this application will be briefly introduced below.
[0094] (1) Moment Share refers to the ability for users to instantly and synchronously share data with other users. In some embodiments, moment share can be achieved through various sharing functions provided by the terminal device manufacturer, such as Apple's AirDrop and Huawei's Huawei Share. Among them, Huawei Share is a technology that uses wireless technology to share data between terminal devices, such as quickly sharing data such as pictures, videos, and documents.
[0095] It is understood that "instant sharing" is merely a term used in the embodiments of this application, and its meaning has been described in the embodiments of this application. Its name does not constitute any limitation on the embodiments of this application. Furthermore, in some other embodiments of this application, instant sharing may also be referred to as other terms such as "short-distance sharing" or "near-distance sharing." The embodiments of this application will subsequently use Huawei Sharing as an example to illustrate the solution.
[0096] (2) Near Field Communication (NFC) provides short-range wireless connectivity, enabling short-range communication between terminal devices.
[0097] (3) Mobile Sensing Development Platform (MSDP): This platform provides distributed fusion sensing capabilities to aggregate and fuse multiple sensing sources from terminal devices, thereby accurately sensing the spatial status, mobility, and health status of the terminal devices. The sensing sources can be sensors, such as ambient light sensors or magnetometers.
[0098] It should be noted that the mobile sensing platform provides a service for subscribing to the sensing functions of terminal devices. For example, users can subscribe to the ambient light sensing function and magnetic sensing function of the terminal device through the mobile sensing platform. After a successful subscription, the mobile sensing platform can identify the status of the terminal device and return the information to the subscriber, which is also the terminal device itself.
[0099] (4) Soft bus is a bus technology based on software implementation. It enables data transmission and device communication through software protocols.
[0100] The following provides an exemplary description of the application scenarios of the embodiments of this application.
[0101] With the rapid development of science and technology, terminal devices have become indispensable communication tools in people's daily lives and work. Furthermore, as people's pace of life accelerates, achieving efficient data sharing between terminal devices has become extremely important.
[0102] In related technology one, terminal devices can achieve data sharing between terminal devices based on Huawei's sharing function. For example, taking a sharing terminal and a receiving terminal as an example, the data sharing process based on Huawei's sharing function can include: A user performs an operation on the sharing terminal to trigger the sharing terminal to display the data to be shared on its interface. The user operates on the sharing entry point in the interface to trigger the sharing terminal to display a pop-up window including a sharing control (such as a Huawei sharing control). The user operates on the sharing control in the pop-up window to trigger the sharing terminal to display a sharing interface (such as a Huawei sharing interface), which includes multiple candidate terminals, such as Terminal 1, Terminal 2, etc. The user operates on the receiving terminal in the sharing interface to trigger the sharing terminal to send a sharing request to the receiving terminal, the sharing request carrying the data to be shared. Correspondingly, after receiving the sharing request, the receiving terminal displays a sharing request pop-up window including a accept control and a reject control. The user operates on the accept control in the sharing request pop-up window to receive the data from the sharing terminal, thereby completing the data sharing between the terminal devices.
[0103] However, in the data sharing business process based on Huawei's sharing function, multiple operations are required on both devices, making the process cumbersome and the human-computer interaction efficiency low.
[0104] In related technology two, terminal devices can leverage NFC functionality to achieve data sharing between them. Taking a sharing terminal and a receiving terminal as an example, if both the sharing terminal and the receiving terminal are equipped with NFC tags, data sharing between them can be achieved by bringing the sharing terminal close to the receiving terminal, such as initiating image sharing, screen mirroring, or collaboration.
[0105] For example, Figure 1 is a schematic diagram of a data sharing method provided by related technologies. Referring to Figure 1, taking a mobile phone as the sharing terminal and a remote control as the receiving terminal, placing the NFC area of the mobile phone close to the NFC area of the remote control enables data sharing between the mobile phone and the remote control.
[0106] However, in the aforementioned data sharing scheme based on NFC functionality, the sensing function between terminal devices relies on NFC tags. In order for the NFC tags to be deployed in the terminal devices and the tag information to be set in advance, the hardware of the terminal devices is relatively constrained.
[0107] In view of this, embodiments of this application provide a data sharing method, offering an efficient data sharing scheme between terminal devices. Specifically, when a second terminal detects ambient light data below a preset light intensity, it can trigger the second terminal to send a broadcast signal, enabling other nearby terminal devices, such as the first terminal, to detect the broadcast signal. Furthermore, by ensuring that the distance between the first and second terminals is less than a preset threshold and / or that the magnetic data of the first and second terminals meets a preset correlation condition, the first terminal can be automatically triggered to share data. Subsequently, the second terminal can automatically receive the data. This achieves data sharing between the first and second terminals, enabling one-touch instant sharing between the two terminals, simplifying the data sharing process between them, and improving human-computer interaction efficiency.
[0108] It can be seen that the data sharing method provided in this application embodiment eliminates the need for users to perform multiple interactive operations such as clicking a sharing control, selecting a receiving terminal, or clicking a receiving control, simplifying the data sharing process between the two ends and improving human-computer interaction efficiency. Furthermore, it enables ultra-close-range sensing between terminal devices without relying on NFC tags, thereby achieving seamless data sharing across terminal devices and realizing one-touch sharing based on ultra-close-range sensing for a direct access to business experiences.
[0109] To facilitate understanding of the embodiments of this application, the following points will be explained before introducing the embodiments of this application.
[0110] 1. In the embodiments of this application, "instruction" can include direct instruction and indirect instruction, as well as explicit instruction and implicit instruction. The information indicated by a certain piece of information is called the information to be instructed. In the specific implementation process, there are many ways to instruct the information to be instructed, such as, but not limited to, directly instructing the information to be instructed, such as the information to be instructed itself or its index. It can also indirectly instruct the information to be instructed by instructing other information, where there is a relationship between the other information and the information to be instructed. It can also instruct only a part of the information to be instructed, while the other parts are known or pre-agreed upon. For example, the instruction of specific information can be achieved by using a pre-agreed (e.g., protocol-defined) arrangement order of various pieces of information, thereby reducing instruction overhead to some extent. At the same time, the common parts of various pieces of information can be identified and uniformly indicated to reduce the instruction overhead caused by individually indicating the same information.
[0111] Furthermore, the specific indication method can also be any existing indication method, such as, but not limited to, the above-mentioned indication methods and their various combinations. Specific details of various indication methods can be found in existing technologies, and will not be repeated here. As can be seen from the above, for example, when multiple pieces of information of the same type need to be indicated, the indication methods for different pieces of information may differ. In the specific implementation process, the required indication method can be selected according to specific needs. This application embodiment does not limit the selected indication method; therefore, the indication methods involved in this application embodiment should be understood to cover various methods that enable the party to be indicated to obtain the information to be indicated.
[0112] It should be understood that the information to be indicated can be sent as a whole or divided into multiple sub-information messages, and the sending period and / or timing of these sub-information messages can be the same or different. The specific sending method is not limited in this application embodiment. The sending period and / or timing of these sub-information messages can be predefined, for example, predefined according to a protocol, or configured by the transmitting device by sending configuration information to the receiving device. This configuration information can include, for example, but not limited to, radio resource control signaling, such as Radio Resource Control (RRC) signaling, Media Access Control (MAC) layer signaling, physical layer signaling, sidelink control information (SCI), or downlink control information (DCI), or a combination of at least two of these.
[0113] 2. "Predefined" or "pre-configured" can be achieved by pre-saving corresponding codes, tables, or other means that can be used to indicate relevant information in the device (e.g., a terminal device). This application does not limit the specific implementation method. "Saving" can refer to saving in one or more memories. The one or more memories can be separate settings or integrated into the encoder or decoder, processor, or data sharing device. Alternatively, some memories can be separately set up, while others are integrated into the decoder, processor, or data sharing device. The type of memory can be any form of storage medium, and this application does not limit this.
[0114] 3. In the embodiments of this application, the descriptions such as "when," "under the circumstances," "if," and "if" all refer to the fact that the device (such as the terminal device) will make corresponding processing under certain objective circumstances. They are not time limits, nor do they require the device (such as the terminal device) to have a judgment action when implementing it, nor do they mean that there are other limitations.
[0115] Furthermore, the system architecture and business scenarios described in the embodiments of this application are for the purpose of more clearly illustrating the technical solutions of the embodiments of this application, and do not constitute a limitation on the technical solutions provided in the embodiments of this application. As those skilled in the art will know, with the evolution of system architecture and the emergence of new business scenarios, the technical solutions provided in the embodiments of this application are also applicable to similar technical problems.
[0116] Furthermore, the actions, terms, etc., involved in the various embodiments of this application can be referenced interchangeably without limitation. The message names or parameter names in the messages exchanged between the various devices in the embodiments of this application are merely examples, and other names may be used in specific implementations without limitation.
[0117] The system architecture of the embodiments of this application will be described below as an example.
[0118] In some embodiments, the data sharing method provided in this application can be applied to the system architecture shown in FIG2. FIG2 is, for example, a schematic diagram of a system architecture for a data sharing method provided in an embodiment of this application. Referring to FIG2, the system architecture may include: a terminal device 200.
[0119] In some embodiments, the terminal device 200 may be at least one of the following: a smartphone, a smartwatch, a printer, a desktop computer, a laptop, a virtual reality terminal, an augmented reality terminal, a wireless terminal, and a laptop computer.
[0120] In this embodiment of the application, the terminal device 200 may include a first terminal 201 and a second terminal 202.
[0121] In this embodiment, the first terminal 201 refers to the terminal device from which the data is to be shared, such as a sharing terminal. In this embodiment, the first terminal 201 is used to execute the process of sharing data with the second terminal 202, thereby achieving data sharing between the first terminal 201 and the second terminal 202.
[0122] The second terminal 202 refers to the terminal device that receives data, such as a receiving terminal. In this embodiment, the second terminal 202 is used to perform the process of receiving data from the first terminal 201, thereby realizing data sharing between the first terminal 201 and the second terminal 202.
[0123] In one example of this application, a schematic diagram of the hardware structure of the terminal device is shown in Figure 3. Figure 3 is a schematic diagram of the hardware structure of a terminal device provided in an embodiment of this application.
[0124] Referring to Figure 3, the terminal device may include a processor 310, an external memory interface 320, an internal memory 321, a universal serial bus (USB) interface 330, a charging management module 340, antenna 1, antenna 2, a mobile communication module 350, a wireless communication module 360, an audio module 370, a sensor module 380, buttons 390, a motor 391, an indicator 392, a camera 393, a display screen 394, and a subscriber identification module (SIM) card interface 395, etc. The sensor module 380 may include a pressure sensor 380A, a magnetic sensor 380B, an ambient light sensor 380C, a proximity sensor 380D, an accelerometer 380E, and a touch sensor 380F, etc.
[0125] It is understood that the structures illustrated in the embodiments of this application do not constitute a specific limitation on the terminal device. In other embodiments of this application, the terminal device may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
[0126] Processor 310 may include one or more processing units, such as application processor (AP), modem processor, graphics processing unit (GPU), image signal processor (ISP), controller, memory, video codec, digital signal processor (DSP), baseband processor, and / or neural network processing unit (NPU). Different processing units may be independent devices or integrated into one or more processors.
[0127] The controller can serve as the nerve center and command center of the terminal device. Based on the instruction opcode and timing signals, the controller generates operation control signals to control the fetching and execution of instructions.
[0128] The processor 310 may also include a memory for storing instructions and data. In some embodiments, the memory in the processor 310 is a cache memory. This memory can store instructions or data that the processor 310 has just used or that are used repeatedly. If the processor 310 needs to use the instruction or data again, it can retrieve it directly from this memory. This avoids repeated accesses, reduces the waiting time of the processor 310, and thus improves the efficiency of the system.
[0129] In some embodiments, the processor 310 may include one or more interfaces. Interfaces may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.
[0130] The I2C interface is a bidirectional synchronous serial bus, including a serial data line (SDA) and a serial clock line (SCL). In some embodiments, the processor 310 may include multiple I2C buses. The processor 310 can couple to the touch sensor 380F, charger, flash, camera 393, etc., through different I2C bus interfaces. For example, the processor 310 can couple to the touch sensor 380F through the I2C interface, enabling the processor 310 and the touch sensor 380F to communicate through the I2C bus interface, thereby realizing the touch function of the terminal device.
[0131] The I2S interface can be used for audio communication. In some embodiments, the processor 310 may include multiple I2S buses. The processor 310 can be coupled to the audio module 370 via the I2S bus to enable communication between the processor 310 and the audio module 370. In some embodiments, the audio module 370 can transmit audio signals to the wireless communication module 360 via the I2S interface to enable the function of answering phone calls through a Bluetooth headset.
[0132] The PCM interface can also be used for audio communication, sampling, quantizing, and encoding analog signals. In some embodiments, the audio module 370 and the wireless communication module 360 can be coupled via the PCM bus interface. In some embodiments, the audio module 370 can also transmit audio signals to the wireless communication module 360 via the PCM interface, enabling the function of answering phone calls through a Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.
[0133] The UART interface is a universal serial data bus used for asynchronous communication. This bus can be a bidirectional communication bus. It converts the data to be transmitted between serial and parallel communication. In some embodiments, the UART interface is typically used to connect the processor 310 and the wireless communication module 360. For example, the processor 310 communicates with the Bluetooth module in the wireless communication module 360 via the UART interface to implement Bluetooth functionality. In some embodiments, the audio module 370 can transmit audio signals to the wireless communication module 360 via the UART interface to enable music playback through Bluetooth headphones.
[0134] The MIPI interface can be used to connect the processor 310 to peripheral devices such as the display screen 394 and the camera 393. The MIPI interface includes a camera serial interface (CSI) and a display serial interface (DSI). In some embodiments, the processor 310 and the camera 393 communicate via the CSI interface to enable the terminal device's shooting function. The processor 310 and the display screen 394 communicate via the DSI interface to enable the terminal device's display function.
[0135] The GPIO interface can be configured via software. It can be configured as a control signal or a data signal. In some embodiments, the GPIO interface can be used to connect the processor 310 to a camera 393, a display screen 394, a wireless communication module 360, an audio module 370, a sensor module 380, etc. The GPIO interface can also be configured as an I2C interface, an I2S interface, a UART interface, a MIPI interface, etc.
[0136] The USB 330 port is a USB standard compliant interface, which can be a Mini USB port, Micro USB port, USB Type-C port, etc. The USB 330 port can be used to connect a charger to charge terminal devices, and can also be used for data transfer between terminal devices and peripheral devices. It can also be used to connect headphones for audio playback. This port can also be used to connect other electronic devices, such as AR devices.
[0137] It is understood that the interface connection relationships between the modules illustrated in the embodiments of this application are merely illustrative and do not constitute a structural limitation on the terminal device. In other embodiments of this application, the terminal device may also employ different interface connection methods or combinations of multiple interface connection methods as described in the above embodiments.
[0138] The charging management module 340 is used to receive charging input from a charger. The charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 340 can receive charging input from the wired charger via a USB interface 330. In some wireless charging embodiments, the charging management module 340 can receive wireless charging input via the wireless charging coil of the terminal device.
[0139] The wireless communication function of the terminal device can be implemented through antenna 1, antenna 2, mobile communication module 350, wireless communication module 360, modem processor, and baseband processor.
[0140] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in the terminal device can be used to cover one or more communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antennas can be used in conjunction with a tuning switch.
[0141] The mobile communication module 350 can provide solutions for wireless communication applications including 2G / 3G / 4G / 5G on terminal devices. The mobile communication module 350 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc. The mobile communication module 350 can receive electromagnetic waves via antenna 1, and perform filtering, amplification, and other processing on the received electromagnetic waves before transmitting them to a modem processor for demodulation. The mobile communication module 350 can also amplify the signal modulated by the modem processor and convert it into electromagnetic waves for radiation via antenna 1. In some embodiments, at least some functional modules of the mobile communication module 350 may be housed in the processor 310. In some embodiments, at least some functional modules of the mobile communication module 350 and at least some modules of the processor 310 may be housed in the same device.
[0142] The modem processor may include a modulator and a demodulator. The modulator modulates the low-frequency baseband signal to be transmitted into a mid-to-high frequency signal. The demodulator demodulates the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After processing by the baseband processor, the low-frequency baseband signal is transmitted to the application processor. The application processor outputs sound signals through an audio device (not limited to a speaker, receiver, etc.) or displays images or videos through the display screen 394. In some embodiments, the modem processor may be a separate device. In other embodiments, the modem processor may be independent of the processor 310 and may be housed in the same device as the mobile communication module 350 or other functional modules.
[0143] The wireless communication module 360 can provide solutions for wireless communication applications on terminal devices, including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), and infrared (IR) technologies. The wireless communication module 360 can be one or more devices integrating at least one communication processing module. The wireless communication module 360 receives electromagnetic waves via antenna 2, performs frequency modulation and filtering of the electromagnetic wave signal, and sends the processed signal to processor 310. The wireless communication module 360 can also receive signals to be transmitted from processor 310, perform frequency modulation and amplification, and convert them into electromagnetic waves for radiation via antenna 2.
[0144] In some embodiments, antenna 1 of the terminal device is coupled to mobile communication module 350, and antenna 2 is coupled to wireless communication module 360, enabling the terminal device to communicate with networks and other devices via wireless communication technology. This wireless communication technology may include Global System for Mobile Communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Time-Division Code Division Multiple Access (TD-SCDMA), Long Term Evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technologies. The GNSS may include Global Positioning System (GPS), Global Navigation Satellite System (GLONASS), BeiDou Navigation Satellite System (BDS), Quasi-Zeni4 Satellite System (QZSS), and / or Satellite Based Augmentation Systems (SBAS).
[0145] The terminal device implements display functions through a GPU, a display screen 394, and an application processor. The GPU is a microprocessor for image processing, connected to the display screen 394 and the application processor. The GPU is used to perform mathematical and geometric calculations and for graphics rendering. The processor 310 may include one or more GPUs, which execute program instructions to generate or modify display information.
[0146] Display screen 394 is used to display images, videos, etc. Display screen 394 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a MiniLED, a MicroLED, a Micro-OLED, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the terminal device may include one or N displays 394, where N is a positive integer greater than 1.
[0147] Terminal devices can achieve shooting functions through ISP, camera 393, video codec, GPU, display 394 and application processor.
[0148] The ISP (Image Signal Processor) is used to process data fed back from the camera 393. For example, when taking a picture, the shutter is opened, and light is transmitted through the lens to the camera's photosensitive element. The light signal is converted into an electrical signal, and the camera's photosensitive element transmits this electrical signal to the ISP for processing, transforming it into an image visible to the naked eye. The ISP can also perform algorithmic optimization of image noise, brightness, and skin tone. The ISP can also optimize parameters such as exposure and color temperature of the shooting scene. In some embodiments, the ISP can be set in the camera 393.
[0149] Camera 393 is used to capture still images or videos. An object is projected onto a photosensitive element by generating an optical image through the lens. The photosensitive element can be a charge-coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the light signal into an electrical signal, which is then passed to an ISP for conversion into a digital image signal. The ISP outputs the digital image signal to a DSP for processing. The DSP converts the digital image signal into image signals in standard RGB, YUV, or other formats. In some embodiments, the terminal device may include one or N cameras 393, where N is a positive integer greater than 1.
[0150] Digital signal processors (DSPs) are used to process digital signals, including digital image signals and other digital signals. For example, when a terminal device selects a frequency, a DSP can perform a Fourier transform on the frequency energy.
[0151] Video codecs are used to compress or decompress digital video. Terminal devices can support one or more video codecs. This allows the terminal device to play or record video in various encoding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
[0152] NPU stands for Neural Network (NN) Computing Processor. By borrowing the structure of biological neural networks, such as the transmission patterns between neurons in the human brain, it can rapidly process input information and continuously learn on its own. NPUs enable intelligent cognitive applications in terminal devices, such as image recognition, facial recognition, speech recognition, and text understanding.
[0153] The external storage interface 320 can be used to connect an external storage card, such as a Micro SD card, to expand the storage capacity of the terminal device. The external storage card communicates with the processor 310 through the external storage interface 320 to perform data storage functions. For example, music, video, and other files can be saved on the external storage card.
[0154] Internal memory 321 can be used to store computer executable program code, which includes instructions. Processor 310 executes various functional applications and data processing of the terminal device by running the instructions stored in internal memory 321. Internal memory 321 may include a program storage area and a data storage area. The program storage area may store the operating system, at least one application program required for a function (such as sound playback, image playback, etc.), etc. The data storage area may store data created during the use of the terminal device (such as audio data, phonebook, etc.). Furthermore, internal memory 321 may include high-speed random access memory and may also include non-volatile memory, such as at least one disk storage device, flash memory device, universal flash storage (UFS), etc.
[0155] The audio module 370 is used to convert digital audio information into analog audio signal output, and also to convert analog audio input into digital audio signal. The audio module 370 can also be used for encoding and decoding audio signals. In some embodiments, the audio module 370 may be located in the processor 310, or some functional modules of the audio module 370 may be located in the processor 310.
[0156] Pressure sensor 380A is used to sense pressure signals and convert them into electrical signals. In some embodiments, pressure sensor 380A can be disposed on display screen 394. There are many types of pressure sensors 380A, such as resistive pressure sensors, inductive pressure sensors, and capacitive pressure sensors. A capacitive pressure sensor may include at least two parallel plates with conductive material. When force is applied to pressure sensor 380A, the capacitance between the electrodes changes. The terminal device determines the pressure intensity based on the change in capacitance. When a touch operation is applied to display screen 394, the terminal device detects the intensity of the touch operation based on pressure sensor 380A. The terminal device can also calculate the touch position based on the detection signal from pressure sensor 380A. In some embodiments, touch operations applied to the same touch position but with different touch operation intensities can correspond to different operation commands. For example: when a touch operation with an intensity less than a first pressure threshold is applied to the SMS application icon, a command to view an SMS is executed. When a touch operation with an intensity greater than or equal to the first pressure threshold is applied to the SMS application icon, a command to create a new SMS is executed.
[0157] The magnetic sensor 380B includes a Hall effect sensor. The terminal device can use the magnetic sensor 380B to detect the opening and closing of the flip cover. In some embodiments, when the terminal device is a flip phone, the terminal device can detect the opening and closing of the flip cover based on the magnetic sensor 380B. Then, based on the detected opening and closing state of the cover or the flip cover, features such as automatic unlocking of the flip cover can be set. In this embodiment, the magnetic sensor 380B can be a magnetometer sensor used to detect the magnetic data of the terminal device.
[0158] An ambient light sensor 380C is used to sense ambient light intensity. The terminal device can adaptively adjust the brightness of the display screen 394 based on the sensed ambient light intensity. The ambient light sensor 380C can also be used to automatically adjust the white balance when taking pictures. The ambient light sensor 380C can also work in conjunction with a proximity sensor 380D to detect whether the terminal device is in a pocket to prevent accidental touches. In this embodiment, the ambient light sensor 380C is used to detect the ambient light data of the terminal device to determine whether the terminal device is obstructed.
[0159] The proximity sensor 380D may include, for example, a light-emitting diode (LED) and a light detector, such as a photodiode. The LED may be an infrared LED. The terminal device emits infrared light outward through the LED. The terminal device uses the photodiode to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that an object is near the terminal device. When insufficient reflected light is detected, the terminal device can determine that no object is near the terminal device. The terminal device can use the proximity sensor 380D to detect when a user holds the terminal device close to their ear for a call, so as to automatically turn off the screen to save power. The proximity sensor 380D can also be used in holster mode and pocket mode for automatic unlocking and locking of the screen.
[0160] The 380E accelerometer can detect the magnitude of acceleration in various directions (typically three axes) of a terminal device. When the terminal device is stationary, it can detect the magnitude and direction of gravity. It can also be used to identify the posture of electronic devices, and is applied to applications such as screen orientation switching and pedometers.
[0161] Touch sensor 380F, also known as a "touch panel," can be located on display screen 394. The touch sensor 380F and display screen 394 together form a touchscreen, also known as a "touch screen." Touch sensor 380F detects touch operations applied to or near it. The touch sensor can transmit the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through display screen 394. In other embodiments, touch sensor 380F may also be located on the surface of the terminal device, in a different position than display screen 394.
[0162] Buttons 390 include a power button, volume buttons, etc. Buttons 390 can be mechanical buttons or touch-sensitive buttons. The terminal device can receive button input and generate key signal inputs related to user settings and function control of the terminal device.
[0163] Motor 391 can generate vibration alerts. Motor 391 can be used for incoming call vibration alerts or for touch vibration feedback. For example, different vibration feedback effects can be corresponding to touch operations applied to different applications (such as taking photos, playing audio, etc.). Motor 391 can also correspond to different vibration feedback effects for touch operations applied to different areas of the display screen 394. Different application scenarios (such as time reminders, receiving messages, alarm clocks, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also be customized.
[0164] Indicator 392 can be an indicator light, used to indicate charging status, power changes, or to indicate messages, missed calls, notifications, etc.
[0165] The SIM card interface 395 is used to connect a SIM card. The SIM card can be inserted into or removed from the SIM card interface 395 to achieve contact and separation with the terminal device. The terminal device can support one or N SIM card interfaces, where N is a positive integer greater than 1. The SIM card interface 395 can support Nano SIM cards, Micro SIM cards, SIM cards, etc. Multiple cards can be inserted into the same SIM card interface 395 simultaneously. These multiple cards can be of the same or different types. The SIM card interface 395 is also compatible with different types of SIM cards. The SIM card interface 395 is also compatible with external memory cards. The terminal device interacts with the network through the SIM card to achieve functions such as calls and data communication. In some embodiments, the terminal device uses an eSIM, i.e., an embedded SIM card. The eSIM card can be embedded in the terminal device and cannot be separated from the terminal device.
[0166] It should be noted that the structure shown in Figure 3 does not constitute a limitation on the terminal device. In addition to the components shown in Figure 3, the terminal device may include more or fewer components than shown, or combine certain components, or have different component arrangements.
[0167] For ease of understanding, the data sharing method provided in the embodiments of this application is illustrated below with reference to the above system architecture and accompanying drawings. It should be noted that the names of each parameter or each piece of information in the following embodiments of this application are merely examples, and may be other names in other embodiments. The data sharing method provided in this application is not specifically limited in this regard.
[0168] It is understood that in the embodiments of this application, the terminal device may execute some or all of the steps in the embodiments of this application. These steps or operations are merely examples, and the embodiments of this application may also execute other operations or variations thereof. Furthermore, the steps may be executed in different orders as presented in the embodiments of this application, and it is not necessary to execute all the operations in the embodiments of this application.
[0169] Figure 4 is a flowchart illustrating a data sharing method provided in an embodiment of this application. In some possible implementations, this data sharing method can be accomplished by the cooperation of the first terminal and the second terminal shown in Figure 2 above. Referring to Figure 4, the method includes the following steps S401-S405.
[0170] S401, The first terminal displays the first interface.
[0171] The first interface includes the data to be shared. In some embodiments, the first interface can be any type of interface, such as an image interface, a video interface, a Wi-Fi information interface, an e-red packet information interface, and a contact information interface, etc. Accordingly, the data to be shared can be the images, videos, Wi-Fi information, e-red packet information, and contact information displayed on the first interface, etc.
[0172] S402, The second terminal acquires ambient light data.
[0173] Among them, ambient light data is used to characterize the lighting conditions of the surrounding environment, such as ambient light intensity (i.e., ambient light brightness).
[0174] S403, the second terminal responds to the ambient light data being less than the preset light intensity by sending a broadcast signal.
[0175] The preset light intensity refers to a pre-set light intensity threshold, such as a light intensity threshold less than 0.5.
[0176] S404. The first terminal receives a broadcast signal, determines whether a preset condition is met based on the broadcast signal, and sends data to the second terminal in response to the preset condition being met.
[0177] The preset conditions include one or more of the following: the distance between the first terminal and the second terminal indicated by the broadcast signal from the second terminal is less than a preset threshold, and the magnetic data of the first terminal and the magnetic data of the second terminal meet the preset correlation conditions.
[0178] S405, The second terminal receives the data returned by the first terminal in response to the broadcast signal.
[0179] The technical solution provided in this application provides an efficient data sharing scheme between terminal devices. Specifically, when a second terminal detects that the ambient light intensity is less than a preset light intensity, it can trigger the second terminal to send a broadcast signal so that other nearby terminal devices, such as the first terminal, can detect the broadcast signal. Furthermore, as long as the distance between the first and second terminals is less than a preset threshold and / or the magnetic data of the first and second terminals meets a preset correlation condition, the first terminal can be automatically triggered to share data. The second terminal can then automatically receive the data. This achieves data sharing between the first and second terminals, enabling one-touch instant sharing between the two terminals, simplifying the data sharing process, and improving human-computer interaction efficiency.
[0180] Figure 5 is a flowchart illustrating another data sharing method provided in an embodiment of this application. Figure 5 uses the interaction flow between a first terminal and a second terminal as an example to illustrate the data sharing process between the two terminals. Referring to Figure 5, the method includes the following steps S501-S508:
[0181] S501, The first terminal displays the first interface.
[0182] The first interface includes data to be shared. In some embodiments, the first interface may be an image interface, and the data to be shared may be an image. In still other embodiments, the first interface may be a video interface, and the data to be shared may be a video. In yet other embodiments, the first interface may be a Wi-Fi information interface, and the data to be shared may be Wi-Fi information. In still other embodiments, the first interface may be an electronic red envelope information interface, and the data to be shared may be electronic red envelope information. In yet other embodiments, the first interface may be a contact information interface, and the data to be shared may be contact information.
[0183] It is worth noting that in some embodiments, the first interface may also be other types of interfaces, such as a document interface; this application does not limit the first interface. Correspondingly, the data may also be other types of data, such as files; this application does not limit the data.
[0184] S502, the second terminal acquires ambient light data.
[0185] Among them, ambient light data is used to characterize the lighting conditions of the surrounding environment, such as ambient light intensity (i.e., ambient light brightness).
[0186] In some embodiments, the second terminal may employ an ambient light sensor to acquire ambient light data. It is worth noting that in other embodiments, the second terminal may also employ other methods to acquire ambient light data. This application does not limit the scope of these methods.
[0187] S503. The second terminal determines whether the ambient light data is less than the preset light intensity. If the ambient light data is less than the preset light intensity, the magnetic data and device information of the second terminal are determined.
[0188] The preset light intensity refers to a pre-set light intensity threshold, such as a light intensity threshold less than 0.5. This application embodiment does not limit the setting of the preset light intensity. It should be understood that if the ambient light data is less than the preset light intensity, it indicates that the area near the second terminal is obstructed. In this case, there may be other terminals nearby; for example, in this application embodiment, the first terminal is used to refer to other terminals near the second terminal. If the ambient light data is greater than or equal to the preset light intensity, it indicates that the area near the second terminal is not obstructed.
[0189] The magnetic data from the second terminal is used to characterize the magnetic field conditions of the second terminal, such as magnetic field strength and direction. It is understood that the orientation of the second terminal can be determined based on its magnetic data. In some embodiments, the second terminal may use a magnetometer sensor to acquire its magnetic data. It is worth noting that in other embodiments, the second terminal may also employ other methods to acquire magnetic data. This application does not limit the scope of these methods.
[0190] Device information may include a media access control address (MAC), hypertext markup language (HML), etc. In some embodiments, the second terminal may pre-store its own device information.
[0191] This application illustrates the solution using an example where the ambient light data is less than a preset light intensity. In other embodiments, when the ambient light data is greater than or equal to the preset light intensity, it means that the area near the second terminal is not obstructed, and therefore the data sharing process as described in subsequent S504 to S508 is unnecessary.
[0192] S504, the second terminal sends a broadcast signal.
[0193] The broadcast signal can carry the magnetic data of the second terminal. By carrying the magnetic data of the second terminal in the broadcast signal, subsequent checks to determine if preset conditions are met can be performed based on this data, thus ensuring smooth data sharing. Furthermore, the broadcast signal also carries the device information of the second terminal. Thus, by carrying the device information of the second terminal in the broadcast signal, subsequent data sharing with the second terminal can be performed based on this information, ensuring smooth data sharing. This application embodiment illustrates the solution using an example where the broadcast signal carries both the magnetic data and device information of the second terminal.
[0194] For example, the broadcast signal could be a Bluetooth Low Energy (BLE) broadcast signal. In this way, the magnetic data and device information of the second device can be broadcast to surrounding terminal devices, at which point the first terminal can detect the broadcast signal.
[0195] The above S503 to S504 correspond to the content of the second terminal in Figure 4, S403, sending a broadcast signal in response to the ambient light data being less than the preset light intensity.
[0196] S505. In response to receiving a broadcast signal from the second terminal, the first terminal determines whether the distance between the first terminal and the second terminal indicated by the broadcast signal is less than a preset threshold. In response to the distance being less than the preset threshold, the first terminal determines the magnetic force data of the first terminal.
[0197] The preset threshold refers to a pre-set distance threshold, such as a distance threshold less than 0.5 mm. This application does not limit the setting of the preset threshold. It should be understood that if the distance between the first terminal and the second terminal is less than the preset threshold, it indicates that the positions of the first terminal and the second terminal are relatively close. If the distance between the first terminal and the second terminal is greater than or equal to the preset threshold, it indicates that the positions of the first terminal and the second terminal are not close.
[0198] In some embodiments, in response to receiving a broadcast signal from a second terminal, the first terminal determines the distance between the first terminal and the second terminal based on the broadcast signal. The process of determining the distance between the first terminal and the second terminal based on the broadcast signal may involve determining a transmission distance corresponding to the signal strength of the broadcast signal, and using this distance as the distance between the first terminal and the second terminal. For example, the first terminal may pre-store transmission distances corresponding to different signal strengths. It is worth noting that in other embodiments, the first terminal may also use other methods to determine the distance between the first terminal and the second terminal, and this application does not limit this approach.
[0199] The magnetic data of the first terminal is used to characterize the magnetic field conditions of the first terminal, such as magnetic field strength and direction. It is understood that the orientation of the first terminal can be determined based on its magnetic data. In some embodiments, the first terminal may use a magnetometer sensor to acquire its magnetic data. It is worth noting that in other embodiments, the first terminal may also use other methods to acquire magnetic data. This application does not limit these methods.
[0200] This application embodiment illustrates the solution using the example of a distance between the first terminal and the second terminal being less than a preset threshold. In other embodiments, if the distance between the first terminal and the second terminal is greater than or equal to the preset threshold, it means that the first terminal and the second terminal are not close to each other, and therefore the data sharing process as described in subsequent S506 to S508 is unnecessary.
[0201] S506. The first terminal determines whether the magnetic data of the first terminal and the magnetic data of the second terminal meet the preset correlation condition. In response to the magnetic data of the first terminal and the magnetic data of the second terminal meeting the preset correlation condition, the first terminal sends data to the second terminal based on the device information of the second terminal.
[0202] The preset relevance condition refers to a pre-set relevance condition, such as the magnetic data of the first terminal being the same as the magnetic data of the second terminal, or the similarity between the magnetic data of the first terminal and the magnetic data of the second terminal being greater than or equal to a preset similarity. This application does not limit the setting of the preset relevance condition in its embodiments.
[0203] It should be understood that if the magnetic data of the first terminal and the magnetic data of the second terminal meet a preset correlation condition, it indicates that the first terminal and the second terminal are in a very close proximity state. At this time, the conditions for very close-range transmission can be met, and therefore the first terminal can directly send data to the second terminal. If the magnetic data of the first terminal and the magnetic data of the second terminal do not meet the preset correlation condition, it indicates that the first terminal and the second terminal are not in a very close proximity state. At this time, the conditions for very close-range transmission cannot be met, and therefore the first terminal cannot send data to the second terminal.
[0204] The embodiments shown in S505 to S506 above illustrate the scheme by taking as an example whether the distance between the first terminal and the second terminal is less than a preset threshold, and then whether the magnetic data of the first terminal and the magnetic data of the second terminal meet a preset correlation condition. In some other embodiments, the first terminal may also only determine whether the distance between the first terminal and the second terminal is less than a preset threshold. If the distance is less than the preset threshold, data is sent to the second terminal based on the device information of the second terminal. Alternatively, in other embodiments, the first terminal may only determine whether the magnetic data of the first terminal and the magnetic data of the second terminal meet a preset correlation condition. If the magnetic data of the first terminal and the magnetic data of the second terminal meet the preset correlation condition, data is sent to the second terminal based on the device information of the second terminal. This application does not limit this aspect.
[0205] It is worth noting that, in some other embodiments, the first terminal may first determine whether the magnetic data of the first terminal and the magnetic data of the second terminal meet a preset correlation condition, and then determine whether the distance between the first terminal and the second terminal is less than a preset threshold. That is, in response to receiving a broadcast signal from the second terminal, the first terminal determines its magnetic data, determines whether the magnetic data of the first terminal and the magnetic data of the second terminal meet the preset correlation condition, determines whether the distance between the first terminal and the second terminal is less than a preset threshold, and if the distance is less than the preset threshold, the first terminal sends data to the second terminal based on the device information of the second terminal. This application embodiment does not limit the execution order of the above S505 and S506.
[0206] This application embodiment illustrates the scheme using the example of the magnetic data of the first terminal and the magnetic data of the second terminal satisfying a preset correlation condition. In other embodiments, if the magnetic data of the first terminal and the magnetic data of the second terminal do not satisfy the preset correlation condition, it means that the first terminal and the second terminal are not in a state of ultra-close distance. In this case, the conditions for ultra-close distance transmission cannot be met, and therefore, the data sharing process as described in S507 to S508 is unnecessary.
[0207] S507, The second terminal receives the data returned by the first terminal in response to the broadcast signal.
[0208] S508, the second terminal displays the second interface.
[0209] The second interface includes data.
[0210] In some embodiments, the second terminal displays the data on the second interface. For example, the second terminal may display the data in full-screen mode on the second interface. Alternatively, the second terminal may display the data in half-screen mode on the second interface. Or, the second terminal may display the data as a floating window on the second interface. Of course, in other embodiments, the second terminal may also use other methods to display the data, such as a pop-up window. This application does not limit this approach.
[0211] In some possible implementations, when the data is an image, the second terminal displays the image on a second interface.
[0212] For example, Figure 6 is a schematic diagram of an image sharing scenario provided by an embodiment of this application. Referring to Figure 6, taking the first interface of the first terminal as the gallery interface as an example, when the first terminal is close to the second terminal, it can trigger the first terminal to automatically transmit the image 601 displayed in the gallery interface to the second terminal. Then, after receiving the image 601, the second terminal can display the image 602 as shown in Figure 6 on the second interface. The gallery interface can be a full-screen interface of any image in the gallery application. It should be noted that Figure 6 uses the floating window display of image 602 as an example to illustrate the display of the image.
[0213] For example, Figure 7 is a schematic diagram of a wallpaper sharing scenario provided by an embodiment of this application. Referring to Figure 7, taking the first interface of the first terminal as the lock screen interface as an example, when the first terminal is close to the second terminal, it can trigger the first terminal to automatically transmit the wallpaper 701 displayed on the lock screen interface to the second terminal. Then, after receiving the wallpaper 701, the second terminal can display the wallpaper 702 as shown in Figure 7 on the second interface. It should be noted that Figure 7 uses the full-screen display of wallpaper 702 as an example to illustrate the display of the image.
[0214] In some other possible implementations, when the data is video, the second terminal plays the video on the second interface.
[0215] The process of the second terminal playing the video on the second interface can be as follows: launching a browser and playing the video in the browser interface; or launching a video application and playing the video in the video application interface. Of course, in other embodiments, other methods can also be used to play the video, and this application embodiment does not limit this.
[0216] For example, Figure 8 is a schematic diagram of a video sharing scenario provided by an embodiment of this application. Referring to Figure 8, taking the first interface of the first terminal as the video interface as an example, when the first terminal is close to the second terminal, it can trigger the first terminal to automatically transmit the video 801 played in the video interface to the second terminal. Then, after receiving the video 801, the second terminal can play the video 802 shown in Figure 8 in the second interface. The video interface can be a video playback interface, such as a news playback interface, a short video playback interface, etc. It should be noted that Figure 8 uses the floating window to play video 802 as an example to illustrate the video playback.
[0217] In some other possible implementations, when the data is wireless LAN information, the second terminal displays the wireless LAN information on the second interface.
[0218] For example, Figure 9 is a schematic diagram of a network sharing scenario provided by an embodiment of this application. Referring to Figure 9, taking the first interface of the first terminal as the information interface of a wireless local area network (WLAN) as an example, when the first terminal is close to the second terminal, it can trigger the first terminal to automatically transmit the WLAN information 901 displayed in the WLAN information interface to the second terminal. Then, after receiving the WLAN information 901, the second terminal can display the WLAN information 902 as shown in Figure 9 on the second interface. It should be noted that Figure 9 uses the full-screen display of the WLAN information 902 as an example to illustrate the display of WLAN information.
[0219] In some other possible implementations, when the data is information about electronic red envelopes, the second terminal displays the electronic red envelope information on the second interface.
[0220] For example, Figure 10 is a schematic diagram of a red envelope sharing scenario provided by an embodiment of this application. Referring to Figure 10, taking the first interface of the first terminal as the information interface of the electronic red envelope as an example, when the first terminal is close to the second terminal, it can trigger the first terminal to automatically transmit the information 1001 of the electronic red envelope displayed in the information interface of the electronic red envelope to the second terminal. Then, after receiving the information 1001 of the electronic red envelope, the second terminal can display the information 1002 of the electronic red envelope as shown in Figure 10 on the second interface. It should be noted that Figure 10 uses the pop-up display of the information 1002 of the electronic red envelope as an example to illustrate the display of the information of the electronic red envelope.
[0221] In some other possible implementations, when the data is contact information, the second terminal displays the contact information on the second interface.
[0222] For example, Figure 11 is a schematic diagram of a contact sharing scenario provided by an embodiment of this application. Referring to Figure 11, taking the first interface of the first terminal as the contact information interface as an example, when the first terminal is close to the second terminal, it can trigger the first terminal to automatically transmit the contact information 1101 displayed in the contact information interface to the second terminal. Then, after receiving the contact information 1101, the second terminal can display the contact information 1102 as shown in Figure 11 on the second interface. It should be noted that Figure 11 uses the full-screen display of contact information 1102 as an example to illustrate the display of contact information.
[0223] Furthermore, in some embodiments, the second terminal may also perform preset processing based on the data.
[0224] In some possible implementations, when the data is an image, the second terminal will also store the image in a local image library. This enables automatic image storage and improves the efficiency of human-computer interaction.
[0225] For example, taking an image as wallpaper, the second terminal can also automatically set the received image as wallpaper.
[0226] In some other possible implementations, when the data is video, the second terminal also stores the video in a local image library. This enables automatic video storage and improves the efficiency of human-computer interaction.
[0227] In some other possible implementations, when the data is information from a wireless LAN, the second terminal also connects to the wireless LAN based on that information. This enables automatic connection to wireless LANs (such as Wi-Fi or hotspots), improving human-computer interaction efficiency.
[0228] In some other possible implementations, when the data is information about an electronic red envelope, the second terminal also obtains the corresponding red envelope amount. This enables automatic receipt of electronic red envelopes, improving the efficiency of human-computer interaction.
[0229] In some other possible implementations, when the data is contact information, the second terminal also adds contact information to the contact database. This enables automatic contact addition, improving the efficiency of human-computer interaction.
[0230] The technical solution provided in this application provides an efficient data sharing scheme between terminal devices. Specifically, when a second terminal detects that the ambient light intensity is less than a preset light intensity, it can trigger the second terminal to send a broadcast signal so that other nearby terminal devices, such as the first terminal, can detect the broadcast signal. Furthermore, as long as the distance between the first and second terminals is less than a preset threshold and / or the magnetic data of the first and second terminals meets a preset correlation condition, the first terminal can be automatically triggered to share data. The second terminal can then automatically receive the data. This achieves data sharing between the first and second terminals, enabling one-touch instant sharing between the two terminals, simplifying the data sharing process, and improving human-computer interaction efficiency.
[0231] Both the first terminal and the second terminal involved in the embodiments of this application are equipped with an application module, a Huawei sharing module, a mobile sensing platform, a sensor module, and a soft bus module.
[0232] The application module runs different types of applications, such as gallery applications, video applications, settings applications, SMS applications, contact applications, etc. This application will subsequently use a gallery application as an example to illustrate the solution.
[0233] The Huawei Share module provides Huawei Share functionality to enable data sharing between the current terminal device and other terminal devices. It should be noted that both the first and second terminals need to have Huawei Share functionality enabled in the Huawei Share module before implementing this solution.
[0234] The mobile sensing platform provides subscription services for sensing functions, such as ambient light sensing and magnetic sensing functions for terminal devices. After successful subscription, the mobile sensing platform can identify the status of the terminal device and return the information to the subscriber, i.e., to the terminal device itself. It should be noted that both the first and second terminals need to pre-subscribe to the sensing function service before implementing this solution.
[0235] The sensor module provides sensor-based detection functions, such as ambient light detection using an ambient light sensor or magnetic data detection using a magnetometer sensor. It should be noted that both the first and second terminals need to have their sensor module detection functions enabled before implementing this solution.
[0236] The soft bus module provides data transmission functionality based on the soft bus. In some embodiments, the soft bus module also provides a Bluetooth scanning and monitoring function for monitoring broadcast signals. It should be noted that both the first and second terminals need to enable the Bluetooth scanning and monitoring function of the soft bus module before implementing this solution.
[0237] In one example, Figure 12 is a schematic diagram of a data sharing process provided in an embodiment of this application. Referring to Figure 12, the data sharing process is explained using the interaction process between the gallery application, Huawei sharing module, mobile sensing platform, sensor module, and soft bus module set in the first terminal and the second terminal as an example.
[0238] Taking the first interface as the full-screen display interface of the image in the gallery application as an example, the data sharing process may include the following steps S1201 to S1219.
[0239] S1201, The user triggers the first terminal to display a full-screen interface of the image.
[0240] For example, a user can select an image to be shared in the gallery application of the first terminal and click to preview the large image of the image to trigger the first terminal to display the full-screen interface of the image.
[0241] S1202, The user holds the first terminal close to a preset area of the second terminal to block the preset area of the second terminal.
[0242] The preset area can be the top of the screen of the second terminal. In other embodiments, the preset area can also be set to other areas, such as the back of the screen, which is not limited in this application.
[0243] S1203, The sensor module of the second terminal acquires ambient light data of a preset area and sends the acquired ambient light data to the mobile sensing platform of the second terminal.
[0244] S1204. The mobile sensing platform of the second terminal receives ambient light data, determines whether the ambient light data is less than the preset light intensity, and sends a magnetic detection command to the sensor module of the second terminal in response to the ambient light data being less than the preset light intensity.
[0245] Among them, the magnetic force detection command is used to instruct the acquisition of magnetic force data from the second terminal.
[0246] S1205, The sensor module of the second terminal receives the magnetic force detection command, acquires the magnetic force data of the second terminal, and sends the acquired magnetic force data of the second terminal to the mobile sensing platform of the second terminal.
[0247] S1206. The mobile sensing platform of the second terminal receives the magnetic data of the second terminal and sends a broadcast trigger command to the soft bus module of the second terminal.
[0248] The broadcast trigger command is used to instruct the transmission of a broadcast signal. This broadcast trigger command may carry magnetic data from the second terminal.
[0249] S1207. The soft bus module of the second terminal receives the broadcast trigger command, assembles the device information of the second terminal and the magnetic data of the second terminal carried by the broadcast trigger command into broadcast content, and sends the broadcast signal.
[0250] S1208. The soft bus module of the first terminal receives the broadcast signal and determines the distance between the first terminal and the second terminal based on the broadcast signal.
[0251] S1209, The soft bus module of the first terminal sends the distance between the first terminal and the second terminal, as well as the magnetic data and device information of the second terminal carried by the broadcast signal, to the mobile sensing platform of the first terminal.
[0252] S1210, the mobile sensing platform of the first terminal receives the distance between the first terminal and the second terminal, as well as the magnetic data and device information of the second terminal carried by the broadcast signal, and determines whether the distance between the first terminal and the second terminal is less than a preset threshold. In response to the distance being less than the preset threshold, a magnetic detection command is sent to the sensor module of the first terminal.
[0253] The magnetic force detection command is used to instruct the acquisition of magnetic force data from the first terminal.
[0254] S1211. The sensor module of the first terminal receives the magnetic force detection command, acquires the magnetic force data of the first terminal, and sends the acquired magnetic force data of the first terminal to the mobile sensing platform of the first terminal.
[0255] S1212, The mobile sensing platform of the first terminal receives the magnetic data of the first terminal, determines whether the magnetic data of the first terminal and the magnetic data of the second terminal meet the preset correlation condition, and in response to the magnetic data of the first terminal and the magnetic data of the second terminal meeting the preset correlation condition, sends the device information of the second terminal to the Huawei sharing module of the first terminal.
[0256] S1213. The Huawei sharing module of the first terminal receives the device information of the second terminal and sends a terminal awareness prompt to the gallery application of the first terminal.
[0257] Among them, the terminal perception prompt is used to prompt other terminal devices that are perceived to allow sharing of pictures.
[0258] S1214. The gallery application of the first terminal receives the terminal awareness prompt and sends the picture to the Huawei sharing module of the first terminal.
[0259] S1215, The Huawei sharing module of the first terminal receives the image and sends the device information of the second terminal to the soft bus module of the first terminal.
[0260] S1216. The soft bus module of the first terminal establishes a communication link with the soft bus module of the second terminal based on the device information of the second terminal, and sends a link success message to the Huawei sharing module of the first terminal.
[0261] The "successful connection" message indicates that the soft bus module of the first terminal and the soft bus module of the second terminal have successfully established a communication link.
[0262] S1217. In response to the successful establishment of a communication link between the soft bus module of the first terminal and the soft bus module of the second terminal, the Huawei sharing module of the first terminal sends an image to the Huawei sharing module of the second terminal.
[0263] S1218: The Huawei sharing module of the second terminal receives the image and sends an image display command to the gallery application of the second terminal.
[0264] The image display command is used to instruct the display of an image.
[0265] S1219. The gallery application of the second terminal receives the image display instruction and displays the image.
[0266] The technical solution provided in this application provides an efficient data sharing scheme between terminal devices. Specifically, when a second terminal detects that the ambient light intensity is less than a preset light intensity, it can trigger the second terminal to send a broadcast signal so that other nearby terminal devices, such as the first terminal, can detect the broadcast signal. Furthermore, as long as the distance between the first and second terminals is less than a preset threshold and / or the magnetic data of the first and second terminals meets a preset correlation condition, the first terminal can be automatically triggered to share data. The second terminal can then automatically receive the data. This achieves data sharing between the first and second terminals, enabling one-touch instant sharing between the two terminals, simplifying the data sharing process, and improving human-computer interaction efficiency.
[0267] It should be noted that the above description is for the purpose of more clearly explaining the data sharing method described in the embodiments of this disclosure, and should not be construed as a limitation on the specific implementation of this application.
[0268] The above mainly describes the solution provided by the embodiments of this application from the perspective of the data sharing process of the first interface. Correspondingly, the embodiments of this application also provide a data sharing device for implementing the various methods described above. This data sharing device can be one of the methods described above, or include the aforementioned devices, or be a usable component. It is understood that, in order to achieve the above functions, the data sharing device includes hardware structures and / or software modules corresponding to the execution of each function. Those skilled in the art should readily recognize that, in conjunction with the units and algorithm steps of the various examples described in the embodiments disclosed herein, this application can be implemented in hardware or a combination of hardware and computer software. Whether a function is executed by hardware or by computer software driving hardware 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.
[0269] This application embodiment can divide the data sharing device into functional modules according to the above method embodiment. For example, each function can be divided into a separate functional module, or two or more functions can be integrated into one processing module. The integrated module can be implemented in hardware or as a software functional module. It should be understood that the module division in this application embodiment is illustrative and only represents one logical functional division. In actual implementation, there may be other division methods.
[0270] For example, Figure 13 is a schematic diagram of a data sharing device provided in an embodiment of this application. Referring to Figure 13, the data sharing device includes a display module 1301 and a sending module 1302. Wherein:
[0271] Display module 1301 is used to execute S401 shown in FIG4, S501 shown in FIG5, or S1201 shown in FIG12.
[0272] The sending module 1302 is used to execute S404 shown in FIG4, or S505 to S506 shown in FIG5, or S1208 to S1217 shown in FIG12.
[0273] The technical solution provided in this application provides an efficient data sharing scheme between terminal devices. Specifically, when a second terminal detects that the ambient light intensity is less than a preset light intensity, it can trigger the second terminal to send a broadcast signal so that other nearby terminal devices, such as the first terminal, can detect the broadcast signal. Furthermore, as long as the distance between the first and second terminals is less than a preset threshold and / or the magnetic data of the first and second terminals meets a preset correlation condition, the first terminal can be automatically triggered to share data. The second terminal can then automatically receive the data. This achieves data sharing between the first and second terminals, enabling one-touch instant sharing between the two terminals, simplifying the data sharing process, and improving human-computer interaction efficiency.
[0274] In some possible implementations, the device further includes a judgment module for performing the process of judging whether a preset condition is met in S404 shown in FIG4, or the process of judging whether the distance between the first terminal and the second terminal is less than a preset threshold and judging whether the magnetic data of the first terminal and the magnetic data of the second terminal meet a preset correlation condition in S505 to S506 shown in FIG5, or the process of judging whether the distance between the first terminal and the second terminal is less than a preset threshold and judging whether the magnetic data of the first terminal and the magnetic data of the second terminal meet a preset correlation condition in S1208 to S1217 shown in FIG12.
[0275] In some possible implementations, the broadcast signal carries magnetic data from a second terminal.
[0276] In some possible implementations, the broadcast signal also carries device information of the second terminal;
[0277] The sending module 1302 is specifically used to execute the data sending process in S404 shown in Figure 4, or the data sending process in S506 shown in Figure 5, or the data sending process in S1217 shown in Figure 12.
[0278] For example, Figure 14 is a schematic diagram of a data sharing device provided in an embodiment of this application. Referring to Figure 14, the data sharing device includes an acquisition module 1401, a sending module 1402, and a receiving module 1403. Wherein:
[0279] The acquisition module 1401 is used to execute S402 shown in Figure 4, S502 shown in Figure 5, or S1203 shown in Figure 12.
[0280] The sending module 1402 is used to execute S403 shown in FIG4, or S503 to S504 shown in FIG5, or S1204 to S1207 shown in FIG12.
[0281] The receiving module 1403 is used to execute S405 shown in FIG4, S507 shown in FIG5, or S1218 shown in FIG12.
[0282] In some possible implementations, the ambient light data is the ambient light data of a preset area of the second terminal.
[0283] In some possible implementations, the broadcast signal carries magnetic data of the second terminal and / or device information of the second terminal.
[0284] In some possible implementations, the device further includes a display module for performing S508 shown in FIG5 or S1219 shown in FIG12.
[0285] In some possible implementations, the device further includes a processing module for performing the preset processing of data in S508 shown in FIG5 above.
[0286] The technical solution provided in this application provides an efficient data sharing scheme between terminal devices. Specifically, when a second terminal detects that the ambient light intensity is less than a preset light intensity, it can trigger the second terminal to send a broadcast signal so that other nearby terminal devices, such as the first terminal, can detect the broadcast signal. Furthermore, as long as the distance between the first and second terminals is less than a preset threshold and / or the magnetic data of the first and second terminals meets a preset correlation condition, the first terminal can be automatically triggered to share data. The second terminal can then automatically receive the data. This achieves data sharing between the first and second terminals, enabling one-touch instant sharing between the two terminals, simplifying the data sharing process, and improving human-computer interaction efficiency.
[0287] For a detailed description of the above-mentioned optional methods, please refer to the foregoing method embodiments, which will not be repeated here. Furthermore, the explanation of any of the data sharing devices provided above and the description of their beneficial effects can be found in the corresponding method embodiments described above, and will not be repeated here.
[0288] As an example, referring to FIG3, some or all of the functions implemented in the display module 1301 and the sending module 1302 in the data sharing device shown in FIG13, and the acquisition module 1401, the sending module 1402 and the receiving module 1403 in the data sharing device shown in FIG14 can be implemented by the processor 310 in FIG3 executing the computer execution instructions in the internal memory 321 in FIG3.
[0289] In this embodiment, the data sharing device is presented as an integrated set of functional modules. Here, "module" can refer to a specific ASIC, circuitry, a processor and memory executing one or more software or firmware programs, integrated logic circuitry, and / or other devices that can provide the aforementioned functions. In a simplified embodiment, those skilled in the art will recognize that the data sharing device can take the form of the terminal device shown in Figure 3.
[0290] For example, the processor 310 in the terminal device shown in Figure 3 can execute the data sharing method in the above method embodiment by calling the computer execution instructions stored in the internal memory 321.
[0291] Specifically, the functions / implementation processes of the display module 1301 and the sending module 1302 in the data sharing device shown in Figure 13, and the acquisition module 1401, the sending module 1402 and the receiving module 1403 in the data sharing device shown in Figure 14, can be implemented by the processor 310 in the terminal device shown in Figure 3 calling the computer execution instructions stored in the internal memory 321.
[0292] Since the data sharing device provided in this application embodiment can execute the above data sharing method, the technical effects it can achieve can be referred to the above method embodiment, and will not be repeated here.
[0293] It should be understood that one or more of the above modules or units can be implemented by software, hardware, or a combination of both. When any of the above modules or units are implemented by software, the software exists as computer program instructions and is stored in memory. The processor can be used to execute the program instructions and implement the above method flow. The processor can be built into a SoC (System-on-a-Chip) or ASIC, or it can be a separate semiconductor chip. In addition to the core that executes software instructions for computation or processing, the processor may further include necessary hardware accelerators, such as field-programmable gate arrays (FPGAs), PLDs (Programmable Logic Devices), or logic circuits that implement dedicated logic operations.
[0294] When the above modules or units are implemented in hardware, the hardware can be any one or any combination of a CPU, microprocessor, digital signal processing (DSP) chip, microcontroller unit (MCU), artificial intelligence processor, ASIC, SoC, FPGA, PLD, application-specific digital circuit, hardware accelerator, or non-integrated discrete device, which can run the necessary software or perform the above method flow independently of software.
[0295] Optionally, embodiments of this application also provide a terminal device (e.g., the terminal device may be a chip or a chip system), which includes a processor for implementing the methods in any of the above method embodiments. In one possible design, the terminal device further includes a memory. The memory is used to store necessary program instructions and data, and the processor can call the program code stored in the memory to instruct the terminal device to execute the methods in any of the above method embodiments. Of course, the memory may not be present in the terminal device. When the terminal device is a chip system, it may be composed of chips or may include chips and other discrete devices; embodiments of this application do not specifically limit this.
[0296] This application also provides a computer-readable storage medium storing computer-executable instructions. When the computer-executable instructions are executed on a terminal device, the terminal device performs the method executed by any of the data sharing devices provided above.
[0297] For explanations of the relevant content and descriptions of the beneficial effects in any of the computer-readable storage media provided above, please refer to the corresponding embodiments described above, which will not be repeated here.
[0298] This application also provides a chip. The chip integrates a control circuit for implementing the functions of the aforementioned data sharing device and one or more ports. Optionally, the functions supported by the chip can be referred to above, and will not be repeated here. Those skilled in the art will understand that all or part of the steps of the above embodiments can be implemented by a program instructing related hardware. The program can be stored in a computer-readable storage medium. The aforementioned storage medium can be a read-only memory, random access memory, etc. The aforementioned processing unit or processor can be a central processing unit, a general-purpose processor, an application-specific integrated circuit (ASIC), a microprocessor (digital signal processor, DSP), a field-programmable gate array (FPGA), or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof.
[0299] This application also provides a computer program product containing computer-executable instructions, which, when executed on a terminal device, cause the terminal device to perform any of the methods described in the above embodiments. The computer program product includes one or more computer-executable instructions. When the computer-executable instructions are loaded and executed on the terminal device, all or part of the flow or function according to the embodiments of this application is generated. The terminal device may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer-executable instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer-executable instructions may 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 (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium may be any available medium accessible to the server or may include one or more data storage devices such as servers or data centers that can be integrated with the medium. The available medium may 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 (SSD)).
[0300] It should be noted that the devices for storing computer instructions or computer programs provided in the embodiments of this application, such as but not limited to the memory, computer-readable storage medium and communication chip, are all non-transitory.
[0301] In the above embodiments, implementation can be achieved, in whole or in part, through software, hardware, firmware, or any combination thereof. When implemented using software programs, implementation can be, in whole or in part, in the form of a computer program product.
[0302] Although this application has been described herein in conjunction with various embodiments, those skilled in the art, by reviewing the accompanying drawings, the disclosure, and the appended claims, will understand and implement other variations of the disclosed embodiments in carrying out the claimed application. In the claims, the word "comprising" does not exclude other components or steps, and "a" or "an" does not exclude multiple instances. A single processor or other unit can implement several functions listed in the claims. While different dependent claims may recite certain measures, this does not mean that these measures cannot be combined to produce good results.
[0303] Although this application has been described in conjunction with specific features and embodiments, it is obvious that various modifications and combinations can be made thereto without departing from the spirit and scope of this application. Accordingly, this specification and drawings are merely exemplary illustrations of this application as defined by the appended claims, and are considered to cover any and all modifications, variations, combinations, or equivalents within the scope of this application. Clearly, those skilled in the art can make various alterations and modifications to this application without departing from the spirit and scope of this application. Thus, if such modifications and modifications of this application fall within the scope of the claims of this application and their equivalents, this application is also intended to include such modifications and modifications.
Claims
1. A data sharing method, characterized by, Applied to a first terminal, comprising: displaying a first interface, the first interface comprising data to be shared; in response to a preset condition being met, sending the data to a second terminal; wherein the preset condition comprises one or more of the following: a broadcast signal from the second terminal indicating that a distance between the first terminal and the second terminal is less than a preset threshold, magnetic force data of the first terminal and magnetic force data of the second terminal meeting a preset correlation condition.
2. The method of claim 1, wherein, The method further comprises: in response to receiving the broadcast signal from the second terminal, determining whether the broadcast signal indicates that the distance between the first terminal and the second terminal is less than the preset threshold, and determining whether the magnetic force data of the first terminal and the magnetic force data of the second terminal meet the preset correlation condition.
3. The method according to claim 1 or 2, characterized in that, The broadcast signal carries the magnetic force data of the second terminal.
4. The method according to any one of claims 1 to 3, characterized in that, The broadcast signal also carries device information of the second terminal; The sending of the data to the second terminal comprises: based on the device information of the second terminal, sending the data to the second terminal.
5. A data sharing method, characterized by, Applied to a second terminal, comprising: obtaining ambient light data; in response to the ambient light data being less than a preset light intensity, sending a broadcast signal, the broadcast signal being used to indicate a distance between a first terminal and the second terminal; receiving data returned by the first terminal in response to the broadcast signal.
6. The method of claim 5, wherein, The ambient light data is ambient light data of a preset area of the second terminal.
7. The method according to claim 5 or 6, characterized in that, The broadcast signal carries magnetic force data of the second terminal and / or device information of the second terminal.
8. The method according to any one of claims 5-7, characterized in that, After the receiving of the data returned by the first terminal in response to the broadcast signal, the method further comprises: displaying a second interface, the second interface comprising the data.
9. The method of claim 8, wherein, The method further comprises: performing a preset processing based on the data; wherein, in a case where the data is a picture, storing the picture to a local gallery; in a case where the data is a video, storing the video to a local gallery; in a case where the data is information of a wireless local area network, connecting the wireless local area network based on the information of the wireless local area network; in a case where the data is information of an electronic red packet, obtaining a red packet amount corresponding to the electronic red packet; in a case where the data is contact information, adding the contact information in a contact information library.
10. A data sharing system, characterized by, Comprising a first terminal and a second terminal, wherein, the second terminal obtains ambient light data; the second terminal, in response to the ambient light data being less than a preset light intensity, sends a broadcast signal, the broadcast signal being used to indicate a distance between the first terminal and the second terminal; the first terminal displays a first interface, the first interface comprising data to be shared; the first terminal, in response to a broadcast signal from the second terminal indicating that a distance between the first terminal and the second terminal is less than a preset threshold, and magnetic force data of the first terminal and magnetic force data of the second terminal meeting a preset correlation condition, sends the data to a second terminal; the second terminal receives data returned by the first terminal in response to the broadcast signal.
11. A terminal device, comprising: A computer program product comprising a memory and a processor connected thereto; the memory being configured to store computer-executable instructions; the processor being configured to invoke the computer-executable instructions to perform the method of any one of claims 1-4 or 5-9.
12. A computer-readable storage medium, characterized in that, A computer program product comprising computer-executable instructions which, when run on a terminal device, cause the terminal device to perform the method of any one of claims 1-4 or 5-9.
13. A computer program product, characterised in that, A computer program product comprising computer-executable instructions which, when run on a terminal device, cause the terminal device to perform the method of any one of claims 1-4 or 5-9.
Citation Information
Patent Citations
Data sharing method and device, medium and product
CN121174126A
Method and apparatus for sharing data
CN106211063A
Content transmission method, equipment, and medium
CN111522438A
Intelligent lock control method and device, equipment and storage medium
CN111862410A
Service sharing device and method
US20160323863A1