Data sharing method and device, first equipment, second equipment and storage medium

By detecting the NFC communication of the second device and obtaining its NFC interface data, a data sharing path is established, and the problem of users needing to manually configure shared data in the prior art is solved, and automated multimedia data sharing is realized, which improves the user experience.

CN120050631APending Publication Date: 2025-05-27BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311588898.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-11-24
Publication Date
2025-05-27

AI Technical Summary

Technical Problem

In the prior art, users need to manually configure shared data to realize data sharing between electronic devices, which affects the user experience.

Method used

By detecting the NFC communication of the second device, its NFC interface data is obtained, and a data sharing path is established based on the data to realize automatic sharing of multimedia data.

Benefits of technology

Multimedia data sharing between electronic devices can be realized without manual configuration operations, improving data sharing efficiency and experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120050631A_ABST
    Figure CN120050631A_ABST
Patent Text Reader

Abstract

The invention provides a data sharing method and device, first equipment, second equipment and a storage medium, and the method comprises the steps: obtaining NFC interface data of the second equipment when NFC communication with the second equipment is detected; establishing a data sharing path with the second equipment according to the NFC interface data; and sharing multimedia data to the second device based on the data sharing path. According to the scheme of the embodiment, the multimedia data can be shared with the second equipment after the first equipment approaches or touches the second equipment, manual configuration operation of a user is not needed, the data sharing efficiency is improved, and the data sharing experience is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of control technologies, and in particular, to a data sharing method and apparatus, a first device, a second device, and a storage medium. Background Art

[0002] Currently, electronic devices are increasingly widely used. Some users own multiple electronic devices, such as smartphones, tablets, cameras, large-sized displays, and personal computers, etc. In some scenarios, users hope to share the data of the first electronic device to the second electronic device, such as sharing the video played on the smartphone to the television, etc., so as to facilitate viewing.

[0003] In the related art, to achieve data sharing, users need to install application programs on two electronic devices respectively, then configure the sharing method on the first electronic device, and finally achieve data sharing after the two electronic devices are connected. However, the solution of the related art requires manual configuration of shared data, which affects the user experience. Summary of the Invention

[0004] The present disclosure provides a data sharing method and apparatus, a first device, a second device, and a storage medium to solve the above technical problems.

[0005] According to a first aspect of the present disclosure, there is provided a data sharing method, the method comprising:

[0006] When detecting NFC communication with a second device, obtaining NFC interface data of the second device;

[0007] Establishing a data sharing path with the second device according to the NFC interface data;

[0008] Sharing multimedia data to the second device based on the data sharing path.

[0009] Optionally, establishing a data sharing path with the second device according to the NFC interface data includes:

[0010] Obtaining tag information in the NFC interface data;

[0011] Distributing the NFC interface data according to the tag information;

[0012] Sending a broadcast message to a target application program according to the action data of the NFC interface data;

[0013] In response to an application program logged in with the same account in the second device, establishing a data sharing path with the second device according to the communication method in the NFC interface data.

[0014] Optionally, sharing multimedia data to the second device based on the data sharing path includes:

[0015] Determine the multimedia data to be shared;

[0016] Process the multimedia data according to the protocol format of the target application to obtain protocol data;

[0017] Send the protocol data to the second device through the data sharing path.

[0018] Optionally, determining the multimedia data to be shared includes:

[0019] Obtain the configuration status of the target application; the configuration status includes: data sharing status or default status;

[0020] In response to the configuration status being the data sharing status, use the multimedia data used by the target application as the multimedia data to be shared;

[0021] In response to the configuration status being the default status, use the current screen display content of the first device as the multimedia data to be shared.

[0022] Optionally, establishing a data sharing path with the second device according to the NFC interface data includes:

[0023] Obtain the protocol information in the NFC interface data;

[0024] Process the protocol information to obtain a control instruction; the control instruction includes device information and control operation information of the second device;

[0025] Establish the same local area network link path with the second device according to the device information as the data sharing path.

[0026] Optionally, sharing multimedia data to the second device based on the data sharing path includes:

[0027] Obtain the multimedia data matching the control operation information;

[0028] Process the multimedia data according to the protocol format of the data sharing path to obtain protocol data;

[0029] Send the protocol data to the second device through the data sharing path.

[0030] According to the second aspect of the present disclosure, a data sharing method is provided, and the method includes:

[0031] When detecting NFC communication with the first device, send the NFC interface data of the second device to the first device;

[0032] Establish a data sharing path with the first device;

[0033] Obtain the protocol data sent by the first device, where the protocol data is obtained by the first device processing the shared multimedia data according to the protocol format.

[0034] Optionally, the method further includes:

[0035] Parse the protocol data to obtain the multimedia data;

[0036] Execute the operations matching the multimedia data.

[0037] According to the third aspect of the present disclosure, a data sharing device is provided, and the device includes:

[0038] An interface data acquisition module, configured to obtain the NFC interface data of the second device when detecting NFC communication with the second device;

[0039] A sharing path establishment module, configured to establish a data sharing path with the second device according to the NFC interface data;

[0040] A multimedia data sharing module, configured to share multimedia data to the second device based on the data sharing path.

[0041] Optionally, the sharing path establishment module includes:

[0042] A tag information acquisition sub-module, configured to acquire the tag information in the NFC interface data;

[0043] An interface data distribution sub-module, configured to distribute the NFC interface data according to the tag information;

[0044] An action data distribution sub-module, configured to send a broadcast message to the target application according to the action data of the NFC interface data;

[0045] A sharing path establishment sub-module, configured to respond to the application program logged in with the same account in the second device, and establish a data sharing path with the second device according to the communication method in the NFC interface data.

[0046] Optionally, the multimedia data sharing module includes:

[0047] A multimedia data determination sub-module, configured to determine the multimedia data to be shared;

[0048] A protocol data acquisition sub-module, configured to process the multimedia data according to the protocol format of the target application to obtain protocol data;

[0049] A protocol data sharing sub-module, configured to send the protocol data to the second device through the data sharing path.

[0050] Optionally, the multimedia data determination sub-module includes:

[0051] A configuration status acquisition unit, configured to acquire the configuration status of the target application; the configuration status includes: a data sharing status or a default status;

[0052] A multimedia data acquisition unit, configured to, in response to the configuration status being the data sharing status, use the multimedia data used by the target application as the multimedia data to be shared;

[0053] The multimedia data acquisition unit is further configured to, in response to the configuration status being the default status, use the current screen display content of the first device as the multimedia data to be shared.

[0054] Optionally, the sharing path establishment module includes:

[0055] A protocol information acquisition sub-module, configured to acquire the protocol information in the NFC interface data;

[0056] A control instruction acquisition sub-module, configured to process the protocol information to obtain a control instruction; the control instruction includes the device information of the second device and control operation information;

[0057] A sharing path establishment sub-module, configured to establish the same local area network link path with the second device according to the device information as the data sharing path.

[0058] Optionally, the multimedia data sharing module includes:

[0059] A multimedia data acquisition sub-module, configured to acquire multimedia data matching the control operation information;

[0060] A protocol data acquisition sub-module, configured to process the multimedia data according to the protocol format of the data sharing path to obtain protocol data;

[0061] A protocol data sharing sub-module, configured to send the protocol data to the second device through the data sharing path.

[0062] According to a fourth aspect of the present disclosure, there is provided a data sharing device, the device includes:

[0063] An interface data sending module, configured to send the NFC interface data of the second device to the first device when detecting NFC communication with the first device;

[0064] A sharing path establishment module, configured to establish a data sharing path with the first device;

[0065] A protocol data acquisition module, configured to acquire protocol data sent by the first device, where the protocol data is obtained by the first device processing shared multimedia data according to a protocol format.

[0066] Optionally, the device further includes:

[0067] A protocol data parsing module, configured to parse the protocol data to obtain the multimedia data;

[0068] A multimedia data execution module, configured to execute operations matching the multimedia data.

[0069] According to a fifth aspect of the present disclosure, a first device is provided, including:

[0070] A processor and a memory;

[0071] The memory is used to store a computer program executable by the processor;

[0072] Wherein, the processor is configured to execute the computer program in the memory to implement the method according to any one of the first aspect.

[0073] According to a sixth aspect of the present disclosure, a second device is provided, including:

[0074] A processor and a memory;

[0075] The memory is used to store a computer program executable by the processor;

[0076] Wherein, the processor is configured to execute the computer program in the memory to implement the method according to any one of the second aspect.

[0077] According to a seventh aspect of the present disclosure, a non-transitory computer-readable storage medium is provided, which can implement the method according to any one of the first aspect or the second aspect when the executable computer program in the storage medium is executed by a processor.

[0078] The technical solutions provided by the embodiments of the present disclosure may include the following beneficial effects:

[0079] The solution of this embodiment can, when detecting NFC communication with a second device, acquire the NFC interface data of the second device; then, establish a data sharing path with the second device according to the NFC interface data; and then, share multimedia data to the second device based on the data sharing path. In this way, the solution of this embodiment can share multimedia data to the second device after the first device approaches or touches the second device, without the need for manual configuration operations by the user, which is beneficial to improving the data sharing efficiency and enhancing the data sharing experience.

[0080] It should be understood that the above general description and the following detailed description are merely exemplary and explanatory, and do not limit the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0081] Figure 1 The flowchart of a data sharing method according to an embodiment of the present disclosure.

[0082] Figure 2 The flowchart of establishing a data sharing path according to an embodiment of the present disclosure.

[0083] Figure 3 The flowchart of another way to establish a data sharing path according to an embodiment of the present disclosure.

[0084] Figure 4 The flowchart of sharing data with a second device according to an embodiment of the present disclosure.

[0085] Figure 5 The flowchart of another way to share data with a second device according to an embodiment of the present disclosure.

[0086] Figure 6 The flowchart of another data sharing method according to an embodiment of the present disclosure.

[0087] Figure 7 The flowchart of yet another data sharing method according to an embodiment of the present disclosure.

[0088] Figure 8 The block diagram of a data sharing device according to an embodiment of the present disclosure.

[0089] Figure 9 The block diagram of an electronic device according to an embodiment of the present disclosure. DETAILED DESCRIPTION

[0090] Here, the exemplary embodiments will be described in detail, and the examples are shown in the drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. On the contrary, they are merely examples of devices consistent with some aspects of the present disclosure as detailed in the appended claims.

[0091] To solve the above technical problems, embodiments of the present disclosure provide a data sharing method and apparatus, a first device, a second device, and a storage medium. The first device may include, but is not limited to, devices configured with an NFC module such as a smart phone, a tablet computer, a camera, etc. The second device may include, but is not limited to, devices configured with an NFC module such as a smart phone, a tablet computer, a camera, a smart speaker, a personal computer, a smart display, etc. For the convenience of description, the subsequent embodiments will describe the solutions of each embodiment with the first device and the second device, but this does not limit the solutions of the present disclosure. Among them, the first device represents the device that shares multimedia data, and the second device represents the device that receives the shared multimedia data. The multimedia data includes at least one of the following: text, audio, and video, which can be selected according to specific scenarios.

[0092] Figure 1 The flowchart of a data sharing method according to an embodiment of the present disclosure. The first device can be used as an execution entity to cooperate with the second device to implement a data sharing method. Refer to Figure 1 , which includes steps 11 to 13.

[0093] In step 11, when detecting NFC communication with the second device, obtain the NFC interface data of the second device.

[0094] In this embodiment, the first device is provided with an NFC (Near Field Communication) module, and the second device is provided with an NFC (Near Field Communication) module. When the first device approaches or touches the second device, that is, the distance between the first device and the second device is less than or equal to a preset distance threshold (such as 1 - 10 cm), the two NFC modules can perform NFC communication.

[0095] In this embodiment, at a specified position of the second device, such as an NTAG module, NFC interface data is stored. The NFC interface data may include, but is not limited to, the physical address of the second device (such as a Bluetooth address, a WiFi address, etc.), the device information of the second device (such as version information, etc.), and the second device protocol information, etc., which can be set according to specific scenarios and are not limited herein.

[0096] In this embodiment, when the user has a need to share multimedia data from the first device to the second device, the first device can be approached or touched to the second device, so that the two NFC modules of the first device and the second device perform NFC communication. When detecting NFC communication with the second device, the NFC module of the first device can obtain the NFC interface data of the second device, such as NFC Tag data.

[0097] In step 12, a data sharing path is established with the second device according to the NFC interface data.

[0098] In one embodiment, the first device may establish a data sharing path with the second device according to the NFC interface data. See Figure 2 , including steps 21 to 24.

[0099] In step 21, the first device may obtain the tag information in the NFC interface data.

[0100] In this step, the first device may parse the NFC interface data to obtain the tag information in the NFC interface data.

[0101] In step 22, the first device may distribute the NFC interface data according to the tag information.

[0102] In this step, the native tag scheduling system in the first device may distribute the NFC interface data to the NFC message distribution service according to the above tag information.

[0103] In step 23, the first device may send a broadcast message to the target application according to the action data in the NFC interface data.

[0104] In this step, the NFC message distribution service of the first device may be responsible for dynamically registering applications and recording the registered applications. It can be understood that the application has passed the protocol SDK security verification when dynamically registering with the NFC message distribution service. The content of the security verification will not be elaborated here.

[0105] In this step, the NFC message distribution service of the first device may parse the NFC interface data and obtain the action data (action field) from the payload data of the NFC interface data. The action data (action field) represents the action types supported by the second device, such as sharing data, audio playback, video playback, displaying text, etc., which can be set according to the specific scenario. For example, when the second device is a tablet or a large-size display screen, it may support audio and / or video playback, as well as displaying files. Another example is that when the second device is a smart speaker, it may support audio playback. Another example is that when the second device is a camera, it supports receiving text, that is, control instructions and executing the control instructions. For example, the control instructions may instruct the second device to record a video or take a picture.

[0106] In this step, after parsing the NFC interface data, the NFC message distribution service of the first device may broadcast the NFC interface data to the target application in an orderly manner. The above target application is one of the programs that have been dynamically registered with the NFC message distribution service.

[0107] In step 24, in response to an application program that logs in to the same account in the second device, the first device may establish a data sharing path with the second device according to the communication method in the NFC interface data.

[0108] In this step, the target application program may perform discovery and authentication processing on the same local area network based on the physical address of the second device to discover the second device that is in the same local area network as the first device. When the second device is discovered in the same local area network, the first device may perform the same account security check with the second device, that is, determine whether the target application program of the first device and the application program of the second device log in with the same account. When the target application program and the application program that logs in to the same account in the second device, the first device may establish a data sharing path with the second device according to the communication method in the NFC interface data (such as Bluetooth communication, WiFi communication, or peer-to-peer P2P communication, etc.). For example, the first device may establish a long local area network connection with the second device using the physical address of the second device as the data sharing path.

[0109] In an embodiment, the first device may establish a data sharing path with the second device according to the NFC interface data, see Figure 3 , including steps 31 to 33.

[0110] In step 31, obtain the protocol information in the NFC interface data.

[0111] In this step, the first device may obtain the protocol information in the NFC interface data. For example, the native tag scheduling system in the first device may distribute the NFC interface data to the NFC message distribution service according to the above tag information. The NFC message distribution service or data parsing service of the first device may parse the NFC interface data and parse out the protocol information from the NFC interface data. It can be understood that the protocol information may include a public protocol or a private protocol. And parsing the protocol information may include extracting corresponding fields from the NFC interface data and combining them into protocol format data, and may also perform security verification on the protocol information in the above protocol format, and finally obtain the protocol information in the NFC interface data.

[0112] In step 32, process the protocol information to obtain a control instruction; the control instruction includes device information of the second device and control operation information.

[0113] In this step, the first device can process the above protocol information to obtain a control instruction corresponding to the protocol information. In one example, the above control instruction includes the device information and control operation information of the second device, that is, the control instruction is to instruct the second device to perform corresponding actions according to the control operation information. For example, when the second device is a smart speaker, the above control instruction can instruct the smart speaker to play the shared audio. Another example is that when the second device is a camera, the above control instruction can instruct the camera to record a video or take a picture. Still another example is that when the second device is a tablet computer or a large-size display screen, the above control instruction can instruct the tablet computer or the large-size display screen to play multimedia data. In other words, the protocol information in the second device can be used to describe the control operation information supported by the second device, such as the control type and the executed actions.

[0114] In step 33, establish the same local area network link path with the second device according to the device information as the data sharing path.

[0115] In this step, the first device can establish the same local area network link path with the second device according to the device information as the data sharing path. Among them, the method of establishing the data sharing path in step 33 can refer to the content of the solution shown in step 24 and will not be elaborated here.

[0116] It can be understood that in this example, by presetting the protocol information in the second device, the first device can generate control instructions based on different protocol information to share data with the second device or control the second device, which can solve the problem of incompatible communication protocols between devices and ensure the security and reliability of communication.

[0117] In step 13, share the multimedia data to the second device based on the data sharing path.

[0118] In one example, the first device can share the multimedia data to the second device based on the data sharing path, see Figure 4 , including steps 41 to 43.

[0119] In step 41, determine the multimedia data to be shared.

[0120] In this step, the first device can determine the multimedia data to be shared. For example, the first device can obtain the configuration status of the target application; the configuration status includes: a data sharing status or a default status. Among them, the data sharing status refers to the status where the target application allows the multimedia data currently in use to be shared with the second device. The default status refers to the status where the target application does not allow the multimedia data currently in use to be shared with the second device but shares the current screen display content, or the target application is in the background state and shares the current screen display content. When it is detected that the above configuration status is the data sharing status, the first device can use the multimedia data used by the target application as the multimedia data to be shared. When it is detected that the above configuration status is the default status, the first device can use the current screen display content as the multimedia data to be shared.

[0121] In one example, when it is detected that the above configuration status is the default status, the current screen display content may refer to an image file after taking a screenshot of the screen, so as to ensure that the first device and the second device display the same content. Or, the current screen display content refers to the original data of the displayed content. For example, a user is editing an image and obtains temporary data of the image; at this time, the first device can use the original data of the image as the multimedia data to be shared, which is suitable for the user to view the image on the second device while performing editing processing on the first device. Or, the current screen display content includes the temporary data and operation data of the displayed content. For example, a user operates the first device to edit an image to obtain an image, and the first device can obtain the temporary data and operation data obtained by editing the image (such as cropping, adding text, beautifying, adjusting brightness, etc.) as the current screen display content, that is, the multimedia data to be shared. In one example, the second device can also perform visualization processing on the operation data. For example, while displaying the image, a mark is generated to replace the user's hand and imitate the operation of the user's hand, so as to facilitate observing the operation process of the user on the first device on the second device.

[0122] It can be understood that in this step, the first device can adaptively match the multimedia data through the configuration status, select the shared data type that matches the first device and / or the second device, and reduce the number of user interactions.

[0123] In step 42, process the multimedia data according to the protocol format of the target application to obtain protocol data.

[0124] In this step, the first device can process the multimedia data according to the protocol format of the target application to obtain protocol data, and send it to the protocol service of the target application. The solutions for the first device to process multimedia data according to the protocol format may include, but are not limited to: operations such as grouping, packaging, and adding a header to the multimedia data, and the content of the processing operations can be adjusted according to the protocol format, which will not be elaborated here.

[0125] In step 43, the first device can send the protocol data to the second device through the data sharing path.

[0126] In this step, the first device can send the protocol data to the second device through the data sharing path, achieving the effect of sharing the current multimedia data of the target application or the current screen display content of the first device with the second device.

[0127] In one example, the first device can share multimedia data to the second device based on the data sharing path. Refer to Figure 5 , including steps 51 to 53.

[0128] In step 51, obtain multimedia data that matches the control operation information.

[0129] In this step, the first device can obtain multimedia data that matches the control operation information. For example, when the second device is a tablet computer or a large-sized display screen, the audio and / or video currently played on the first device, as well as display files, etc. are used as the matching multimedia data. Another example is when the second device is a smart speaker, the audio currently played on the first device is used as the multimedia data. Another example is when the second device is a camera, the image currently displayed on the first device or the current display page is used as the multimedia data. Again, the first device can also use the control operation information itself as the multimedia data.

[0130] It can be understood that when the control operation information is used as the multimedia data, the second device parses the multimedia data to obtain the control operation information, and then searches for matching multimedia data from the local history according to the control operation information, and also obtains the effect of sharing multimedia data. For example, when the second device is a tablet computer or a large-sized display screen, the second device can query the local historical play record when receiving the control operation information, and use the audio and / or video that has not been played in the historical play record as the shared multimedia data. Another example is when the second device is a smart speaker, the second device can use the audio in the local historical play list as the multimedia data. The second device can obtain multimedia data from the local according to the control operation information as the multimedia data shared by the first device.

[0131] In step 52, the multimedia data is processed according to the protocol format of the data sharing path to obtain protocol data.

[0132] In this step, the first device can process the multimedia data according to the protocol format of the data sharing path to obtain protocol data. Among them, the solutions for the first device to process multimedia data according to the protocol format may include, but are not limited to: processing operations such as grouping, packaging, and adding a packet header to the multimedia data, and the content of the processing operations can be adjusted according to the protocol format, which will not be elaborated here.

[0133] In step 53, the protocol data is sent to the second device through the data sharing path.

[0134] In this step, the first device can send the protocol data to the second device through the data sharing path, achieving the effect of sharing multimedia data with the second device. Or rather, the solution of this embodiment is that the first device controls the second device to execute the operation of processing multimedia data.

[0135] So far, the solution of this embodiment can share multimedia data with the second device after the first device approaches or touches the second device, without the need for manual configuration operations by the user, which is beneficial to improving the data sharing efficiency and enhancing the data sharing experience. Or, the solution of this embodiment can control the second device to execute the operation of processing multimedia data after the first device approaches or touches the second device, achieving the effect of controlling the second device without the need for manual configuration operations by the user, which is beneficial to improving the control efficiency.

[0136] The embodiment of the present disclosure also provides a data sharing method, which is executed by the second device. Refer to Figure 6 , including steps 61 to 63.

[0137] In step 61, when detecting NFC communication with the first device, the NFC interface data of the second device is sent to the first device.

[0138] In this step, the second device can establish NFC communication with the first device and send the NFC interface data of the NFC module to the first device.

[0139] In step 62, a data sharing path is established with the first device.

[0140] In this step, the second device can establish a data sharing path with the first device. The solution for establishing the data sharing path can refer to the content of step 12, which will not be elaborated here.

[0141] In step 63, the protocol data sent by the first device is obtained, and the protocol data is obtained by the first device processing the shared multimedia data according to the protocol format.

[0142] In this step, the protocol service of the second device can obtain the protocol data sent by the first device. Then, parse the above protocol data according to the protocol format and convert it into a control instruction to be sent to the application program, which can perform operations on processing multimedia data.

[0143] So far, the solution of this embodiment can obtain the multimedia data shared by the first device after the second device approaches or touches the first device, without the need for the user to manually configure the operation, which is beneficial to improving the data sharing efficiency and enhancing the data sharing experience. Or, receive a control instruction to perform an operation on processing multimedia data, achieving the effect of eliminating the need for the user to manually control the second device, which is beneficial to improving the control efficiency.

[0144] The following describes the process of a data sharing method provided by an embodiment of the present disclosure with reference to the accompanying drawings.

[0145] In an example, taking the first device as a smart phone and the second device as a tablet computer as an example, see Figure 7 , including:

[0146] 1. The NFC module (such as an NFC chip) of the smart phone touches the NFC module (such as an NTAG module) of the tablet computer. At this time, the NFC framework service (i.e., the Framework NFC service) of the smart phone reads the NFC Tag data (i.e., the NFC interface data in the above embodiment). Among them, the NFC Tag data includes the physical address of the tablet computer (such as a Bluetooth address and / or a WiFi address) and the device information of the tablet computer. In this step, the physical address in the NFC module can be used for device security verification to ensure the security of data transmission.

[0147] 2. The NFC module distributes the NFC Tag data to the NFC message distribution service through the native tag scheduling system.

[0148] 3. The NFC message distribution service parses the Payload data of the NFC Tag data. First, parse the action field of the Payload data and send an ordered broadcast message to the application programs (i.e., the above-mentioned target application programs) that dynamically register the protocol SDK. The security of these application programs can be confirmed according to the platform signature. When the application program is in the data sharing state, the smart phone processes the multimedia data used by the application program into protocol data according to the protocol format and sends it to the protocol service. If there is no application consuming the broadcast message of the NFC message distribution, the target application program determines the default state. At this time, trigger the default protocol action and send the current screen display content of the smart phone as the multimedia data to be shared to the protocol service.

[0149] 4. The protocol service of the smart phone first conducts a security check for the same account with the tablet through the device security transmission service, and then sends the protocol data to the tablet.

[0150] 5. After receiving the protocol data, the protocol service of the tablet converts it into instructions and distributes them to the applications, and finally performs operations to process multimedia data.

[0151] In another example, taking the first device as a smart phone and the second device as a smart speaker, it includes:

[0152] The smart phone can touch the smart speaker through the NFC module to obtain the protocol data in the NFC module of the smart speaker. Then, the NFC data parsing service of the smart phone can convert the protocol data into control instructions; and send the above control instructions to the system function application (i.e., the target application) that supports the above control instructions. For example, if the above protocol data is related to the smart speaker, the above control instructions are passed to the audio projection service. After that, after receiving the control instructions, the system function application will trigger the automatic control of the smart speaker according to the device information in the control instructions. For example, the audio projection service shares the audio data being played on the smart phone with the smart speaker, so that the smart speaker plays the music in the smart phone. In this way, the solution of this example can achieve cross-device control, support multiple devices and multiple communication methods, especially reduce the limitations of the closed ecosystem, enhance the cooperation between devices, and can provide a unified control solution for the whole scene from home, vehicle to office environment, reduce the complexity that users need to use different applications or control methods, is conducive to reducing the cost of device management and maintenance, and meets the needs of different users.

[0153] In a data sharing method provided by the present disclosure, an embodiment of the present disclosure also provides a data sharing device. Refer to Figure 8 and the device includes:

[0154] An interface data acquisition module 81, configured to acquire the NFC interface data of the second device when detecting NFC communication with the second device;

[0155] A shared path establishment module 82, configured to establish a data sharing path with the second device according to the NFC interface data;

[0156] A multimedia data sharing module 83, configured to share multimedia data to the second device based on the data sharing path.

[0157] In an embodiment, the shared path establishment module includes:

[0158] A tag information acquisition sub-module, configured to acquire the tag information in the NFC interface data;

[0159] An interface data distribution sub-module, configured to distribute the NFC interface data according to the label information;

[0160] An action data distribution sub-module, configured to send a broadcast message to a target application according to the action data of the NFC interface data;

[0161] A shared path establishment sub-module, configured to, in response to an application that logs in to the same account in the second device, establish a data sharing path with the second device according to the communication method in the NFC interface data.

[0162] In one embodiment, the multimedia data sharing module includes:

[0163] A multimedia data determination sub-module, configured to determine multimedia data to be shared;

[0164] A protocol data acquisition sub-module, configured to process the multimedia data according to the protocol format of a target application to obtain protocol data;

[0165] A protocol data sharing sub-module, configured to send the protocol data to the second device through the data sharing path.

[0166] In one embodiment, the multimedia data determination sub-module includes:

[0167] A configuration status acquisition unit, configured to acquire the configuration status of the target application; the configuration status includes: a data sharing status or a default status;

[0168] A multimedia data acquisition unit, configured to, in response to the configuration status being the data sharing status, use the multimedia data used by the target application as the multimedia data to be shared;

[0169] The multimedia data acquisition unit is further configured to, in response to the configuration status being the default status, use the current screen display content of the first device as the multimedia data to be shared.

[0170] In one embodiment, the shared path establishment module includes:

[0171] A protocol information acquisition sub-module, configured to acquire the protocol information in the NFC interface data;

[0172] A control instruction acquisition sub-module, configured to process the protocol information to obtain a control instruction; the control instruction includes device information of the second device and control operation information;

[0173] A shared path establishment sub-module, configured to establish the same local area network link path with the second device according to the device information as the data sharing path.

[0174] In one embodiment, the multimedia data sharing module includes:

[0175] A multimedia data acquisition sub-module, configured to acquire multimedia data that matches the control operation information;

[0176] A protocol data acquisition sub-module, configured to process the multimedia data according to the protocol format of the data sharing path to obtain protocol data;

[0177] A protocol data sharing sub-module, configured to send the protocol data to the second device through the data sharing path.

[0178] In a data sharing method provided by the present disclosure, an embodiment of the present disclosure further provides a data sharing device, and the device includes:

[0179] An interface data sending module, configured to send the NFC interface data of the second device to the first device when detecting NFC communication with the first device;

[0180] A sharing path establishment module, configured to establish a data sharing path with the first device;

[0181] A protocol data acquisition module, configured to acquire the protocol data sent by the first device, where the protocol data is obtained by the first device processing the shared multimedia data according to the protocol format.

[0182] In one embodiment, the device further includes:

[0183] A protocol data parsing module, configured to parse the protocol data to obtain the multimedia data;

[0184] A multimedia data execution module, configured to execute an operation that matches the multimedia data.

[0185] It should be noted that the device embodiment shown in this embodiment matches the content of the above method embodiment, and reference can be made to the content of the above method embodiment, which will not be elaborated here.

[0186] Figure 9 is a block diagram of an electronic device shown according to an exemplary embodiment. The electronic device may be the above-mentioned first device and / or second device. For example, the electronic device 900 may be a smart phone, a computer, a digital broadcast terminal, a tablet device, a medical device, a fitness device, a personal digital assistant, etc. The electronic device may be used as the above-mentioned first device or second device.

[0187] Refer to Figure 9, the electronic device 900 may include one or more of the following components: a processing component 902, a memory 904, a power supply component 906, a multimedia component 908, an audio component 910, an input / output (I / O) interface 912, a sensor component 914, a communication component 916, and an image acquisition component 918.

[0188] The processing component 902 generally controls the overall operation of the electronic device 900, such as operations associated with display, telephone calls, data communication, camera operations, and recording operations. The processing component 902 may include one or more processors 920 to execute computer programs. In addition, the processing component 902 may include one or more modules to facilitate the interaction between the processing component 902 and other components. For example, the processing component 902 may include a multimedia module to facilitate the interaction between the multimedia component 908 and the processing component 902. In one example, the processor 920 may implement the solution of the above method.

[0189] The memory 904 is configured to store various types of data to support the operation of the electronic device 900. Examples of such data include computer programs for any application or method operating on the electronic device 900, contact data, phone book data, messages, pictures, videos, and the like. The memory 904 may be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, a magnetic disk, or an optical disk.

[0190] The power supply component 906 provides power to various components of the electronic device 900. The power supply component 906 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the electronic device 900. The power supply component 906 may include a power chip, and the controller can communicate with the power chip to control the power chip to turn on or off the first switching device, so that the battery supplies power to the main board circuit or not.

[0191] The multimedia component 908 includes a screen that provides an output interface between the electronic device 900 and a target object. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input information from the target object. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensors can not only sense the boundaries of touch or swipe actions, but also detect the duration and pressure associated with the touch or swipe operations.

[0192] The audio component 910 is configured to output and / or input audio file information. For example, the audio component 910 includes a microphone (MIC), which is configured to receive external audio file information when the electronic device 900 is in an operation mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio file information can be further stored in the memory 904 or sent via the communication component 916. In some embodiments, the audio component 910 further includes a speaker for outputting audio file information.

[0193] The I / O interface 912 provides an interface between the processing component 902 and a peripheral interface module, which may be a keyboard, a click wheel, buttons, etc.

[0194] The sensor component 914 includes one or more sensors for providing an assessment of various aspects of the status of the electronic device 900. For example, the sensor component 914 can detect the on / off state of the electronic device 900, the relative positioning of components, such as the display screen and keypad of the electronic device 900. The sensor component 914 can also detect a change in the position of the electronic device 900 or a component, the presence or absence of contact of a target object with the electronic device 900, the orientation or acceleration / deceleration of the electronic device 900, and a change in the temperature of the electronic device 900. In this example, the sensor component 914 can include a magnetic sensor, a gyroscope, and a magnetic field sensor, and can also include an inertial sensor, an image sensor, etc. The magnetic field sensor includes at least one of the following: a Hall sensor, a thin film magnetoresistive sensor, and a magnetic fluid acceleration sensor.

[0195] The communication component 916 is configured to facilitate communication between the electronic device 900 and other devices in a wired or wireless manner. The electronic device 900 can access a wireless network based on a communication standard, such as WiFi, 2G, 3G, 4G, 5G, or a combination thereof. In an exemplary embodiment, the communication component 916 receives broadcast information or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 916 further includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.

[0196] In an exemplary embodiment, the electronic device 900 can be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components.

[0197] In an exemplary embodiment, the embodiments of the present disclosure also provide a non-transitory computer-readable storage medium. When the executable computer program in the storage medium is executed by a processor, the above-described method can be implemented.

[0198] Those skilled in the art will readily conceive of other embodiments of the present disclosure after considering the specification and practicing the disclosure herein. The present disclosure is intended to cover any variations, uses, or adaptations of the disclosure, which follow the general principles of the present disclosure and include known common knowledge or conventional technical means in the technical field not disclosed by the present disclosure. The specification and examples are only regarded as exemplary, and the true scope and spirit of the present disclosure are pointed out by the following claims.

[0199] It should be understood that the present disclosure is not limited to the exact structures already described and shown in the drawings, and various modifications and changes can be made without departing from its scope. The scope of the present disclosure is only limited by the appended claims.

Claims

1. A data sharing method, characterized in that, applied to a first device, the method includes: When detecting NFC communication with a second device, obtain the NFC interface data of the second device; Establish a data sharing path with the second device according to the NFC interface data; Share multimedia data to the second device based on the data sharing path.

2. The method according to claim 1, characterized in that, Establishing a data sharing path with the second device according to the NFC interface data includes: Obtain the tag information in the NFC interface data; Distribute the NFC interface data according to the tag information; Send a broadcast message to the target application according to the action data of the NFC interface data; In response to the application program logged in with the same account in the second device, establish a data sharing path with the second device according to the communication method in the NFC interface data.

3. The method according to claim 1, characterized in that, Sharing multimedia data to the second device based on the data sharing path includes: Determine the multimedia data to be shared; Process the multimedia data according to the protocol format of the target application to obtain protocol data; Send the protocol data to the second device through the data sharing path.

4. The method according to claim 3, characterized in that, Determining the multimedia data to be shared includes: Obtain the configuration status of the target application; the configuration status includes: data sharing status or default status; In response to the configuration status being the data sharing status, use the multimedia data used by the target application as the multimedia data to be shared; In response to the configuration status being the default status, use the current screen display content of the first device as the multimedia data to be shared.

5. The method according to claim 1, characterized in that, Establishing a data sharing path with the second device according to the NFC interface data includes: Obtain the protocol information in the NFC interface data; Process the protocol information to obtain a control instruction; the control instruction includes the device information of the second device and control operation information; Establish the same local area network link path with the second device according to the device information as the data sharing path.

6. The method according to claim 5, characterized in that, Sharing multimedia data to the second device based on the data sharing path includes: Obtain the multimedia data matching the control operation information; Process the multimedia data according to the protocol format of the data sharing path to obtain protocol data; Send the protocol data to the second device through the data sharing path.

7. A data sharing method, characterized in that, applied to a second device, the method includes: When detecting NFC communication with a first device, send the NFC interface data of the second device to the first device; Establish a data sharing path with the first device; Obtain the protocol data sent by the first device, and the protocol data is obtained by the first device processing the shared multimedia data according to the protocol format.

8. The method according to claim 7, It is characterized in that The method further includes: Analyzing the protocol data to obtain the multimedia data; Performing an operation matching the multimedia data.

9. A data sharing device It is characterized in that Applied to the first device, the device includes: An interface data acquisition module, configured to acquire the NFC interface data of the second device when detecting NFC communication with the second device; A shared path establishment module, configured to establish a data sharing path with the second device according to the NFC interface data; A multimedia data sharing module, configured to share multimedia data to the second device based on the data sharing path.

10. The device according to claim 9 It is characterized in that The shared path establishment module includes: A tag information acquisition sub-module, configured to acquire the tag information in the NFC interface data; An interface data distribution sub-module, configured to distribute the NFC interface data according to the tag information; An action data distribution sub-module, configured to send a broadcast message to a target application according to the action data of the NFC interface data; A shared path establishment sub-module, configured to respond to an application that logs in to the same account in the second device, and establish a data sharing path with the second device according to the communication method in the NFC interface data.

11. The device according to claim 9 It is characterized in that The multimedia data sharing module includes: A multimedia data determination sub-module, configured to determine the multimedia data to be shared; A protocol data acquisition sub-module, configured to process the multimedia data according to the protocol format of the target application to obtain protocol data; A protocol data sharing sub-module, configured to send the protocol data to the second device through the data sharing path.

12. The device according to claim 11 It is characterized in that The multimedia data determination sub-module includes: A configuration status acquisition unit, configured to acquire the configuration status of the target application; the configuration status includes: a data sharing status or a default status; A multimedia data acquisition unit, configured to, in response to the configuration status being the data sharing status, use the multimedia data used by the target application as the multimedia data to be shared; A multimedia data acquisition unit, further configured to, in response to the configuration status being the default status, use the current screen display content of the first device as the multimedia data to be shared.

13. The device according to claim 9 It is characterized in that The shared path establishment module includes: A protocol information acquisition sub-module, configured to acquire the protocol information in the NFC interface data; A control instruction acquisition sub-module, configured to process the protocol information to obtain a control instruction; the control instruction includes device information of the second device and control operation information; A shared path establishment sub-module, configured to establish the same local area network link path with the second device according to the device information as the data sharing path.

14. The device according to claim 13 It is characterized in that The multimedia data sharing module includes: A multimedia data acquisition sub-module, configured to acquire multimedia data matching the control operation information; A protocol data acquisition sub-module, configured to process the multimedia data according to the protocol format of the data sharing path to obtain protocol data; A protocol data sharing sub-module, configured to send the protocol data to the second device through the data sharing path.

15. A data sharing device, characterized in that, applied to a second device, the device includes: An interface data sending module, configured to send the NFC interface data of the second device to the first device when detecting NFC communication with the first device; A shared path establishing module, configured to establish a data sharing path with the first device; A protocol data acquisition module, configured to acquire the protocol data sent by the first device, where the protocol data is obtained by the first device processing the shared multimedia data according to the protocol format.

16. The device according to claim 15, characterized in that, the device further includes: A protocol data parsing module, configured to parse the protocol data to obtain the multimedia data; A multimedia data execution module, configured to execute an operation matching the multimedia data.

17. A first device, characterized in that, including: A processor and a memory; The memory is used to store a computer program executable by the processor; wherein, the processor is configured to execute the computer program in the memory to implement the method according to any one of claims 1 to 6.

18. A second device, characterized in that, including: A processor and a memory; The memory is used to store a computer program executable by the processor; wherein, the processor is configured to execute the computer program in the memory to implement the method according to claim 7 or 8.

19. A non-transitory computer-readable storage medium, characterized in that, when the executable computer program in the storage medium is executed by a processor, it can implement the method according to any one of claims 1 to 6 or 7 to 8.