[go: up one dir, main page]

CN106211033A - Data sharing method, device and electronic equipment - Google Patents

Data sharing method, device and electronic equipment Download PDF

Info

Publication number
CN106211033A
CN106211033A CN201610491490.9A CN201610491490A CN106211033A CN 106211033 A CN106211033 A CN 106211033A CN 201610491490 A CN201610491490 A CN 201610491490A CN 106211033 A CN106211033 A CN 106211033A
Authority
CN
China
Prior art keywords
wireless communication
sharing
target device
data
data sharing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201610491490.9A
Other languages
Chinese (zh)
Inventor
余洋
张旭
孙铭泽
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Millet Payment Technology Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201610491490.9A priority Critical patent/CN106211033A/en
Publication of CN106211033A publication Critical patent/CN106211033A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The disclosure is directed to data sharing method, device and electronic equipment, described method includes: detect for data when sharing instruction, it is provided that data sharing interface, described data sharing interface is provided with and based on the short distance wireless communication technology shares option;It is triggered in response to described option of sharing, sets up wireless near field communication link with the target device in predeterminable range, give described target device by described wireless near field communication link by described data sharing.Disclosure embodiment can substantially reduce user operation, and overall flow is less, and data sharing efficiency is higher, and convenience is preferable.

Description

数据分享方法、装置及电子设备Data sharing method, device and electronic equipment

技术领域technical field

本申请涉及通信技术领域,尤其涉及数据分享方法、装置及电子设备。The present application relates to the technical field of communication, and in particular to a data sharing method, device and electronic equipment.

背景技术Background technique

随着移动通信技术的快速发展,电子设备的功能越来越丰富。用户可以利用电子设备将分享图片、视频或文件等数据分享给其他用户。例如,用户可以通过社交应用的好友分享功能分享数据,或者是基于WiFi技术将数据分享给接入同一无线网络的其他用户等。With the rapid development of mobile communication technology, electronic devices have more and more functions. Users can use electronic devices to share data such as pictures, videos or files with other users. For example, a user may share data through a friend sharing function of a social application, or share data with other users connected to the same wireless network based on WiFi technology.

发明内容Contents of the invention

为克服相关技术中存在的问题,本公开提供了数据分享方法、装置及电子设备。In order to overcome the problems existing in related technologies, the present disclosure provides a data sharing method, device and electronic equipment.

根据本公开实施例的第一方面,提供一种数据分享方法,应用于电子设备中,所述方法包括:According to the first aspect of the embodiments of the present disclosure, there is provided a data sharing method applied to an electronic device, the method comprising:

检测到针对数据的分享指令时,提供数据分享界面,所述数据分享界面中提供有基于近距离无线通信技术的分享选项;When a sharing command for the data is detected, a data sharing interface is provided, and a sharing option based on short-range wireless communication technology is provided in the data sharing interface;

响应于所述分享选项被触发,与预设距离内的目标设备建立近距离无线通信链路,通过所述近距离无线通信链路将所述数据分享给所述目标设备。In response to the sharing option being triggered, a short-range wireless communication link is established with a target device within a preset distance, and the data is shared with the target device through the short-range wireless communication link.

可选的,所述与预设距离内的目标设备建立近距离无线通信链路,包括:Optionally, the establishment of a short-range wireless communication link with a target device within a preset distance includes:

通过电子设备内置的近距离无线通信模块与预设距离内的目标设备建立近距离无线通信链路,其中,所述近距离无线通信模块在预设的数据分享应用运行后被自动控制为运行状态。A short-range wireless communication link is established with a target device within a preset distance through a built-in short-range wireless communication module of the electronic device, wherein the short-range wireless communication module is automatically controlled into an operating state after a preset data sharing application is run. .

可选的,所述与预设距离内的目标设备建立近距离无线通信链路,包括:Optionally, the establishment of a short-range wireless communication link with a target device within a preset distance includes:

通过电子设备内置的近距离无线通信模块与预设距离内的目标设备建立近距离无线通信链路,其中,所述近距离无线通信模块在电子设备启动后被自动控制为运行状态。A short-range wireless communication link is established with a target device within a preset distance through a built-in short-range wireless communication module in the electronic device, wherein the short-range wireless communication module is automatically controlled into an operating state after the electronic device is started.

可选的,所述与预设距离内的目标设备建立近距离无线通信链路,包括:Optionally, the establishment of a short-range wireless communication link with a target device within a preset distance includes:

在电子设备内置的近距离无线通信模块运行后,通过近距离无线通信模块所产生的无线射频磁场检测预设距离内启动近距离无线通信的目标设备,与所述目标设备建立近距离无线通信链路。After the built-in short-range wireless communication module of the electronic device is running, the target device that starts short-range wireless communication within a preset distance is detected through the radio frequency magnetic field generated by the short-range wireless communication module, and a short-range wireless communication link is established with the target device road.

可选的,所述将所述数据分享给目标设备,包括:Optionally, the sharing the data with the target device includes:

将所述数据封装为数据包发送给所述目标设备,所述数据包携带有程序标识,所述程序标识用于指示打开所述数据的程序Encapsulate the data into a data packet and send it to the target device, the data packet carries a program identifier, and the program identifier is used to indicate the program that opens the data

根据本公开实施例的第二方面,提供一种数据分享装置,包括:According to a second aspect of an embodiment of the present disclosure, a data sharing device is provided, including:

检测模块,被配置为检测到针对数据的分享指令时,提供数据分享界面,所述数据分享界面中提供有基于近距离无线通信技术的分享选项;The detection module is configured to provide a data sharing interface when a sharing instruction for data is detected, and the data sharing interface provides sharing options based on short-range wireless communication technology;

分享模块,被配置为响应于所述分享选项被触发,与预设距离内的目标设备建立近距离无线通信链路,通过所述近距离无线通信链路将所述数据分享给所述目标设备。A sharing module configured to, in response to the sharing option being triggered, establish a short-range wireless communication link with a target device within a preset distance, and share the data with the target device through the short-range wireless communication link .

可选的,所述分享模块,包括:Optionally, the sharing module includes:

第一控制子模块,被配置为通过电子设备内置的近距离无线通信模块与预设距离内的目标设备建立近距离无线通信链路,其中,所述近距离无线通信模块在预设的数据分享应用运行后被自动控制为运行状态。The first control submodule is configured to establish a short-range wireless communication link with a target device within a preset distance through a short-range wireless communication module built in the electronic device, wherein the short-range wireless communication module After the application is running, it is automatically controlled to be in the running state.

可选的,所述分享模块,包括:Optionally, the sharing module includes:

第二控制子模块,被配置为通过电子设备内置的近距离无线通信模块与预设距离内的目标设备建立近距离无线通信链路,其中,所述近距离无线通信模块在电子设备启动后被自动控制为运行状态。The second control submodule is configured to establish a short-range wireless communication link with a target device within a preset distance through a short-range wireless communication module built in the electronic device, wherein the short-range wireless communication module is activated after the electronic device is started. Automatic control is running.

可选的,所述分享模块,包括:Optionally, the sharing module includes:

检测子模块,被配置为在电子设备内置的近距离无线通信模块运行后,通过近距离无线通信模块所产生的无线射频磁场检测预设距离内启动近距离无线通信的目标设备,与所述目标设备建立近距离无线通信链路。The detection sub-module is configured to detect the target device that starts the short-range wireless communication within a preset distance through the wireless radio frequency magnetic field generated by the short-range wireless communication module after the short-range wireless communication module built in the electronic device is in operation, and to communicate with the target The device establishes a short-range wireless communication link.

可选的,所述分享模块,包括:Optionally, the sharing module includes:

发送子模块,被配置为将所述数据封装为数据包发送给所述目标设备,所述数据包携带有程序标识,所述程序标识用于指示打开所述数据的程序The sending submodule is configured to encapsulate the data into a data packet and send it to the target device, the data packet carries a program identification, and the program identification is used to indicate the program that opens the data

根据本公开实施例的第三方面,提供一种电子设备,包括:According to a third aspect of the embodiments of the present disclosure, there is provided an electronic device, including:

处理器;processor;

用于存储处理器可执行指令的存储器;memory for storing processor-executable instructions;

其中,所述处理器被配置为:Wherein, the processor is configured as:

检测到针对数据的分享指令时,提供数据分享界面,所述数据分享界面中提供有基于近距离无线通信技术的分享选项;When a sharing command for the data is detected, a data sharing interface is provided, and a sharing option based on short-range wireless communication technology is provided in the data sharing interface;

响应于所述分享选项被触发,与预设距离内的目标设备建立近距离无线通信链路,通过所述近距离无线通信链路将所述数据分享给所述目标设备。In response to the sharing option being triggered, a short-range wireless communication link is established with a target device within a preset distance, and the data is shared with the target device through the short-range wireless communication link.

本公开的实施例提供的技术方案可以包括以下有益效果:The technical solutions provided by the embodiments of the present disclosure may include the following beneficial effects:

本公开可以为用户提供基于近距离无线通信技术的分享方式,采用近距离无线通信进行数据分享时,只需数据分享双方的电子设备相互靠近时即可自动配对,因此可以显著减少用户操作,整体流程较少,数据分享效率较高,便捷性较好。This disclosure can provide users with a sharing method based on short-range wireless communication technology. When short-range wireless communication is used for data sharing, only when the electronic devices of the data sharing parties are close to each other can they be automatically paired, so user operations can be significantly reduced, and the overall The process is less, the data sharing efficiency is higher, and the convenience is better.

本公开中,由于近距离无线通信模块在预设的数据分享应用运行后被自动控制为运行状态,因此用户在需要进行数据分享时无须手动操作启动NFC功能,能减少数据分享处理操作,给用户带来了便利;同时NFC功能无需长期开启,能减少电子设备的电量和资源损耗。In this disclosure, since the short-distance wireless communication module is automatically controlled to be in the running state after the preset data sharing application is running, the user does not need to manually start the NFC function when data sharing is required, which can reduce data sharing processing operations and provide users with It brings convenience; at the same time, the NFC function does not need to be turned on for a long time, which can reduce the power consumption and resource consumption of electronic devices.

本公开中,由于近距离无线通信模块在电子设备启动后被自动控制为运行状态,因此用户在需要进行数据分享时无须手动操作启动NFC功能,能减少数据分享处理操作,给用户带来了便利。In this disclosure, since the short-distance wireless communication module is automatically controlled to be in the running state after the electronic device is started, the user does not need to manually start the NFC function when data sharing is required, which can reduce data sharing processing operations and bring convenience to the user .

本公开中,近距离无线通信模块能产生的无线射频磁场,能自动检测预设距离内启动近距离无线通信的目标设备并快速进行配对,数据分享效率较高。In the present disclosure, the wireless radio frequency magnetic field that can be generated by the short-range wireless communication module can automatically detect target devices that start short-range wireless communication within a preset distance and quickly perform pairing, and the data sharing efficiency is high.

本公开中,由于数据包携带有程序标识,在该程序标识的指示下,目标设备可以快速地调用相应程序以打开该数据。In the present disclosure, since the data packet carries the program identifier, under the instruction of the program identifier, the target device can quickly invoke the corresponding program to open the data.

应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本公开。It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure.

附图说明Description of drawings

此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本公开的实施例,并与说明书一起用于解释本公开的原理。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description serve to explain the principles of the disclosure.

图1是相关技术中利用蓝牙技术进行数据分享的示意图。FIG. 1 is a schematic diagram of data sharing using Bluetooth technology in the related art.

图2A是本公开根据一示例性实施例示出的一种数据分享方法的流程示意图。Fig. 2A is a schematic flowchart of a data sharing method according to an exemplary embodiment of the present disclosure.

图2B是本公开根据一示例性实施例示出的一种数据分享方法的处理示意图。Fig. 2B is a schematic diagram of a data sharing method according to an exemplary embodiment of the present disclosure.

图3是本公开根据一示例性实施例示出的一种数据分享装置的框图。Fig. 3 is a block diagram of a data sharing device according to an exemplary embodiment of the present disclosure.

图4是本公开根据一示例性实施例示出的另一种数据分享装置的框图。Fig. 4 is a block diagram of another data sharing device according to an exemplary embodiment of the present disclosure.

图5是本公开根据一示例性实施例示出的另一种数据分享装置的框图。Fig. 5 is a block diagram of another data sharing device according to an exemplary embodiment of the present disclosure.

图6是本公开根据一示例性实施例示出的另一种数据分享装置的框图。Fig. 6 is a block diagram of another data sharing device according to an exemplary embodiment of the present disclosure.

图7是本公开根据一示例性实施例示出的另一种数据分享装置的框图。Fig. 7 is a block diagram of another data sharing device according to an exemplary embodiment of the present disclosure.

图8是本公开根据一示例性实施例示出的一种用于数据分享装置的框图。Fig. 8 is a block diagram of a data sharing device according to an exemplary embodiment of the present disclosure.

具体实施方式detailed description

这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本公开相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本公开的一些方面相一致的装置和方法的例子。Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatuses and methods consistent with aspects of the present disclosure as recited in the appended claims.

在本公开使用的术语是仅仅出于描述特定实施例的目的,而非旨在限制本公开。在本公开和所附权利要求书中所使用的单数形式的“一种”、“所述”和“该”也旨在包括多数形式,除非上下文清楚地表示其他含义。还应当理解,本文中使用的术语“和/或”是指并包含一个或多个相关联的列出项目的任何或所有可能组合。The terminology used in the present disclosure is for the purpose of describing particular embodiments only, and is not intended to limit the present disclosure. As used in this disclosure and the appended claims, the singular forms "a", "the", and "the" are intended to include the plural forms as well, unless the context clearly dictates otherwise. It should also be understood that the term "and/or" as used herein refers to and includes any and all possible combinations of one or more of the associated listed items.

应当理解,尽管在本公开可能采用术语第一、第二、第三等来描述各种信息,但这些信息不应限于这些术语。这些术语仅用来将同一类型的信息彼此区分开。例如,在不脱离本公开范围的情况下,第一信息也可以被称为第二信息,类似地,第二信息也可以被称为第一信息。取决于语境,如在此所使用的词语“如果”可以被解释成为“在……时”或“当……时”或“响应于确定”。It should be understood that although the terms first, second, third, etc. may be used in the present disclosure to describe various information, the information should not be limited to these terms. These terms are only used to distinguish information of the same type from one another. For example, without departing from the scope of the present disclosure, first information may also be called second information, and similarly, second information may also be called first information. Depending on the context, the word "if" as used herein may be interpreted as "at" or "when" or "in response to a determination."

蓝牙(Bluetooth)是一种无线技术标准,可以让固定设备或移动设备在短距离间交换数据。相关技术中,可以通过蓝牙技术实现数据分享,该分享方式不需要电子设备连接WiFi(允许电子设备连接到一个无线局域网WLAN的技术)或移动网络,在一定范围内可点对点配对并高速传输完成分享。Bluetooth (Bluetooth) is a wireless technology standard that enables fixed or mobile devices to exchange data over short distances. In related technologies, data sharing can be realized through Bluetooth technology. This sharing method does not require electronic devices to connect to WiFi (a technology that allows electronic devices to connect to a wireless local area network WLAN) or a mobile network. It can be paired and shared at a high speed within a certain range. .

例如,图1所示是相关技术中利用蓝牙技术进行数据分享的示意图。图1中用户将一数据分享给其他用户,用户可以点击电子设备中提供的蓝牙分享选项,然后查找需分享的用户,向该待分享用户的电子设备发送配对请求,待分享用户的电子设备接收该配对请求,并同意配对后,两个电子设备建立配对,即可利用蓝牙方式分享数据。通常,由于蓝牙耗电量相对较高,用户通常会关闭蓝牙功能,因此在上述数据分享场景中,用户需进行开启蓝牙功能的操作,并且,还需手动搜寻配对设备,因此相关技术中利用蓝牙分享数据的方式过于繁琐,用户的手动操作过多,整体流程较长,数据分享效率较低,数据共享便捷性较弱。For example, FIG. 1 is a schematic diagram of data sharing using Bluetooth technology in the related art. In Figure 1, the user shares a piece of data with other users. The user can click on the Bluetooth sharing option provided in the electronic device, then find the user to be shared, and send a pairing request to the electronic device of the user to be shared, and the electronic device of the user to be shared receives the data. After the pairing request and the pairing agreement are agreed, the two electronic devices are paired, and then data can be shared by means of bluetooth. Usually, due to the relatively high power consumption of Bluetooth, the user usually turns off the Bluetooth function. Therefore, in the above-mentioned data sharing scenario, the user needs to perform the operation of turning on the Bluetooth function, and also needs to manually search for paired devices. The way of sharing data is too cumbersome, the user has too many manual operations, the overall process is long, the efficiency of data sharing is low, and the convenience of data sharing is weak.

本公开实施例所提供的方案,可以为用户提供基于近距离无线通信技术的分享方式,采用近距离无线通信进行数据分享时,只需数据分享双方的电子设备相互靠近时即可自动配对,因此可以显著减少用户操作,整体流程较少,数据分享效率较高,便捷性较好。接下来对本公开实施例进行详细说明。The solutions provided by the embodiments of the present disclosure can provide users with a sharing method based on short-range wireless communication technology. When short-range wireless communication is used for data sharing, only when the electronic devices of the data sharing parties are close to each other can they be automatically paired, so User operations can be significantly reduced, the overall process is less, the data sharing efficiency is higher, and the convenience is better. Next, the embodiments of the present disclosure will be described in detail.

请参阅图2A,是本公开根据一示例性实施例示出的一种数据分享方法的流程图,可应用于电子设备中,包括以下步骤201至202:Please refer to FIG. 2A, which is a flowchart of a data sharing method according to an exemplary embodiment of the present disclosure, which can be applied to electronic devices, and includes the following steps 201 to 202:

在步骤201中,检测到针对数据的分享指令时,提供数据分享界面,所述数据分享界面中提供有基于近距离无线通信技术的分享选项。In step 201, when a data sharing instruction is detected, a data sharing interface is provided, and a sharing option based on short-range wireless communication technology is provided in the data sharing interface.

在步骤202中,响应于所述分享选项被触发,与预设距离内的目标设备建立近距离无线通信链路,通过所述近距离无线通信链路将所述数据分享给所述目标设备。In step 202, in response to the sharing option being triggered, a short-range wireless communication link is established with a target device within a preset distance, and the data is shared with the target device through the short-range wireless communication link.

本公开实施例中,该电子设备可以是智能手机、电子书阅读器、个人计算机、随身听设备或平板电脑等智能电子设备。其中,该电子设备中可以具有近距离无线通信(NFC,Near Field Communication)功能,通常,电子设备可以内置一NFC模块以实现上述NFC功能。NFC是一种短距离的高频无线通信技术,允许电子设备之间进行非接触式点对点数据传输。In the embodiment of the present disclosure, the electronic device may be a smart electronic device such as a smart phone, an e-book reader, a personal computer, a walkman device, or a tablet computer. Wherein, the electronic device may have a near field communication (NFC, Near Field Communication) function, and generally, the electronic device may have a built-in NFC module to realize the above-mentioned NFC function. NFC is a short-range, high-frequency wireless communication technology that allows contactless point-to-point data transmission between electronic devices.

在本公开实施例中,数据可以是指安装在设备中的应用所提供的数据,例如相册应用中所提供的图片、音乐应用所提供的音频、阅读应用所提供的书籍或视频应用所提供的视频等多种类型的文件。针对数据的分享指令可以理解为:为了检测到用户对基于本公开的数据分享方案的需求,在终端内预定义的分享指令。该分享指令可以基于多种预设事件被触发而自动生成。例如,可以是在显示数据的界面上接收到点击事件、双击事件或长按事件等,或者是显示数据的界面上所提供的数据分享选项被触发,从而电子设备确定接收到分享指令,进而可以采用本公开的技术方案进行数据分享处理,否则可以不处理或按照相关技术中的方式进行处理。In the embodiments of the present disclosure, data may refer to data provided by applications installed in the device, such as pictures provided by the photo album application, audio provided by the music application, books provided by the reading application, or provided by the video application. Videos and other types of files. The sharing instruction for data can be understood as: a sharing instruction predefined in the terminal in order to detect the user's demand for the data sharing solution based on the present disclosure. The sharing instruction can be automatically generated based on triggering of various preset events. For example, it may be that a click event, a double-click event, or a long press event is received on the interface displaying data, or a data sharing option provided on the interface displaying data is triggered, so that the electronic device determines that a sharing instruction has been received, and then can Adopt the technical solution of the present disclosure to carry out data sharing processing, otherwise, it may not process or process according to the method in the related art.

当检测到针对数据的分享指令时,可以在设备屏幕上提供一数据分享界面,有别于相关技术中的蓝牙分享方式,本公开实施例所述提供的数据分享界面中提供有基于近距离无线通信技术的分享选项,用户可以通过单击、双击或长按等方式触发该基于NFC的分享选项。根据本公开实施例提供的方案,当该基于NFC的分享选项被用户触发,可以与预设距离内的目标设备建立近距离无线通信链路,通过所述近距离无线通信链路将所述数据分享给所述目标设备。由于基于NFC技术的数据分享过程中,数据分享双方只需要将设备相互靠近即可完成配对,在配对完成后,数据分享双方的电子设备可以基于内置的NFC模块建立通信链路,进而实现数据分享。相对于蓝牙分享,本公开实施例所提供的数据分享方案,用户无需进行选择配对设备的操作,从而可减少用户手动操作,提高数据分享效率。When a data sharing instruction is detected, a data sharing interface can be provided on the device screen, which is different from the Bluetooth sharing method in the related art. The data sharing interface provided in the embodiments of the present disclosure provides a short-distance wireless The sharing option of the communication technology, the user can trigger the sharing option based on NFC by single-clicking, double-clicking or long-pressing. According to the solutions provided by the embodiments of the present disclosure, when the NFC-based sharing option is triggered by the user, a short-range wireless communication link can be established with a target device within a preset distance, and the data can be transmitted through the short-range wireless communication link. Share to said target device. In the process of data sharing based on NFC technology, the data sharing parties only need to bring the devices close to each other to complete the pairing. After the pairing is completed, the electronic devices of the data sharing parties can establish a communication link based on the built-in NFC module to realize data sharing. . Compared with Bluetooth sharing, in the data sharing solution provided by the embodiments of the present disclosure, the user does not need to perform the operation of selecting a pairing device, thereby reducing the user's manual operations and improving the efficiency of data sharing.

参加图2B,为本公开实施例数据分享的处理示意图,图2B中包括一作为电子设备的智能手机1,一作为目标设备的智能手机2,用户A可以通过智能手机1向用户2分享数据。可以理解,图2B中的电子设备和目标设备仅以智能手机为例进行说明,在其他应用场景中,电子设备或目标设备还可以具体为电子书阅读器、平板电脑、智能手表或音乐播放设备等多种设备。Refer to FIG. 2B , which is a schematic diagram of the processing of data sharing in the embodiment of the present disclosure. FIG. 2B includes a smart phone 1 as an electronic device and a smart phone 2 as a target device. User A can share data with user 2 through the smart phone 1 . It can be understood that the electronic device and the target device in FIG. 2B are only illustrated by taking a smart phone as an example. In other application scenarios, the electronic device or the target device may also specifically be an e-book reader, a tablet computer, a smart watch or a music playback device. and other equipment.

在图2B所示实施例中,用户A可以在使用阅读应用阅读《时间简史》时,将所阅读的书籍分享给用户B。具体处理时,用户A可以在《时间简史》显示界面中触发该界面中所提供的书籍分享选项,电子设备通过该书籍分享选项检测到分享指令,在屏幕上显示一数据分享界面,该数据分享界面中提供有基于近距离无线通信技术的分享选项(即图中所示的“NFC分享”应用图标)。用户可以触发该NFC分享选项,电子设备在检测到NFC分享选项被触发,自动搜寻预设距离内的目标设备。由于用户B的智能手机2与智能手机1距离较近,智能手机1与智能手机2自动配对,并将该书籍自动分享给智能手机2。智能手机1在分享数据时,智能手机2可以基于所分享的数据,在智能手机2的屏幕上显示接收数据选项,当用户B通过该接收数据选项确认接收后,可以接收智能手机1所分享的数据,从而实现数据分享。In the embodiment shown in FIG. 2B , user A can share the read book with user B when reading "A Brief History of Time" using a reading application. During specific processing, user A can trigger the book sharing option provided in the interface of "A Brief History of Time", and the electronic device detects a sharing command through the book sharing option, and displays a data sharing interface on the screen. The sharing interface provides sharing options based on short-range wireless communication technology (that is, the "NFC sharing" application icon shown in the figure). The user can trigger the NFC sharing option, and the electronic device will automatically search for a target device within a preset distance after detecting that the NFC sharing option is triggered. Since the smart phone 2 of user B is relatively close to the smart phone 1, the smart phone 1 and the smart phone 2 are automatically paired, and the book is automatically shared with the smart phone 2. When smart phone 1 is sharing data, smart phone 2 can display the receiving data option on the screen of smart phone 2 based on the shared data. data for data sharing.

通常情况下,NFC功能的耗电极低,电子设备可以长期开启该功能,则用户在需要进行基于NFC的数据分享时,可以无需启动NFC功能,从而满足用户随时进行数据分享的需求。然而,实际应用中,用户也可能没有预先开启NFC功能,本公开实施例可以在满足预设条件下,自动控制电子设备开启NFC功能,从而使用户更方便地进行数据分享操作。Under normal circumstances, the power consumption of the NFC function is extremely low, and electronic devices can enable this function for a long time. When users need to share data based on NFC, they do not need to activate the NFC function, so as to meet the needs of users for data sharing at any time. However, in practical applications, the user may not enable the NFC function in advance, and the embodiments of the present disclosure can automatically control the electronic device to enable the NFC function under the preset conditions, so that the user can perform data sharing operations more conveniently.

在一个可选的实现方式中,所述与预设距离内的目标设备建立近距离无线通信链路,包括:In an optional implementation manner, the establishment of a short-range wireless communication link with a target device within a preset distance includes:

通过电子设备内置的近距离无线通信模块与预设距离内的目标设备建立近距离无线通信链路,其中,所述近距离无线通信模块在预设的数据分享应用运行后被自动控制为运行状态。A short-range wireless communication link is established with a target device within a preset distance through a built-in short-range wireless communication module of the electronic device, wherein the short-range wireless communication module is automatically controlled into an operating state after a preset data sharing application is run. .

本公开实施例中,电子设备中内置有一NFC模块,该NFC模块可以具体为一NFC芯片。当用户需进行数据分享时,用户的电子设备需开启NFC功能,也即是NFC模块需处于运行状态,之后可以利用NFC模块与目标设备的NFC模块建立近距离无线通信链路。为了更方便用户使用,本公开实施例的NFC模块在检测到预设的数据分享应用运行后被自动控制为运行状态。在实际应用中,作为一种实现方式中,电子设备可自动监测数据分享应用是否处于运行状态;在数据分享应用运行时,可自动控制NFC模块运行,以开启设备的NFC功能。在其他可选的实现方式中,也可以是数据分享应用在运行后输出NFC开启的指示消息,在该指示消息的控制下,电子设备控制NFC模块运行,以开启设备的NFC功能。In the embodiment of the present disclosure, an NFC module is built in the electronic device, and the NFC module may be specifically an NFC chip. When the user needs to share data, the user's electronic device needs to turn on the NFC function, that is, the NFC module needs to be in the running state, and then the NFC module can be used to establish a short-range wireless communication link with the NFC module of the target device. In order to be more convenient for users, the NFC module in the embodiment of the present disclosure is automatically controlled to be in the running state after detecting that the preset data sharing application is running. In practical applications, as an implementation, the electronic device can automatically monitor whether the data sharing application is running; when the data sharing application is running, it can automatically control the operation of the NFC module to enable the NFC function of the device. In other optional implementation manners, the data sharing application may also output an indication message for enabling NFC after running, and under the control of the indication message, the electronic device controls the operation of the NFC module to enable the NFC function of the device.

该预设的数据分享应用,可以是由用户预先设置的可进行数据分享的应用,例如音频应用、相册、视频应用或阅读应用等。电子设备可以提供一应用选择界面,该选择界面可以有一个或多个设备中已安装的应用,并可以对每个应用提供选择选项,通过该选择选项,可以将被用户选中的应用作为该预设的数据分享应用。电子设备可以在检测到该预设的数据分享应用运行时,自动控制NFC模块处于运行状态,则用户在需要对该数据分享应用所提供的数据进行分享时,无需手动操作启动NFC功能。在其他可选的实现方式中,数据分享应用还可以是由设备自动预先设置,技术人员在实施本公开实施例的方案时,可以预先指定部分应用作为该数据分享应用。The preset data sharing application may be an application preset by the user that can perform data sharing, such as an audio application, a photo album, a video application, or a reading application. The electronic device may provide an application selection interface, the selection interface may have one or more applications installed in the device, and may provide a selection option for each application, through the selection option, the application selected by the user may be used as the preset set data sharing application. When the electronic device detects that the preset data sharing application is running, it can automatically control the NFC module to be in the running state, so that when the user needs to share the data provided by the data sharing application, the user does not need to start the NFC function manually. In other optional implementation manners, the data sharing application may also be automatically preset by the device, and technicians may pre-designate some applications as the data sharing application when implementing the solutions of the embodiments of the present disclosure.

由上述实施例可见,由于近距离无线通信模块在检测到预设的数据分享应用运行后被自动控制为运行状态,因此用户在需要进行数据分享时无须手动操作启动NFC功能,能减少数据分享处理操作,给用户带来了便利;同时NFC功能无需长期开启,能减少电子设备的电量和资源损耗。It can be seen from the above embodiments that since the short-range wireless communication module is automatically controlled to the running state after detecting that the preset data sharing application is running, the user does not need to manually start the NFC function when data sharing is required, which can reduce data sharing processing. The operation brings convenience to users; at the same time, the NFC function does not need to be turned on for a long time, which can reduce the power consumption and resource consumption of electronic devices.

在另一个可选的实现方式中,所述与预设距离内的目标设备建立近距离无线通信链路,包括:In another optional implementation manner, the establishment of a short-range wireless communication link with a target device within a preset distance includes:

通过电子设备内置的近距离无线通信模块与预设距离内的目标设备建立近距离无线通信链路,其中,所述近距离无线通信模块在电子设备启动后被自动控制为运行状态。A short-range wireless communication link is established with a target device within a preset distance through a built-in short-range wireless communication module in the electronic device, wherein the short-range wireless communication module is automatically controlled into an operating state after the electronic device is started.

本公开实施例中,电子设备中内置有一NFC模块,该NFC模块可以具体为一NFC芯片。当用户需进行数据分享时,用户的电子设备需开启NFC功能,也即是NFC模块需处于运行状态,之后可以利用NFC模块与目标设备的NFC模块建立近距离无线通信链路。为了更方便用户使用,本公开实施例的NFC模块在电子设备上电启动后被自动控制为运行状态。In the embodiment of the present disclosure, an NFC module is built in the electronic device, and the NFC module may be specifically an NFC chip. When the user needs to share data, the user's electronic device needs to turn on the NFC function, that is, the NFC module needs to be in the running state, and then the NFC module can be used to establish a short-range wireless communication link with the NFC module of the target device. In order to be more convenient for users, the NFC module in the embodiment of the present disclosure is automatically controlled to be in the running state after the electronic device is powered on.

由上述实施例可见,由于近距离无线通信模块在电子设备启动后被自动控制为运行状态,因此用户在需要进行数据分享时无须手动操作启动NFC功能,能减少数据分享处理操作,给用户带来了便利。It can be seen from the above-mentioned embodiments that since the short-distance wireless communication module is automatically controlled to be in the running state after the electronic device is started, the user does not need to manually start the NFC function when data sharing is required, which can reduce data sharing processing operations and bring more benefits to the user. convenience.

当电子设备的NFC模块处于运行状态时,NFC模块可以搜寻开启NFC功能的其他设备,并与其他设备进行配对。在一个可选的实现方式中,所述与预设距离内的目标设备建立近距离无线通信链路,包括:When the NFC module of the electronic device is in a running state, the NFC module can search for other devices with the NFC function enabled, and perform pairing with other devices. In an optional implementation manner, the establishment of a short-range wireless communication link with a target device within a preset distance includes:

在电子设备内置的近距离无线通信模块运行后,通过近距离无线通信模块所产生的无线射频磁场检测预设距离内启动近距离无线通信的目标设备,与所述目标设备建立近距离无线通信链路。After the built-in short-range wireless communication module of the electronic device is running, the target device that starts short-range wireless communication within a preset distance is detected through the radio frequency magnetic field generated by the short-range wireless communication module, and a short-range wireless communication link is established with the target device road.

本公开实施例中,发起数据分享的电子设备可以产生无线射频磁场来初始化通信,当在预设距离内,也即是在无线射频磁场所覆盖范围内有其他开启NFC功能的设备时,则可自动响应发起数据分享的电子设备所发出的通信命令,两个设备之间以交流磁场方式相互耦合,并传输数字信号进行数据分享。In the embodiment of the present disclosure, the electronic device that initiates data sharing can generate a wireless radio frequency magnetic field to initialize communication. Automatically respond to the communication command issued by the electronic device that initiates data sharing, and the two devices are coupled with each other in the form of an alternating magnetic field, and transmit digital signals for data sharing.

由上述实施例可见,近距离无线通信模块能产生无线射频磁场,能自动检测预设距离内启动近距离无线通信的目标设备并快速进行配对,数据分享效率较高。It can be seen from the above embodiments that the short-range wireless communication module can generate a wireless radio frequency magnetic field, and can automatically detect target devices that start short-range wireless communication within a preset distance and quickly perform pairing, and the data sharing efficiency is high.

在一个可选的实现方式中,所述将所述数据分享给目标设备,包括:In an optional implementation manner, the sharing the data with the target device includes:

将所述数据封装为数据包发送给所述目标设备,所述数据包携带有程序标识,所述程序标识用于指示打开所述数据的程序。The data is encapsulated into a data packet and sent to the target device, the data packet carries a program identifier, and the program identifier is used to indicate a program that opens the data.

本公开实施例中,电子设备可以根据NFC通信协议,将所需分享的数据封装为数据包传输给目标设备。同时,在数据包中可以携带有程序标识,程序标识用于指示打开所述数据的程序。例如,对于照片数据,数据包中可以携带有相册程序标识;对于电子书数据,数据包中可以携带有电子书阅读程序标识等,该程序标识可以具体为程序名称,或者其他预先协商的能用于代表程序的数字、字母或字符串等标识。目标设备在接收到该数据包后对数据包进行解析,得到所分享的数据和程序标识,在该程序标识的指示下,目标设备可以快速地调用相应程序以打开该数据。In the embodiment of the present disclosure, the electronic device can encapsulate the data to be shared into a data packet and transmit it to the target device according to the NFC communication protocol. At the same time, a program identifier may be carried in the data packet, and the program identifier is used to indicate a program that opens the data. For example, for photo data, the data packet may carry an album program identifier; for e-book data, the data packet may carry an e-book reading program identifier, etc., and the program identifier may specifically be the program name, or other pre-negotiated available A number, letter, or character string used to represent a program. After receiving the data packet, the target device parses the data packet to obtain the shared data and program identification. Under the instruction of the program identification, the target device can quickly call the corresponding program to open the data.

由上述实施例可见,由于数据包携带有程序标识,在该程序标识的指示下,目标设备可以快速地调用相应程序以打开该数据。It can be seen from the above embodiments that since the data packet carries a program identifier, under the instruction of the program identifier, the target device can quickly invoke a corresponding program to open the data.

与前述数据分享方法的实施例相对应,本公开还提供了数据分享装置及其所应用的终端的实施例。Corresponding to the foregoing embodiments of the data sharing method, the present disclosure also provides embodiments of a data sharing device and a terminal to which it is applied.

如图3所示,图3是本公开根据一示例性实施例示出的一种数据分享装置的框图,所述装置包括:检测模块31和分享模块32。As shown in FIG. 3 , FIG. 3 is a block diagram of a data sharing device according to an exemplary embodiment of the present disclosure, and the device includes: a detection module 31 and a sharing module 32 .

其中,检测模块31,被配置为检测到针对数据的分享指令时,提供数据分享界面,所述数据分享界面中提供有基于近距离无线通信技术的分享选项;Wherein, the detection module 31 is configured to provide a data sharing interface when a sharing instruction for data is detected, and the data sharing interface provides sharing options based on short-range wireless communication technology;

分享模块32,被配置为响应于所述分享选项被触发,与预设距离内的目标设备建立近距离无线通信链路,通过所述近距离无线通信链路将所述数据分享给所述目标设备。The sharing module 32 is configured to, in response to the sharing option being triggered, establish a short-range wireless communication link with a target device within a preset distance, and share the data with the target through the short-range wireless communication link equipment.

由上述实施例可见,本实施例可以为用户提供基于近距离无线通信技术的分享方式,采用近距离无线通信进行数据分享时,只需数据分享双方的电子设备相互靠近时即可自动配对,因此可以显著减少用户操作,整体流程较少,数据分享效率较高,便捷性较好。It can be seen from the above embodiments that this embodiment can provide users with a sharing method based on short-range wireless communication technology. When using short-range wireless communication for data sharing, it can be automatically paired only when the electronic devices of the data sharing parties are close to each other. Therefore, User operations can be significantly reduced, the overall process is less, the data sharing efficiency is higher, and the convenience is better.

如图4所示,图4是本公开根据一示例性实施例示出的另一种数据分享装置的框图,该实施例在前述图3所示实施例的基础上,所述分享模块32,包括:第一控制子模块321。As shown in FIG. 4, FIG. 4 is a block diagram of another data sharing device according to an exemplary embodiment of the present disclosure. On the basis of the embodiment shown in FIG. 3, the sharing module 32 includes : the first control submodule 321.

其中,第一控制子模块321,被配置为通过电子设备内置的近距离无线通信模块与预设距离内的目标设备建立近距离无线通信链路,其中,所述近距离无线通信模块在预设的数据分享应用运行后被自动控制为运行状态。Wherein, the first control sub-module 321 is configured to establish a short-range wireless communication link with a target device within a preset distance through a built-in short-range wireless communication module of the electronic device, wherein the short-range wireless communication module After running, the data sharing application is automatically controlled to be in the running state.

由上述实施例可见,由于近距离无线通信模块在检测到预设的数据分享应用运行后被自动控制为运行状态,因此用户在需要进行数据分享时无须手动操作启动NFC功能,能减少数据分享处理操作,给用户带来了便利;同时NFC功能无需长期开启,能减少电子设备的电量和资源损耗。It can be seen from the above embodiments that since the short-range wireless communication module is automatically controlled to the running state after detecting that the preset data sharing application is running, the user does not need to manually start the NFC function when data sharing is required, which can reduce data sharing processing. The operation brings convenience to users; at the same time, the NFC function does not need to be turned on for a long time, which can reduce the power consumption and resource consumption of electronic devices.

如图5所示,图5是本公开根据一示例性实施例示出的另一种数据分享装置的框图,该实施例在前述图3所示实施例的基础上,所述分享模块32,包括:第二控制子模块322。As shown in FIG. 5, FIG. 5 is a block diagram of another data sharing device according to an exemplary embodiment of the present disclosure. On the basis of the embodiment shown in FIG. 3, the sharing module 32 includes : the second control sub-module 322.

其中,第二控制子模块322,被配置为通过电子设备内置的近距离无线通信模块与预设距离内的目标设备建立近距离无线通信链路,其中,所述近距离无线通信模块在电子设备启动后被自动控制为运行状态。Wherein, the second control sub-module 322 is configured to establish a short-range wireless communication link with a target device within a preset distance through a built-in short-range wireless communication module in the electronic device, wherein the short-range wireless communication module is installed in the electronic device After starting, it is automatically controlled to the running state.

由上述实施例可见,由于近距离无线通信模块在电子设备启动后被自动控制为运行状态,因此用户在需要进行数据分享时无须手动操作启动NFC功能,能减少数据分享处理操作,给用户带来了便利。It can be seen from the above-mentioned embodiments that since the short-distance wireless communication module is automatically controlled to be in the running state after the electronic device is started, the user does not need to manually start the NFC function when data sharing is required, which can reduce data sharing processing operations and bring more benefits to the user. convenience.

如图6所示,图6是本公开根据一示例性实施例示出的另一种数据分享装置的框图,该实施例在前述图3所示实施例的基础上,所述分享模块32,包括:检测子模块323。As shown in FIG. 6, FIG. 6 is a block diagram of another data sharing device according to an exemplary embodiment of the present disclosure. On the basis of the embodiment shown in FIG. 3, the sharing module 32 includes : detection sub-module 323.

其中,检测子模块323,被配置为在电子设备内置的近距离无线通信模块运行后,通过近距离无线通信模块所产生的无线射频磁场检测预设距离内启动近距离无线通信的目标设备,与所述目标设备建立近距离无线通信链路。Among them, the detection sub-module 323 is configured to detect the target device that starts the short-range wireless communication within the preset distance through the radio frequency magnetic field generated by the short-range wireless communication module after the short-range wireless communication module built in the electronic device is running, and The target device establishes a short-range wireless communication link.

由上述实施例可见,近距离无线通信模块能产生无线射频磁场,能自动检测预设距离内启动近距离无线通信的目标设备并快速进行配对,数据分享效率较高。It can be seen from the above embodiments that the short-range wireless communication module can generate a wireless radio frequency magnetic field, and can automatically detect target devices that start short-range wireless communication within a preset distance and quickly perform pairing, and the data sharing efficiency is high.

如图7所示,图7是本公开根据一示例性实施例示出的另一种数据分享装置的框图,该实施例在前述图3所示实施例的基础上,所述分享模块32,包括:发送子模块324。As shown in FIG. 7, FIG. 7 is a block diagram of another data sharing device according to an exemplary embodiment of the present disclosure. On the basis of the embodiment shown in FIG. 3, the sharing module 32 includes : send sub-module 324.

其中,发送子模块324,被配置为将所述数据封装为数据包发送给所述目标设备,所述数据包携带有程序标识,所述程序标识用于指示打开所述数据的程序。Wherein, the sending sub-module 324 is configured to encapsulate the data into a data packet and send it to the target device, the data packet carries a program identifier, and the program identifier is used to indicate a program that opens the data.

由上述实施例可见,由于数据包携带有程序标识,在该程序标识的指示下,目标设备可以快速地调用相应程序以打开该数据。It can be seen from the above embodiments that since the data packet carries a program identifier, under the instruction of the program identifier, the target device can quickly invoke a corresponding program to open the data.

相应的,本公开还提供一种电子设备,所述电子设备包括有处理器;用于存储处理器可执行指令的存储器;其中,所述处理器被配置为:Correspondingly, the present disclosure also provides an electronic device, the electronic device includes a processor; a memory for storing instructions executable by the processor; wherein the processor is configured to:

检测到针对数据的分享指令时,提供数据分享界面,所述数据分享界面中提供有基于近距离无线通信技术的分享选项。When a data sharing instruction is detected, a data sharing interface is provided, and a sharing option based on short-range wireless communication technology is provided in the data sharing interface.

响应于所述分享选项被触发,与预设距离内的目标设备建立近距离无线通信链路,通过所述近距离无线通信链路将所述数据分享给所述目标设备In response to the sharing option being triggered, establish a short-range wireless communication link with a target device within a preset distance, and share the data with the target device through the short-range wireless communication link

上述装置中各个模块的功能和作用的实现过程具体详见上述方法中对应步骤的实现过程,在此不再赘述。For the implementation process of the functions and effects of each module in the above-mentioned device, please refer to the implementation process of the corresponding steps in the above-mentioned method for details, and details will not be repeated here.

对于装置实施例而言,由于其基本对应于方法实施例,所以相关之处参见方法实施例的部分说明即可。以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的模块可以是或者也可以不是物理上分开的,作为模块显示的部件可以是或者也可以不是物理模块,即可以位于一个地方,或者也可以分布到多个网络模块上。可以根据实际的需要选择其中的部分或者全部模块来实现本公开方案的目的。本领域普通技术人员在不付出创造性劳动的情况下,即可以理解并实施。As for the device embodiment, since it basically corresponds to the method embodiment, for related parts, please refer to the part description of the method embodiment. The device embodiments described above are only illustrative, and the modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical modules, that is, they may be located in One place, or it can be distributed to multiple network modules. Part or all of the modules can be selected according to actual needs to achieve the purpose of the disclosed solution. It can be understood and implemented by those skilled in the art without creative effort.

图8是根据一示例性实施例示出的一种数据分享装置的结构示意图。Fig. 8 is a schematic structural diagram of a data sharing device according to an exemplary embodiment.

如图8所示,根据一示例性实施例示出的一种数据分享装置800,该装置800可以是计算机,移动电话,数字广播终端,消息收发设备,游戏控制台,平板设备,医疗设备,健身设备,个人数字助理等终端。As shown in Figure 8, a data sharing device 800 is shown according to an exemplary embodiment. The device 800 can be a computer, a mobile phone, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness devices, personal digital assistants and other terminals.

参照图8,装置800可以包括以下一个或多个组件:处理组件801,存储器802,电源组件803,多媒体组件804,音频组件805,输入/输出(I/O)的接口806,传感器组件807,以及通信组件808。8, device 800 may include one or more of the following components: processing component 801, memory 802, power supply component 803, multimedia component 804, audio component 805, input/output (I/O) interface 806, sensor component 807, and a communication component 808 .

处理组件801通常控制装置800的整体操作,诸如与显示,电话呼叫,数据通信,相机操作和记录操作相关联的操作。处理组件801可以包括一个或多个处理器809来执行指令,以完成上述的方法的全部或部分步骤。此外,处理组件801可以包括一个或多个模块,便于处理组件801和其它组件之间的交互。例如,处理部件801可以包括多媒体模块,以方便多媒体组件804和处理组件801之间的交互。The processing component 801 generally controls the overall operations of the device 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 801 may include one or more processors 809 to execute instructions, so as to complete all or part of the steps of the above method. Additionally, processing component 801 may include one or more modules to facilitate interaction between processing component 801 and other components. For example, the processing component 801 may include a multimedia module to facilitate interaction between the multimedia component 804 and the processing component 801 .

存储器802被配置为存储各种类型的数据以支持在装置800的操作。这些数据的示例包括用于在装置800上操作的任何应用程序或方法的指令,联系人数据,电话簿数据,消息,图片,视频等。存储器802可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。The memory 802 is configured to store various types of data to support operations at the device 800 . Examples of such data include instructions for any application or method operating on device 800, contact data, phonebook data, messages, pictures, videos, and the like. The memory 802 can be implemented by any type of volatile or non-volatile storage device or their combination, 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, Magnetic or Optical Disk.

电源组件803为装置800的各种组件提供电力。电源组件803可以包括电源管理系统,一个或多个电源,及其它与为装置800生成、管理和分配电力相关联的组件。The power supply component 803 provides power to various components of the device 800 . Power components 803 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for device 800 .

多媒体组件804包括在所述装置800和用户之间的提供一个输出接口的屏幕。在一些实施例中,屏幕可以包括液晶显示器(LCD)和触摸面板(TP)。如果屏幕包括触摸面板,屏幕可以被实现为触摸屏,以接收来自用户的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。所述触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与所述触摸或滑动操作相关的持续时间和压力。在一些实施例中,多媒体组件804包括一个前置摄像头和/或后置摄像头。当装置800处于操作模式,如拍摄模式或视频模式时,前置摄像头和/或后置摄像头可以接收外部的多媒体数据。每个前置摄像头和后置摄像头可以是一个固定的光学透镜系统或具有焦距和光学变焦能力。The multimedia component 804 includes a screen that provides an output interface between the device 800 and the user. 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 signals from a user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may not only sense a boundary of a touch or swipe action, but also detect duration and pressure associated with the touch or swipe action. In some embodiments, the multimedia component 804 includes a front camera and/or a rear camera. When the device 800 is in an operation mode, such as a shooting mode or a video mode, the front camera and/or the rear camera can receive external multimedia data. Each front camera and rear camera can be a fixed optical lens system or have focal length and optical zoom capability.

音频组件805被配置为输出和/或输入音频信号。例如,音频组件805包括一个麦克风(MIC),当装置800处于操作模式,如呼叫模式、记录模式和语音识别模式时,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器802或经由通信组件808发送。在一些实施例中,音频组件805还包括一个扬声器,用于输出音频信号。The audio component 805 is configured to output and/or input audio signals. For example, the audio component 805 includes a microphone (MIC) configured to receive external audio signals when the device 800 is in operation modes, such as call mode, recording mode and voice recognition mode. Received audio signals may be further stored in memory 802 or sent via communication component 808 . In some embodiments, the audio component 805 also includes a speaker for outputting audio signals.

I/O接口802为处理组件801和外围接口模块之间提供接口,上述外围接口模块可以是键盘,点击轮,按钮等。这些按钮可包括但不限于:主页按钮、音量按钮、启动按钮和锁定按钮。The I/O interface 802 provides an interface between the processing component 801 and a peripheral interface module. The peripheral interface module may be a keyboard, a click wheel, a button, and the like. These buttons may include, but are not limited to: a home button, volume buttons, start button, and lock button.

传感器组件807包括一个或多个传感器,用于为装置800提供各个方面的状态评估。例如,传感器组件807可以检测到装置800的打开/关闭状态,组件的相对定位,例如所述组件为装置800的显示器和小键盘,传感器组件807还可以检测装置800或装置800一个组件的位置改变,用户与装置800接触的存在或不存在,装置800方位或加速/减速和装置800的温度变化。传感器组件807可以包括接近传感器,被配置用来在没有任何的物理接触时检测附近物体的存在。传感器组件807还可以包括光传感器,如CMOS或CCD图像传感器,用于在成像应用中使用。在一些实施例中,该传感器组件807还可以包括加速度传感器,陀螺仪传感器,磁传感器,压力传感器或温度传感器。Sensor assembly 807 includes one or more sensors for providing status assessments of various aspects of device 800 . For example, the sensor component 807 can detect the open/closed state of the device 800, the relative positioning of components, such as the display and keypad of the device 800, and the sensor component 807 can also detect a change in the position of the device 800 or a component of the device 800 , the presence or absence of user contact with the device 800 , the device 800 orientation or acceleration/deceleration and the temperature change of the device 800 . The sensor assembly 807 may include a proximity sensor configured to detect the presence of nearby objects in the absence of any physical contact. The sensor assembly 807 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor component 807 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor or a temperature sensor.

通信组件808被配置为便于装置800和其它设备之间有线或无线方式的通信。装置800可以接入基于通信标准的无线网络,如WiFi,2G或3G,或它们的组合。在一个示例性实施例中,通信组件808经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。在一个示例性实施例中,所述通信组件808还包括近场通信(NFC)模块,以促进短程通信。例如,在NFC模块可基于射频识别(RFID)技术,红外数据协会(IrDA)技术,超宽带(UWB)技术,蓝牙(BT)技术和其它技术来实现。The communication component 808 is configured to facilitate wired or wireless communication between the apparatus 800 and other devices. The device 800 can access wireless networks based on communication standards, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 808 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 808 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, Infrared Data Association (IrDA) technology, Ultra Wide Band (UWB) technology, Bluetooth (BT) technology and other technologies.

在示例性实施例中,装置800可以被一个或多个应用专用集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理设备(DSPD)、可编程逻辑器件(PLD)、现场可编程门阵列(FPGA)、控制器、微控制器、微处理器或其它电子元件实现,用于执行上述方法。In an exemplary embodiment, apparatus 800 may be programmed 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 implementations for performing the methods described above.

在示例性实施例中,还提供了一种包括指令的非临时性计算机可读存储介质,例如包括指令的存储器802,上述指令可由装置800的处理器809执行以完成上述方法。例如,所述非临时性计算机可读存储介质可以是ROM、随机存取存储器(RAM)、CD-ROM、磁带、软盘和光数据存储设备等。In an exemplary embodiment, there is also provided a non-transitory computer-readable storage medium including instructions, such as the memory 802 including instructions, which can be executed by the processor 809 of the device 800 to complete the above method. For example, the non-transitory computer readable storage medium may be ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, and the like.

其中,当所述存储介质中的指令由所述处理器执行时,使得装置800能够执行一种数据分享方法,包括:Wherein, when the instructions in the storage medium are executed by the processor, the device 800 is enabled to execute a data sharing method, including:

检测到针对数据的分享指令时,提供数据分享界面,所述数据分享界面中提供有基于近距离无线通信技术的分享选项。When a data sharing instruction is detected, a data sharing interface is provided, and a sharing option based on short-range wireless communication technology is provided in the data sharing interface.

响应于所述分享选项被触发,与预设距离内的目标设备建立近距离无线通信链路,通过所述近距离无线通信链路将所述数据分享给所述目标设备。In response to the sharing option being triggered, a short-range wireless communication link is established with a target device within a preset distance, and the data is shared with the target device through the short-range wireless communication link.

本领域技术人员在考虑说明书及实践这里公开的发明后,将容易想到本公开的其它实施方案。本公开旨在涵盖本公开的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本公开的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本公开的真正范围和精神由下面的权利要求指出。Other embodiments of the present disclosure will be readily apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. The present disclosure is intended to cover any modification, use or adaptation of the present disclosure. These modifications, uses or adaptations follow the general principles of the present disclosure and include common knowledge or conventional technical means in the technical field not disclosed in the present disclosure. . The specification and examples are to be considered exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.

应当理解的是,本公开并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本公开的范围仅由所附的权利要求来限制。It should be understood that the present disclosure is not limited to the precise constructions which have been described above and shown in the drawings, and various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

以上所述仅为本公开的较佳实施例而已,并不用以限制本公开,凡在本公开的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本公开保护的范围之内。The above descriptions are only preferred embodiments of the present disclosure, and are not intended to limit the present disclosure. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present disclosure shall be included in the present disclosure within the scope of protection.

Claims (11)

1. a data sharing method, is applied in electronic equipment, it is characterised in that described method includes:
Detect for data when sharing instruction, it is provided that data sharing interface, described data sharing interface is provided with based on The short distance wireless communication technology share option;
It is triggered in response to described option of sharing, sets up wireless near field communication link with the target device in predeterminable range, logical Cross described wireless near field communication link by described data sharing to described target device.
Method the most according to claim 1, it is characterised in that described with predeterminable range in target device set up closely Wireless communication link, including:
The close range wireless communication module built-in by electronic equipment sets up near radio with the target device in predeterminable range Communication link, wherein, described close range wireless communication module is automatically controlled as fortune after default data sharing application runs Row state.
Method the most according to claim 1, it is characterised in that described with predeterminable range in target device set up closely Wireless communication link, including:
The close range wireless communication module built-in by electronic equipment sets up near radio with the target device in predeterminable range Communication link, wherein, described close range wireless communication module is automatically controlled as running status after electronic equipment starts.
4. according to the arbitrary described method of claims 1 to 3, it is characterised in that described and in predeterminable range target device is built Vertical wireless near field communication link, including:
After the close range wireless communication module that electronic equipment is built-in is run, by nothing produced by close range wireless communication module Start the target device of wireless near field communication in line radio-frequency (RF) magnetic field detection predeterminable range, set up closely with described target device Wireless communication link.
Method the most according to claim 1, it is characterised in that described by described data sharing to target device, including:
Described data being encapsulated as packet and is sent to described target device, described packet carries program identification, described journey Sequence mark opens the program of described data for instruction.
6. a data sharing device, is applied in electronic equipment, it is characterised in that described device includes:
Detection module, be configured to detect for data when sharing instruction, it is provided that data sharing interface, described data sharing Interface is provided with and based on the short distance wireless communication technology shares option;
Sharing module, be configured to respond to described in share option and be triggered, set up low coverage with the target device in predeterminable range From wireless communication link, give described target device by described wireless near field communication link by described data sharing.
Device the most according to claim 6, it is characterised in that described sharing module, including:
First controls submodule, is configured in the built-in close range wireless communication module of electronic equipment and predeterminable range Target device sets up wireless near field communication link, and wherein, described close range wireless communication module should at default data sharing It is automatically controlled as running status after running.
Device the most according to claim 6, it is characterised in that described sharing module, including:
Second controls submodule, is configured in the built-in close range wireless communication module of electronic equipment and predeterminable range Target device sets up wireless near field communication link, and wherein, described close range wireless communication module is quilt after electronic equipment starts Automatically control as running status.
9. according to the arbitrary described device of claim 6 to 8, it is characterised in that described sharing module, including:
Detection sub-module, is configured to after the built-in close range wireless communication module of electronic equipment is run, by closely without The target device of wireless near field communication is started, with institute in less radio-frequency magnetic field detection predeterminable range produced by line communication module State target device and set up wireless near field communication link.
Device the most according to claim 6, it is characterised in that described sharing module, including:
Sending submodule, be configured to that described data are encapsulated as packet and be sent to described target device, described packet is taken With program identification, described program identification opens the program of described data for instruction.
11. 1 kinds of electronic equipments, it is characterised in that including:
Processor;
For storing the memorizer of processor executable;
Wherein, described processor is configured to:
Detect for data when sharing instruction, it is provided that data sharing interface, described data sharing interface is provided with based on The short distance wireless communication technology share option;
It is triggered in response to described option of sharing, sets up wireless near field communication link with the target device in predeterminable range, logical Cross described wireless near field communication link by described data sharing to described target device.
CN201610491490.9A 2016-06-28 2016-06-28 Data sharing method, device and electronic equipment Pending CN106211033A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610491490.9A CN106211033A (en) 2016-06-28 2016-06-28 Data sharing method, device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610491490.9A CN106211033A (en) 2016-06-28 2016-06-28 Data sharing method, device and electronic equipment

Publications (1)

Publication Number Publication Date
CN106211033A true CN106211033A (en) 2016-12-07

Family

ID=57462346

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610491490.9A Pending CN106211033A (en) 2016-06-28 2016-06-28 Data sharing method, device and electronic equipment

Country Status (1)

Country Link
CN (1) CN106211033A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110825709A (en) * 2019-10-30 2020-02-21 维沃移动通信有限公司 Interaction method and electronic equipment
CN111614759A (en) * 2020-05-20 2020-09-01 北京字节跳动网络技术有限公司 Resource sharing method and device, electronic equipment and computer readable medium
CN112423226A (en) * 2020-11-24 2021-02-26 三星电子(中国)研发中心 File sharing method and device and intelligent equipment
CN112784193A (en) * 2021-01-27 2021-05-11 维沃移动通信有限公司 Accessory information display method and device, electronic equipment and readable storage medium
CN112954596A (en) * 2021-03-09 2021-06-11 北京小米移动软件有限公司 Data sharing method, device, equipment and storage medium
CN113015263A (en) * 2017-04-24 2021-06-22 华为技术有限公司 Image sharing method and electronic equipment
CN113885986A (en) * 2021-09-29 2022-01-04 北京搜狗科技发展有限公司 Data transmission method and device and electronic equipment
US11452151B2 (en) 2018-05-31 2022-09-20 Huawei Technologies Co., Ltd. Application function implementation method and electronic device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104735524A (en) * 2015-03-31 2015-06-24 上海华勤通讯技术有限公司 Data sharing method and data sharing system of mobile terminal
CN104750410A (en) * 2013-12-27 2015-07-01 宏达国际电子股份有限公司 Electronic device and its file sharing method and computer program product
CN104780209A (en) * 2015-04-07 2015-07-15 北京奇点机智信息技术有限公司 Portable equipment and server for realizing sharing interface scenario
CN104821929A (en) * 2014-03-21 2015-08-05 腾讯科技(北京)有限公司 Multimedia data sharing method and terminal
CN104834665A (en) * 2015-02-28 2015-08-12 小米科技有限责任公司 Target picture acquiring method and device
CN105530590A (en) * 2014-09-29 2016-04-27 阿里巴巴集团控股有限公司 Method and electronic equipment for realizing resource sharing between equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104750410A (en) * 2013-12-27 2015-07-01 宏达国际电子股份有限公司 Electronic device and its file sharing method and computer program product
CN104821929A (en) * 2014-03-21 2015-08-05 腾讯科技(北京)有限公司 Multimedia data sharing method and terminal
CN105530590A (en) * 2014-09-29 2016-04-27 阿里巴巴集团控股有限公司 Method and electronic equipment for realizing resource sharing between equipment
CN104834665A (en) * 2015-02-28 2015-08-12 小米科技有限责任公司 Target picture acquiring method and device
CN104735524A (en) * 2015-03-31 2015-06-24 上海华勤通讯技术有限公司 Data sharing method and data sharing system of mobile terminal
CN104780209A (en) * 2015-04-07 2015-07-15 北京奇点机智信息技术有限公司 Portable equipment and server for realizing sharing interface scenario

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US12061789B2 (en) 2017-04-24 2024-08-13 Huawei Technologies Co., Ltd. Image sharing method and electronic device
CN113015263A (en) * 2017-04-24 2021-06-22 华为技术有限公司 Image sharing method and electronic equipment
US11372537B2 (en) 2017-04-24 2022-06-28 Huawei Technologies Co., Ltd. Image sharing method and electronic device
US11864248B2 (en) 2018-05-31 2024-01-02 Huawei Technologies Co., Ltd. Application function implementation method and electronic device
US11452151B2 (en) 2018-05-31 2022-09-20 Huawei Technologies Co., Ltd. Application function implementation method and electronic device
CN110825709B (en) * 2019-10-30 2022-08-02 维沃移动通信有限公司 An interactive method and electronic device
CN110825709A (en) * 2019-10-30 2020-02-21 维沃移动通信有限公司 Interaction method and electronic equipment
WO2021233297A1 (en) * 2020-05-20 2021-11-25 北京字节跳动网络技术有限公司 Resource sharing method and apparatus, electronic device and computer-readable medium
CN111614759B (en) * 2020-05-20 2023-02-17 抖音视界有限公司 Resource sharing method and device, electronic equipment and computer readable medium
CN111614759A (en) * 2020-05-20 2020-09-01 北京字节跳动网络技术有限公司 Resource sharing method and device, electronic equipment and computer readable medium
CN112423226B (en) * 2020-11-24 2023-09-29 三星电子(中国)研发中心 File sharing method and device and intelligent equipment
CN112423226A (en) * 2020-11-24 2021-02-26 三星电子(中国)研发中心 File sharing method and device and intelligent equipment
CN112784193A (en) * 2021-01-27 2021-05-11 维沃移动通信有限公司 Accessory information display method and device, electronic equipment and readable storage medium
CN112954596A (en) * 2021-03-09 2021-06-11 北京小米移动软件有限公司 Data sharing method, device, equipment and storage medium
CN112954596B (en) * 2021-03-09 2023-02-28 北京小米移动软件有限公司 Data sharing method, device, equipment and storage medium
CN113885986A (en) * 2021-09-29 2022-01-04 北京搜狗科技发展有限公司 Data transmission method and device and electronic equipment

Similar Documents

Publication Publication Date Title
CN106211033A (en) Data sharing method, device and electronic equipment
CN109451877B (en) Unmanned aerial vehicle control method and device, unmanned aerial vehicle and remote control equipment
JP2015507313A (en) Multi-user interface mirror interface navigation
US10237214B2 (en) Methods and devices for sharing media data between terminals
CN105159672A (en) Remote assistance method and client
CN106507282B (en) Wireless connection control method and device
WO2016155304A1 (en) Wireless access point control method and device
WO2017008400A1 (en) Method and device for controlling intelligent device
CN107204883A (en) Network failure processing method and device
JP2017513416A (en) Data transmission method, apparatus, facility, program, and recording medium
CN106056010A (en) Method and apparatus for processing messages by terminal, and terminal
CN107071862A (en) Account binding method and device and smart machine
CN106604230A (en) Region configuration method and region configuration device
CN106708519A (en) Operation control adding method and device
CN106453496B (en) Document transmission method and device
CN104881342B (en) terminal test method and device
CN106210262A (en) picture sharing method, device and mobile device
CN105515923A (en) Equipment control method and device
CN106559479A (en) Multimedia file downloading method, designated equipment and terminal
CN105912202A (en) Application sharing method and device
CN107846646A (en) Control method, device and the readable storage medium storing program for executing of intelligent sound box
CN107371222A (en) Method and device for disabling virtual card
CN109451863B (en) Method and device for expanding PBCH
CN109451857B (en) Data transmission method and device
CN106658668A (en) Information processing method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right

Effective date of registration: 20180817

Address after: 100176 Beijing Beijing economic and Technological Development Zone, Chuang Chuang fourteen Street 99, 33 D Building 2 level 2243 (centralized office area)

Applicant after: Beijing millet Payment Technology Co., Ltd.

Address before: 100085 Huarun Qingcai Street 68, Haidian District, Beijing, two stage, 9 floor, 01 rooms.

Applicant before: BEIJING XIAOMI MOBILE SOFTWARE Co.,Ltd.

TA01 Transfer of patent application right
RJ01 Rejection of invention patent application after publication

Application publication date: 20161207

RJ01 Rejection of invention patent application after publication