WO2012171288A1 - 数据传输方法、终端及计算机 - Google Patents

数据传输方法、终端及计算机 Download PDF

Info

Publication number
WO2012171288A1
WO2012171288A1 PCT/CN2011/080923 CN2011080923W WO2012171288A1 WO 2012171288 A1 WO2012171288 A1 WO 2012171288A1 CN 2011080923 W CN2011080923 W CN 2011080923W WO 2012171288 A1 WO2012171288 A1 WO 2012171288A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal
computer
connection
internet
data
Prior art date
Application number
PCT/CN2011/080923
Other languages
English (en)
French (fr)
Inventor
杜星海
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2012171288A1 publication Critical patent/WO2012171288A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/12Setup of transport tunnels

Definitions

  • the present invention relates to the field of communications, and in particular to a data transmission method, a terminal, and a computer.
  • BACKGROUND As terminals continuously integrate functions such as MP3, MP4, digital cameras, and Global Position System (GPS), the terminal not only satisfies the basic needs of people to make calls, but also provides rich practical and entertainment functions. .
  • mobile phone electronic maps can help people use their mobile phones to find their way to their destinations; mobile payment has become a very convenient way to pay electronically.
  • the network utility and entertainment functions provided by the terminal are basically to open the terminal general packet radio service (General Packet Radio Service, GPRS for short) Internet access function.
  • General Packet Radio Service General Packet Radio Service
  • the present invention provides a data transmission method, a terminal, and a computer, in which a terminal needs to support a function of a wireless network when performing network data transmission, resulting in a problem that a terminal that does not support the wireless Internet access function cannot access the data transmission of the network. To at least solve the problem.
  • a data transmission method is provided, which is applied to a terminal, and the steps performed by the terminal include: connecting with a computer, wherein the computer is connected to the Internet; and transmitting data through the Internet with the connection with the computer.
  • the connecting with the computer comprises: connecting by a transmission control protocol/network protocol link between the proxy client on the terminal and the proxy server on the computer.
  • the data transmission via the Internet connection through the connection with the computer comprises: using a socket to transmit data over the Internet through a connection with the computer.
  • the manner of connecting with the computer comprises at least one of the following: a data line, Bluetooth.
  • a data transmission method for use in a computer connected to the Internet the computer performing the steps comprising: connecting with the terminal; and transmitting data between the terminal and the Internet through the connection with the terminal .
  • the connecting with the terminal comprises: connecting by a transmission control protocol/network protocol link between the proxy client on the terminal and the proxy server on the computer.
  • the data transmission between the terminal and the Internet through the connection with the terminal comprises: using a socket to perform data transmission between the terminal and the Internet through the connection with the terminal.
  • a terminal including: a first connection module configured to be connected to a computer, wherein the computer is connected to the Internet; and the first transmission module is configured to perform the connection with the computer via the Internet data transmission.
  • the first connection module is arranged to connect via a transmission control protocol/network protocol link between the proxy client on the terminal where it is located and the proxy server on the computer.
  • the first transmission module is configured to use a socket to transmit data over the Internet through a connection with a computer.
  • a computer, connected to the Internet includes: a second connection module configured to be connected to the terminal; and a second transmission module configured to be connected to the terminal between the terminal and the Internet Data transfer.
  • the second connection module is configured to connect through a transmission control protocol/network protocol link between the proxy client on the terminal and the proxy server on the computer.
  • the second transmission module is configured to perform data transmission between the terminal and the Internet through a connection with the terminal by using a socket.
  • the connection with the computer is adopted, wherein the computer is connected to the Internet; and the data transmission by the connection with the computer and the Internet solves the function that the terminal needs the terminal to support the wireless network when performing network data transmission in the related art, resulting in A terminal that does not support the wireless Internet access function cannot perform data transmission of the network, thereby achieving the effect of improving the convenience of the terminal's Internet connection.
  • FIG. 1 is a first flowchart of a data transmission method according to an embodiment of the present invention
  • FIG. 2 is a second flowchart of a data transmission method according to an embodiment of the present invention
  • 4 is a structural block diagram of a computer according to an embodiment of the present invention
  • FIG. 5 is a structural block diagram of a terminal access system according to an embodiment of the present invention
  • FIG. 1 is a first flowchart of a data transmission method according to an embodiment of the present invention
  • FIG. 2 is a second flowchart of a data transmission method according to an embodiment of the present invention
  • 4 is a structural block diagram of a computer according to an embodiment of the present invention
  • FIG. 5 is a structural block diagram of a terminal access system according to an embodiment of the present invention
  • FIG. 1 is a first flowchart of a data transmission method according to an embodiment of the present invention
  • FIG. 2 is a second flowchart of a data transmission method according to an embodiment of the present invention
  • 4 is a structural block
  • FIG. 6 is a PC side software according to an embodiment of the present invention.
  • FIG. 1 is a flowchart of a data transmission method according to an embodiment of the present invention. As shown in FIG. 1, the steps performed by the terminal in the method include steps S102 and S104. Step S102: Connect to a computer, wherein the computer is connected to the Internet. Step S104: Data transmission is performed on the Internet through a connection with a computer.
  • the terminal is connected with a computer connected to the Internet, and the data is transmitted through the connection with the computer, so that the terminal can connect to the Internet through the computer, and the terminal needs to support the wireless Internet when the terminal performs network data transmission.
  • the function of the terminal that does not support the wireless Internet function cannot perform the data transmission of the network, thereby improving the convenience of the terminal's Internet connection.
  • the terminal transmits data through the connection with the computer, which can reduce the high transaction fee caused by a large amount of Internet traffic in the wireless Internet access, for example: downloading the mobile phone application software, automatically updating the virus virus database of the mobile phone antivirus software, and generating a large amount of GPRS flow.
  • step S102 there are various ways of connecting to the computer in step S102, and the technical problem can be solved by connecting with the computer.
  • a preferred embodiment of step S102 is described below: through the generation on the terminal The connection between the client and the proxy server on the computer is connected to the transport control protocol/network protocol link. With the preferred embodiment, the transmission control protocol/network protocol link of the existing protocol is used for connection, which reduces the development cost.
  • the method for transmitting data to the Internet in the step S104 can be performed in the same manner as the Internet.
  • the technical problem can be solved as long as the data can be transmitted through the connection with the computer.
  • the preferred embodiment of step S104 is as follows. Description: Use the socket to transmit data to the Internet through the connection with the computer.
  • the data is encapsulated, and the data is transmitted by using a socket, thereby realizing unified processing of data and improving the efficiency of data processing.
  • there are various ways of connecting to a computer and only two methods are listed below: data line, Bluetooth.
  • the method of connecting the computer with the data line realizes the connection by using the fixed line method, improves the reliability of the connection, connects with the computer by using the Bluetooth method, realizes the connection establishment by the wireless mode, and improves the connection.
  • the present embodiment provides a data transmission method.
  • FIG. 2 is a second flowchart of a data transmission method according to an embodiment of the present invention. As shown in FIG.
  • the computer performs the steps in the method, including: Step S202: Performing with the terminal Connecting; Step S204: Data transmission between the terminal and the Internet through the connection with the terminal.
  • Step S202 Performing with the terminal Connecting
  • Step S204 Data transmission between the terminal and the Internet through the connection with the terminal.
  • the computer is connected with the terminal, and the data is transmitted between the terminal and the Internet through the connection with the terminal, so that the computer can assist the terminal to connect to the Internet, and overcome the terminal to support the wireless Internet when the network data is transmitted.
  • the function of the terminal that does not support the wireless Internet function cannot perform the data transmission of the network, thereby improving the reliability of the terminal's Internet connection.
  • the terminal transmits data through the connection with the computer, which can reduce the high transaction fee caused by a large amount of Internet traffic in the wireless Internet access, for example: downloading the mobile phone application software, automatically updating the virus virus database of the mobile phone antivirus software, and generating a large amount of GPRS flow.
  • the connection is made through a transport control protocol/network protocol link between the proxy client on the terminal and the proxy server on the computer.
  • the transmission control protocol/network protocol link of the existing protocol is used for connection, which reduces the development cost.
  • the data transmission between the terminal and the Internet through the connection with the terminal in step S204 may be various, as long as the technical problem can be solved by the data transmission with the connection with the computer, the following step S204 Preferred embodiments are described.
  • the data is encapsulated, and the data is transmitted by using a socket, thereby realizing unified processing of data and improving the efficiency of data processing.
  • a data transmission software for performing the technical solutions described in the above embodiments and preferred embodiments.
  • a storage medium is also provided, wherein the data transfer software is stored in the storage medium, and the storage medium includes, but is not limited to, an optical disk, a floppy disk, a hard disk, a rewritable memory, and the like.
  • the embodiment of the present invention further provides a terminal, which can be used to implement the foregoing data transmission method, which has been described, and will not be described again.
  • the modules involved in the terminal are described below.
  • the terms "sub-module”, “module” may implement a combination of software and/or hardware of a predetermined function.
  • the terminal includes a first connection module 32 and a first transmission module 34.
  • the first connection module 32 is configured to be connected to a computer, wherein the computer is connected to the Internet; the first transmission module 34 is connected to the first connection module 32 for data transmission via the Internet connection.
  • the first connection module 32 is arranged to connect via a transport control protocol/network protocol link between the proxy client on the terminal on which it is located and the proxy server on the computer.
  • the first transmission module 34 is arranged to use the socket to transmit data over the Internet through a connection with a computer.
  • the embodiment of the present invention provides a computer, which is connected to the Internet.
  • the computer can be used to implement the above data transmission method.
  • the modules involved in the terminal are described below.
  • 4 is a structural block diagram of a computer including a second connection module 42 and a second transmission module 44 according to an embodiment of the present invention.
  • the above structure will be described in detail below.
  • the second connection module 42 is configured to be connected to the terminal;
  • the second transmission module 44 is connected to the second connection module 42 and configured to perform data transmission between the terminal and the Internet through the connection with the terminal.
  • the second connection module 42 is arranged to connect through a transmission control protocol/network protocol link between the proxy client on the terminal and the proxy server on the computer.
  • the second transmission module 44 is configured to perform data transmission between the terminal and the Internet through a connection with the terminal by using a socket.
  • the terminal and the computer described in the device embodiment correspond to the foregoing method embodiments, and the specific implementation process has been described in detail in the method embodiment, and details are not described herein again. The following description will be made in conjunction with the preferred embodiments.
  • Preferred Embodiment 1 This embodiment provides a terminal access system.
  • FIG. 5 is a structural block diagram of a terminal access system according to an embodiment of the present invention. As shown in FIG. 5, the system includes: a mobile phone side device 52, and a PC side device 54. The Internet side 56 is described in detail below.
  • the PC side device 54 includes: a connection proxy client (Client) module 542, a data calculation module 544, a connection proxy server module 546, and a mobile phone side device 52 including: a mobile phone browsing 522, a connection proxy server (Server) module 524, a data calculation module 526, a connection proxy Client module 528;
  • the Internet side 56 includes: a network (WEB) server 562 or an FTP server 564 providing various services, a PC side device 54 and a mobile phone
  • the side devices 52 are connected by a physical transmission medium (data line, Bluetooth) 58.
  • the client module 528 is connected and performs data transmission, and the connection between the two is not limited to the connection established by the data line or the Bluetooth mode.
  • the data calculation module 544 of the PC side device and the data calculation module 526 of the mobile phone side device are configured to process data corresponding to multiple protocols, such as a file transfer protocol (file tras, referred to as ftp), a hypertext transfer protocol (hypertext transfer protocol, For example, http), a simple message transfer protocol (smtp), a post office protocol (pop), specifically, the data calculation module 544 of the PC side device includes: Http data processing module 5442, ftp data processing module 5444, smtp data processing module 5446, pop data processing module 5448, data calculation module 526 of the mobile phone side device includes: data processing module 5262, ftp data processing module 5264, smtp data processing module 5266 , pop data processing module 5268.
  • Preferred Embodiment 2 This embodiment provides a method for a terminal to connect to the Internet through a PC side software. This embodiment is based on the terminal access system of the preferred embodiment 2. This embodiment combines the above embodiments and preferred embodiments thereof, and the method includes the following steps 1 to 8. Step 1: Establish a TCP/IP connection between the PC connection proxy server module and the mobile phone connection proxy Client module through the communication interface between the PC and the mobile phone. Step 2: The mobile browser sends a web request to browse the page. After the web request is captured by the mobile phone connection proxy server module, the mobile phone data calculation module is sent and encapsulated into a Socket data packet corresponding to the web request type.
  • the encapsulated Socket packet is transferred to the PC Connection Broker Server module by the Mobile Connection Agent Client module.
  • Step 3 The PC connection proxy server module sends the PC connection proxy Client module after the Socket data packet is sent to the PC data calculation module to parse the web request data.
  • Step 4 The PC connects to the Agent Client module and sends the web request directly to the web server.
  • Step 5 The web server returns the response page data according to the web request. After the page data is monitored and received by the PC connection proxy Client module, the transit PC data calculation module is encapsulated into a Socket data packet.
  • Step 6 The PC connects to the proxy server module, and transfers the Socket packet to the mobile phone connection proxy Client module.
  • Step 7 The mobile phone connects the proxy client module, and the Socket data packet is sent to the mobile phone data calculation module to parse the page data.
  • Step 8 The page data is returned to the mobile browser display by the mobile phone connection proxy server module.
  • the user only needs to connect the mobile phone to a PC that can access the Internet, and the mobile browser can connect to the Internet to surf the Internet.
  • Preferred Embodiment 3 This embodiment provides a method for a terminal to connect to the Internet through a PC side software. This embodiment combines the foregoing embodiments and preferred embodiments thereof.
  • FIG. 6 is a flowchart of a method for a terminal to connect to the Internet through a PC side software according to an embodiment of the present invention.
  • Step S602 Start a PC connection.
  • the server module monitors the socket data sent by the mobile terminal.
  • Step S604 Start the mobile phone connection proxy client (Client) module, and listen to the Socket data sent by the PC.
  • Step S606 Establish a TCP connection between the PC connection proxy server module and the mobile phone connection proxy Client module.
  • Step S608 Start the mobile phone connection proxy server module, and listen to the web request sent by the mobile phone browser.
  • Step S610 Start the PC connection proxy Client module, and listen to the web server to return the page data of the web request.
  • Step S612 The mobile phone browser generates a web request according to the user operation, and sends a mobile phone connection proxy server module.
  • Step S614 After the mobile phone connection proxy server module listens to the web request, the mobile phone data calculation module is transferred.
  • Step S616 If the web request is an http request, the mobile phone data calculation module invokes the http data processing to encapsulate the web request data into a Socket data packet marked with http; if the web request is an ftp request, the ftp data processing is invoked to encapsulate the web request data. Into a Socket packet with ftp markup. For other types of data requests, data encapsulation can be performed in a similar manner.
  • Step S618 The mobile phone data calculation module connects the encapsulated Socket data packet, and the transfer mobile phone connects to the proxy client module.
  • Step S620 The mobile phone connection proxy Client module sends the Socket data packet to the PC connection proxy server module through the TCP connection link.
  • Step S622 The PC connection proxy server module transfers the Socket data packet to the PC data calculation module.
  • Step S624 The PC data calculation module parses and restores the web request data according to the Socket type.
  • Step S626 The PC data calculation module will parse the web request, and transfer the PC connection proxy Client module.
  • Step S628 The PC connection proxy Client module sends the web request directly to the web server through the link of the TCP connection.
  • Step S630 The web server generates the response page data according to the instruction of the web request.
  • Step S632 The web server returns the response page data to the PC connection proxy Client module.
  • Step S634 After the PC connection proxy Client module listens to the returned page data, the PC data calculation module is transferred.
  • Step S636 The PC data calculation module encapsulates the page data of the web request into a corresponding Socket data packet according to the web request type. Specifically, if the web request is an http request, the PC data calculation module calls http data processing to encapsulate the web request data into a Socket data packet with an http identifier; if the web request is an ftp request, the ftp data processing is invoked to encapsulate the web request data. Into a Socket packet with ftp markup. For other types of data requests, data encapsulation can be performed in a similar manner.
  • Step S638 The PC data calculation module transfers the encapsulated Socket data packet, and transfers the PC connection proxy server module.
  • Step S640 The PC connection proxy server module sends the Socket data packet to the mobile phone connection proxy Client module through the link of the TCP connection.
  • Step S642 The mobile phone connection proxy Client module transfers the Socket data to the mobile phone data calculation module.
  • Step S644 The mobile phone data calculation module parses and restores the Socket data packet into page data of the web request.
  • Step S646 The mobile phone data calculation module connects the parsed and restored page data to the mobile phone connection proxy server module.
  • Step S648 The mobile phone connects to the proxy server module, and returns the page data of the web request directly to the mobile phone.
  • Step S650 The mobile browser parses and displays the page data.
  • steps shown in the flowchart of the accompanying drawings may be performed in a computer system such as a set of computer executable instructions, and, although the logical order is shown in the flowchart, in some cases, The steps shown or described may be performed in an order different than that herein.
  • a data transmission method, a terminal, and a computer are provided.
  • the terminal is connected to a computer connected to the Internet, and the data is transmitted through the connection with the computer, so that the terminal can connect to the Internet through the computer, thereby overcoming the terminal.
  • the terminal When performing network data transmission, the terminal needs to support the wireless Internet access function, which causes the terminal that does not support the wireless Internet access function to perform the problem of data transmission on the Internet, thereby improving the reliability of the terminal Internet connection. Moreover, the terminal transmits data through the connection with the computer, which can reduce the high call charge caused by a large amount of Internet traffic in the wireless Internet. It will be apparent to those skilled in the art that the various modules or steps of the present invention described above can be implemented by a general-purpose computing device that can be centralized on a single computing device or distributed across multiple computing devices.
  • the invention is not limited to any specific combination of hardware and software.
  • the above is only the preferred embodiment of the present invention, and is not intended to limit the present invention, and various modifications and changes can be made to the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and scope of the present invention are intended to be included within the scope of the present invention.

Landscapes

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

Abstract

本发明公开了数据传输方法、终端及计算机,该方法包括:与计算机进行连接,其中,计算机连接至互联网;通过与计算机的连接同互联网进行数据传输。通过本发明,克服了终端在进行网络数据传输时,需要终端支持无线上网功能,导致不支持无线上网功能的终端不能进行网络的数据传输的问题,提高了终端上网连接的便利性。

Description

数据传输方法、 终端及计算机 技术领域 本发明涉及通信领域, 具体而言, 涉及一种数据传输方法、 终端及计算机。 背景技术 随着终端不断融合 MP3、 MP4、数码相机、全球定位系统(Global Position System, 简称为 GPS) 上网等功能, 终端除了满足人们打电话的基本需求外, 还提供了丰富的 实用和娱乐功能。 如手机电子地图可以帮助人们利用手机来寻找前往目的地的路线; 手机支付也已成为一种非常便捷的电子支付方式。 然而终端提供的网络实用和娱乐功能, 基本是要开通终端通用分组无线业务 (General Packet Radio Service, 简称为 GPRS ) 上网功能, 才能使用。 在现有的技术 中, 手机连接互联网上网的方式, 目前都是通过设备的无线网络连接互联网上网的。 相关技术中, 终端在进行网络数据传输时, 需要终端支持无线网络的功能, 导致 不支持无线上网功能的终端不能进行网络的数据传输。 发明内容 针对终端在进行网络数据传输时, 需要终端支持无线网络的功能, 导致不支持 无线上网功能的终端不能接入网络的数据传输的问题, 本发明提供了一种数据传输 方法、 终端及计算机, 以至少解决该问题。 根据本发明的一个方面, 提供了一种数据传输方法, 应用于终端中, 终端执行的 步骤包括: 与计算机进行连接, 其中, 计算机连接至互联网; 通过与计算机的连接同 互联网进行数据传输。 优选地, 与计算机进行连接包括: 通过终端上的代理客户端与计算机上的代理服 务器之间的传输控制协议 /网络协议链路进行连接。 优选地, 通过与计算机的连接同互联网进行数据传输包括: 使用套接字的方式通 过与计算机的连接同互联网进行数据传输。 优选地, 与计算机进行连接的方式包括以下至少之一: 数据线、 蓝牙。 根据本发明的另一方面, 提供了一种数据传输方法, 应用于连接至互联网的计算 机中, 计算机执行的步骤包括: 与终端进行连接; 通过与终端的连接在终端与互联网 之间进行数据传输。 优选地, 与终端进行连接包括: 通过终端上的代理客户端与计算机上的代理服务 器之间的传输控制协议 /网络协议链路进行连接。 优选地, 通过与终端的连接在终端与互联网之间进行数据传输包括: 使用套接字 的方式通过与终端的连接在终端与互联网之间进行数据传输。 根据本发明的再一方面, 提供了一种终端, 包括: 第一连接模块, 设置为与计算 机进行连接, 其中, 计算机连接至互联网; 第一传输模块, 设置为通过与计算机的连 接同互联网进行数据传输。 优选地, 第一连接模块, 设置为通过其所在终端上的代理客户端与计算机上的代 理服务器之间的传输控制协议 /网络协议链路进行连接。 优选地, 第一传输模块, 设置为使用套接字的方式通过与计算机的连接同互联网 进行数据传输。 根据本发明的又一方面, 提供了一种计算机, 连接至互联网, 包括: 第二连接模 块, 设置为与终端进行连接; 第二传输模块, 设置为通过与终端的连接在终端与互联 网之间进行数据传输。 优选地, 第二连接模块, 设置为通过终端上的代理客户端与计算机上的代理服务 器之间的传输控制协议 /网络协议链路进行连接。 优选地, 第二传输模块, 设置为使用套接字的方式通过与终端的连接在终端与互 联网之间进行数据传输。 通过本发明, 采用与计算机进行连接, 其中, 计算机连接至互联网; 通过与计算 机的连接同互联网进行数据传输, 解决了相关技术中终端在进行网络数据传输时, 需 要终端支持无线网络的功能, 导致不支持无线上网功能的终端不能进行网络的数据传 输的问题, 进而达到了提高终端上网连接便利性的效果。 附图说明 此处所说明的附图用来提供对本发明的进一步理解, 构成本申请的一部分, 本发 明的示意性实施例及其说明用于解释本发明, 并不构成对本发明的不当限定。 在附图 中: 图 1是根据本发明实施例的数据传输方法的第一流程图; 图 2是根据本发明实施例的数据传输方法的第二流程图; 图 3是根据本发明实施例的终端的结构框图; 图 4是根据本发明实施例的计算机的结构框图; 图 5是根据本发明实施例的终端上网系统的结构框图; 以及 图 6是根据本发明实施例的终端通过 PC侧软件连接互联网上网的方法的流程图。 具体实施方式 下文中将参考附图并结合实施例来详细说明本发明。 需要说明的是, 在不冲突的 情况下, 本申请中的实施例及实施例中的特征可以相互组合。 本实施例提供了一种数据传输方法, 图 1是根据本发明实施例的数据传输方法的 流程图, 如图 1所示, 该方法中终端执行的步骤包括步骤 S102和步骤 S104。 步骤 S102: 与计算机进行连接, 其中, 计算机连接至互联网。 步骤 S104: 通过与计算机的连接同互联网进行数据传输。 通过上述步骤, 终端与连接至互联网的计算机进行连接, 并通过与计算机的连接 同互联网进行数据传输, 从而终端可以通过计算机连接至互联网, 克服了终端在进行 网络数据传输时, 需要终端支持无线上网的功能, 导致不支持无线上网功能的终端不 能进行网络的数据传输的问题, 提高了终端上网连接的便利性。 并且, 终端通过与计 算机的连接进行数据传输, 可以减少由于无线上网中大量的上网流量而造成的高额话 费, 例如: 对手机应用软件下载, 手机杀毒软件病毒库自动更新, 会产生大量的 GPRS 流量。 优选地,步骤 S102中与计算机进行连接的方式有多种,只要与计算机进行连接就 可以解决技术问题,下面对步骤 S102的一个优选实施方式进行说明:通过终端上的代 理客户端与计算机上的代理服务器之间的传输控制协议 /网络协议链路进行连接。通过 该优选实施例, 采用现有协议的传输控制协议 /网络协议链路进行连接, 减低了研发成 本。 优选地, 步骤 S104中与计算机的连接同互联网进行数据传输的方式可以有多种, 只要能够通过与计算机的连接同互联网进行数据传输就可以解决技术问题, 下面对步 骤 S104的一个优选实施方式进行说明:使用套接字的方式通过与计算机的连接同互联 网进行数据传输。 通过该优选实施例, 对数据进行封装, 采用套接字的方式进行数据 传输, 实现了对数据的统一化处理, 提高了数据处理的效率。 优选地, 与计算机进行连接的方式可以有多种, 下面仅列举两种方式: 数据线、 蓝牙。 需要说明的是, 采用数据线的方式与计算机进行连接, 实现了采用固定线路方 式进行连接, 提高了连接的可靠性, 采用蓝牙方式与计算机进行连接, 实现了无线方 式建立连接, 提高了连接的实用性。 本实施例提供了一种数据传输方法, 图 2是根据本发明实施例的数据传输方法的 第二流程图, 如图 2所示, 该方法中计算机执行的步骤包括: 步骤 S202: 与终端进行连接; 步骤 S204: 通过与终端的连接在终端与互联网之间进行数据传输。 通过上述步骤, 计算机与终端进行连接, 并通过与终端的连接在终端与互联网之 间进行数据传输, 从而计算机可以协助终端连接至互联网, 克服了终端在进行网络数 据传输时, 需要终端支持无线上网的功能, 导致不支持无线上网功能的终端不能进行 网络的数据传输的问题, 提高了终端上网连接的可靠性。 并且, 终端通过与计算机的 连接进行数据传输, 可以减少由于无线上网中大量的上网流量而造成的高额话费, 例 如: 对手机应用软件下载, 手机杀毒软件病毒库自动更新, 会产生大量的 GPRS流量。 优选地,步骤 S202中与终端进行连接的方式有多种,只要与计算机进行连接就可 以解决技术问题,下面对步骤 S202的一个优选实施方式进行说明。通过终端上的代理 客户端与计算机上的代理服务器之间的传输控制协议 /网络协议链路进行连接。通过该 优选实施例,采用现有协议的传输控制协议 /网络协议链路进行连接,减低了研发成本。 优选地,步骤 S204中通过与终端的连接在终端与互联网之间进行数据传输可以有 多种, 只要能够通过与计算机的连接同互联网进行数据传输就可以解决技术问题, 下 面对步骤 S204的一个优选实施方式进行说明。使用套接字的方式通过与终端的连接在 终端与互联网之间进行数据传输。 通过该优选实施例, 对数据进行封装, 采用套接字 的方式进行数据传输, 实现了对数据的统一化处理, 提高了数据处理的效率。 在另外一个实施例中, 还提供了一种数据传输软件, 该软件用于执行上述实施例 及优选实施例中描述的技术方案。 在另外一个实施例中, 还提供了一种存储介质, 该存储介质中存储有上述数据传 输软件, 该存储介质包括但不限于: 光盘、 软盘、 硬盘、 可擦写存储器等。 本发明实施例还提供了一种终端, 该终端可以用于实现上述数据传输方法, 已经 进行过说明的, 不再赘述, 下面对该终端中涉及到的模块进行说明。如以下所使用的, 术语"子模块"、 "模块"可以实现预定功能的软件和 /或硬件的组合。 尽管以下实施例所 描述的系统和方法较佳地以软件来实现, 但是硬件, 或者软件和硬件的组合的实现也 是可能并被构想的。 图 3是根据本发明实施例的终端的结构框图, 如图 3所示, 该终 端包括第一连接模块 32和第一传输模块 34, 下面对上述结构进行详细说明。 第一连接模块 32, 设置为与计算机进行连接, 其中, 计算机连接至互联网; 第一 传输模块 34,连接至第一连接模块 32,用于通过与计算机的连接同互联网进行数据传 输。 优选地, 第一连接模块 32, 设置为通过其所在终端上的代理客户端与计算机上的 代理服务器之间的传输控制协议 /网络协议链路进行连接。 优选地, 第一传输模块 34, 设置为使用套接字的方式通过与计算机的连接同互联 网进行数据传输。 本发明实施例提供了一种计算机, 连接至互联网, 该计算机可以用于实现上述数 据传输方法, 已经进行过说明的, 不再赘述, 下面对该终端中涉及到的模块进行说明。 图 4是根据本发明实施例的计算机的结构框图,包括第二连接模块 42和第二传输模块 44, 下面对上述结构进行详细说明。 第二连接模块 42, 设置为与终端进行连接; 第二传输模块 44, 连接至第二连接模 块 42, 设置为通过与终端的连接在终端与互联网之间进行数据传输。 优选地, 第二连接模块 42, 设置为通过终端上的代理客户端与计算机上的代理服 务器之间的传输控制协议 /网络协议链路进行连接。 优选地, 第二传输模块 44, 设置为使用套接字的方式通过与终端的连接在终端与 互联网之间进行数据传输。 需要说明的是, 装置实施例中描述的终端和计算机对应于上述的方法实施例, 其 具体的实现过程在方法实施例中已经进行过详细说明, 在此不再赘述。 下面将结合优选实施例进行说明。 优选实施例一 本实施例提供了一种终端上网系统, 图 5是根据本发明实施例的终端上网系统的 结构框图, 如图 5所示, 该系统包括: 手机侧装置 52, PC侧装置 54, 以及互联网侧 56, 下面对上述结构进行详细描述: PC侧装置 54包括: 连接代理客户端 (Client) 模块 542, 数据计算模块 544, 连 接代理 Server模块 546;手机侧装置 52包括:手机浏览器 522,连接代理服务器( Server) 模块 524, 数据计算模块 526, 连接代理 Client模块 528; 互联网侧 56包括: 提供各 种业务的网络 (WEB) 服务器 562或者 FTP服务器 564, PC侧装置 54和手机侧装置 52通过物理传输媒介 (数据线, 蓝牙) 58连接。 在本实施例中, PC侧装置的连接代理 Server模块 546和手机侧装置的连接代理
Client模块 528相连接, 并进行数据传输, 两者之间的连接, 不局限于通过数据线、 蓝牙方式建立的连接。 PC侧装置的数据计算模块 544和手机侧装置的数据计算模块 526, 用于处理多种协议对应的数据, 例如文件传输协议(file tras, 简称为 ftp), 超文 本传输协议 (hypertext transfer protocol, 简称为 http), 简单邮件传输协议 (simple message transfer protocol, 简称为 smtp), 由 |3局十办议 (post office protocol, 简称为 pop), 具体地, PC侧装置的数据计算模块 544包括: http数据处理模块 5442, ftp数据处理 模块 5444, smtp数据处理模块 5446, pop数据处理模块 5448, 手机侧装置的数据计 算模块 526包括:数据处理模块 5262, ftp数据处理模块 5264, smtp数据处理模块 5266, pop数据处理模块 5268。 优选实施例二 本实施例提供了一种终端通过 PC侧软件连接互联网上网的方法。 本实施例基于 优选实施例二的终端上网系统, 本实施例结合了上述实施例及其中的优选实施方式, 该方法包括如下步骤 1至步骤 8。 步骤 1: 通过 PC与手机之间的通信接口, 建立 PC连接代理 Server模块和手机连 接代理 Client模块之间的 TCP/IP连接。 步骤 2:手机浏览器发送浏览页面的 web请求。此 web请求被手机连接代理 Server 模块捕获后, 发送手机数据计算模块, 封装成 web请求类型对应的 Socket数据包。 此 封装的 Socket数据包被手机连接代理 Client模块中转给 PC连接代理 Server模块。 步骤 3 : PC连接代理 Server模块将 Socket数据包发送 PC数据计算模块解析出 web请求数据后, 发送 PC连接代理 Client模块。 步骤 4: PC连接代理 Client模块, 将 web请求直接发送 web服务器。 步骤 5: web服务器根据 web请求, 返回响应的页面数据。此页面数据被 PC连接 代理 Client模块监听接收后, 中转 PC数据计算模块, 封装成 Socket数据包。 步骤 6: PC连接代理 Server模块, 将 Socket数据包中转给手机连接代理 Client 模块。 步骤 7: 手机连接代理 Client模块, 将 Socket数据包发送手机数据计算模块解析 出页面数据。 步骤 8: 页面数据由手机连接代理 Server模块返回手机浏览器显示。 通过本优选实施例提供的数据传输方法, 对用户来说, 只需要将手机和一台可以 上网的 PC进行连接, 手机浏览器就可以连接互联网上网冲浪了。 优选实施例三 本实施例提供了一种终端通过 PC侧软件连接互联网上网的方法。 本实施例结合 了上述实施例及其中的优选实施方式, 图 6是根据本发明实施例的终端通过 PC侧软 件连接互联网上网的方法的流程图, 该方法包括如下步骤: 步骤 S602: 启动 PC连接代理服务器 (Server) 模块, 监听手机端发送的套接字 ( Socket) 数据。 步骤 S604: 启动手机连接代理客户端 (Client) 模块, 监听 PC端发送的 Socket 数据。 步骤 S606: 建立 PC连接代理 Server模块与手机连接代理 Client模块之间的 TCP 连接。 步骤 S608: 启动手机连接代理 Server模块, 监听手机浏览器发送的 web请求。 步骤 S610: 启动 PC连接代理 Client模块, 监听 web服务器返回 web请求的页面 数据。 步骤 S612:手机浏览器,根据用户操作,生成 web请求,发送手机连接代理 Server 模块。 步骤 S614:手机连接代理 Server模块监听到 web请求后,中转手机数据计算模块。 步骤 S616: 如果 web请求为 http请求, 手机数据计算模块调用 http数据处理将 web请求数据封装成带有 http标示的 Socket数据包; 如果 web请求为 ftp请求, 则调 用 ftp数据处理将 web请求数据封装成带有 ftp标示的 Socket数据包。 其他类型的数 据请求, 可以采用与此类似的方法进行数据封装。 步骤 S618: 手机数据计算模块将封装的 Socket数据包, 中转手机连接代理 Client 模块。 步骤 S620: 手机连接代理 Client模块将 Socket数据包通过 TCP连接的链路, 发 送 PC连接代理 Server模块。 步骤 S622: PC连接代理 Server模块将 Socket数据包中转 PC数据计算模块。 步骤 S624: PC数据计算模块根据 Socket类型, 解析和还原成 web请求数据。 步骤 S626: PC数据计算模块将解析后的 web请求, 中转 PC连接代理 Client模 块。 步骤 S628: PC连接代理 Client模块将 web请求, 通过 TCP连接的链路直接发送 web服务器。 步骤 S630: web服务器根据 web请求的指令, 生成响应的页面数据。 步骤 S632: web服务器将响应的页面数据, 返回 PC连接代理 Client模块。 步骤 S634: PC连接代理 Client模块监听到返回的页面数据后, 中转 PC数据计算 模块。 步骤 S636: PC数据计算模块根据 web请求类型, 将 web请求的页面数据封装成 对应的 Socket数据包。具体为,如果 web请求为 http请求, PC数据计算模块调用 http 数据处理将 web请求数据封装成带有 http标示的 Socket数据包; 如果 web请求为 ftp 请求, 则调用 ftp数据处理将 web请求数据封装成带有 ftp标示的 Socket数据包。 其 他类型的数据请求, 可以采用与此类似的方法进行数据封装。 步骤 S638: PC数据计算模块中转封装后的 Socket数据包,中转 PC连接代理 Server 模块。 步骤 S640: PC连接代理 Server模块将 Socket数据包, 通过 TCP连接的链路发送 手机连接代理 Client模块。 步骤 S642: 手机连接代理 Client模块将 Socket数据中转手机数据计算模块。 步骤 S644: 手机数据计算模块将 Socket数据包解析和还原为 web请求的页面数 据。 步骤 S646: 手机数据计算模块将解析和还原的页面数据中转手机连接代理 Server 模块。 步骤 S648: 手机连接代理 Server模块, 将 web请求的页面数据, 直接返回手机浏
步骤 S650: 手机浏览器解析和显示页面数据。 需要说明的是, 在附图的流程图示出的步骤可以在诸如一组计算机可执行指令的 计算机系统中执行, 并且, 虽然在流程图中示出了逻辑顺序, 但是在某些情况下, 可 以以不同于此处的顺序执行所示出或描述的步骤。 通过上述实施例, 提供了数据传输方法、 终端及计算机, 通过终端与连接至互联 网的计算机进行连接, 并通过与计算机的连接同互联网进行数据传输, 从而终端可以 通过计算机连接至互联网, 克服了终端在进行网络数据传输时, 需要终端支持无线上 网的功能, 导致不支持无线上网功能的终端不能进行上网的数据传输的问题, 提高了 终端上网连接的可靠性。 并且, 终端通过与计算机的连接进行数据传输, 可以减少由 于无线上网中大量的上网流量而造成的高额话费。 显然, 本领域的技术人员应该明白, 上述的本发明的各模块或各步骤可以用通用 的计算装置来实现, 它们可以集中在单个的计算装置上, 或者分布在多个计算装置所 组成的网络上, 可选地, 它们可以用计算装置可执行的程序代码来实现, 从而可以将 它们存储在存储装置中由计算装置来执行,或者将它们分别制作成各个集成电路模块, 或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。 这样, 本发明不限 制于任何特定的硬件和软件结合。 以上所述仅为本发明的优选实施例而已, 并不用于限制本发明, 对于本领域的技 术人员来说, 本发明可以有各种更改和变化。 凡在本发明的精神和原则之内, 所作的 任何修改、 等同替换、 改进等, 均应包含在本发明的保护范围之内。

Claims

权 利 要 求 书
1. 一种数据传输方法, 应用于终端中, 所述终端执行的步骤包括:
与计算机进行连接, 其中, 所述计算机连接至互联网;
通过与所述计算机的连接同所述互联网进行数据传输。
2. 根据权利要求 1所述的方法, 其中, 与计算机进行连接包括:
通过所述终端上的代理客户端与所述计算机上的代理服务器之间的传输控 制协议 /网络协议链路进行连接。
3. 根据权利要求 1所述的方法, 其中, 通过与所述计算机的连接同所述互联网进 行数据传输包括:
使用套接字的方式通过与所述计算机的连接同所述互联网进行数据传输。
4. 根据权利要求 1所述的方法, 其中, 与计算机进行连接的方式包括以下至少之 数据线、 蓝牙。
5. 一种数据传输方法, 应用于连接至互联网的计算机中, 所述计算机执行的步骤 包括:
与终端进行连接;
通过与所述终端的连接在所述终端与所述互联网之间进行数据传输。
6. 根据权利要求 5所述的方法, 其中, 与所述终端进行连接包括:
通过所述终端上的代理客户端与所述计算机上的代理服务器之间的传输控 制协议 /网络协议链路进行连接。
7. 根据权利要求 5所述的方法, 其中, 通过与所述终端的连接在所述终端与所述 互联网之间进行数据传输包括:
使用套接字的方式通过与所述终端的连接在所述终端与所述互联网之间进 行数据传输。
8. 一种终端, 包括:
第一连接模块, 设置为与计算机进行连接, 其中, 所述计算机连接至互联 网; 第一传输模块, 设置为通过与所述计算机的连接同所述互联网进行数据传 输。
9. 根据权利要求 8所述的终端, 其中, 所述第一连接模块, 设置为通过其所在终端上的代理客户端与所述计算机 上的代理服务器之间的传输控制协议 /网络协议链路进行连接。
10. 根据权利要求 8所述的终端, 其中, 所述第一传输模块, 设置为使用套接字的方式通过与所述计算机的连接同 所述互联网进行数据传输。
11. 一种计算机, 连接至互联网, 包括:
第二连接模块, 设置为与终端进行连接;
第二传输模块, 设置为通过与所述终端的连接在所述终端与所述互联网之 间进行数据传输。
12. 根据权利要求 11所述的计算机, 其中,
所述第二连接模块, 设置为通过所述终端上的代理客户端与所述计算机上 的代理服务器之间的传输控制协议 /网络协议链路进行连接。
13. 根据权利要求 11所述的计算机, 其中,
所述第二传输模块, 设置为使用套接字的方式通过与所述终端的连接在所 述终端与所述互联网之间进行数据传输。
PCT/CN2011/080923 2011-06-13 2011-10-18 数据传输方法、终端及计算机 WO2012171288A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201110157611.3 2011-06-13
CN2011101576113A CN102202101A (zh) 2011-06-13 2011-06-13 数据传输方法、终端及计算机

Publications (1)

Publication Number Publication Date
WO2012171288A1 true WO2012171288A1 (zh) 2012-12-20

Family

ID=44662491

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2011/080923 WO2012171288A1 (zh) 2011-06-13 2011-10-18 数据传输方法、终端及计算机

Country Status (2)

Country Link
CN (1) CN102202101A (zh)
WO (1) WO2012171288A1 (zh)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102202101A (zh) * 2011-06-13 2011-09-28 中兴通讯股份有限公司 数据传输方法、终端及计算机
CN106211142B (zh) * 2016-07-12 2020-08-14 福建歌航电子信息科技有限公司 一种WiFi AP终端广域网接入方法
CN110086838A (zh) * 2018-01-26 2019-08-02 北京云点联动科技发展有限公司 一种支付稳定性的方法
CN111049939A (zh) * 2020-03-16 2020-04-21 深圳益邦物联科技有限公司 本地协议配置的远程调试系统、方法及电子设备
CN111511045B (zh) * 2020-04-10 2023-06-02 玳能科技(杭州)有限公司 移动终端与电脑的交互方法、装置、电子设备及存储介质

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101179805A (zh) * 2007-12-24 2008-05-14 四川长城天讯数码技术有限公司 移动信息终端信息下载的方法与系统
EP1956572A1 (en) * 2007-02-01 2008-08-13 Nxp B.V. Method for configuring a wireless communication device as a remote control, remotely controllable electronice device and wireless communication device
CN101309189A (zh) * 2008-06-26 2008-11-19 宇龙计算机通信科技(深圳)有限公司 一种移动终端与计算机的数据处理方法、系统及移动终端
CN102202101A (zh) * 2011-06-13 2011-09-28 中兴通讯股份有限公司 数据传输方法、终端及计算机

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1956572A1 (en) * 2007-02-01 2008-08-13 Nxp B.V. Method for configuring a wireless communication device as a remote control, remotely controllable electronice device and wireless communication device
CN101179805A (zh) * 2007-12-24 2008-05-14 四川长城天讯数码技术有限公司 移动信息终端信息下载的方法与系统
CN101309189A (zh) * 2008-06-26 2008-11-19 宇龙计算机通信科技(深圳)有限公司 一种移动终端与计算机的数据处理方法、系统及移动终端
CN102202101A (zh) * 2011-06-13 2011-09-28 中兴通讯股份有限公司 数据传输方法、终端及计算机

Also Published As

Publication number Publication date
CN102202101A (zh) 2011-09-28

Similar Documents

Publication Publication Date Title
JP4838970B2 (ja) リアルタイム・データを使用する情報交換を容易にするための対事業所取引エンジンおよびシステム
EP2721805B1 (en) Apparatus and method for exchanging data between upnp based devices
CN102546794B (zh) 浏览器客户端与后端服务器直通的方法、网关和通信系统
CN106797400B (zh) 用于使得能够经由服务层访问第三方服务的系统和方法
US8682957B2 (en) Embedded wireless cloud connector
KR100978336B1 (ko) 리모트 액세스
CN102469124B (zh) 基于aog的移动互联网业务的实现方法、网关、代理及系统
WO2012171288A1 (zh) 数据传输方法、终端及计算机
EP3195567A1 (en) Publication and discovery of m2m-iot services
JP2004509583A (ja) リアルタイム情報を求めて通信ノードをポーリングするためのシステム、方法、および装置
CN101287003B (zh) 一种实现移动终端监控视频浏览的系统及方法
JP2004519120A (ja) 通信装置へのサービスを容易にするために対事業所取引エンジンにリアルタイム情報を送信するための送信装置
BRPI0210620B1 (pt) Method and system for obtaining the data content for the wireless terminal operating on the wireless communication network, wireless terminal, broadcasting server
WO2015054336A2 (en) System and method of delivering data that provides service differentiation and monetization in mobile data networks
CN104702634A (zh) 数据操作请求处理方法、装置及系统
TWI373939B (zh)
EP2936784B1 (fr) Mécanisme de gestion d'une session de communication
WO2012173899A2 (en) Remotely retrieving information from consumer devices
KR20070030099A (ko) 이동통신단말기를 이용한 미아찾기시스템 및 미아찾기방법
WO2018132557A1 (en) Dynamic protocol switching
WO2013123688A1 (zh) 数据访问方法及装置
CN103179175A (zh) 远程信息服务系统及其通讯方法、装置
EP3734984B1 (fr) Procédé de relevé de compteurs à fluides
CN112822270B (zh) 一种网络系统
CN114390095A (zh) 远端设备控制方法以及物联网设备管理平台、系统

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 11867968

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 11867968

Country of ref document: EP

Kind code of ref document: A1