[go: up one dir, main page]

CN106341809B - Data transmission method and equipment - Google Patents

Data transmission method and equipment Download PDF

Info

Publication number
CN106341809B
CN106341809B CN201610913465.5A CN201610913465A CN106341809B CN 106341809 B CN106341809 B CN 106341809B CN 201610913465 A CN201610913465 A CN 201610913465A CN 106341809 B CN106341809 B CN 106341809B
Authority
CN
China
Prior art keywords
terminal
operating system
reference value
data
target data
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.)
Expired - Fee Related
Application number
CN201610913465.5A
Other languages
Chinese (zh)
Other versions
CN106341809A (en
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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201810359577.XA priority Critical patent/CN108834132B/en
Priority to CN201610913465.5A priority patent/CN106341809B/en
Publication of CN106341809A publication Critical patent/CN106341809A/en
Application granted granted Critical
Publication of CN106341809B publication Critical patent/CN106341809B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/22Processing or transfer of terminal data, e.g. status or physical capabilities
    • H04W8/24Transfer of terminal data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/08Access security
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/06Authentication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/16Central resource management; Negotiation of resources or communication parameters, e.g. negotiating bandwidth or QoS [Quality of Service]
    • H04W28/18Negotiating wireless communication parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/20Selecting an access point
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/18Processing of user or subscriber data, e.g. subscribed services, user preferences or user profiles; Transfer of user or subscriber data
    • H04W8/20Transfer of user or subscriber data
    • H04W8/205Transfer to or from user equipment or user record carrier
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/02Hierarchically pre-organised networks, e.g. paging networks, cellular networks, WLAN [Wireless Local Area Network] or WLL [Wireless Local Loop]
    • H04W84/10Small scale networks; Flat hierarchical networks
    • H04W84/12WLAN [Wireless Local Area Networks]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Databases & Information Systems (AREA)
  • Quality & Reliability (AREA)
  • Telephone Function (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The embodiment of the invention discloses a data transmission method and equipment. Wherein, the method comprises the following steps: a first terminal receives an operation instruction for starting data transmission; acquiring information of an operating system currently operated by a first terminal as a first reference value; sending a first request message to a second terminal; the first request message is used for acquiring a second reference value, and the second reference value is information of an operating system currently operated by the second terminal; screening data compatible with an operating system currently operated by the second terminal in the first terminal as target data according to the first reference value and the second reference value; and sending the target data to a second terminal. By implementing the embodiment of the invention, the problem that the received data cannot be used because two terminal devices for data transmission run different operating systems can be avoided.

Description

一种数据传输方法及设备A data transmission method and device

技术领域technical field

本发明涉及终端技术领域,尤其涉及一种数据传输方法及设备。The present invention relates to the technical field of terminals, in particular to a data transmission method and equipment.

背景技术Background technique

随着智能手机、平板电脑、个人数字助理等(Personal Digital Assistant,PDA)终端设备的普及,利用这些终端设备随时随地进行娱乐、购物、支付和信息查询等操作,已成为人们习以为常的生活方式。With the popularity of terminal devices such as smart phones, tablet computers, and personal digital assistants (PDA), using these terminal devices to perform entertainment, shopping, payment, and information inquiry anytime and anywhere has become a common way of life for people.

智能化的终端设备在为人们的生活带来许多便利的同时,终端设备中也逐渐积累有用户越来越多的个人数据。若用户需要更换新的终端设备,往往想要将旧终端设备中存储的大量个人数据转移到新终端设备中来。While intelligent terminal devices bring a lot of convenience to people's lives, more and more personal data of users are gradually accumulated in the terminal devices. If a user needs to replace a new terminal device, he often wants to transfer a large amount of personal data stored in the old terminal device to the new terminal device.

然而,由于新、旧终端设备可能运行不同的操作系统,可能造成传输至新终端设备中的数据无法使用的问题。However, since the new and old terminal devices may run different operating systems, the data transmitted to the new terminal device may be unusable.

发明内容Contents of the invention

本发明实施例提供了一种数据传输方法及设备,可以避免由于进行数据传输的两个终端设备运行不同的操作系统,接收到的数据无法使用的问题。Embodiments of the present invention provide a data transmission method and device, which can avoid the problem that received data cannot be used because two terminal devices performing data transmission run different operating systems.

本发明实施例第一方面公开了一种数据传输方法,包括:The first aspect of the embodiment of the present invention discloses a data transmission method, including:

第一终端接收启动数据传输的操作指令;The first terminal receives an operation instruction for starting data transmission;

获取所述第一终端当前所运行的操作系统信息作为第一参考值;Obtain information about the operating system currently running on the first terminal as a first reference value;

向第二终端发送第一请求消息;其中,所述第一请求消息用于获取第二参考值,所述第二参考值为所述第二终端当前所运行的操作系统信息;Sending a first request message to the second terminal; wherein the first request message is used to obtain a second reference value, and the second reference value is information about an operating system currently running on the second terminal;

根据所述第一参考值和所述第二参考值,筛选所述第一终端中与所述第二终端当前所运行的操作系统兼容的数据作为目标数据;According to the first reference value and the second reference value, screening data in the first terminal that is compatible with the operating system currently running on the second terminal as target data;

将所述目标数据发送至所述第二终端。sending the target data to the second terminal.

作为一种可选的实施方式,所述将所述目标数据发送至所述第二终端之后,所述方法还包括:As an optional implementation manner, after the target data is sent to the second terminal, the method further includes:

统计所述第一终端中除所述目标数据以外数据的清单;counting a list of data other than the target data in the first terminal;

输出包含所述清单的通知消息以通知用户未能发送至所述第二终端的数据。outputting a notification message including the list to notify the user of the data that failed to be sent to the second terminal.

作为一种可选的实施方式,所述将所述目标数据发送至所述第二终端之后,所述方法还包括:As an optional implementation manner, after the target data is sent to the second terminal, the method further includes:

根据所述第一参考值和所述第二参考值,确定所述第一终端中与所述第二终端当前所运行的操作系统不兼容的应用程序;determining an application in the first terminal that is incompatible with an operating system currently running on the second terminal according to the first reference value and the second reference value;

向所述第二终端发送包含所述与所述第二终端当前所运行的操作系统不兼容的应用程序的列表的第一提示消息,以便于所述第二终端根据所述列表下载兼容于所述第二终端当前所运行的操作系统的相应应用程序。Sending a first prompt message including a list of applications incompatible with the operating system currently running on the second terminal to the second terminal, so that the second terminal can download the application programs compatible with the operating system according to the list. The corresponding application program of the operating system currently running on the second terminal is described.

作为一种可选的实施方式,所述向第二终端发送第一请求消息,包括:As an optional implementation manner, the sending the first request message to the second terminal includes:

所述第一终端建立个人热点;The first terminal establishes a personal hotspot;

使所述第二终端连接到所述个人热点以建立所述通信连接。Connecting the second terminal to the personal hotspot to establish the communication connection.

作为一种可选的实施方式,所述第一终端建立个人热点之后,所述方法还包括:As an optional implementation manner, after the first terminal establishes a personal hotspot, the method further includes:

生成用于接入所述个人热点的加密二维码;generating an encrypted two-dimensional code for accessing the personal hotspot;

所述使所述第二终端连接到所述个人热点以建立所述通信连接之前,所述方法还包括:Before making the second terminal connect to the personal hotspot to establish the communication connection, the method further includes:

获取所述第二终端通过扫描所述加密二维码而输入的密码;Obtaining the password input by the second terminal by scanning the encrypted two-dimensional code;

所述使所述第二终端连接到所述个人热点以建立所述通信连接,包括:The making the second terminal connect to the personal hotspot to establish the communication connection includes:

验证所述密码是否为预设密码,若是,则使所述第二终端连接到所述个人热点以建立所述通信连接。Verifying whether the password is a preset password, and if so, enabling the second terminal to connect to the personal hotspot to establish the communication connection.

作为一种可选的实施方式,所述筛选所述第一终端中与所述第二终端当前所运行的操作系统兼容的数据作为目标数据之后,所述方法还包括:As an optional implementation manner, after screening the data in the first terminal that is compatible with the operating system currently running on the second terminal as the target data, the method further includes:

统计所述目标数据的大小;Count the size of the target data;

向所述第二终端发送第二请求消息以获取所述第二终端可用于接收所述目标数据的存储空间大小;sending a second request message to the second terminal to acquire the size of the storage space that the second terminal can use to receive the target data;

判断所述存储空间大小是否大于等于所述目标数据的大小;judging whether the size of the storage space is greater than or equal to the size of the target data;

若否,则向所述第二终端发送第二提示消息以使所述第二终端清理存储空间用于接收所述目标数据。If not, sending a second prompt message to the second terminal to enable the second terminal to clear up storage space for receiving the target data.

本发明实施例第二方面公开了一种数据传输设备,包括:The second aspect of the embodiment of the present invention discloses a data transmission device, including:

接收单元,用于接收启动数据传输的操作指令;a receiving unit, configured to receive an operation instruction for starting data transmission;

第一获取单元,用于获取第一终端当前所运行的操作系统信息作为第一参考值;a first acquiring unit, configured to acquire the operating system information currently running on the first terminal as a first reference value;

连接单元,用于向第二终端发送第一请求消息;其中,所述第一请求消息用于获取第二参考值,所述第二参考值为所述第二终端当前所运行的操作系统信息;A connection unit, configured to send a first request message to the second terminal; wherein the first request message is used to acquire a second reference value, and the second reference value is information about an operating system currently running on the second terminal ;

筛选单元,用于根据所述第一参考值和所述第二参考值,筛选所述第一终端中与所述第二终端当前所运行的操作系统兼容的数据作为目标数据;A screening unit, configured to screen data in the first terminal that is compatible with the operating system currently running on the second terminal as target data according to the first reference value and the second reference value;

第一发送单元,用于将所述目标数据发送至所述第二终端。A first sending unit, configured to send the target data to the second terminal.

作为一种可选的实施方式,所述设备还包括:As an optional implementation manner, the device further includes:

第一统计单元,用于统计所述第一终端中除所述目标数据以外数据的清单;a first statistical unit, configured to make a statistical list of data in the first terminal other than the target data;

输出单元,用于输出包含所述清单的通知消息以通知用户未能发送至所述第二终端的数据。An output unit configured to output a notification message including the list to notify a user of the data that cannot be sent to the second terminal.

作为一种可选的实施方式,所述设备还包括:As an optional implementation manner, the device further includes:

确定单元,用于根据所述第一参考值和所述第二参考值,确定所述第一终端中与所述第二终端当前所运行的操作系统不兼容的应用程序;a determining unit, configured to determine, according to the first reference value and the second reference value, an application program in the first terminal that is incompatible with an operating system currently running on the second terminal;

第二发送单元,用于向所述第二终端发送包含所述与所述第二终端当前所运行的操作系统不兼容的应用程序的列表的第一提示消息,以便于所述第二终端根据所述列表下载兼容于所述第二终端当前所运行的操作系统的相应应用程序。The second sending unit is configured to send to the second terminal a first prompt message including a list of application programs incompatible with the operating system currently running on the second terminal, so that the second terminal can according to the The list downloads corresponding application programs compatible with the operating system currently running on the second terminal.

作为一种可选的实施方式,所述连接单元,包括:As an optional implementation manner, the connecting unit includes:

建立子单元,用于建立个人热点;Create a subunit for creating a personal hotspot;

使能子单元,用于使所述第二终端连接到所述个人热点以建立所述通信连接。An enabling subunit is configured to enable the second terminal to connect to the personal hotspot to establish the communication connection.

作为一种可选的实施方式,所述设备还包括:As an optional implementation manner, the device further includes:

生成单元,用于生成用于接入所述个人热点的加密二维码;A generating unit, configured to generate an encrypted two-dimensional code for accessing the personal hotspot;

第二获取单元,用于获取所述第二终端通过扫描所述加密二维码而输入的密码;a second acquiring unit, configured to acquire a password input by the second terminal by scanning the encrypted two-dimensional code;

所述使能子单元,具体用于验证所述密码是否为预设密码,若是,则使所述第二终端连接到所述个人热点以建立所述通信连接。The enabling subunit is specifically configured to verify whether the password is a preset password, and if so, make the second terminal connect to the personal hotspot to establish the communication connection.

作为一种可选的实施方式,所述设备还包括:As an optional implementation manner, the device further includes:

第二统计单元,用于统计所述目标数据的大小;a second statistical unit, configured to count the size of the target data;

第三发送单元,用于向所述第二终端发送第二请求消息以获取所述第二终端可用于接收所述目标数据的存储空间大小;a third sending unit, configured to send a second request message to the second terminal to obtain the size of the storage space available for receiving the target data by the second terminal;

判断单元,用于判断所述存储空间大小是否大于等于所述目标数据的大小;a judging unit, configured to judge whether the size of the storage space is greater than or equal to the size of the target data;

第四发送单元,用于当所述存储空间大小小于所述目标数据的大小时,向所述第二终端发送第二提示消息以使所述第二终端清理存储空间用于接收所述目标数据。A fourth sending unit, configured to send a second prompt message to the second terminal when the size of the storage space is smaller than the size of the target data, so that the second terminal clears the storage space for receiving the target data .

本发明实施例第三方面公开了一种终端设备,包括:处理器和存储器,所述处理器用于执行上述第一方面所公开的方法。The third aspect of the embodiments of the present invention discloses a terminal device, including: a processor and a memory, and the processor is configured to execute the method disclosed in the first aspect above.

本发明实施例中,第一终端接收启动数据传输的操作指令;获取所述第一终端当前所运行的操作系统信息作为第一参考值;向第二终端发送第一请求消息;其中,所述第一请求消息用于获取第二参考值,所述第二参考值为所述第二终端当前所运行的操作系统信息;根据所述第一参考值和所述第二参考值,筛选所述第一终端中与所述第二终端当前所运行的操作系统兼容的数据作为目标数据;将所述目标数据发送至所述第二终端。由此可见,实施本发明实施例,可以避免由于进行数据传输的两个终端设备运行不同的操作系统,接收到的数据无法使用的问题。In the embodiment of the present invention, the first terminal receives an operation instruction to start data transmission; obtains the operating system information currently running on the first terminal as a first reference value; sends a first request message to the second terminal; wherein, the The first request message is used to obtain a second reference value, and the second reference value is information about the operating system currently running on the second terminal; according to the first reference value and the second reference value, filter the The data in the first terminal that is compatible with the operating system currently running on the second terminal is used as target data; and the target data is sent to the second terminal. It can be seen that, implementing the embodiment of the present invention can avoid the problem that the received data cannot be used because two terminal devices for data transmission run different operating systems.

附图说明Description of drawings

为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简要介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域的普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings that need to be used in the description of the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present invention. For Those of ordinary skill in the art can also obtain other drawings based on these drawings without any creative effort.

图1为本发明实施例公开的一种数据传输方法的流程示意图;FIG. 1 is a schematic flow diagram of a data transmission method disclosed in an embodiment of the present invention;

图2为本发明实施例公开的另一种数据传输方法的流程示意图;FIG. 2 is a schematic flow diagram of another data transmission method disclosed in an embodiment of the present invention;

图3为本发明实施例公开的一种数据传输设备的结构示意图;FIG. 3 is a schematic structural diagram of a data transmission device disclosed in an embodiment of the present invention;

图4为本发明实施例公开的另一种数据传输设备的结构示意图;FIG. 4 is a schematic structural diagram of another data transmission device disclosed in an embodiment of the present invention;

图5为本发明实施例公开的一种终端设备的结构示意图;FIG. 5 is a schematic structural diagram of a terminal device disclosed in an embodiment of the present invention;

图6为本发明实施例公开的另一种终端设备的结构示意图。FIG. 6 is a schematic structural diagram of another terminal device disclosed in an embodiment of the present invention.

具体实施方式Detailed ways

为了使本发明的目的、技术方案和优点更加清楚,下面将结合附图对本发明作进一步地详细描述,显然,所描述的实施例仅仅是本发明一部份实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其它实施例,都属于本发明保护的范围。In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, rather than all embodiments . Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别不同的对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法或设备固有的其他步骤或单元。The terms "first", "second" and the like in the description and claims of the present invention and the above drawings are used to distinguish different objects, rather than to describe a specific order. Furthermore, the terms "include" and "have", as well as any variations thereof, are intended to cover a non-exclusive inclusion. For example, a process, method, system, product or device comprising a series of steps or units is not limited to the listed steps or units, but optionally also includes unlisted steps or units, or optionally further includes For other steps or units inherent in these processes, methods or apparatuses.

本发明实施例提供了一种数据传输方法及设备,可以避免由于进行数据传输的两个终端设备运行不同的操作系统,接收到的数据无法使用的问题。以下分别进行详细说明。Embodiments of the present invention provide a data transmission method and device, which can avoid the problem that received data cannot be used because two terminal devices performing data transmission run different operating systems. Each will be described in detail below.

请参阅图1,图1是本发明实施例公开的一种数据传输方法的流程示意图。其中,图1所示的方法可以包括以下步骤:Please refer to FIG. 1 . FIG. 1 is a schematic flowchart of a data transmission method disclosed in an embodiment of the present invention. Wherein, the method shown in Figure 1 may include the following steps:

101、第一终端接收启动数据传输的操作指令。101. The first terminal receives an operation instruction for starting data transmission.

本发明实施例中,终端设备可为智能手机、智能手表、掌上电脑、平板电脑、个人数字助理(Personal Digital Assistant,PDA)、销售终端(Point of Sales,POS)等,本发明实施例后续不作复述。In the embodiment of the present invention, the terminal device may be a smart phone, a smart watch, a handheld computer, a tablet computer, a personal digital assistant (Personal Digital Assistant, PDA), a sales terminal (Point of Sales, POS), etc. repeat.

作为一种可选的实施方式,第一终端监测用户手指在触摸屏上的输入的滑动轨迹,验证上述滑动轨迹是否为启动数据传输所对应的滑动轨迹,若是,则启动数据传输功能。As an optional implementation manner, the first terminal monitors the sliding track input by the user's finger on the touch screen, verifies whether the above sliding track is the sliding track corresponding to starting data transmission, and if so, starts the data transmission function.

102、获取第一终端当前所运行的操作系统信息作为第一参考值。102. Acquire information about the operating system currently running on the first terminal as a first reference value.

本发明实施例中,第一终端当前所运行的操作系统可为IOS、安卓或者WINDOWS等操作系统,具体采用何种操作系统,本发明实施例不做限定。以第一终端上运行安卓系统为例,第一参考值可为第一终端当前所运行的安卓系统的版本信息,例如Android 6.0。In the embodiment of the present invention, the operating system currently running on the first terminal may be an operating system such as IOS, Android, or WINDOWS. The specific operating system used is not limited in the embodiment of the present invention. Taking the Android system running on the first terminal as an example, the first reference value may be version information of the Android system currently running on the first terminal, such as Android 6.0.

103、向第二终端发送第一请求消息;其中,第一请求消息用于获取第二参考值,第二参考值为第二终端当前所运行的操作系统信息。103. Send a first request message to the second terminal; where the first request message is used to acquire a second reference value, and the second reference value is information about an operating system currently running on the second terminal.

本发明实施例中,第一终端与第二终端建立通信连接之后,通过该通信连接向第二终端发送第一请求消息;其中,第一请求消息用于使第二终端返回第二终端当前运行的操作系统信息;举例来说,第二终端当前所运行的操作系统为IOS系统,版本号为10.0.2。In the embodiment of the present invention, after the first terminal establishes a communication connection with the second terminal, it sends a first request message to the second terminal through the communication connection; wherein, the first request message is used to make the second terminal return to the second terminal currently running operating system information; for example, the operating system currently running on the second terminal is an IOS system with a version number of 10.0.2.

104、根据第一参考值和第二参考值,筛选第一终端中与第二终端当前所运行的操作系统兼容的数据作为目标数据。104. According to the first reference value and the second reference value, filter data in the first terminal that is compatible with the operating system currently running on the second terminal as target data.

举例来说,若第一终端运行安卓系统,第二终端运行IOS系统,则第一终端中很多应用程序的数据第二终端不兼容。在这种情况下,可以筛选第一终端中与第二终端当前所运行的操作系统兼容的数据传输至第二终端,例如照片、视频等。For example, if the first terminal runs the Android system and the second terminal runs the IOS system, the data of many applications in the first terminal are not compatible with the second terminal. In this case, the data in the first terminal that is compatible with the operating system currently running on the second terminal can be screened and transmitted to the second terminal, such as photos and videos.

105、将上述目标数据发送至第二终端。105. Send the foregoing target data to the second terminal.

本发明实施例中,在筛选了与第二终端当前所运行的操作系统兼容的数据作为目标数据后,通过之前建立的通信连接将目标数据发送至第二终端。In the embodiment of the present invention, after selecting data compatible with the operating system currently running on the second terminal as the target data, the target data is sent to the second terminal through the previously established communication connection.

作为一种可选的实施方式,在向第二终端发送了目标数据后,第一终端还可以统计第一终端中除上述目标数据以外数据的清单,之后输出包含上述清单的通知消息以通知用户未能发送至第二终端的数据。As an optional implementation, after sending the target data to the second terminal, the first terminal can also collect a list of data in the first terminal other than the above target data, and then output a notification message containing the above list to notify the user Failed to send data to the second terminal.

由此可见,实施图1所描述的方法,可以避免由于进行数据传输的两个终端设备运行不同的操作系统,接收到的数据无法使用的问题。除此之外,在向作为数据接收方的终端设备发送了其能够兼容的数据后,可以输出通知消息以提示用户有不兼容的数据没有传输,用户可以根据不兼容数据的清单选择将这些剩余数据上传云端服务器保存,或者在接收方终端设备的本地创建本地副本。It can be seen that implementing the method described in FIG. 1 can avoid the problem that the received data cannot be used because the two terminal devices performing data transmission run different operating systems. In addition, after sending compatible data to the terminal device as the data receiver, a notification message can be output to remind the user that there is incompatible data that has not been transmitted, and the user can choose to delete the remaining data according to the list of incompatible data. The data is uploaded to the cloud server for storage, or a local copy is created locally on the receiver's terminal device.

请参阅图2,图2是本发明实施例公开的另一种数据传输方法的流程示意图。如图2所示,该方法可以包括以下步骤:Please refer to FIG. 2 . FIG. 2 is a schematic flowchart of another data transmission method disclosed in an embodiment of the present invention. As shown in Figure 2, the method may include the following steps:

201、第一终端接收启动数据传输的操作指令。201. The first terminal receives an operation instruction for starting data transmission.

202、获取第一终端当前所运行的操作系统信息作为第一参考值。202. Acquire information about the operating system currently running on the first terminal as a first reference value.

203、向第二终端发送第一请求消息;其中,第一请求消息用于获取第二参考值,第二参考值为第二终端当前所运行的操作系统信息。203. Send a first request message to the second terminal; where the first request message is used to acquire a second reference value, and the second reference value is information about the operating system currently running on the second terminal.

204、根据第一参考值和第二参考值,筛选第一终端中与第二终端当前所运行的操作系统兼容的数据作为目标数据。204. According to the first reference value and the second reference value, filter data in the first terminal that is compatible with the operating system currently running on the second terminal as target data.

举例来说,若第一终端运行安卓系统,第二终端运行IOS系统,则第一终端中很多应用程序的数据第二终端不兼容。在这种情况下,可以筛选第一终端中与第二终端当前所运行的操作系统兼容的数据传输至第二终端,例如照片、视频等。For example, if the first terminal runs the Android system and the second terminal runs the IOS system, the data of many applications in the first terminal are not compatible with the second terminal. In this case, the data in the first terminal that is compatible with the operating system currently running on the second terminal can be screened and transmitted to the second terminal, such as photos and videos.

除此之外,第一终端可以统计目标数据的大小,之后向第二终端发送第二请求消息以获取第二终端可用于接收目标数据的存储空间大小;若上述存储空间大小小于目标数据的大小,则向第二终端发送第二提示消息以使第二终端清理存储空间用于接收目标数据。In addition, the first terminal can count the size of the target data, and then send a second request message to the second terminal to obtain the size of the storage space that the second terminal can use to receive the target data; if the size of the above storage space is smaller than the size of the target data , then send a second prompt message to the second terminal to enable the second terminal to clear up the storage space for receiving the target data.

205、将上述目标数据发送至第二终端。205. Send the foregoing target data to the second terminal.

206、根据第一参考值和第二参考值,确定第一终端中与第二终端当前所运行的操作系统不兼容的应用程序。206. Determine, according to the first reference value and the second reference value, an application program in the first terminal that is incompatible with the operating system currently running on the second terminal.

举例来说,若第一终端运行安卓系统,第二终端运行IOS系统,则第一终端中很多应用程序第二终端不兼容。For example, if the first terminal runs the Android system and the second terminal runs the IOS system, many applications in the first terminal are not compatible with the second terminal.

207、向第二终端发送包含上述与第二终端当前所运行的操作系统不兼容的应用程序的列表的第一提示消息,以便于第二终端根据上述列表下载兼容于第二终端当前所运行的操作系统的相应应用程序。207. Send to the second terminal a first prompt message including a list of applications incompatible with the operating system currently running on the second terminal, so that the second terminal can download applications compatible with the operating system currently running on the second terminal according to the above list. corresponding applications for the operating system.

本发明实施例中,第二终端可以根据上述不兼容的应用程序列表,从应用商店下载兼容于第二终端的系统的相应应用程序。In the embodiment of the present invention, the second terminal may download corresponding application programs compatible with the system of the second terminal from the application store according to the foregoing list of incompatible application programs.

由此可见,实施图2所描述的方法,可以避免由于进行数据传输的两个终端设备运行不同的操作系统,接收到的数据无法使用的问题。除此之外,作为数据接收方的终端设备可以根据上述不兼容的应用程序列表,从应用商店下载兼容于其系统的相应应用程序。It can be seen that implementing the method described in FIG. 2 can avoid the problem that the received data cannot be used because the two terminal devices performing data transmission run different operating systems. In addition, the terminal device as the data receiver can download the corresponding application program compatible with its system from the application store according to the above incompatible application program list.

请参阅图3,图3是本发明实施例公开的一种数据传输设备的结构示意图。如图3所示,该设备可以包括:Please refer to FIG. 3 . FIG. 3 is a schematic structural diagram of a data transmission device disclosed in an embodiment of the present invention. As shown in Figure 3, the equipment can include:

接收单元301,用于接收启动数据传输的操作指令。The receiving unit 301 is configured to receive an operation instruction for starting data transmission.

第一获取单元302,用于获取第一终端当前所运行的操作系统信息作为第一参考值。The first obtaining unit 302 is configured to obtain information about the operating system currently running on the first terminal as a first reference value.

连接单元303,用于向第二终端发送第一请求消息;其中,第一请求消息用于获取第二参考值,第二参考值为第二终端当前所运行的操作系统信息。The connecting unit 303 is configured to send a first request message to the second terminal; wherein, the first request message is used to obtain a second reference value, and the second reference value is information about an operating system currently running on the second terminal.

筛选单元304,用于根据第一参考值和第二参考值,筛选第一终端中与第二终端当前所运行的操作系统兼容的数据作为目标数据。The filtering unit 304 is configured to, according to the first reference value and the second reference value, filter data in the first terminal that is compatible with the operating system currently running on the second terminal as target data.

第一发送单元305,用于将上述目标数据发送至第二终端。The first sending unit 305 is configured to send the above target data to the second terminal.

由此可见,利用图3所描述的数据传输设备,可以避免由于进行数据传输的两个终端设备运行不同的操作系统,接收到的数据无法使用的问题。It can be seen that by using the data transmission device described in FIG. 3 , the problem that the received data cannot be used due to the two terminal devices performing data transmission running different operating systems can be avoided.

请一并参阅图4,图4是本发明实施例公开的另一种数据传输设备的结构示意图。其中,图4所示的数据传输设备是由图3所示的设备进行优化得到的,与图3所示的设备相比,图4所示的设备还包括:Please refer to FIG. 4 together. FIG. 4 is a schematic structural diagram of another data transmission device disclosed in an embodiment of the present invention. Among them, the data transmission equipment shown in Figure 4 is obtained by optimizing the equipment shown in Figure 3. Compared with the equipment shown in Figure 3, the equipment shown in Figure 4 also includes:

确定单元306,用于根据第一参考值和第二参考值,确定第一终端中与第二终端当前所运行的操作系统不兼容的应用程序。The determining unit 306 is configured to determine, according to the first reference value and the second reference value, the application program in the first terminal that is incompatible with the operating system currently running on the second terminal.

第二发送单元307,用于向第二终端发送包含上述与第二终端当前所运行的操作系统不兼容的应用程序的列表的第一提示消息,以便于第二终端根据上述列表下载兼容于第二终端当前所运行的操作系统的相应应用程序。The second sending unit 307 is configured to send to the second terminal a first prompt message including a list of the above-mentioned application programs incompatible with the operating system currently running on the second terminal, so that the second terminal can download the application programs compatible with the second terminal according to the above list. Two corresponding application programs of the operating system currently running on the terminal.

作为一种可选的实施方式,上述连接单元303,包括:As an optional implementation manner, the above connection unit 303 includes:

建立子单元3031,用于建立个人热点。The establishment subunit 3031 is used to establish a personal hotspot.

使能子单元3032,用于使第二终端连接到上述个人热点以建立上述通信连接。The enabling subunit 3032 is configured to enable the second terminal to connect to the aforementioned personal hotspot to establish the aforementioned communication connection.

作为一种可选的实施方式,图4所示的设备还包括:As an optional implementation manner, the device shown in Figure 4 also includes:

生成单元308,用于生成用于接入上述个人热点的加密二维码;A generating unit 308, configured to generate an encrypted two-dimensional code for accessing the personal hotspot;

第二获取单元309,用于获取第二终端通过扫描上述加密二维码而输入的密码;The second acquiring unit 309 is configured to acquire the password input by the second terminal by scanning the encrypted two-dimensional code;

上述使能子单元3032,具体用于验证上述密码是否为预设密码,若是,则使第二终端连接到上述个人热点以建立上述通信连接。The enabling subunit 3032 is specifically configured to verify whether the password is a preset password, and if so, make the second terminal connect to the personal hotspot to establish the communication connection.

由此可见,利用图4所描述的数据传输设备,可以避免由于进行数据传输的两个终端设备运行不同的操作系统,接收到的数据无法使用的问题。除此之外,两个终端设备间通过加密个人热点的方式建立通信连接,可以降低数据传输过程中数据被泄露的风险。It can be seen that by using the data transmission device described in FIG. 4 , the problem that the received data cannot be used due to the two terminal devices performing data transmission running different operating systems can be avoided. In addition, establishing a communication connection between two terminal devices through an encrypted personal hotspot can reduce the risk of data leakage during data transmission.

请参阅图5,图5为本发明实施例公开的一种终端设备500的结构示意图。如图5所示,终端设备500包括:处理器501以及存储器502;其中存储器502可以用于处理器501执行数据处理所需要的缓存,还可以用于提供处理器501执行数据处理调用的数据以及获得的结果数据的存储空间。Please refer to FIG. 5 , which is a schematic structural diagram of a terminal device 500 disclosed in an embodiment of the present invention. As shown in FIG. 5, the terminal device 500 includes: a processor 501 and a memory 502; wherein the memory 502 can be used for the cache required by the processor 501 to perform data processing, and can also be used to provide data for the processor 501 to perform data processing calls and The storage space for the obtained result data.

在本发明实施例中,处理器501通过调用存储于存储器502中的程序代码,用于执行以下操作:In the embodiment of the present invention, the processor 501 is used to perform the following operations by calling the program code stored in the memory 502:

第一终端接收启动数据传输的操作指令;The first terminal receives an operation instruction for starting data transmission;

获取第一终端当前所运行的操作系统信息作为第一参考值;Acquiring information about the operating system currently running on the first terminal as a first reference value;

向第二终端发送第一请求消息;其中,第一请求消息用于获取第二参考值,第二参考值为第二终端当前所运行的操作系统信息;Sending a first request message to the second terminal; wherein, the first request message is used to obtain a second reference value, and the second reference value is information about the operating system currently running on the second terminal;

根据第一参考值和第二参考值,筛选第一终端中与第二终端当前所运行的操作系统兼容的数据作为目标数据;According to the first reference value and the second reference value, screening the data in the first terminal that is compatible with the operating system currently running on the second terminal as the target data;

将上述目标数据发送至第二终端。Send the above target data to the second terminal.

由此可见,在图5所描述的终端设备中,可以避免由于进行数据传输的两个终端设备运行不同的操作系统,接收到的数据无法使用的问题。It can be seen that, in the terminal device described in FIG. 5 , the problem that the received data cannot be used because the two terminal devices performing data transmission run different operating systems can be avoided.

请参阅图6,图6为本发明实施例公开的另一种终端设备600的结构示意图。如图6所示,为了便于说明,仅示出了与本发明实施例相关的部分,具体技术细节未揭示的,请参照本发明实施例方法部分。该终端可以为包括手机、平板电脑、PDA(Personal DigitalAssistant,个人数字助理)、POS(Point of Sales,销售终端)、车载电脑等任意终端设备,以终端为手机为例:Please refer to FIG. 6 . FIG. 6 is a schematic structural diagram of another terminal device 600 disclosed in an embodiment of the present invention. As shown in FIG. 6 , for ease of description, only the parts related to the embodiments of the present invention are shown. For specific technical details not disclosed, please refer to the method part of the embodiments of the present invention. The terminal can be any terminal device including mobile phone, tablet computer, PDA (Personal Digital Assistant, personal digital assistant), POS (Point of Sales, sales terminal), vehicle-mounted computer, etc. Taking the terminal as a mobile phone as an example:

图6示出的是与本发明实施例提供的终端相关的手机的部分结构的框图。参考图6,手机包括:射频(Radio Frequency,RF)电路601、存储器602、输入单元603、显示单元604、传感器605、音频电路606、无线保真(wireless fidelity,WiFi)模块607、处理器608、以及电源609等部件。本领域技术人员可以理解,图6中示出的手机结构并不构成对手机的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。FIG. 6 shows a block diagram of a partial structure of a mobile phone related to the terminal provided by the embodiment of the present invention. Referring to FIG. 6 , the mobile phone includes: a radio frequency (Radio Frequency, RF) circuit 601, a memory 602, an input unit 603, a display unit 604, a sensor 605, an audio circuit 606, a wireless fidelity (wireless fidelity, WiFi) module 607, and a processor 608 , and power supply 609 and other components. Those skilled in the art can understand that the structure of the mobile phone shown in FIG. 6 does not constitute a limitation to the mobile phone, and may include more or less components than shown in the figure, or combine some components, or arrange different components.

下面结合图6对手机的各个构成部件进行具体的介绍:The following is a specific introduction to each component of the mobile phone in conjunction with Figure 6:

RF电路601可用于收发信息或通话过程中,信号的接收和发送,特别地,将基站的下行信息接收后,给处理器608处理;另外,将设计上行的数据发送给基站。通常,RF电路601包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器(Low NoiseAmplifier,LNA)、双工器等。此外,RF电路601还可以通过无线通信与网络和其他设备通信。上述无线通信可以使用任一通信标准或协议,包括但不限于全球移动通讯系统(GlobalSystem of Mobile communication,GSM)、通用分组无线服务(General Packet RadioService,GPRS)、码分多址(Code Division Multiple Access,CDMA)、宽带码分多址(Wideband Code Division Multiple Access,WCDMA)、长期演进(Long Term Evolution,LTE)、电子邮件、短消息服务(Short Messaging Service,SMS)等。The RF circuit 601 can be used for sending and receiving information or receiving and sending signals during a call. In particular, after receiving the downlink information from the base station, it is processed by the processor 608; in addition, the designed uplink data is sent to the base station. Generally, the RF circuit 601 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier (Low Noise Amplifier, LNA), a duplexer, and the like. In addition, the RF circuit 601 can also communicate with networks and other devices through wireless communication. The above-mentioned wireless communication can use any communication standard or protocol, including but not limited to Global System of Mobile Communication (Global System of Mobile communication, GSM), General Packet Radio Service (General Packet Radio Service, GPRS), Code Division Multiple Access (Code Division Multiple Access) , CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (Long Term Evolution, LTE), email, Short Message Service (Short Messaging Service, SMS), etc.

存储器602可用于存储软件程序以及模块,处理器608通过运行存储在存储器602的软件程序以及模块,从而执行手机的各种功能应用以及数据处理。存储器602可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器602可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory 602 can be used to store software programs and modules, and the processor 608 executes various functional applications and data processing of the mobile phone by running the software programs and modules stored in the memory 602 . The memory 602 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, at least one application program required by a function (such as a sound playback function, an image playback function, etc.); Data created by the use of mobile phones (such as audio data, phonebook, etc.), etc. In addition, the memory 602 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage devices.

输入单元603可用于接收输入的数字或字符信息,以及产生与手机的用户设置以及功能控制有关的键信号输入。具体地,输入单元603可包括触控面板6031以及其他输入设备6032。触控面板6031,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板6031上或在触控面板6031附近的操作),并根据预先设定的程式驱动相应的连接装置。可选的,触控面板6031可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器608,并能接收处理器608发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板6031。除了触控面板6031,输入单元603还可以包括其他输入设备6032。具体地,其他输入设备6032可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。The input unit 603 can be used to receive input numbers or character information, and generate key signal input related to user settings and function control of the mobile phone. Specifically, the input unit 603 may include a touch panel 6031 and other input devices 6032 . The touch panel 6031, also referred to as a touch screen, can collect touch operations of the user on or near it (for example, the user uses any suitable object or accessory such as a finger or a stylus on the touch panel 6031 or near the touch panel 6031). operation), and drive the corresponding connection device according to the preset program. Optionally, the touch panel 6031 may include two parts, a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, and detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and sends it to the to the processor 608, and can receive and execute commands sent by the processor 608. In addition, the touch panel 6031 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel 6031 , the input unit 603 may also include other input devices 6032 . Specifically, other input devices 6032 may include, but are not limited to, one or more of physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, joysticks, and the like.

显示单元604可用于显示由用户输入的信息或提供给用户的信息以及手机的各种菜单。显示单元604可包括显示面板6041,可选的,可以采用液晶显示器(Liquid CrystalDisplay,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板6041。进一步的,触控面板6031可覆盖显示面板6041,当触控面板6031检测到在其上或附近的触摸操作后,传送给处理器608以确定触摸事件的类型,随后处理器608根据触摸事件的类型在显示面板6041上提供相应的视觉输出。虽然在图6中,触控面板6031与显示面板6041是作为两个独立的部件来实现手机的输入和输入功能,但是在某些实施例中,可以将触控面板6031与显示面板6041集成而实现手机的输入和输出功能。The display unit 604 can be used to display information input by the user or provided to the user and various menus of the mobile phone. The display unit 604 may include a display panel 6041. Optionally, the display panel 6041 may be configured in the form of a liquid crystal display (Liquid Crystal Display, LCD), an organic light-emitting diode (Organic Light-Emitting Diode, OLED), or the like. Furthermore, the touch panel 6031 can cover the display panel 6041. When the touch panel 6031 detects a touch operation on or near it, it sends it to the processor 608 to determine the type of the touch event, and then the processor 608 according to the touch event The type provides a corresponding visual output on the display panel 6041. Although in FIG. 6 , the touch panel 6031 and the display panel 6041 are used as two independent components to realize the input and input functions of the mobile phone, in some embodiments, the touch panel 6031 and the display panel 6041 can be integrated to form a mobile phone. Realize the input and output functions of the mobile phone.

手机还可包括至少一种传感器605,比如光传感器、运动传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板6041的亮度,接近传感器可在手机移动到耳边时,关闭显示面板6041和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;至于手机还可配置的陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。The handset may also include at least one sensor 605, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 6041 according to the brightness of the ambient light, and the proximity sensor may turn off the display panel 6041 and/or or backlight. As a kind of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in various directions (generally three axes), and can detect the magnitude and direction of gravity when it is stationary, and can be used to identify the application of mobile phone posture (such as horizontal and vertical screen switching, related Games, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tap), etc.; as for other sensors such as gyroscope, barometer, hygrometer, thermometer, infrared sensor, etc. repeat.

音频电路606、扬声器6061,传声器6062可提供用户与手机之间的音频接口。音频电路606可将接收到的音频数据转换后的电信号,传输到扬声器6061,由扬声器6061转换为声音信号输出;另一方面,传声器6062将收集的声音信号转换为电信号,由音频电路606接收后转换为音频数据,再将音频数据输出处理器608处理后,经RF电路601以发送给比如另一手机,或者将音频数据输出至存储器602以便进一步处理。The audio circuit 606, the speaker 6061 and the microphone 6062 can provide an audio interface between the user and the mobile phone. The audio circuit 606 can transmit the electrical signal converted from the received audio data to the speaker 6061, and the speaker 6061 converts it into an audio signal for output; After being received, it is converted into audio data, and then the audio data is processed by the output processor 608, and then sent to another mobile phone through the RF circuit 601, or the audio data is output to the memory 602 for further processing.

WiFi属于短距离无线传输技术,手机通过WiFi模块607可以帮助用户收发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带互联网访问。虽然图6示出了WiFi模块607,但是可以理解的是,其并不属于手机的必须构成,完全可以根据需要在不改变发明的本质的范围内而省略。WiFi is a short-distance wireless transmission technology. The mobile phone can help users send and receive emails, browse web pages, and access streaming media through the WiFi module 607, which provides users with wireless broadband Internet access. Although FIG. 6 shows a WiFi module 607, it can be understood that it is not an essential component of the mobile phone, and can be completely omitted as required without changing the essence of the invention.

处理器608是手机的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在存储器602内的软件程序和/或模块,以及调用存储在存储器602内的数据,执行手机的各种功能和处理数据,从而对手机进行整体监控。可选的,处理器608可包括一个或多个处理单元;优选的,处理器608可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器608中。The processor 608 is the control center of the mobile phone. It uses various interfaces and lines to connect various parts of the entire mobile phone. By running or executing software programs and/or modules stored in the memory 602, and calling data stored in the memory 602, execution Various functions and processing data of the mobile phone, so as to monitor the mobile phone as a whole. Optionally, the processor 608 may include one or more processing units; preferably, the processor 608 may integrate an application processor and a modem processor, wherein the application processor mainly processes operating systems, user interfaces, and application programs, etc. , the modem processor mainly handles wireless communications. It can be understood that the foregoing modem processor may not be integrated into the processor 608 .

手机还包括给各个部件供电的电源609(比如电池),优选的,电源可以通过电源管理系统与处理器608逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The mobile phone also includes a power supply 609 (such as a battery) for supplying power to various components. Preferably, the power supply can be logically connected to the processor 608 through the power management system, so that functions such as charging, discharging, and power consumption management can be realized through the power management system.

尽管未示出,手机还可以包括摄像头、蓝牙模块等,在此不再赘述。Although not shown, the mobile phone may also include a camera, a Bluetooth module, etc., which will not be repeated here.

前述实施例中,各步骤方法流程可以基于该终端设备的结构实现。其中应用层和操作系统内核均可视为处理器608的抽象化结构的组成部分。In the foregoing embodiments, the method flow of each step can be implemented based on the structure of the terminal device. Both the application layer and the operating system kernel can be regarded as components of the abstract structure of the processor 608 .

在本发明实施例中,处理器608通过调用存储于存储器602中的程序代码,用于执行以下操作:In the embodiment of the present invention, the processor 608 is used to perform the following operations by calling the program code stored in the memory 602:

第一终端接收启动数据传输的操作指令;The first terminal receives an operation instruction for starting data transmission;

获取第一终端当前所运行的操作系统信息作为第一参考值;Acquiring information about the operating system currently running on the first terminal as a first reference value;

向第二终端发送第一请求消息;其中,第一请求消息用于获取第二参考值,第二参考值为第二终端当前所运行的操作系统信息;Sending a first request message to the second terminal; wherein, the first request message is used to obtain a second reference value, and the second reference value is information about the operating system currently running on the second terminal;

根据第一参考值和第二参考值,筛选第一终端中与第二终端当前所运行的操作系统兼容的数据作为目标数据;According to the first reference value and the second reference value, screening the data in the first terminal that is compatible with the operating system currently running on the second terminal as the target data;

将上述目标数据发送至第二终端。Send the above target data to the second terminal.

作为一种可选的实施方式,处理器608通过调用存储于存储器602中的程序代码,还用于执行以下操作:As an optional implementation manner, the processor 608 is further configured to perform the following operations by calling the program code stored in the memory 602:

根据第一参考值和第二参考值,确定第一终端中与第二终端当前所运行的操作系统不兼容的应用程序;determining an application in the first terminal that is incompatible with an operating system currently running on the second terminal according to the first reference value and the second reference value;

向第二终端发送包含上述与第二终端当前所运行的操作系统不兼容的应用程序的列表的第一提示消息,以便于第二终端根据上述列表下载兼容于第二终端当前所运行的操作系统的相应应用程序。sending to the second terminal a first prompt message containing the above-mentioned list of applications incompatible with the operating system currently running on the second terminal, so that the second terminal can download the operating system compatible with the operating system currently running on the second terminal according to the above-mentioned list corresponding application.

由此可见,在图6所描述的终端设备中,可以避免由于进行数据传输的两个终端设备运行不同的操作系统,接收到的数据无法使用的问题。It can be seen that, in the terminal device described in FIG. 6 , the problem that the received data cannot be used because the two terminal devices performing data transmission run different operating systems can be avoided.

值得注意的是,上述数据传输设备及终端设备实施例中,所包括的各个单元只是按照功能逻辑进行划分的,但并不局限于上述的划分,只要能够实现相应的功能即可;另外,各功能单元的具体名称也只是为了便于相互区分,并不用于限制本发明的保护范围。It is worth noting that in the above embodiments of data transmission equipment and terminal equipment, each unit included is only divided according to functional logic, but is not limited to the above division, as long as the corresponding functions can be realized; in addition, each The specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the protection scope of the present invention.

另外,本领域普通技术人员可以理解实现上述各方法实施例中的全部或部分步骤是可以通过程序来指令相关的硬件完成,相应的程序可以存储于一种计算机可读存储介质中,上述提到的存储介质可以是只读存储器,磁盘或光盘等。In addition, those of ordinary skill in the art can understand that all or part of the steps in the above-mentioned method embodiments can be completed by instructing related hardware through programs, and the corresponding programs can be stored in a computer-readable storage medium. The storage medium can be read-only memory, magnetic disk or optical disk and so on.

以上仅为本发明较佳的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明实施例揭露的技术范围内,可轻易想到的变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应该以权利要求的保护范围为准。The above are only preferred specific implementation modes of the present invention, but the scope of protection of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed in the embodiments of the present invention. , should be covered within the protection scope of the present invention. Therefore, the protection scope of the present invention should be determined by the protection scope of the claims.

Claims (11)

1.一种数据传输方法,其特征在于,包括:1. A data transmission method, characterized in that, comprising: 第一终端接收启动数据传输的操作指令;The first terminal receives an operation instruction for starting data transmission; 获取所述第一终端当前所运行的操作系统信息作为第一参考值;所述操作系统信息包括:操作系统名称以及操作系统版本信息;Obtaining the operating system information currently running on the first terminal as a first reference value; the operating system information includes: operating system name and operating system version information; 向第二终端发送第一请求消息;其中,所述第一请求消息用于获取第二参考值,所述第二参考值为所述第二终端当前所运行的操作系统信息;Sending a first request message to the second terminal; wherein the first request message is used to obtain a second reference value, and the second reference value is information about an operating system currently running on the second terminal; 根据所述第一参考值和所述第二参考值,筛选所述第一终端中与所述第二终端当前所运行的操作系统兼容的数据作为目标数据;According to the first reference value and the second reference value, screening data in the first terminal that is compatible with the operating system currently running on the second terminal as target data; 将所述目标数据发送至所述第二终端;sending the target data to the second terminal; 根据所述第一参考值和所述第二参考值,确定所述第一终端中与所述第二终端当前所运行的操作系统不兼容的应用程序;determining an application in the first terminal that is incompatible with an operating system currently running on the second terminal according to the first reference value and the second reference value; 向所述第二终端发送包含所述与所述第二终端当前所运行的操作系统不兼容的应用程序的列表的第一提示消息,以便于所述第二终端根据所述列表下载兼容于所述第二终端当前所运行的操作系统的相应应用程序。Sending a first prompt message including a list of applications incompatible with the operating system currently running on the second terminal to the second terminal, so that the second terminal can download the application programs compatible with the operating system according to the list. The corresponding application program of the operating system currently running on the second terminal is described. 2.根据权利要求1所述方法,其特征在于,所述将所述目标数据发送至所述第二终端之后,所述方法还包括:2. The method according to claim 1, characterized in that, after the target data is sent to the second terminal, the method further comprises: 统计所述第一终端中除所述目标数据以外数据的清单;counting a list of data other than the target data in the first terminal; 输出包含所述清单的通知消息以通知用户未能发送至所述第二终端的数据。outputting a notification message including the list to notify the user of the data that failed to be sent to the second terminal. 3.根据权利要求1或2所述方法,其特征在于,所述向第二终端发送第一请求消息,包括:3. The method according to claim 1 or 2, wherein the sending the first request message to the second terminal comprises: 所述第一终端建立个人热点;The first terminal establishes a personal hotspot; 使所述第二终端连接到所述个人热点以建立通信连接。making the second terminal connect to the personal hotspot to establish a communication connection. 4.根据权利要求3所述方法,其特征在于,所述第一终端建立个人热点之后,所述方法还包括:4. The method according to claim 3, characterized in that, after the first terminal establishes a personal hotspot, the method further comprises: 生成用于接入所述个人热点的加密二维码;generating an encrypted two-dimensional code for accessing the personal hotspot; 所述使所述第二终端连接到所述个人热点以建立所述通信连接之前,所述方法还包括:Before making the second terminal connect to the personal hotspot to establish the communication connection, the method further includes: 获取所述第二终端通过扫描所述加密二维码而输入的密码;Obtaining the password input by the second terminal by scanning the encrypted two-dimensional code; 所述使所述第二终端连接到所述个人热点以建立所述通信连接,包括:The making the second terminal connect to the personal hotspot to establish the communication connection includes: 验证所述密码是否为预设密码,若是,则使所述第二终端连接到所述个人热点以建立所述通信连接。Verifying whether the password is a preset password, and if so, enabling the second terminal to connect to the personal hotspot to establish the communication connection. 5.根据权利要求4所述方法,其特征在于,所述筛选所述第一终端中与所述第二终端当前所运行的操作系统兼容的数据作为目标数据之后,所述方法还包括:5. The method according to claim 4, characterized in that, after filtering the data compatible with the operating system currently running on the second terminal in the first terminal as the target data, the method further comprises: 统计所述目标数据的大小;Count the size of the target data; 向所述第二终端发送第二请求消息以获取所述第二终端可用于接收所述目标数据的存储空间大小;sending a second request message to the second terminal to acquire the size of the storage space that the second terminal can use to receive the target data; 判断所述存储空间大小是否大于等于所述目标数据的大小;judging whether the size of the storage space is greater than or equal to the size of the target data; 若否,则向所述第二终端发送第二提示消息以使所述第二终端清理存储空间用于接收所述目标数据。If not, sending a second prompt message to the second terminal to enable the second terminal to clear up storage space for receiving the target data. 6.一种数据传输设备,其特征在于,包括:6. A data transmission device, characterized in that, comprising: 接收单元,用于接收启动数据传输的操作指令;a receiving unit, configured to receive an operation instruction for starting data transmission; 第一获取单元,用于获取第一终端当前所运行的操作系统信息作为第一参考值;所述操作系统信息包括:操作系统名称以及操作系统版本信息;The first acquiring unit is configured to acquire the operating system information currently running on the first terminal as a first reference value; the operating system information includes: operating system name and operating system version information; 连接单元,用于向第二终端发送第一请求消息;其中,所述第一请求消息用于获取第二参考值,所述第二参考值为所述第二终端当前所运行的操作系统信息;A connection unit, configured to send a first request message to the second terminal; wherein the first request message is used to acquire a second reference value, and the second reference value is information about an operating system currently running on the second terminal ; 筛选单元,用于根据所述第一参考值和所述第二参考值,筛选所述第一终端中与所述第二终端当前所运行的操作系统兼容的数据作为目标数据;A screening unit, configured to screen data in the first terminal that is compatible with the operating system currently running on the second terminal as target data according to the first reference value and the second reference value; 第一发送单元,用于将所述目标数据发送至所述第二终端;a first sending unit, configured to send the target data to the second terminal; 确定单元,用于根据所述第一参考值和所述第二参考值,确定所述第一终端中与所述第二终端当前所运行的操作系统不兼容的应用程序;a determining unit, configured to determine, according to the first reference value and the second reference value, an application program in the first terminal that is incompatible with an operating system currently running on the second terminal; 第二发送单元,用于向所述第二终端发送包含所述与所述第二终端当前所运行的操作系统不兼容的应用程序的列表的第一提示消息,以便于所述第二终端根据所述列表下载兼容于所述第二终端当前所运行的操作系统的相应应用程序。The second sending unit is configured to send to the second terminal a first prompt message including a list of application programs incompatible with the operating system currently running on the second terminal, so that the second terminal can according to the The list downloads corresponding application programs compatible with the operating system currently running on the second terminal. 7.根据权利要求6所述的设备,其特征在于,所述设备还包括:7. The device according to claim 6, further comprising: 第一统计单元,用于统计所述第一终端中除所述目标数据以外数据的清单;a first statistical unit, configured to make a statistical list of data in the first terminal other than the target data; 输出单元,用于输出包含所述清单的通知消息以通知用户未能发送至所述第二终端的数据。An output unit configured to output a notification message including the list to notify a user of the data that cannot be sent to the second terminal. 8.根据权利要求6或7所述的设备,其特征在于,所述连接单元,包括:8. The device according to claim 6 or 7, wherein the connection unit comprises: 建立子单元,用于建立个人热点;Create a subunit for creating a personal hotspot; 使能子单元,用于使所述第二终端连接到所述个人热点以建立通信连接。An enabling subunit is configured to enable the second terminal to connect to the personal hotspot to establish a communication connection. 9.根据权利要求8所述的设备,其特征在于,所述设备还包括:9. The device according to claim 8, further comprising: 生成单元,用于生成用于接入所述个人热点的加密二维码;A generating unit, configured to generate an encrypted two-dimensional code for accessing the personal hotspot; 第二获取单元,用于获取所述第二终端通过扫描所述加密二维码而输入的密码;a second acquiring unit, configured to acquire a password input by the second terminal by scanning the encrypted two-dimensional code; 所述使能子单元,具体用于验证所述密码是否为预设密码,若是,则使所述第二终端连接到所述个人热点以建立所述通信连接。The enabling subunit is specifically configured to verify whether the password is a preset password, and if so, make the second terminal connect to the personal hotspot to establish the communication connection. 10.根据权利要求9所述的设备,其特征在于,所述设备还包括:10. The device according to claim 9, further comprising: 第二统计单元,用于统计所述目标数据的大小;a second statistical unit, configured to count the size of the target data; 第三发送单元,用于向所述第二终端发送第二请求消息以获取所述第二终端可用于接收所述目标数据的存储空间大小;a third sending unit, configured to send a second request message to the second terminal to obtain the size of the storage space available for receiving the target data by the second terminal; 判断单元,用于判断所述存储空间大小是否大于等于所述目标数据的大小;a judging unit, configured to judge whether the size of the storage space is greater than or equal to the size of the target data; 第四发送单元,用于当所述存储空间大小小于所述目标数据的大小时,向所述第二终端发送第二提示消息以使所述第二终端清理存储空间用于接收所述目标数据。A fourth sending unit, configured to send a second prompt message to the second terminal when the size of the storage space is smaller than the size of the target data, so that the second terminal clears the storage space for receiving the target data . 11.一种计算机可读存储介质,其特征在于,所述计算机可读存储介质存储有程序,所述程序用于来指令相关的硬件,来完成权利要求1至5任意一项所述的方法。11. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a program, and the program is used to instruct related hardware to complete the method described in any one of claims 1 to 5 .
CN201610913465.5A 2016-10-19 2016-10-19 Data transmission method and equipment Expired - Fee Related CN106341809B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201810359577.XA CN108834132B (en) 2016-10-19 2016-10-19 Data transmission method and equipment and related medium product
CN201610913465.5A CN106341809B (en) 2016-10-19 2016-10-19 Data transmission method and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610913465.5A CN106341809B (en) 2016-10-19 2016-10-19 Data transmission method and equipment

Related Child Applications (1)

Application Number Title Priority Date Filing Date
CN201810359577.XA Division CN108834132B (en) 2016-10-19 2016-10-19 Data transmission method and equipment and related medium product

Publications (2)

Publication Number Publication Date
CN106341809A CN106341809A (en) 2017-01-18
CN106341809B true CN106341809B (en) 2018-06-26

Family

ID=57839376

Family Applications (2)

Application Number Title Priority Date Filing Date
CN201610913465.5A Expired - Fee Related CN106341809B (en) 2016-10-19 2016-10-19 Data transmission method and equipment
CN201810359577.XA Expired - Fee Related CN108834132B (en) 2016-10-19 2016-10-19 Data transmission method and equipment and related medium product

Family Applications After (1)

Application Number Title Priority Date Filing Date
CN201810359577.XA Expired - Fee Related CN108834132B (en) 2016-10-19 2016-10-19 Data transmission method and equipment and related medium product

Country Status (1)

Country Link
CN (2) CN106341809B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106921961A (en) * 2017-01-25 2017-07-04 北京奇虎科技有限公司 Data transmission method, device and mobile terminal between a kind of different system
CN107124714B (en) * 2017-04-13 2021-02-23 北京珠穆朗玛移动通信有限公司 Data transmission method and data transmission terminal
CN107071765B (en) * 2017-04-13 2020-05-22 北京珠穆朗玛移动通信有限公司 Data receiving method and data receiving terminal
CN107329780B (en) * 2017-06-21 2021-03-12 Oppo广东移动通信有限公司 Data processing methods and related products
CN107862199B (en) * 2017-10-31 2020-12-04 家家云科技(深圳)有限公司 Data access method, terminal and computer readable storage medium
CN108833090A (en) * 2018-05-25 2018-11-16 四川斐讯信息技术有限公司 It is a kind of to store the encryption method of equipment, decryption method and storage equipment
CN114390485B (en) * 2020-10-21 2026-02-03 华为技术有限公司 Data transmission method and electronic equipment

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102098800B (en) * 2010-12-28 2014-09-10 中兴通讯股份有限公司 Processing device and processing system for mobile gateway, and method for processing data
US20140274207A1 (en) * 2013-03-14 2014-09-18 Sheng-Yuan SHIH Data transfer device for mobile terminal
US20150081761A1 (en) * 2013-09-17 2015-03-19 Nvidia Corporation Determining format compatibility across a data processing device and another data processing device prior to transfer of a multimedia file therebetween
CN104202714A (en) * 2014-08-05 2014-12-10 深圳市元征科技股份有限公司 Mobile terminal near field communication method and system for heterogeneous operating system
CN105263195B (en) * 2015-09-23 2018-11-02 努比亚技术有限公司 Data transmission device and method

Also Published As

Publication number Publication date
CN108834132A (en) 2018-11-16
CN108834132B (en) 2021-06-01
CN106341809A (en) 2017-01-18

Similar Documents

Publication Publication Date Title
CN106341809B (en) Data transmission method and equipment
CN106658354B (en) Data transmission method and equipment
TWI512525B (en) Method and system for associating two terminals with each other, terminal and computer-readable storage medium
CN106951170A (en) A kind of split screen treating method and apparatus of mobile terminal, mobile terminal
WO2018161353A1 (en) Photo sharing method and device
CN106453511A (en) A data backup method and device
CN106550361B (en) Data transmission method, equipment and computer readable storage medium
CN103491525A (en) Method for achieving card-free mobile phone, mobile phone and server
CN106331370A (en) A data transmission method and terminal equipment
CN106385485A (en) Call recording method, device and mobile terminal
CN103491240B (en) A kind of alarm clock ringing method, device and mobile terminal
CN106201547A (en) Method, device and the mobile terminal that a kind of message based on mobile terminal shows
CN105812250A (en) Control method and device for pushing message to wearable device and mobile terminal
CN107046595A (en) Notification information processing method, device and mobile terminal
CN106484563B (en) Data migration method and terminal equipment
CN106658360A (en) A data transmission method and device
CN105703808A (en) Method and device for transmitting data
CN107332996A (en) Screen lock control method, device, computer storage medium and mobile terminal
CN110891262A (en) Bluetooth pairing method, system and terminal equipment
CN106506623B (en) Data transmission method and equipment
CN106302718B (en) Data downloading method and device
CN106453845A (en) Data transmission method and equipment
CN106371948A (en) Data backup method and terminal equipment
CN106487649A (en) Group message prompt control method and terminal device
CN106059898A (en) Information transmission 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
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Patentee after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Patentee before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

CP01 Change in the name or title of a patent holder
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20180626

CF01 Termination of patent right due to non-payment of annual fee