Movatterモバイル変換


[0]ホーム

URL:


CN102769844B - Data transmission method and system based on mobile terminal and mobile terminal - Google Patents

Data transmission method and system based on mobile terminal and mobile terminal
Download PDF

Info

Publication number
CN102769844B
CN102769844BCN201210231087.4ACN201210231087ACN102769844BCN 102769844 BCN102769844 BCN 102769844BCN 201210231087 ACN201210231087 ACN 201210231087ACN 102769844 BCN102769844 BCN 102769844B
Authority
CN
China
Prior art keywords
mobile terminal
address
tcp
source
destination mobile
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.)
Active
Application number
CN201210231087.4A
Other languages
Chinese (zh)
Other versions
CN102769844A (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.)
China United Network Communications Group Co Ltd
Original Assignee
China United Network Communications Group Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China United Network Communications Group Co LtdfiledCriticalChina United Network Communications Group Co Ltd
Priority to CN201210231087.4ApriorityCriticalpatent/CN102769844B/en
Publication of CN102769844ApublicationCriticalpatent/CN102769844A/en
Application grantedgrantedCritical
Publication of CN102769844BpublicationCriticalpatent/CN102769844B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Classifications

Landscapes

Abstract

Translated fromChinese

本发明提供一种基于移动终端的数据传输方法和系统以及移动终端,其中,该方法包括:源移动终端通过移动交换网向目标移动终端发送包含源移动终端的IP地址的业务请求消息,若接收到目标移动终端采用自身的IP地址向源移动终端的IP地址发送的TCP/IP连接请求,则向目标移动终端返回TCP/IP连接响应消息,以通过与目标移动终端建立的点到点IP路由传输通信交互中的业务数据。通过本发明提供的基于移动终端的数据传输方法和系统以及移动终端,实现了通过点到点的IP路由完成源移动终端与目标移动终端之间的通信交互,提高了移动终端之间数据传输的距离,并且降低了移动终端的功耗,有利于进行大批量的数据传输。

The present invention provides a mobile terminal-based data transmission method and system as well as a mobile terminal, wherein the method includes: the source mobile terminal sends a service request message containing the IP address of the source mobile terminal to the target mobile terminal through a mobile switching network, and if received When the target mobile terminal uses its own IP address to send a TCP/IP connection request to the IP address of the source mobile terminal, it returns a TCP/IP connection response message to the target mobile terminal, so as to pass through the point-to-point IP route established with the target mobile terminal Transmit business data in communication interactions. Through the data transmission method and system based on the mobile terminal and the mobile terminal provided by the present invention, the communication interaction between the source mobile terminal and the target mobile terminal is completed through point-to-point IP routing, and the efficiency of data transmission between mobile terminals is improved. distance, and reduces the power consumption of the mobile terminal, which is conducive to large-scale data transmission.

Description

Translated fromChinese
基于移动终端的数据传输方法和系统以及移动终端Data transmission method and system based on mobile terminal and mobile terminal

技术领域technical field

本发明实施例涉及通信技术领域,尤其涉及一种基于移动终端的数据传输方法和系统以及移动终端。The embodiments of the present invention relate to the field of communication technologies, and in particular, to a mobile terminal-based data transmission method and system and a mobile terminal.

背景技术Background technique

随着通信技术的发展,移动终端越来越智能化,功能也越来越多比如照相、摄像以及从网络上下载音乐、视频等,因此,用户基于移动终端的通信交互不再局限于电话和短信的基本功能,用户之间共享照片、音乐以及视频的需求越来越强烈。With the development of communication technology, mobile terminals are becoming more and more intelligent, with more and more functions such as taking pictures, video recordings, and downloading music and videos from the Internet. The basic function of SMS, the demand for sharing photos, music and videos between users is getting stronger and stronger.

现有技术中移动终端之间可以通过蓝牙或者红外传输方式完成业务数据传输。但是,由于蓝牙支持移动终端通信的距离一般在10m内;红外支持移动终端通信的距离也不能离的太远,并且要对准方向以及中间不能有障碍物,因此,应用蓝牙或者红外方式进行数据传输的传输距离受到限制。进一步地,由于蓝牙或者红外传输方式的功耗也非常大,而移动终端的电池容量有限,因此,应用蓝牙或者红外方式进行数据传输的传输容量也受到限制,不适用传输大批量的数据。综上所述,移动终端之间应用蓝牙或者红外传输方式完成数据传输具有一定的局限性。In the prior art, service data transmission can be completed between mobile terminals through bluetooth or infrared transmission. However, because Bluetooth supports mobile terminal communication, the distance is generally within 10m; infrared supports mobile terminal communication. The transmission distance of the transmission is limited. Furthermore, since the power consumption of the bluetooth or infrared transmission method is also very large, and the battery capacity of the mobile terminal is limited, the transmission capacity of data transmission using the bluetooth or infrared method is also limited, and it is not suitable for transmitting large quantities of data. To sum up, the application of Bluetooth or infrared transmission between mobile terminals to complete data transmission has certain limitations.

发明内容Contents of the invention

针对现有技术的上述缺陷,本发明实施例提供一种基于移动终端的数据传输方法和系统以及移动终端。In view of the above-mentioned defects in the prior art, embodiments of the present invention provide a mobile terminal-based data transmission method and system and a mobile terminal.

本发明一方面提供一种基于移动终端的数据传输方法,包括:One aspect of the present invention provides a data transmission method based on a mobile terminal, including:

源移动终端通过移动交换网向目标移动终端发送用于请求进行通信交互的业务请求消息,所述业务请求消息中包含源移动终端的IP地址;The source mobile terminal sends a service request message for requesting communication interaction to the target mobile terminal through the mobile switching network, and the service request message includes the IP address of the source mobile terminal;

所述源移动终端若接收到所述目标移动终端采用目标移动终端的IP地址向所述源移动终端的IP地址发送的TCP/IP连接请求,则向所述目标移动终端返回TCP/IP连接响应消息,以通过与所述目标移动终端之间建立的点到点IP路由传输所述通信交互中的业务数据。If the source mobile terminal receives the TCP/IP connection request sent by the target mobile terminal to the IP address of the source mobile terminal using the IP address of the target mobile terminal, it returns a TCP/IP connection response to the target mobile terminal message, so as to transmit the service data in the communication interaction through the point-to-point IP route established with the target mobile terminal.

本发明另一方面提供一种基于移动终端的数据传输方法,包括:Another aspect of the present invention provides a data transmission method based on a mobile terminal, including:

目标移动终端接收源移动终端通过移动交换网发送的、用于请求进行通信交互的业务请求消息,所述业务请求消息中包含源移动终端的IP地址;The target mobile terminal receives a service request message for requesting communication interaction sent by the source mobile terminal through the mobile switching network, and the service request message includes the IP address of the source mobile terminal;

所述目标移动终端采用目标移动终端的IP地址向所述源移动终端的IP地址发送TCP/IP连接请求;The target mobile terminal uses the IP address of the target mobile terminal to send a TCP/IP connection request to the IP address of the source mobile terminal;

所述目标移动终端若在预设的第二时间内接收到所述源移动终端返回的TCP/IP连接响应消息,则通过与所述源移动终端之间建立的点到点IP路由接收所述源移动终端传输的所述通信交互中的业务数据。If the target mobile terminal receives the TCP/IP connection response message returned by the source mobile terminal within the preset second time, it will receive the Service data in the communication interaction transmitted by the source mobile terminal.

本发明又一方面提供一种移动终端,包括:Another aspect of the present invention provides a mobile terminal, including:

第一发送模块,用于通过移动交换网向目标移动终端发送用于请求进行通信交互的业务请求消息,所述业务请求消息中包含源移动终端的IP地址;The first sending module is configured to send a service request message for requesting communication interaction to the target mobile terminal through the mobile switching network, where the service request message includes the IP address of the source mobile terminal;

第一处理模块,用于若接收到所述目标移动终端采用目标移动终端的IP地址向所述源移动终端的IP地址发送的TCP/IP连接请求,则向所述目标移动终端返回TCP/IP连接响应消息,以通过与所述目标移动终端之间建立的点到点IP路由传输所述通信交互中的业务数据。The first processing module is configured to return TCP/IP to the target mobile terminal if a TCP/IP connection request sent by the target mobile terminal to the IP address of the source mobile terminal using the IP address of the target mobile terminal is received. A connection response message, to transmit the service data in the communication interaction through the point-to-point IP route established with the target mobile terminal.

本发明再一方面提供一种移动终端,包括:Another aspect of the present invention provides a mobile terminal, including:

接收模块,用于接收源移动终端通过移动交换网发送的、用于请求进行通信交互的业务请求消息,所述业务请求消息中包含源移动终端的IP地址;The receiving module is configured to receive a service request message for requesting communication interaction sent by the source mobile terminal through the mobile switching network, where the service request message includes the IP address of the source mobile terminal;

发送模块,用于采用目标移动终端的IP地址向所述源移动终端的IP地址发送TCP/IP连接请求;A sending module, configured to send a TCP/IP connection request to the IP address of the source mobile terminal using the IP address of the target mobile terminal;

第三处理模块,用于若在预设的第二时间内接收到所述源移动终端返回的TCP/IP连接响应消息,则通过与所述源移动终端之间建立的点到点IP路由接收所述源移动终端传输的所述通信交互中的业务数据。The third processing module is configured to receive the TCP/IP connection response message through the point-to-point IP route established between the source mobile terminal and the source mobile terminal if the TCP/IP connection response message returned by the source mobile terminal is received within the preset second time. Service data in the communication interaction transmitted by the source mobile terminal.

本发明又一方面提供一种基于移动终端的数据传输系统,包括源移动终端和目标移动终端,所述源移动终端为上述又一方面中所提供的移动终端,所述目标移动终端为上述再一方面中所提供的移动终端。Another aspect of the present invention provides a mobile terminal-based data transmission system, including a source mobile terminal and a target mobile terminal, the source mobile terminal is the mobile terminal provided in the above-mentioned still aspect, and the target mobile terminal is the above-mentioned In one aspect there is provided a mobile terminal.

本发明实施例提供的基于移动终端的数据传输方法和系统以及移动终端,通过源移动终端利用移动交换网向目标移动终端发送包含源移动终端的IP地址的业务请求消息,若接收到目标移动终端采用目标移动终端的IP地址向源移动终端的IP地址发送的TCP/IP连接请求,则向目标移动终端返回TCP/IP连接响应消息,以通过与目标移动终端之间建立的点到点IP路由传输通信交互中的业务数据,从而实现了通过点到点的IP路由完成源移动终端与目标移动终端之间的通信交互,相比于现有技术中的蓝牙和红外传输方式,提高了移动终端之间数据传输的距离,并且降低了移动终端的功耗,有利于进行大批量的数据传输。In the mobile terminal-based data transmission method and system and the mobile terminal provided by the embodiments of the present invention, the source mobile terminal uses the mobile switching network to send a service request message including the IP address of the source mobile terminal to the target mobile terminal. Use the IP address of the target mobile terminal to send the TCP/IP connection request to the IP address of the source mobile terminal, then return a TCP/IP connection response message to the target mobile terminal to pass the point-to-point IP route established between the target mobile terminal The business data in the communication interaction is transmitted, thereby realizing the communication interaction between the source mobile terminal and the target mobile terminal through point-to-point IP routing. Compared with the bluetooth and infrared transmission methods in the prior art, the mobile terminal has improved The distance between the data transmission, and reduce the power consumption of the mobile terminal, which is conducive to large-scale data transmission.

附图说明Description of drawings

图1为本发明基于移动终端的数据传输方法一个实施例的流程图;Fig. 1 is the flow chart of an embodiment of the data transmission method based on the mobile terminal of the present invention;

图2为本发明基于移动终端的数据传输方法另一实施例的流程图;FIG. 2 is a flowchart of another embodiment of the mobile terminal-based data transmission method of the present invention;

图3为本发明基于移动终端的数据传输方法又一实施例的流程图;3 is a flowchart of another embodiment of the mobile terminal-based data transmission method of the present invention;

图4为本发明基于移动终端的数据传输方法再一实施例的流程图;4 is a flow chart of another embodiment of the mobile terminal-based data transmission method of the present invention;

图5为本发明移动终端一个实施例的结构示意图;FIG. 5 is a schematic structural diagram of an embodiment of the mobile terminal of the present invention;

图6为本发明移动终端另一实施例的结构示意图;FIG. 6 is a schematic structural diagram of another embodiment of the mobile terminal of the present invention;

图7为本发明移动终端又一实施例的结构示意图;FIG. 7 is a schematic structural diagram of another embodiment of the mobile terminal of the present invention;

图8为本发明移动终端再一实施例的结构示意图;FIG. 8 is a schematic structural diagram of another embodiment of the mobile terminal of the present invention;

图9为本发明基于移动终端的数据传输系统一个实施例的结构示意图。FIG. 9 is a schematic structural diagram of an embodiment of a data transmission system based on a mobile terminal according to the present invention.

具体实施方式Detailed ways

图1为本发明基于移动终端的数据传输方法一个实施例的流程图,如图1所示,该方法包括:Fig. 1 is the flow chart of an embodiment of the data transmission method based on mobile terminal of the present invention, as shown in Fig. 1, this method comprises:

步骤100,源移动终端通过移动交换网向目标移动终端发送用于请求进行通信交互的业务请求消息,业务请求消息中包含源移动终端的IP地址;Step 100, the source mobile terminal sends a service request message for requesting communication interaction to the target mobile terminal through the mobile switching network, and the service request message includes the IP address of the source mobile terminal;

当用户A要与用户B进行通信交互时,用户A在自身的移动终端即源移动终端中输入、或者从源移动终端的用户信息列表中选中用户B的标识信息即目标移动终端的标识信息,然后通过源移动终端请求与目标移动终端进行通信交互,从而源移动终端根据目标移动终端的标识信息通过移动交换网向目标移动终端发送用于请求进行通信交互的业务请求消息,该业务请求消息中包含源移动终端的IP地址。需要说明的是,本实施例中的用户A与用户B进行通信交互的业务类型具体包括:视频和图片等,在实际应用中可以根据需要进行选择。需要说明的是,本发明所有实施例中所涉及到的移动终端可以为手机、集群寻呼系统中的智能终端等支持IP网络通信功能的移动终端,与上述移动终端对应的移动终端的标识信息可以为手机号码和集群寻呼号码等标识信息。值得注意的是,本领域普通技术人员可以理解的是源移动终端根据目标移动终端的标识信息通过移动交换网向目标移动终端发送的业务请求消息可以通过语音通道、短信通道等可信任的通道机制进行信息传输,具体过程为现有技术此处不再赘述。When user A wants to communicate and interact with user B, user A enters in his own mobile terminal, that is, the source mobile terminal, or selects the identification information of user B, that is, the identification information of the target mobile terminal, from the user information list of the source mobile terminal, Then, the source mobile terminal requests communication interaction with the target mobile terminal, so that the source mobile terminal sends a service request message for requesting communication interaction to the target mobile terminal through the mobile switching network according to the identification information of the target mobile terminal, in the service request message Contains the IP address of the source mobile terminal. It should be noted that, in this embodiment, the types of services for communication and interaction between user A and user B specifically include: video and pictures, etc., which can be selected according to needs in practical applications. It should be noted that the mobile terminals involved in all embodiments of the present invention may be mobile terminals that support IP network communication functions such as mobile phones and smart terminals in trunking paging systems, and the identification information of the mobile terminals corresponding to the above mobile terminals It can identify information such as mobile phone number and trunk paging number. It is worth noting that those skilled in the art can understand that the service request message sent by the source mobile terminal to the target mobile terminal through the mobile switching network according to the identification information of the target mobile terminal can be through a trusted channel mechanism such as a voice channel and a short message channel. For information transmission, the specific process is the prior art and will not be repeated here.

步骤101,源移动终端若接收到目标移动终端采用目标移动终端的IP地址向源移动终端的IP地址发送的TCP/IP连接请求,则向目标移动终端返回TCP/IP连接响应消息,以通过与目标移动终端之间建立的点到点IP路由传输通信交互中的业务数据。Step 101, if the source mobile terminal receives the TCP/IP connection request that the target mobile terminal uses the IP address of the target mobile terminal to send to the IP address of the source mobile terminal, it returns a TCP/IP connection response message to the target mobile terminal, so as to communicate with the target mobile terminal The point-to-point IP routing established between the target mobile terminals transmits service data in the communication interaction.

目标移动终端通过移动交换网中的语音通道、短信通道等可信任通道接收源移动终端发送的用于请求进行通信交互的业务请求消息,通过对该业务请求消息进行解析获取到源移动终端的IP地址。然后目标移动终端采用自身的IP地址向获取的源移动终端的IP地址通过IP网络发送用于建立点到点IP路由的TCP/IP连接请求,并判断是否能够在预设的第二时间内接收到源移动终端返回的TCP/IP连接响应消息。源移动终端若能够接收到目标移动终端发送的TCP/IP连接请求,则向目标移动终端发送TCP/IP连接响应消息,从而目标移动终端在预设的第二时间内接收到源移动终端返回的TCP/IP连接响应消息,从而目标移动终端与源移动终端通过TCP/IP三次握手后建立点到点的IP路由,源移动终端将用户A通过请求与用户B进行交互的业务数据通过点到点的IP路由传输给目标移动终端,当目标移动终端接收到该业务数据后,提示用户B接收。The target mobile terminal receives the service request message sent by the source mobile terminal through trusted channels such as the voice channel and SMS channel in the mobile switching network to request communication interaction, and obtains the IP address of the source mobile terminal by analyzing the service request message. address. Then the target mobile terminal uses its own IP address to send a TCP/IP connection request for establishing a point-to-point IP route through the IP network to the obtained IP address of the source mobile terminal, and judges whether it can be received within the preset second time. To the TCP/IP connection response message returned by the source mobile terminal. If the source mobile terminal can receive the TCP/IP connection request sent by the target mobile terminal, it will send a TCP/IP connection response message to the target mobile terminal, so that the target mobile terminal receives the response message returned by the source mobile terminal within the preset second time. TCP/IP connection response message, so that the target mobile terminal and the source mobile terminal establish a point-to-point IP route after a three-way TCP/IP handshake, and the source mobile terminal transmits the service data that user A interacts with user B through the point-to-point The IP route is transmitted to the target mobile terminal, and when the target mobile terminal receives the service data, it prompts user B to receive it.

需要说明的是,源移动终端若能够接收到目标移动终端发送的TCP/IP连接请求,则说明源移动终端的IP地址可以被目标移动终端所处的IP网络中的路由器进行识别转发,具体包括以下几种情况:第一种,源移动终端的IP地址和目标移动终端的IP地址属于同一个私网地址;第二种,源移动终端的IP地址属于公网地址,目标移动终端的IP地址可以是公网地址,也可以是私网地址。It should be noted that if the source mobile terminal can receive the TCP/IP connection request sent by the target mobile terminal, it means that the IP address of the source mobile terminal can be identified and forwarded by the router in the IP network where the target mobile terminal is located, specifically including The following situations: first, the IP address of the source mobile terminal and the IP address of the target mobile terminal belong to the same private network address; second, the IP address of the source mobile terminal belongs to the public network address, and the IP address of the target mobile terminal It can be a public network address or a private network address.

需要说明的是,本实施例中源移动终端验证所接收的TCP/IP连接请求是否为目标移动终端所发送的具体实现方式很多,举例说明如下:第一种,目标移动终端采用自身的IP地址向源移动终端的IP地址发送的TCP/IP连接请求中包含自身的目标移动终端的标识信息,若源移动终端将目标移动终端的标识信息与用户A所请求交互的目标移动终端的标识信息一致,则说明所接收的TCP/IP连接请求来自目标移动终端,否则,拒绝接收该TCP/IP连接请求。其中,目标移动终端中存储有自身的标识信息。第二种,源移动终端通过移动交换网向目标移动终端发送的业务请求消息中还包含源移动终端验证码,目标移动终端采用自身的IP地址向源移动终端的IP地址发送的TCP/IP连接请求中包含验证码,若源移动终端确定验证码与源移动终端验证码一致,则说明所接收的TCP/IP连接请求来自目标移动终端,否则,拒绝接收该TCP/IP连接请求。It should be noted that, in this embodiment, the source mobile terminal verifies whether the received TCP/IP connection request is sent by the target mobile terminal. The TCP/IP connection request sent to the IP address of the source mobile terminal contains the identification information of its own target mobile terminal. If the source mobile terminal matches the identification information of the target mobile terminal with the identification information of the target mobile terminal requested by user A , it means that the received TCP/IP connection request comes from the target mobile terminal, otherwise, reject to receive the TCP/IP connection request. Wherein, the target mobile terminal stores its own identification information. In the second type, the service request message sent by the source mobile terminal to the target mobile terminal through the mobile switching network also includes the verification code of the source mobile terminal, and the target mobile terminal uses its own IP address to send the TCP/IP connection to the IP address of the source mobile terminal. The request includes a verification code, and if the source mobile terminal determines that the verification code is consistent with the source mobile terminal verification code, it means that the received TCP/IP connection request comes from the target mobile terminal, otherwise, refuse to accept the TCP/IP connection request.

本实施例提供的基于移动终端的数据传输方法,通过源移动终端利用移动交换网向目标移动终端发送包含源移动终端的IP地址的业务请求消息,若接收到目标移动终端采用目标移动终端的IP地址向源移动终端的IP地址发送的TCP/IP连接请求,则向目标移动终端返回TCP/IP连接响应消息,以通过与目标移动终端之间建立的点到点IP路由传输通信交互中的业务数据,从而实现了通过点到点的IP路由完成源移动终端与目标移动终端之间的通信交互,相比于现有技术中的蓝牙和红外传输方式,提高了移动终端之间数据传输的距离,并且降低了移动终端的功耗,有利于进行大批量的数据传输。In the mobile terminal-based data transmission method provided in this embodiment, the source mobile terminal uses the mobile switching network to send a service request message including the IP address of the source mobile terminal to the target mobile terminal. If the target mobile terminal receives the IP address of the target mobile terminal If the address sends a TCP/IP connection request to the IP address of the source mobile terminal, a TCP/IP connection response message is returned to the target mobile terminal, so as to transmit the business in the communication interaction through the point-to-point IP route established with the target mobile terminal Data, thereby realizing the communication interaction between the source mobile terminal and the target mobile terminal through point-to-point IP routing, compared with the bluetooth and infrared transmission methods in the prior art, the distance of data transmission between mobile terminals is improved , and reduces the power consumption of the mobile terminal, which is conducive to mass data transmission.

图2为本发明基于移动终端的数据传输方法另一实施例的流程图,如图2所示,该方法包括:Fig. 2 is a flow chart of another embodiment of the data transmission method based on the mobile terminal of the present invention. As shown in Fig. 2, the method includes:

步骤200,源移动终端向网络接入设备发送网络接入请求消息,网络接入请求消息包括:源移动终端的MAC地址;Step 200, the source mobile terminal sends a network access request message to the network access device, and the network access request message includes: the MAC address of the source mobile terminal;

当用户A想通过移动终端进行网络访问时,可以通过IP网络中的网络接入设备获取到用于进行信息交互的IP地址,以将移动终端接入到其所在的IP网络中比如无线局域网络(Wireless Local Area Networks,WLAN)进行网络访问。具体为,源移动终端向网络接入设备发送网络接入请求消息,该网络接入请求消息包括:源移动终端的媒体接入控制(Media Access Control,MAC)地址。When user A wants to access the network through a mobile terminal, the IP address for information exchange can be obtained through the network access device in the IP network, so as to connect the mobile terminal to the IP network where it is located, such as a wireless local area network (Wireless Local Area Networks, WLAN) for network access. Specifically, the source mobile terminal sends a network access request message to the network access device, and the network access request message includes: a Media Access Control (MAC) address of the source mobile terminal.

步骤201,源移动终端接收网络接入设备返回的、与源移动终端的MAC地址对应的源移动终端的IP地址并存储;Step 201, the source mobile terminal receives and stores the IP address of the source mobile terminal corresponding to the MAC address of the source mobile terminal returned by the network access device;

源移动终端接收到网络接入设备为源移动终端分配的与源移动终端的MAC地址对应的源移动终端的IP地址并存储在移动终端中。The source mobile terminal receives and stores in the mobile terminal the IP address of the source mobile terminal assigned by the network access device and corresponding to the MAC address of the source mobile terminal.

步骤202,源移动终端通过移动交换网向目标移动终端发送用于请求进行通信交互的业务请求消息,业务请求消息中包含源移动终端的IP地址;Step 202, the source mobile terminal sends a service request message for requesting communication interaction to the target mobile terminal through the mobile switching network, and the service request message includes the IP address of the source mobile terminal;

当用户A要与用户B进行通信交互时,用户A在源移动终端中输入、或者从源移动终端的用户信息列表中选中用户B的标识信息即目标移动终端的标识信息,然后通过源移动终端请求与目标移动终端进行通信交互,从而源移动终端根据目标移动终端的标识信息通过移动交换网向目标移动终端发送用于请求进行通信交互的业务请求消息,该业务请求消息中包含源移动终端的IP地址。需要说明的是,本实施例中的用户A与用户B进行通信交互的业务类型具体包括:视频和图片等,在实际应用中可以根据需要进行选择。When user A wants to communicate and interact with user B, user A enters in the source mobile terminal or selects the identification information of user B from the user information list of the source mobile terminal, that is, the identification information of the target mobile terminal, and then passes the source mobile terminal Requesting communication interaction with the target mobile terminal, so that the source mobile terminal sends a service request message for requesting communication interaction to the target mobile terminal through the mobile switching network according to the identification information of the target mobile terminal, and the service request message includes the source mobile terminal. IP address. It should be noted that, in this embodiment, the types of services for communication and interaction between user A and user B specifically include: video and pictures, etc., which can be selected according to needs in practical applications.

进一步地,目标移动终端在接收源移动终端通过移动交换网语音通道、短信通道等可信任通道发送的、用于请求进行通信交互的业务请求消息之后,目标移动终端根据预先设置的用户信息对源移动终端进行鉴权,若鉴权通过,则与源移动终端继续进行通信交互,否则,通过移动交换网向源移动终端返回业务请求拒绝消息。其中,目标移动终端根据预先设置的用户信息包括黑名单和白名单技术,以白名单举例说明,目标移动终端若判断获知预设的白名单中没有包含移动交换网所下发的源移动终端的标识信息,则通过移动交换网向源移动终端返回业务请求拒绝消息,若判断获知预设的白名单中包含有该源移动终端的标识信息,则与源移动终端继续进行通信交互。Further, after the target mobile terminal receives the service request message for requesting communication interaction sent by the source mobile terminal through a trusted channel such as a mobile switching network voice channel or a short message channel, the target mobile terminal sends a message to the source mobile terminal according to preset user information. The mobile terminal performs authentication, and if the authentication passes, it continues to communicate and interact with the source mobile terminal; otherwise, it returns a service request rejection message to the source mobile terminal through the mobile switching network. Among them, the target mobile terminal includes blacklist and whitelist technology according to the preset user information. Taking the whitelist as an example, if the target mobile terminal determines that the preset whitelist does not contain the source mobile terminal issued by the mobile switching network identification information, then return a service request rejection message to the source mobile terminal through the mobile switching network, and if it is determined that the preset white list contains the identification information of the source mobile terminal, then continue to communicate with the source mobile terminal.

步骤203,源移动终端若接收到目标移动终端通过移动交换网返回的业务请求响应消息,业务请求响应消息包括:目标移动终端的IP地址,则采用源移动终端的IP地址向目标移动终端的IP地址发送TCP/IP连接请求;Step 203, if the source mobile terminal receives the service request response message returned by the target mobile terminal through the mobile switching network, and the service request response message includes: the IP address of the target mobile terminal, then use the IP address of the source mobile terminal to send the IP address of the target mobile terminal to the IP address of the target mobile terminal. The address sends a TCP/IP connection request;

目标移动终端通过移动交换网接收源移动终端发送的用于请求进行通信交互的业务请求消息,通过对该业务请求消息进行解析获取到源移动终端的IP地址。然后目标移动终端采用自身的IP地址向获取的源移动终端的IP地址通过IP网络发送用于建立点到点IP路由的TCP/IP连接请求。若目标移动终端在预设的第二时间内没有接收到源移动终端返回的TCP/IP连接响应消息,则判断自身所在IP网络的路由器不能识别源移动终端的IP地址,从而确定源移动终端没有接收到TCP/IP连接请求。目标移动终端通过移动交换网中的语音通道、短信通道等可信任的通道向源移动终端返回业务请求响应消息,该业务请求响应消息中包括目标移动终端的IP地址。从而源移动终端若能够接收到目标移动终端通过移动交换网返回的业务请求响应消息,则说明自身的IP地址不能被目标移动终端所在IP网络的路由器识别,然后源移动终端对该业务请求响应消息进行解析获取目标移动终端的IP地址,并采用自身的IP地址向目标移动终端的IP地址发送TCP/IP连接请求。值得注意的是,目标移动终端获取自身IP地址的时间可以是接收到业务请求消息之前或者之后,其具体的获取过程可以参见步骤200和步骤201,此处不再赘述。The target mobile terminal receives the service request message for requesting communication interaction sent by the source mobile terminal through the mobile switching network, and obtains the IP address of the source mobile terminal by analyzing the service request message. Then the target mobile terminal uses its own IP address to send a TCP/IP connection request for establishing a point-to-point IP route to the acquired IP address of the source mobile terminal through the IP network. If the target mobile terminal does not receive the TCP/IP connection response message returned by the source mobile terminal within the preset second time, it is judged that the router of the IP network where itself is located cannot recognize the IP address of the source mobile terminal, thereby determining that the source mobile terminal does not Received a TCP/IP connection request. The target mobile terminal returns a service request response message to the source mobile terminal through a trusted channel such as a voice channel and a short message channel in the mobile switching network, and the service request response message includes the IP address of the target mobile terminal. Thus, if the source mobile terminal can receive the service request response message returned by the target mobile terminal through the mobile switching network, it means that its own IP address cannot be recognized by the router of the IP network where the target mobile terminal is located, and then the source mobile terminal responds to the service request message Perform analysis to obtain the IP address of the target mobile terminal, and use its own IP address to send a TCP/IP connection request to the IP address of the target mobile terminal. It should be noted that the time for the target mobile terminal to acquire its own IP address may be before or after receiving the service request message, and the specific acquisition process may refer to step 200 and step 201, which will not be repeated here.

需要说明的是,本实施例中目标移动终端在预设的第二时间内没有接收到源移动终端返回的TCP/IP连接响应消息,则判断自身所在IP网络的路由器不能识别源移动终端的IP地址,具体包括以下几种情况:第一种,源移动终端的IP地址和目标移动终端的IP地址不属于同一个私网地址;第二种,源移动终端的IP地址属于私网地址,目标移动终端的IP地址属于公网地址。It should be noted that, in this embodiment, if the target mobile terminal does not receive the TCP/IP connection response message returned by the source mobile terminal within the preset second time, it is judged that the router of the IP network where it is located cannot recognize the IP address of the source mobile terminal. The address specifically includes the following situations: first, the IP address of the source mobile terminal and the IP address of the target mobile terminal do not belong to the same private network address; second, the IP address of the source mobile terminal belongs to the private network address, and the target mobile terminal The IP address of the mobile terminal belongs to the public network address.

步骤204,源移动终端判断是否在预设的第一时间内接收到目标移动终端返回的TCP/IP连接响应消息,若是,则执行步骤205,否则,执行步骤206;Step 204, the source mobile terminal judges whether the TCP/IP connection response message returned by the target mobile terminal is received within the preset first time, if so, then perform step 205, otherwise, perform step 206;

源移动终端采用自身的IP地址向目标移动终端的IP地址发送完TCP/IP连接请求之后,判断是否能够在预设的第一时间内接收到目标移动终端返回的TCP/IP连接响应消息,若是,则执行步骤205,否则,执行步骤206。After the source mobile terminal uses its own IP address to send the TCP/IP connection request to the IP address of the target mobile terminal, it judges whether it can receive the TCP/IP connection response message returned by the target mobile terminal within the preset first time, if , then execute step 205, otherwise, execute step 206.

步骤205,源移动终端通过与目标移动终端之间建立的点到点IP路由传输通信交互中的业务数据。Step 205, the source mobile terminal transmits the service data in the communication interaction through the point-to-point IP route established between the source mobile terminal and the target mobile terminal.

源移动终端若能够在预设的第一时间内接收到目标移动终端返回的TCP/IP连接响应消息,则说明目标移动终端接收到了源移动终端发送的TCP/IP连接请求,从而源移动终端与目标移动终端通过TCP/IP三次握手后建立点到点的IP路由,并将用户A请求与用户B进行交互的业务数据通过点到点的IP路由传输给目标移动终端,当目标移动终端接收到该业务数据后,提示用户B接收。If the source mobile terminal can receive the TCP/IP connection response message returned by the target mobile terminal within the preset first time, it means that the target mobile terminal has received the TCP/IP connection request sent by the source mobile terminal, so that the source mobile terminal and The target mobile terminal establishes a point-to-point IP route after the TCP/IP three-way handshake, and transmits the service data requested by user A to interact with user B to the target mobile terminal through the point-to-point IP route. When the target mobile terminal receives After receiving the service data, user B is prompted to receive it.

需要说明的是,目标移动终端若能够接收到源移动终端发送的TCP/IP连接请求,则说明目标移动终端的IP地址可以被源移动终端所处的IP网络中的路由器进行识别转发,即说明目标移动终端的IP地址属于公网地址,源移动终端的IP地址可以是是私网地址。It should be noted that if the target mobile terminal can receive the TCP/IP connection request sent by the source mobile terminal, it means that the IP address of the target mobile terminal can be identified and forwarded by the router in the IP network where the source mobile terminal is located, that is, The IP address of the target mobile terminal belongs to a public network address, and the IP address of the source mobile terminal may be a private network address.

需要说明的是,本实施例中目标移动终端验证所接收的TCP/IP连接请求是源移动终端所发送的具体实现方式很多,举例说明如下:第一种,源移动终端采用自身的IP地址向目标移动终端的IP地址发送的TCP/IP连接请求中包含自身的源移动终端的标识信息,若目标移动终端将源移动终端的标识信息与通过移动交换网进行通信交互中的源移动终端的标识信息一致,则说明所接收的TCP/IP连接请求来自源移动终端,否则,拒绝接收该TCP/IP连接请求。其中,源移动终端中存储有自身的标识信息。第二种,目标移动终端通过移动交换网向源移动终端发送的业务请求响应消息中还包含目标移动终端验证码,源移动终端采用自身的IP地址向目标移动终端的IP地址发送的TCP/IP连接请求中包含验证码,若目标移动终端确定验证码与目标移动终端验证码一致,则说明所接收的TCP/IP连接请求来自目标移动终端,否则,拒绝接收该TCP/IP连接请求。It should be noted that in this embodiment, the target mobile terminal verifies that the received TCP/IP connection request is sent by the source mobile terminal. The TCP/IP connection request sent by the IP address of the target mobile terminal contains the identification information of its own source mobile terminal. If the target mobile terminal combines the identification information of the source mobile terminal with the identification If the information is consistent, it means that the received TCP/IP connection request comes from the source mobile terminal; otherwise, the TCP/IP connection request is rejected. Wherein, the source mobile terminal stores its own identification information. In the second type, the service request response message sent by the target mobile terminal to the source mobile terminal through the mobile switching network also includes the verification code of the target mobile terminal, and the source mobile terminal uses its own IP address to send the TCP/IP message to the IP address of the target mobile terminal The connection request includes a verification code, and if the target mobile terminal determines that the verification code is consistent with the target mobile terminal verification code, it means that the received TCP/IP connection request comes from the target mobile terminal, otherwise, refuse to accept the TCP/IP connection request.

步骤206,源移动终端通过移动交换网传输通信交互中的业务数据。Step 206, the source mobile terminal transmits the service data in the communication interaction through the mobile switching network.

源移动终端若能够在预设的第一时间内没有接收到目标移动终端返回的TCP/IP连接响应消息,则说明目标移动终端没有接收到源移动终端发送的TCP/IP连接请求,从而判断自身所在IP网络的路由器不能识别目标移动终端的IP地址,即源移动终端的IP地址和目标移动终端的IP地址不属于同一个私网地址。因此,源移动终端通过目前的移动交换网将请求交互的业务数据传输给目标移动终端,与通过点到点的IP路由传输业务数据的方式相比,移动交换网传输业务数据的方式由于受到传输容量的限制,所传输的图片、视频的质量有所下降,清晰度不高,但是相比于红外和蓝牙的传输方式,提高了传输距离和传输的数据容量。If the source mobile terminal does not receive the TCP/IP connection response message returned by the target mobile terminal within the preset first time, it means that the target mobile terminal has not received the TCP/IP connection request sent by the source mobile terminal, thereby judging itself The router of the IP network where it is located cannot identify the IP address of the target mobile terminal, that is, the IP address of the source mobile terminal and the IP address of the target mobile terminal do not belong to the same private network address. Therefore, the source mobile terminal transmits the service data requesting interaction to the target mobile terminal through the current mobile switching network. Due to capacity limitations, the quality of the transmitted pictures and videos has declined, and the definition is not high, but compared with infrared and Bluetooth transmission methods, the transmission distance and transmission data capacity have been improved.

本实施例提供的基于移动终端的数据传输方法,通过源移动终端利用移动交换网向目标移动终端发送包含源移动终端的IP地址的业务请求消息,若接收到目标移动终端采用目标移动终端的IP地址向源移动终端的IP地址发送的TCP/IP连接请求,则向目标移动终端返回TCP/IP连接响应消息,以通过与目标移动终端之间建立的点到点IP路由传输通信交互中的业务数据;若接收到目标移动终端通过移动交换网返回的包含目标移动终端IP地址的业务请求响应消息,则采用自身的IP地址向目标移动终端的IP地址发送TCP/IP连接请求,若在预设的第一时间接收目标移动终端返回的TCP/IP连接响应消息,则通过与目标移动终端之间建立的点到点IP路由传输通信交互中的业务数据,否则通过移动交换网传输数据,从而实现了通过点到点的IP路由完成源移动终端与目标移动终端之间的通信交互,相比于现有技术中的蓝牙和红外传输方式,提高了移动终端之间数据传输的距离,并且降低了移动终端的功耗,有利于进行大批量的数据传输,进一步地保证了数据交互的可靠性。In the mobile terminal-based data transmission method provided in this embodiment, the source mobile terminal uses the mobile switching network to send a service request message including the IP address of the source mobile terminal to the target mobile terminal. If the target mobile terminal receives the IP address of the target mobile terminal If the address sends a TCP/IP connection request to the IP address of the source mobile terminal, a TCP/IP connection response message is returned to the target mobile terminal, so as to transmit the business in the communication interaction through the point-to-point IP route established with the target mobile terminal Data; if the service request response message containing the IP address of the target mobile terminal returned by the target mobile terminal through the mobile switching network is received, then the IP address of the target mobile terminal is used to send a TCP/IP connection request to the IP address of the target mobile terminal. Receive the TCP/IP connection response message returned by the target mobile terminal at the first time, then transmit the service data in the communication interaction through the point-to-point IP route established between the target mobile terminal, otherwise transmit the data through the mobile switching network, so as to realize In order to complete the communication interaction between the source mobile terminal and the target mobile terminal through point-to-point IP routing, compared with the bluetooth and infrared transmission methods in the prior art, the distance of data transmission between mobile terminals is improved, and the The power consumption of the mobile terminal is conducive to large-scale data transmission, which further ensures the reliability of data interaction.

图3为本发明基于移动终端的数据传输方法又一实施例的流程图,如图3所示,该方法具体包括:FIG. 3 is a flow chart of another embodiment of the mobile terminal-based data transmission method of the present invention. As shown in FIG. 3, the method specifically includes:

步骤300,目标移动终端接收源移动终端通过移动交换网发送的、用于请求进行通信交互的业务请求消息,业务请求消息中包含源移动终端的IP地址;Step 300, the target mobile terminal receives a service request message sent by the source mobile terminal through the mobile switching network for requesting communication interaction, and the service request message includes the IP address of the source mobile terminal;

步骤301,目标移动终端采用目标移动终端的IP地址向源移动终端的IP地址发送TCP/IP连接请求;Step 301, the target mobile terminal sends a TCP/IP connection request to the IP address of the source mobile terminal using the IP address of the target mobile terminal;

步骤302,目标移动终端若在预设的第二时间内接收到源移动终端返回的TCP/IP连接响应消息,则通过与源移动终端之间建立的点到点IP路由接收源移动终端传输的通信交互中的业务数据。Step 302, if the target mobile terminal receives the TCP/IP connection response message returned by the source mobile terminal within the preset second time, it receives the TCP/IP connection response message transmitted by the source mobile terminal through the point-to-point IP route established between the source mobile terminal and the source mobile terminal. Business data in communication interactions.

本实施例提供的基于移动终端的数据传输方法中具体的处理流程,可以参见上述图1所示的方法实施例,其实现原理和技术效果类似,此处不再赘述。For the specific processing flow in the mobile terminal-based data transmission method provided in this embodiment, refer to the method embodiment shown in FIG. 1 above. The implementation principles and technical effects are similar, and will not be repeated here.

图4为本发明基于移动终端的数据传输方法再一实施例的流程图,如图4所示,该方法具体包括:FIG. 4 is a flowchart of another embodiment of the mobile terminal-based data transmission method of the present invention. As shown in FIG. 4, the method specifically includes:

步骤400,目标移动终端向网络接入设备发送网络接入请求消息,网络接入请求消息包括:目标移动终端的MAC地址;Step 400, the target mobile terminal sends a network access request message to the network access device, and the network access request message includes: the MAC address of the target mobile terminal;

步骤401,目标移动终端接收所网络接入设备返回的、与目标移动终端的MAC地址对应的目标移动终端的IP地址并存储;Step 401, the target mobile terminal receives and stores the IP address of the target mobile terminal corresponding to the MAC address of the target mobile terminal returned by the network access device;

步骤402,目标移动终端接收源移动终端通过移动交换网发送的、用于请求进行通信交互的业务请求消息,所述业务请求消息中包含源移动终端的IP地址;Step 402, the target mobile terminal receives a service request message for requesting communication interaction sent by the source mobile terminal through the mobile switching network, and the service request message includes the IP address of the source mobile terminal;

步骤403,目标移动终端采用目标移动终端的IP地址向源移动终端的IP地址发送TCP/IP连接请求;Step 403, the target mobile terminal sends a TCP/IP connection request to the IP address of the source mobile terminal using the IP address of the target mobile terminal;

步骤404,目标移动终端若在第二时间内没有接收到源移动终端返回的TCP/IP连接响应消息,则通过移动交换网向源移动终端返回业务请求响应消息,业务请求响应消息包括:目标移动终端的IP地址;Step 404, if the target mobile terminal does not receive the TCP/IP connection response message returned by the source mobile terminal within the second time, then return a service request response message to the source mobile terminal through the mobile switching network. The service request response message includes: the target mobile terminal IP address of the terminal;

步骤405,目标移动终端若接收到源移动终端采用源移动终端的IP地址向目标移动终端的IP地址发送的TCP/IP连接请求,则向源移动终端返回TCP/IP连接响应消息,以通过与源移动终端之间建立的点到点IP路由接收源移动终端传输的通信交互中的业务数据。Step 405, if the target mobile terminal receives the TCP/IP connection request that the source mobile terminal uses the IP address of the source mobile terminal to send to the IP address of the target mobile terminal, then return a TCP/IP connection response message to the source mobile terminal, so as to communicate with the source mobile terminal The point-to-point IP route established between the source mobile terminals receives the service data in the communication interaction transmitted by the source mobile terminals.

进一步地,目标移动终端在接收源移动终端通过移动交换网语音通道、短信通道等可信任通道发送的、用于请求进行通信交互的业务请求消息之后,目标移动终端根据预先设置的用户信息对源移动终端进行鉴权,若鉴权通过,则与源移动终端继续进行通信交互,否则,通过移动交换网向源移动终端返回业务请求拒绝消息。其中,目标移动终端根据预先设置的用户信息包括黑名单和白名单技术,以白名单举例说明,目标移动终端若判断获知预设的白名单中没有包含移动交换网所下发的源移动终端的标识信息,则通过移动交换网向源移动终端返回业务请求拒绝消息,若判断获知预设的白名单中包含有该源移动终端的标识信息,则与源移动终端继续进行通信交互。Further, after the target mobile terminal receives the service request message for requesting communication interaction sent by the source mobile terminal through a trusted channel such as a mobile switching network voice channel or a short message channel, the target mobile terminal sends a message to the source mobile terminal according to preset user information. The mobile terminal performs authentication, and if the authentication passes, it continues to communicate and interact with the source mobile terminal; otherwise, it returns a service request rejection message to the source mobile terminal through the mobile switching network. Among them, the target mobile terminal includes blacklist and whitelist technology according to the preset user information. Taking the whitelist as an example, if the target mobile terminal determines that the preset whitelist does not contain the source mobile terminal issued by the mobile switching network identification information, then return a service request rejection message to the source mobile terminal through the mobile switching network, and if it is determined that the preset white list contains the identification information of the source mobile terminal, then continue to communicate with the source mobile terminal.

本实施例提供的基于移动终端的数据传输方法中具体的处理流程,可以参见上述图2所示的方法实施例,其实现原理和技术效果类似,此处不再赘述。For the specific processing flow in the mobile terminal-based data transmission method provided in this embodiment, refer to the method embodiment shown in FIG. 2 above. The implementation principles and technical effects are similar and will not be repeated here.

本领域普通技术人员可以理解:实现上述方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成,前述的程序可以存储于一计算机可读取存储介质中,该程序在执行时,执行包括上述方法实施例的步骤;而前述的存储介质包括:ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。Those of ordinary skill in the art can understand that all or part of the steps for realizing the above-mentioned method embodiments can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, the It includes the steps of the above method embodiments; and the aforementioned storage medium includes: ROM, RAM, magnetic disk or optical disk and other various media that can store program codes.

图5为本发明移动终端一个实施例的结构示意图,如图5所示,该移动终端包括:第一发送模块11和第一处理模块12,其中,第一发送模块11用于通过移动交换网向目标移动终端发送用于请求进行通信交互的业务请求消息,业务请求消息中包含源移动终端的IP地址;第一处理模块12用于若接收到目标移动终端采用目标移动终端的IP地址向源移动终端的IP地址发送的TCP/IP连接请求,则向目标移动终端返回TCP/IP连接响应消息,以通过与目标移动终端之间建立的点到点IP路由传输通信交互中的业务数据。FIG. 5 is a schematic structural diagram of an embodiment of the mobile terminal of the present invention. As shown in FIG. 5, the mobile terminal includes: a first sending module 11 and a first processing module 12, wherein the first sending module 11 is used to pass through the mobile switching network Send a service request message for requesting communication interaction to the target mobile terminal, the service request message includes the IP address of the source mobile terminal; the first processing module 12 is used to send the IP address of the target mobile terminal to the source if the target mobile terminal is received. The TCP/IP connection request sent by the IP address of the mobile terminal returns a TCP/IP connection response message to the target mobile terminal, so as to transmit the service data in the communication interaction through the point-to-point IP route established with the target mobile terminal.

本实施例提供的移动终端中各模块的功能和处理流程,可以参见上述图1所示的方法实施例,其实现原理和技术效果类似,此处不再赘述。For the functions and processing flow of each module in the mobile terminal provided in this embodiment, refer to the method embodiment shown in FIG. 1 above. The implementation principles and technical effects are similar, and will not be repeated here.

图6为本发明移动终端另一实施例的结构示意图,如图6所示,基于图5所示实施例,还包括:第二处理模块13,其中,第一处理模块12还用于若接收到目标移动终端通过移动交换网返回的业务请求响应消息,业务请求响应消息包括:目标移动终端的IP地址,则采用源移动终端的IP地址向目标移动终端的IP地址发送TCP/IP连接请求;第二处理模块13用于若在预设的第一时间内接收到目标移动终端返回的TCP/IP连接响应消息,则通过与目标移动终端之间建立的点到点IP路由传输通信交互中的业务数据。FIG. 6 is a schematic structural diagram of another embodiment of the mobile terminal of the present invention. As shown in FIG. 6, based on the embodiment shown in FIG. To the service request response message returned by the target mobile terminal through the mobile switching network, the service request response message includes: the IP address of the target mobile terminal, then the IP address of the source mobile terminal is used to send a TCP/IP connection request to the IP address of the target mobile terminal; The second processing module 13 is configured to, if receiving the TCP/IP connection response message returned by the target mobile terminal within the preset first time, transmit the communication interaction through the point-to-point IP route established between the target mobile terminal and the target mobile terminal. business data.

进一步地,第二处理模块13还用于若在预设的第一时间内没有接收到目标移动终端返回的TCP/IP连接响应消息,则通过移动交换网传输通信交互中的业务数据。Further, the second processing module 13 is also configured to transmit the service data in the communication interaction through the mobile switching network if no TCP/IP connection response message returned by the target mobile terminal is received within the first preset time.

进一步地,该移动终端还包括:第一接入模块14和第一存储模块15,其中,第一接入模块14用于向网络接入设备发送网络接入请求消息,网络接入请求消息包括:源移动终端的MAC地址;第一存储模块15用于接收网络接入设备返回的、与源移动终端的MAC地址对应的源移动终端的IP地址并存储。Further, the mobile terminal further includes: a first access module 14 and a first storage module 15, wherein the first access module 14 is configured to send a network access request message to the network access device, and the network access request message includes : the MAC address of the source mobile terminal; the first storage module 15 is configured to receive and store the IP address of the source mobile terminal corresponding to the MAC address of the source mobile terminal returned by the network access device.

本实施例提供的移动终端中各模块的功能和处理流程,可以参见上述图2所示的方法实施例,其实现原理和技术效果类似,此处不再赘述。For the functions and processing flow of each module in the mobile terminal provided in this embodiment, refer to the method embodiment shown in FIG. 2 above. The implementation principles and technical effects are similar, and will not be repeated here.

图7为本发明移动终端又一实施例的结构示意图,如图7所示,该移动终端包括:接收模块21、第二发送模块22和第三处理模块23,其中,接收模块21用于接收源移动终端通过移动交换网发送的、用于请求进行通信交互的业务请求消息,业务请求消息中包含源移动终端的IP地址;第二发送模块22用于采用目标移动终端的IP地址向源移动终端的IP地址发送TCP/IP连接请求;第三处理模块23用于若在预设的第二时间内接收到源移动终端返回的TCP/IP连接响应消息,则通过与源移动终端之间建立的点到点IP路由接收源移动终端传输的通信交互中的业务数据。FIG. 7 is a schematic structural diagram of another embodiment of the mobile terminal of the present invention. As shown in FIG. 7, the mobile terminal includes: a receiving module 21, a second sending module 22 and a third processing module 23, wherein the receiving module 21 is used A service request message sent by the source mobile terminal through the mobile switching network for requesting communication interaction, the service request message includes the IP address of the source mobile terminal; the second sending module 22 is used to use the IP address of the target mobile terminal to move to the source The IP address of the terminal sends a TCP/IP connection request; the third processing module 23 is used to establish a connection with the source mobile terminal if the TCP/IP connection response message returned by the source mobile terminal is received within the preset second time. The point-to-point IP router receives the service data in the communication interaction transmitted by the source mobile terminal.

本实施例提供的移动终端中各模块的功能和处理流程,可以参见上述图3所示的方法实施例,其实现原理和技术效果类似,此处不再赘述。For the functions and processing flow of each module in the mobile terminal provided in this embodiment, refer to the method embodiment shown in FIG. 3 above. The implementation principles and technical effects are similar, and will not be repeated here.

图8为本发明移动终端再一实施例的结构示意图,如图8所示,基于图7所示实施例,该移动终端还包括:第四处理模块24,其中,第三处理模块23还用于若在第二时间内没有接收到源移动终端返回的TCP/IP连接响应消息,则通过移动交换网向源移动终端返回业务请求响应消息,业务请求响应消息包括:目标移动终端的IP地址;第四处理模块24用于若接收到源移动终端采用源移动终端的IP地址向目标移动终端的IP地址发送的TCP/IP连接请求,则向源移动终端返回TCP/IP连接响应消息,以通过与源移动终端之间建立的点到点IP路由接收源移动终端传输的通信交互中的业务数据。FIG. 8 is a schematic structural diagram of another embodiment of the mobile terminal of the present invention. As shown in FIG. 8, based on the embodiment shown in FIG. 7, the mobile terminal further includes: a fourth processing module 24, wherein the third processing module 23 also If the TCP/IP connection response message returned by the source mobile terminal is not received within the second time, the service request response message is returned to the source mobile terminal through the mobile switching network, and the service request response message includes: the IP address of the target mobile terminal; The fourth processing module 24 is used to return a TCP/IP connection response message to the source mobile terminal if the source mobile terminal uses the IP address of the source mobile terminal to send a TCP/IP connection request to the IP address of the target mobile terminal, so as to pass The point-to-point IP route established with the source mobile terminal receives the service data in the communication interaction transmitted by the source mobile terminal.

进一步地,该移动终端还包括:鉴权模块25,用于在接收源移动终端通过移动交换网发送的、用于请求进行通信交互的业务请求消息之后,根据预先设置的用户信息对源移动终端进行鉴权,若鉴权通过,则与源移动终端进行通信交互,否则,通过移动交换网向源移动终端返回业务请求拒绝消息。Further, the mobile terminal further includes: an authentication module 25, configured to authenticate the source mobile terminal according to preset user information after receiving a service request message for requesting communication interaction sent by the source mobile terminal through the mobile switching network. Perform authentication, and if the authentication is passed, communicate and interact with the source mobile terminal; otherwise, return a service request rejection message to the source mobile terminal through the mobile switching network.

进一步地,该移动终端还包括:第二接入模块26和第二存储模块27,其中,第二接入模块26用于向网络接入设备发送网络接入请求消息,网络接入请求消息包括:目标移动终端的MAC地址;第二存储模块27用于接收网络接入设备返回的、与目标移动终端的MAC地址对应的目标移动终端的IP地址并存储。Further, the mobile terminal further includes: a second access module 26 and a second storage module 27, wherein the second access module 26 is configured to send a network access request message to the network access device, and the network access request message includes : the MAC address of the target mobile terminal; the second storage module 27 is configured to receive and store the IP address of the target mobile terminal corresponding to the MAC address of the target mobile terminal returned by the network access device.

图9为本发明基于移动终端的数据传输系统一个实施例的结构示意图,如图9所示,该系统包括:源移动终端1和目标移动终端2,其中,源移动终端1可以采用本发明图5或图6所示实施例中提供的移动终端,目标移动终端2可以采用本发明图7或图8所示实施例中提供的移动终端。Fig. 9 is a schematic structural diagram of an embodiment of the mobile terminal-based data transmission system of the present invention. As shown in Fig. 9, the system includes: a source mobile terminal 1 and a target mobile terminal 2, wherein the source mobile terminal 1 can adopt the diagram of the present invention 5 or the mobile terminal provided in the embodiment shown in FIG. 6 , the target mobile terminal 2 may be the mobile terminal provided in the embodiment shown in FIG. 7 or FIG. 8 of the present invention.

本实施例提供的基于移动终端的数据传输系统中各模块的功能和处理流程,可以参见上述所示的方法实施例,其实现原理和技术效果类似,此处不再赘述。For the functions and processing flow of each module in the mobile terminal-based data transmission system provided by this embodiment, refer to the above-mentioned method embodiment, and its implementation principle and technical effect are similar, and will not be repeated here.

最后应说明的是:以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围。Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: it can still be Modifications are made to the technical solutions described in the foregoing embodiments, or equivalent replacements are made to some of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the various embodiments of the present invention.

Claims (17)

The identification information of described destination mobile terminal is comprised in the TCP/IP connection request that described destination mobile terminal adopts the IP address of destination mobile terminal to send to the IP address of described source mobile terminal, described first processing module is specifically for when determining that the user of the identification information of the destination mobile terminal comprised in described TCP/IP connection request with use described source mobile terminal asks the identification information of mutual destination mobile terminal consistent, judge that the TCP/IP connection request received is from described destination mobile terminal, wherein, the identification information of self is stored in described destination mobile terminal,
CN201210231087.4A2012-07-042012-07-04Data transmission method and system based on mobile terminal and mobile terminalActiveCN102769844B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201210231087.4ACN102769844B (en)2012-07-042012-07-04Data transmission method and system based on mobile terminal and mobile terminal

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201210231087.4ACN102769844B (en)2012-07-042012-07-04Data transmission method and system based on mobile terminal and mobile terminal

Publications (2)

Publication NumberPublication Date
CN102769844A CN102769844A (en)2012-11-07
CN102769844Btrue CN102769844B (en)2015-04-08

Family

ID=47097067

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201210231087.4AActiveCN102769844B (en)2012-07-042012-07-04Data transmission method and system based on mobile terminal and mobile terminal

Country Status (1)

CountryLink
CN (1)CN102769844B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN103810138B (en)*2014-03-062017-11-28联想(北京)有限公司control method and device
CN103997519A (en)*2014-05-142014-08-20小米科技有限责任公司Method and device for transmitting image
CN105959121B (en)*2016-07-082018-12-14江苏心灵鸡汤信息技术有限公司A kind of mobile terminal with identification verification function
CN108322926A (en)*2017-12-262018-07-24努比亚技术有限公司Method for network access, terminal, network server and computer readable storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN1489389A (en)*2003-08-292004-04-14陈旭光Video communication terminal and video communication method
CN1571378A (en)*2003-07-252005-01-26华为技术有限公司A method and apparatus for implementing network access control based on link layer protocol
CN102238234A (en)*2011-06-132011-11-09袁亭CS (circuit switched)-domain-based PS (package swtiched) domain point-to-point communication method and application scenario thereof

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN1571378A (en)*2003-07-252005-01-26华为技术有限公司A method and apparatus for implementing network access control based on link layer protocol
CN1489389A (en)*2003-08-292004-04-14陈旭光Video communication terminal and video communication method
CN102238234A (en)*2011-06-132011-11-09袁亭CS (circuit switched)-domain-based PS (package swtiched) domain point-to-point communication method and application scenario thereof

Also Published As

Publication numberPublication date
CN102769844A (en)2012-11-07

Similar Documents

PublicationPublication DateTitle
CN115380547B (en) Communication method and device for edge computing system
CN102752748B (en)Based on the data transmission method of mobile terminal and system and mobile terminal
RU2612604C2 (en)Method and device for obtaining access to wireless network
US11233817B2 (en)Methods and apparatus for end device discovering another end device
CN102801800B (en)Method and system for performing resource sharing processing among plurality of wireless terminals
EP2583423B1 (en)Apparatus and method for configuring personal network using pn routing table
CA2911210A1 (en)Method and terminal for establishing communication connection
CN104394600A (en)Method and device for transmitting files
CN116528397B (en)Method and device for realizing 5G (fourth generation) dual-domain private network and 5G dual-domain private network system
US10425812B2 (en)Method and apparatus for establishment of private communication between devices
US20110307620A1 (en)Apparatus and method for registering personal network
CN105848083A (en)Method, terminal and system for realizing communication
CN102769844B (en)Data transmission method and system based on mobile terminal and mobile terminal
CN104869259A (en)Information relay transmission system based on mobile terminals and relay transmission method thereof
CN103533580A (en)Wifi data non-seamless branching method, apparatus and system
CN102811263A (en) Communication method and system based on IPv6 for mobile terminal and mobile terminal
CN108617014A (en)A kind of service bearer method for building up and the network equipment
CN104937911A (en) Wireless communication device, communication system, wireless communication device control method, and program
CN115941226A (en)Communication method and communication device
CN107005554B (en) Voice service sharing method, device and system
US20220322462A1 (en)Method and apparatus for configuring edge computing service information
US20250158912A1 (en)Methods, apparatuses, and systems for network accessibility
CN104243567A (en)Information transfer method in cloud computing
CN103139724A (en)Media business pushing method, multimedia exchange network and multimedia exchange network device

Legal Events

DateCodeTitleDescription
C06Publication
PB01Publication
C10Entry into substantive examination
SE01Entry into force of request for substantive examination
C14Grant of patent or utility model
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp