CN107852579B - Network connection method and related equipment - Google Patents
Network connection method and related equipment Download PDFInfo
- Publication number
- CN107852579B CN107852579B CN201580081997.0A CN201580081997A CN107852579B CN 107852579 B CN107852579 B CN 107852579B CN 201580081997 A CN201580081997 A CN 201580081997A CN 107852579 B CN107852579 B CN 107852579B
- Authority
- CN
- China
- Prior art keywords
- access point
- point information
- mobile network
- terminal device
- identifier
- 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
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/18—Information format or content conversion, e.g. adaptation by the network of the transmitted or received information for the purpose of wireless delivery to users or terminals
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The embodiment of the invention discloses a network connection method and related equipment, wherein the network connection method comprises the following steps: the method comprises the steps that a first terminal device sends an identifier of a first mobile network to a server, wherein the first terminal device is located in the coverage range of the first mobile network; receiving first access point information sent by a server, wherein the first access point information comprises access point information obtained by the server according to an identifier of a first mobile network; sending second access point information to second terminal equipment, wherein the second terminal equipment is out of the coverage range of the mobile network; receiving a network connection request which is sent by second terminal equipment and carries third access point information, wherein the third access point information is one of the second access point information and the access point information which can be used by the second terminal equipment; and accessing the first mobile network through the access point corresponding to the third access point information. By implementing the embodiment of the invention, when the terminal equipment is out of the coverage range of the mobile network, the terminal equipment can access the mobile network.
Description
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a network connection method and a related device.
Background
With the continuous development of electronic technology, Terminal devices (called Terminal Equipment for short) such as mobile phones and the like have become essential electronic products in daily life. Therefore, more and more users browse web pages or obtain information from the network through the TE, but when the TE is out of the coverage area of the mobile network, the users cannot access the mobile network, so that the users cannot browse web pages or obtain information from the network.
Disclosure of Invention
The embodiment of the invention discloses a network connection method and related equipment, wherein when terminal equipment is out of the coverage range of a mobile network, the terminal equipment can be accessed to the mobile network.
The first aspect of the embodiments of the present invention discloses a network connection method, including:
a first terminal device sends an identifier of a first mobile network to a server, wherein the first terminal device is in the coverage range of the first mobile network, and the server is a server corresponding to a home mobile network of the first terminal device;
the first terminal equipment receives first access point information sent by the server, wherein the first access point information comprises access point information obtained by the server according to the identifier of the first mobile network;
the first terminal equipment sends second access point information to second terminal equipment, wherein the second terminal equipment is out of the coverage area of a mobile network, and the second access point information is part or all of the first access point information;
the first terminal equipment receives a network connection request which is sent by the second terminal equipment and carries third access point information, wherein the third access point information belongs to one of the second access point information and the access point information which can be used by the second terminal equipment;
and the first terminal equipment accesses the first mobile network through the access point corresponding to the third access point information.
With reference to the first aspect of the present embodiment, in a first possible implementation manner of the first aspect of the present embodiment, the second access point information is all access point information in the first access point information;
the sending, by the first terminal device, the second access point information to the second terminal device includes:
and the first terminal equipment sends the second access point information to second terminal equipment in a broadcasting mode.
With reference to the first aspect of the present embodiment, in a second possible implementation manner of the first aspect of the present embodiment, the first terminal device receives, while receiving the first access point information sent by the server, an identifier of a second mobile network that is equivalent to the first mobile network and sent by the server, where the first access point information further includes access point information obtained by the server according to the identifier of the second mobile network;
after the first terminal device receives the first access point information sent by the server and before sending the second access point information to the second terminal device, the method further includes:
the first terminal equipment sends the identification of the first mobile network and the identification of the second mobile network to second terminal equipment in a broadcasting mode;
the first terminal device receives an access point information acquisition request which is sent by the second terminal device and carries an identifier of a third mobile network, wherein the identifier of the third mobile network is the identifier of one mobile network determined by the second terminal device from the identifier of the first mobile network and the identifier of the second mobile network;
the second access point information is access point information corresponding to the identifier of the third mobile network in the first access point information;
the accessing, by the first terminal device, to the first mobile network through the access point corresponding to the third access point information includes:
and the first terminal equipment accesses the third mobile network through the access point corresponding to the third access point information.
With reference to the first aspect of the embodiment of the present invention and any one possible implementation manner of the first and second aspects of the first aspect of the embodiment of the present invention, in a third possible implementation manner of the first aspect of the embodiment of the present invention, the access point information includes an access point name or an access point name index.
A second aspect of the embodiments of the present invention discloses a network connection method, including:
a first terminal device acquires an identifier of a first mobile network, wherein the first terminal device is out of a coverage range of the mobile network;
the first terminal equipment sends the identification of the first mobile network to a server, wherein the server is a server corresponding to a home mobile network of the first terminal equipment;
the first terminal equipment receives first access point information sent by the server, wherein the first access point information comprises access point information obtained by the server according to the identifier of the first mobile network;
the first terminal equipment receives second access point information sent by second terminal equipment, and the second terminal equipment is located in the coverage range of the first mobile network;
the first terminal device determines access point information from access point information belonging to both the first access point information and the second access point information;
and the first terminal equipment sends a network connection request carrying the determined access point information to the second terminal equipment so as to trigger the second terminal equipment to access the first mobile network through the access point corresponding to the determined access point information.
With reference to the second aspect of the present embodiment, in a first possible implementation manner of the second aspect of the present embodiment, the receiving, by the first terminal device, the second access point information sent by the second terminal device includes:
and the first terminal equipment receives second access point information sent by second terminal equipment in a broadcasting mode.
With reference to the second aspect of the present embodiment, in a second possible implementation manner of the second aspect of the present embodiment, the first terminal device receives, while receiving the first access point information sent by the server, an identifier of a second mobile network that is equivalent to the first mobile network and sent by the server, where the first access point information further includes access point information obtained by the server according to the identifier of the second mobile network;
after the first terminal device receives the first access point information sent by the server and before receiving the second access point information sent by the second terminal device, the method further includes:
the first terminal equipment receives an identifier of the first mobile network and an identifier of a third mobile network equivalent to the first mobile network, which are sent by second terminal equipment in a broadcast mode;
the first terminal equipment determines an identifier of a mobile network from the identifier of the first mobile network and the identifier of a target mobile network, wherein the identifier of the target mobile network is the identifier of the mobile network which belongs to the identifier of the second mobile network and the identifier of the third mobile network at the same time;
the first terminal equipment sends an access point information acquisition request carrying the determined identifier of the mobile network to the second terminal equipment;
the receiving, by the first terminal device, the second access point information sent by the second terminal device includes:
the first terminal equipment receives access point information corresponding to the determined mobile network identifier sent by the second terminal equipment;
the determining, by the first terminal device, one access point information from access point information belonging to both the first access point information and the second access point information includes:
the first terminal equipment determines access point information from the access point information which simultaneously belongs to the first access point information and corresponds to the determined mobile network identifier;
the first terminal device sending a network connection request carrying the determined access point information to the second terminal device to trigger the second terminal device to access the first mobile network through the access point corresponding to the determined access point information includes:
and the first terminal equipment sends a network connection request carrying the determined access point information to the second terminal equipment so as to trigger the second terminal equipment to access the determined mobile network through the access point corresponding to the determined access point information.
With reference to the second aspect of the embodiment of the present invention and any one of the first and second possible implementation manners of the second aspect of the embodiment of the present invention, in a third possible implementation manner of the second aspect of the embodiment of the present invention, the access point information includes an access point name or an access point name index.
A third aspect of the embodiments of the present invention discloses a terminal device, including:
a sending unit, configured to send an identifier of a first mobile network to a server, where the terminal device is in a coverage area of the first mobile network, and the server is a server corresponding to a home mobile network of the terminal device;
a receiving unit, configured to receive first access point information sent by the server, where the first access point information includes access point information obtained by the server according to an identifier of the first mobile network;
the sending unit is further configured to send second access point information to a target terminal device, where the target terminal device is outside a coverage area of a mobile network, and the second access point information is part or all of the first access point information;
the receiving unit is further configured to receive a network connection request carrying third access point information sent by the target terminal device, where the third access point information is one of the second access point information and access point information that the target terminal device can use;
and the access unit is used for accessing the first mobile network through the access point corresponding to the third access point information.
With reference to the third aspect of the present embodiment, in a first possible implementation manner of the third aspect of the present embodiment, the second access point information is all access point information in the first access point information;
the mode of sending the second access point information to the target terminal device by the sending unit is specifically as follows:
and sending the second access point information to the target terminal equipment in a broadcasting mode.
With reference to the third aspect of the embodiment of the present invention, in a second possible implementation manner of the third aspect of the embodiment of the present invention, the receiving unit is further configured to receive, while receiving the first access point information sent by the server, an identifier of a second mobile network that is equivalent to the first mobile network and sent by the server, where the first access point information further includes access point information obtained by the server according to the identifier of the second mobile network;
the sending unit is further configured to send the identifier of the first mobile network and the identifier of the second mobile network to a target terminal device in a broadcast manner;
the receiving unit is further configured to receive an access point information acquisition request which is sent by the target terminal device and carries an identifier of a third mobile network, where the identifier of the third mobile network is an identifier of a mobile network determined by the target terminal device from the identifier of the first mobile network and the identifier of the second mobile network;
the second access point information is access point information corresponding to the identifier of the third mobile network in the first access point information;
the access unit is specifically configured to access the third mobile network through an access point corresponding to the third access point information.
With reference to the third aspect of the embodiment of the present invention and any one possible implementation manner of the first and second aspects of the third aspect of the embodiment of the present invention, in a third possible implementation manner of the third aspect of the embodiment of the present invention, the access point information includes an access point name or an access point name index.
A fourth aspect of the present invention discloses a terminal device, including a processor, a memory, an input apparatus, and an output apparatus, wherein:
the output device is used for sending an identifier of a first mobile network to a server, wherein the terminal equipment is in the coverage range of the first mobile network, and the server is a server corresponding to a home mobile network of the terminal equipment;
the input device is configured to receive first access point information sent by the server, where the first access point information includes access point information obtained by the server according to an identifier of the first mobile network;
the output device is further configured to send second access point information to a target terminal device, where the target terminal device is outside a coverage area of a mobile network, and the second access point information is part or all of the first access point information;
the input device is further configured to receive a network connection request that is sent by the target terminal device and carries third access point information, where the third access point information is one of the second access point information and access point information that the target terminal device can use;
the memory has stored therein a set of program code, and the processor is configured to invoke the program code stored in the memory to perform the following operations:
and accessing the first mobile network through the access point corresponding to the third access point information.
With reference to the fourth aspect of the present embodiment, in a first possible implementation manner of the fourth aspect of the present embodiment, the second access point information is all access point information in the first access point information;
the way for the output device to send the second access point information to the target terminal device is specifically as follows:
and sending the second access point information to the target terminal equipment in a broadcasting mode.
With reference to the fourth aspect of the present embodiment, in a second possible implementation manner of the fourth aspect of the present embodiment, the input device is further configured to receive, while receiving the first access point information sent by the server, an identifier of a second mobile network that is equivalent to the first mobile network and sent by the server, where the first access point information further includes access point information obtained by the server according to the identifier of the second mobile network;
after the input device receives the first access point information sent by the server and before the output device sends the second access point information to the target terminal equipment, the output device is further configured to send the identifier of the first mobile network and the identifier of the second mobile network to the target terminal equipment in a broadcast manner;
the input device is further configured to receive an access point information acquisition request that is sent by the target terminal device and carries an identifier of a third mobile network, where the identifier of the third mobile network is an identifier of a mobile network that is determined by the target terminal device from the identifier of the first mobile network and the identifier of the second mobile network;
the second access point information is access point information corresponding to the identifier of the third mobile network in the first access point information;
the mode that the processor accesses the first mobile network through the access point corresponding to the third access point information is specifically as follows:
and accessing the third mobile network through the access point corresponding to the third access point information.
With reference to the fourth aspect of the present embodiment and any one of the first possible implementation manner and the second possible implementation manner of the fourth aspect of the present embodiment, in a third possible implementation manner of the fourth aspect of the present embodiment, the access point information includes an access point name or an access point name index.
A fifth aspect of the embodiments of the present invention discloses a terminal device, including:
an obtaining unit, configured to obtain an identifier of a first mobile network, where the terminal device is located outside a coverage area of the mobile network;
a sending unit, configured to send an identifier of the first mobile network to a server, where the server is a server corresponding to a home mobile network of the terminal device;
a receiving unit, configured to receive first access point information sent by the server, where the first access point information includes access point information obtained by the server according to an identifier of the first mobile network;
the receiving unit is further configured to receive second access point information sent by a target terminal device, where the target terminal device is located within a coverage area of the first mobile network;
a determining unit configured to determine one access point information from access point information belonging to both the first access point information and the second access point information;
the sending unit is further configured to send a network connection request carrying the determined access point information to the target terminal device, so as to trigger the target terminal device to access the first mobile network through the access point corresponding to the determined access point information.
With reference to the fifth aspect of the present embodiment, in a first possible implementation manner of the fifth aspect of the present embodiment, a manner of receiving, by the receiving unit, the second access point information sent by the target terminal device is specifically that:
and receiving second access point information sent by the target terminal equipment in a broadcasting mode.
With reference to the fifth aspect of the present embodiment, in a second possible implementation manner of the fifth aspect of the present embodiment, the receiving unit is further configured to receive, while receiving the first access point information sent by the server, an identifier of a second mobile network that is equivalent to the first mobile network and sent by the server, where the first access point information further includes access point information obtained by the server according to the identifier of the second mobile network;
the receiving unit is further configured to receive an identifier of the first mobile network and an identifier of a third mobile network equivalent to the first mobile network, where the identifiers are sent by a target terminal device in a broadcast manner;
the determining unit is further configured to determine an identifier of a mobile network from the identifier of the first mobile network and the identifier of a target mobile network, where the identifier of the target mobile network is an identifier of a mobile network that belongs to both the identifier of the second mobile network and the identifier of the third mobile network;
the sending unit is further configured to send an access point information acquisition request carrying the determined identifier of the mobile network to the target terminal device;
the manner of receiving, by the receiving unit, the second access point information sent by the target terminal device is specifically:
receiving access point information corresponding to the determined mobile network identifier sent by the target terminal device;
the determining unit determines one access point information from the access point information belonging to both the first access point information and the second access point information, specifically:
determining access point information from access point information corresponding to the first access point information and the determined mobile network identifier at the same time;
the method for the sending unit to send the network connection request carrying the determined access point information to the target terminal device to trigger the target terminal device to access the first mobile network through the access point corresponding to the determined access point information specifically includes:
and sending a network connection request carrying the determined access point information to the target terminal equipment to trigger the target terminal equipment to access the determined mobile network through the access point corresponding to the determined access point information.
With reference to the fifth aspect of the present embodiment and any one of the first possible implementation manner and the second possible implementation manner of the fifth aspect of the present embodiment, in a third possible implementation manner of the fifth aspect of the present embodiment, the access point information includes an access point name or an access point name index.
A sixth aspect of the present invention discloses a terminal device, including a processor, a memory, an input apparatus, and an output apparatus, wherein:
the memory has stored therein a set of program code, and the processor is configured to invoke the program code stored in the memory to perform the following operations:
acquiring an identifier of a first mobile network, wherein the terminal equipment is out of the coverage range of the mobile network;
the output device is used for sending the identifier of the first mobile network to a server, and the server is a server corresponding to a home mobile network of the terminal equipment;
the input device is configured to receive first access point information sent by the server, where the first access point information includes access point information obtained by the server according to an identifier of the first mobile network;
the input device is further configured to receive second access point information sent by a target terminal device, where the target terminal device is located within a coverage area of the first mobile network;
the processor is further configured to invoke program code stored in the memory to:
determining one access point information from access point information belonging to both the first access point information and the second access point information;
the output device is further configured to send a network connection request carrying the determined access point information to the target terminal device, so as to trigger the target terminal device to access the first mobile network through the access point corresponding to the determined access point information.
With reference to the sixth aspect of the present embodiment, in a first possible implementation manner of the sixth aspect of the present embodiment, a manner of receiving, by the input device, the second access point information sent by the target terminal device is specifically that:
and receiving second access point information sent by the target terminal equipment in a broadcasting mode.
With reference to the sixth aspect of the present embodiment, in a second possible implementation manner of the sixth aspect of the present embodiment, the input device is further configured to receive, while receiving the first access point information sent by the server, an identifier of a second mobile network that is equivalent to the first mobile network and sent by the server, where the first access point information further includes access point information obtained by the server according to the identifier of the second mobile network;
after the input device receives the first access point information sent by the server and before the input device receives the second access point information sent by the target terminal equipment, the input device is further used for receiving the identifier of the first mobile network and the identifier of a third mobile network equivalent to the first mobile network, which are sent by the target terminal equipment in a broadcasting mode;
the processor is further configured to invoke program code stored in the memory to:
determining an identity of a mobile network from the identity of the first mobile network and an identity of a target mobile network, the identity of the target mobile network being an identity of a mobile network belonging to both the identity of the second mobile network and the identity of the third mobile network;
the output device is further configured to send an access point information acquisition request carrying the determined identifier of the mobile network to the target terminal device;
the mode of receiving the second access point information sent by the target terminal device by the input device is specifically as follows:
receiving access point information corresponding to the determined mobile network identifier sent by the target terminal device;
the processor determines one access point information from the access point information belonging to both the first access point information and the second access point information in a specific manner:
determining access point information from access point information corresponding to the first access point information and the determined mobile network identifier at the same time;
the method for the output device to send the network connection request carrying the determined access point information to the target terminal device to trigger the target terminal device to access the first mobile network through the access point corresponding to the determined access point information specifically includes:
and sending a network connection request carrying the determined access point information to the target terminal equipment to trigger the target terminal equipment to access the determined mobile network through the access point corresponding to the determined access point information.
With reference to the sixth aspect of the embodiment of the present invention and any one possible implementation manner of the first and second aspects of the sixth aspect of the embodiment of the present invention, in a third possible implementation manner of the sixth aspect of the embodiment of the present invention, the access point information includes an access point name or an access point name index.
In the embodiment of the present invention, when a first terminal device is out of the coverage area of a mobile network, the first terminal device may obtain an identifier of the mobile network, then obtain first access point information from a server corresponding to a home mobile network of the first terminal device according to the identifier of the mobile network, a second terminal device within the coverage area of the mobile network may obtain second access point information from a server corresponding to a home mobile network of the second terminal device according to the identifier of the mobile network, the second terminal device sends the second access point information to the first terminal device, the first terminal device determines an access point information from the access point information belonging to both the first access point information and the second access point information, and then sends the access point information to the second terminal device, and the second terminal device may access the mobile network through an access point corresponding to the access point information, therefore, the first terminal equipment can access the mobile network through the second terminal equipment, and therefore, when the terminal equipment is out of the coverage range of the mobile network, the terminal equipment can access the mobile network.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without inventive labor.
Fig. 1 is a flowchart of a network connection method according to an embodiment of the present invention;
FIG. 2 is a flow chart of another network connection method disclosed in the embodiments of the present invention;
FIG. 3 is a flow chart of another network connection method disclosed in the embodiments of the present invention;
FIG. 4 is a flow chart of another network connection method disclosed in the embodiments of the present invention;
fig. 5 is a structural diagram of a terminal device disclosed in the embodiment of the present invention;
fig. 6 is a structural diagram of another terminal device disclosed in the embodiment of the present invention;
fig. 7 is a structural diagram of another terminal device disclosed in the embodiment of the present invention;
fig. 8 is a structural diagram of another terminal device disclosed in the embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The embodiment of the invention discloses a network connection method and related equipment, which are used for accessing a mobile network by terminal equipment when the terminal equipment is out of the coverage range of the mobile network. The following are detailed below.
In a conventional mobile network, communication between terminal devices needs to pass through a core network entity, such as a Serving Gateway (SEW), a Packet Data network Gateway (PGW), and so on. When two terminal devices which are relatively close to each other need to communicate, the communication efficiency is reduced because the communication needs to be realized through a core network entity. Therefore, in order to improve the communication efficiency between two terminals located close to each other, a Proximity Services (ProSe) problem has been proposed in the art, in which two terminals located close to each other can directly communicate with each other. When the terminal device is out of the coverage area of the mobile network, the terminal device cannot access the mobile network, and because the ProSe issue can provide a direct communication function for the two terminal devices, the terminal device out of the coverage area of the mobile network can access the mobile network through the terminal device in the coverage area of the mobile network, but the two terminal devices are required to have the same access point accessing the same mobile network. The mobile network in the embodiment of the present invention refers to an operator network, and the terminal device is outside the coverage of the mobile network, which indicates that the terminal device is outside the coverage of all operator networks at this time and that there is no available non-operator network currently.
When the home mobile network of the first terminal device within the coverage of the mobile network and the home mobile network of the second terminal device outside the coverage of the mobile network are both target mobile networks, the server corresponding to the target mobile network may set access points for accessing the target mobile network for the two terminal devices in advance, when the second terminal device needs to access the target mobile network, the second terminal device will receive access point information corresponding to the access point, which is broadcasted by the first terminal device and used for accessing the target mobile network, of the first terminal device, and then the second terminal device will determine access point information from the access point information belonging to both the access point corresponding to the access point, which is used for accessing the target mobile network, of the first terminal device and the access point information corresponding to the access point, which is used for accessing the target mobile network, of the second terminal device, and sending the access point information to the first terminal device, and the first terminal device accessing the target mobile network through the access point corresponding to the access point information, so that the second terminal device can access the target mobile network through the first terminal device. However, in the above-mentioned method, the server is required to set access points for the managed terminal devices in advance, but the terminal devices do not use these access points to access the mobile network all the time, which causes resource waste; furthermore, it is required that the home mobile network of the terminal device which is out of the coverage of the mobile network is the same mobile network as the home mobile network of the terminal device which is in the coverage of the mobile network, and the currently available mobile network of the terminal device which is in the coverage of the mobile network must include the home mobile network of the terminal device. Therefore, when the server does not provide the terminal device with an access point for accessing the mobile network in advance, or the home mobile network of the terminal device out of the coverage of the mobile network and the home mobile network of the terminal device in the coverage of the mobile network are different mobile networks, or the currently available mobile network of the terminal device in the coverage of the mobile network does not include the home mobile network of the terminal device, the terminal device out of the coverage of the mobile network cannot access the mobile network through the terminal device in the coverage of the mobile network.
Referring to fig. 1, fig. 1 is a flowchart illustrating a network connection method according to an embodiment of the present invention. The network connection method shown in fig. 1 is described from the perspective of a terminal device within the coverage of a mobile network. As shown in fig. 1, the network connection method may include the following steps.
S101, a first terminal device sends an identifier of a first mobile network to a server, wherein the first terminal device is within the coverage range of the first mobile network, and the server is a server corresponding to a home mobile network of the first terminal device.
In this embodiment, the first terminal device may access the mobile network through the access point, and therefore, in order to access the mobile network, the first terminal device needs to send an identifier of the mobile network currently available to the first terminal device, that is, an identifier of the first mobile network, to the server. The first terminal equipment is located in the coverage range of the first mobile network, and the server is a server corresponding to the home mobile network of the first terminal equipment. The first mobile network may be a home mobile network of the first terminal device, or may be another mobile network, which is not limited in this embodiment. For example, when the SIM card used by the first terminal device is a china unicom card, the home mobile network of the first terminal device is a china unicom network, the server is a server corresponding to the china unicom network, and when the first terminal device is currently only located in the coverage area of the china telecommunication network, the identifier of the first mobile network is an identifier of the china telecommunication network. The first terminal device is any terminal device within the coverage range of the mobile network.
S102, the first terminal device receives first access point information sent by the server, wherein the first access point information comprises access point information obtained by the server according to the identification of the first mobile network.
In this embodiment, after sending the identifier of the first mobile network to the server, the first terminal device receives first access point information sent by the server, where the first access point information includes access point information obtained by the server according to the identifier of the first mobile network. Wherein. When the first terminal device is in the coverage area of the first mobile network, the first terminal device may directly access the first mobile network through the access point corresponding to the access point information obtained by the server according to the identifier of the first mobile network.
S103, the first terminal device sends second access point information to the second terminal device, wherein the second terminal device is out of the coverage area of the mobile network, and the second access point information is part or all of the first access point information.
In this embodiment, after receiving the first access point information sent by the server, the first terminal device may send part or all of the access point information in the first access point information to the second terminal device. The second terminal device is located outside the coverage of the mobile network, and the second terminal device is any terminal device located outside the coverage of the mobile network.
S104, the first terminal equipment receives a network connection request which is sent by the second terminal equipment and carries third access point information, wherein the third access point information belongs to one of the second access point information and the access point information which can be used by the second terminal equipment.
In this embodiment, the third access point information is one access point information determined by the second terminal device from access point information belonging to both the second access point information and the second terminal device usable access point information. When the first access point information only includes access point information obtained by the server according to the identifier of the first mobile network, the second terminal device may use the access point information as access point information corresponding to an access point which the second terminal device may use for accessing the first mobile network, that is, when the second terminal device is within the coverage of the first mobile network, the second terminal device may directly access the first mobile network through the access points corresponding to the access point information.
And S105, the first terminal equipment accesses the first mobile network through the access point corresponding to the third access point information.
In this embodiment, after receiving a network connection request carrying third access point information sent by a second terminal device, a first terminal device accesses to a first mobile network through an access point corresponding to the third access point information, and then the second terminal device accesses to the first mobile network through the first terminal device.
In one embodiment, the second access point information is all of the access point information in the first access point information;
the manner for the first terminal device to send the second access point information to the second terminal device is specifically as follows:
and the first terminal equipment sends the second access point information to the second terminal equipment in a broadcasting mode.
In this embodiment, when the first access point information includes only access point information obtained by the server according to the identifier of the first mobile network, the second access point information is all access point information in the first access point information, and the first terminal device sends the second access point information to the second terminal device at one time in a broadcast manner.
In one embodiment, the first terminal device receives first access point information sent by a server, and also receives an identifier of a second mobile network equivalent to the first mobile network, where the identifier of the second mobile network is sent by the server, and the first access point information further includes access point information obtained by the server according to the identifier of the second mobile network;
after the first terminal device receives the first access point information sent by the server and before the second terminal device sends the second access point information, the network connection method may further include the steps of:
the first terminal equipment sends the identification of the first mobile network and the identification of the second mobile network to the second terminal equipment in a broadcasting mode;
the method comprises the steps that a first terminal device receives an access point information acquisition request which is sent by a second terminal device and carries an identifier of a third mobile network, wherein the identifier of the third mobile network is the identifier of one mobile network determined by the second terminal device from the identifier of the first mobile network and the identifier of the second mobile network;
the second access point information is the access point information corresponding to the identifier of the third mobile network in the first access point information;
the method for the first terminal device to access the first mobile network through the access point corresponding to the third access point information specifically includes:
and the first terminal equipment accesses the third mobile network through the access point corresponding to the third access point information.
In this embodiment, when the server acquires, for the first terminal device, the second mobile network equivalent to the first mobile network, the first terminal device receives the first access point information sent by the server, and also receives the identifier of the second mobile network equivalent to the first mobile network, where the first access point information further includes the access point information acquired by the server according to the identifier of the second mobile network. The second mobile network may be one mobile network or multiple mobile networks, and this embodiment is not limited. The mobile network equivalent to the first mobile network, obtained by the server according to the identifier of the first mobile network, may include only a mobile network currently available to the first terminal device, may also include a mobile network currently available to the first terminal device and a mobile network currently unavailable to the first terminal device, and may also include only a mobile network currently unavailable to the first terminal device, which is not limited in this embodiment. The identifier of the second mobile network is an identifier of a part or all of the mobile networks in the mobile network equivalent to the first mobile network, which can be acquired by the server according to the identifier of the first mobile network, and the second mobile network is a mobile network currently usable by the first terminal device, that is, the first terminal device is currently in the coverage of the second mobile network, but a mobile network currently not usable by the first terminal device in the mobile network equivalent to the first mobile network is not written here. Since the first terminal device can access to both the first mobile network and any one of the second mobile networks equivalent to the first mobile network, the first terminal device may therefore first send the identities of the plurality of mobile networks to the second terminal device, so that the second terminal device determines the identifier of one mobile network from the identifiers of the plurality of mobile networks as required, and then the first terminal device sends the access point information corresponding to the identifier of the mobile network to the second terminal device, so that the second terminal device can determine one access point information from the access point information corresponding to the identity belonging to this mobile network and the access point information of the access point information usable by the second terminal device, and sending the access point information to the first terminal device, and the first terminal device accesses the mobile network through the access point corresponding to the access point information. Wherein, the operator of the second mobile network equivalent to the first mobile network and the operator of the first mobile network are the same operator, for example: when the identifier of the first mobile network is 46007, it indicates that the first mobile network is a 4G network of a china mobile operator network, and the identifier of the second mobile network equivalent to the first mobile network may be 46000 and/or 46002, where 46000 is a 2G network of a china mobile operator network and 46002 is a 3G network of a china mobile operator network.
In one embodiment, the access point information may include an access point name or an access point name index.
In this embodiment, the access point information may be a name of the access point, or may be an index of the name of the access point, which is not limited in this embodiment.
In the network connection method described in fig. 1, since the first terminal device has access point information corresponding to an access point for accessing the first mobile network, the second terminal device has access point information corresponding to an access point for accessing the first mobile network, and the access point information corresponding to the first terminal device and the access point information corresponding to the second terminal device have the same access point information, and in addition, the first terminal device is within the coverage of the first mobile network, the second terminal device can access the first mobile network through the first terminal device. Therefore, when the terminal device is out of the coverage range of the mobile network, the terminal device can access the mobile network.
Referring to fig. 2, fig. 2 is a flowchart illustrating another network connection method according to an embodiment of the present invention. The network connection method shown in fig. 2 is described from the perspective of a terminal device that is out of the coverage area of the mobile network. As shown in fig. 2, the network connection method may include the following steps.
S201, a first terminal device obtains an identifier of a first mobile network, and the first terminal device is located outside a coverage area of the mobile network.
In this embodiment, when a first terminal device located outside the coverage of the mobile network needs to connect to the first mobile network, the identifier of the first mobile network is obtained. The first terminal device may obtain the identifier of the first mobile network through any terminal device within the coverage of the first mobile network. The first terminal device is any terminal device out of the coverage area of the mobile network.
S202, the first terminal device sends the identification of the first mobile network to a server, and the server is a server corresponding to the home mobile network of the first terminal device.
In this embodiment, after acquiring the identifier of the first mobile network, the first terminal device sends the identifier of the first mobile network to the server. The first mobile network may be a home mobile network of the first terminal device, or may be another mobile network, which is not limited in this embodiment. For example, when the SIM card used by the first terminal device is a china unicom card, the home mobile network of the first terminal device is a china unicom network, and the server is a server corresponding to the china unicom network.
S203, the first terminal device receives the first access point information sent by the server, where the first access point information includes access point information obtained by the server according to the identifier of the first mobile network.
In this embodiment, after sending the identifier of the first mobile network to the server, the first terminal device receives the first access point information sent by the server. The first access point information comprises access point information obtained by the server according to the identification of the first mobile network. When the first terminal device is within the coverage of the first mobile network, the first terminal device can directly access the first mobile network through an access point corresponding to any access point information in access point information obtained by the server according to the identifier of the first mobile network.
And S204, the first terminal equipment receives second access point information sent by the second terminal equipment, and the second terminal equipment is located in the coverage range of the first mobile network.
In this embodiment, after receiving the first access point information sent by the server, the first terminal device receives second access point information sent by the second terminal device within the coverage of the first mobile network. Wherein the second access point information is information of an access point usable by the second terminal device. When the second access point information only includes the access point information corresponding to the identifier of the first mobile network, if the first terminal device is within the coverage of the first mobile network, the second terminal device may directly access the first mobile network through the access point corresponding to any one of the second access point information. The first terminal device in this embodiment is the second terminal device in the first embodiment, and the second terminal device in this embodiment is the first terminal device in the first embodiment. The second terminal device is any terminal device within the coverage range of the mobile network.
S205, the first terminal device determines an access point information from the access point information belonging to both the first access point information and the second access point information.
In this embodiment, after receiving the second access point information sent by the second terminal device, the first terminal device determines, as needed, one access point information from the access point information belonging to both the first access point information and the second access point information.
S206, the first terminal device sends a network connection request carrying the determined access point information to the second terminal device so as to trigger the second terminal device to access the first mobile network through the access point corresponding to the determined access point information.
In this embodiment, after determining access point information from access point information belonging to both the first access point information and the second access point information, the first terminal device sends a network connection request carrying the determined access point information to the second terminal device, so as to trigger the second terminal device to access the first mobile network through the access point corresponding to the determined access point information, and then the first terminal device can access the first mobile network through the second terminal device.
In an embodiment, a manner for the first terminal device to receive the second access point information sent by the second terminal device is specifically that:
and the first terminal equipment receives the second access point information sent by the second terminal equipment in a broadcasting mode.
In this embodiment, when the first access point information includes only access point information obtained by the server according to the identifier of the first mobile network, the second access point information received by the first terminal device is sent by the second terminal device in a broadcast manner.
In one embodiment, the first terminal device receives first access point information sent by a server, and also receives an identifier of a second mobile network equivalent to the first mobile network, where the identifier of the second mobile network is sent by the server, and the first access point information further includes access point information obtained by the server according to the identifier of the second mobile network;
after the first terminal device receives the first access point information sent by the server and before receiving the second access point information sent by the second terminal device, the network connection method may further include:
the method comprises the steps that a first terminal device receives an identifier of a first mobile network and an identifier of a third mobile network equivalent to the first mobile network, wherein the identifier of the first mobile network and the identifier of the third mobile network are sent by a second terminal device in a broadcasting mode;
the first terminal equipment determines a mobile network identifier from the first mobile network identifier and a target mobile network identifier, wherein the target mobile network identifier is the mobile network identifier belonging to the second mobile network identifier and the third mobile network identifier simultaneously;
the first terminal equipment sends an access point information acquisition request carrying the determined mobile network identifier to the second terminal equipment;
the manner in which the first terminal device receives the second access point information sent by the second terminal device is specifically as follows:
the method comprises the steps that a first terminal device receives access point information corresponding to a determined mobile network identifier sent by a second terminal device;
the method for the first terminal device to determine one access point information from the access point information belonging to both the first access point information and the second access point information is specifically as follows:
the first terminal equipment determines access point information from the access point information which simultaneously belongs to the first access point information and corresponds to the determined mobile network identifier;
the method for the first terminal device to send the network connection request carrying the determined access point information to the second terminal device to trigger the second terminal device to access the first mobile network through the access point corresponding to the determined access point information specifically includes:
the first terminal equipment sends a network connection request carrying the determined access point information to the second terminal equipment so as to trigger the second terminal equipment to access the determined mobile network through the access point corresponding to the determined access point information.
In this embodiment, when the server acquires, for the first terminal device, the second mobile network equivalent to the first mobile network, the first terminal device receives the first access point information sent by the server, and also receives the identifier of the second mobile network equivalent to the first mobile network, where the identifier of the second mobile network is all the mobile networks in the mobile networks equivalent to the first mobile network that can be acquired by the server according to the identifier of the first mobile network. The first access point information also comprises access point information obtained by the server according to the identification of the second mobile network. When the second access point information includes access point information corresponding to the identifier of the first mobile network and access point information corresponding to the identifier of the third mobile network, it indicates that the second terminal device is currently located in the coverage areas of the first mobile network and the third mobile network, and the second terminal device may access the first mobile network or the third mobile network. Therefore, after receiving the first access point information sent by the server, the first terminal device will receive the identifier of the first mobile network and the identifier of the third mobile network equivalent to the first mobile network, which are sent by the second terminal device in a broadcast manner, and then will determine the identifier of one mobile network from the identifier of the first mobile network and the identifier of the target mobile network, where the identifier of the target mobile network is the identifier of the mobile network belonging to both the identifier of the second mobile network and the identifier of the third mobile network. And then sending an access point information acquisition request carrying the determined mobile network identifier to the second terminal device, receiving access point information corresponding to the determined mobile network identifier sent by the second terminal device, determining access point information from the access point information simultaneously belonging to the first access point information and the access point information corresponding to the determined mobile network identifier, and then sending a network connection request carrying the determined access point information to the second terminal device so as to trigger the second terminal device to access the determined mobile network through the access point corresponding to the determined access point information. When the first terminal equipment does not receive the identifier of the second mobile network which is equivalent to the first mobile network and is sent by the server, the first terminal equipment directly sends an access point information acquisition request carrying the identifier of the first mobile network to the second terminal equipment after receiving the identifier of the first mobile network and the identifier of the third mobile network which is equivalent to the first mobile network, which are sent by the second terminal equipment in a broadcasting mode. Wherein, the operator of the second mobile network equivalent to the first mobile network and the operator of the first mobile network are the same operator, for example: when the identifier of the first mobile network is 46007, it indicates that the first mobile network is a 4G network of a china mobile operator network, and the identifier of the second mobile network equivalent to the first mobile network may be 46000 and/or 46002, where 46000 is a 2G network of a china mobile operator network and 46002 is a 3G network of a china mobile operator network.
In the network connection method described in fig. 2, since the first terminal device has first access point information corresponding to an access point for accessing the first mobile network, the second terminal device has second access point information corresponding to an access point for accessing the first mobile network, and the first access point information and the second access point information have the same access point information, and in addition, the second terminal device is currently located within the coverage of the first mobile network, the first terminal device can access the first mobile network through the second terminal device. Therefore, when the terminal device is out of the coverage range of the mobile network, the terminal device can access the mobile network.
Referring to fig. 3, fig. 3 is a flowchart illustrating another network connection method according to an embodiment of the present invention. The network connection method shown in fig. 3 is described from the perspective of a terminal device within the network coverage and a terminal device outside the network coverage. As shown in fig. 3, the network connection method may include the following steps.
S301, the first terminal device sends an identifier of a first mobile network to a first server, wherein the first terminal device is within a coverage range of the first mobile network, and the first server is a server corresponding to a home mobile network of the first terminal device.
In this embodiment, the first terminal device may access the mobile network through the access point, and therefore, in order to access the mobile network, the first terminal device needs to send an identifier of the mobile network currently available to the first terminal device, that is, an identifier of the first mobile network, to the first server. The first terminal device is located in the coverage range of the first mobile network, and the first server is a server corresponding to the home mobile network of the first terminal device. The first mobile network may be a home mobile network of the first terminal device, or may be another mobile network, which is not limited in this embodiment. For example, when the SIM card used by the first terminal device is a china unicom card, the mobile network of the home location of the first terminal device is a china unicom network, the first server is a server corresponding to the china unicom network, and when the first terminal device is currently only located in the coverage area of the china telecommunication network, the identifier of the first mobile network is an identifier of the china telecommunication network. The first terminal device is any terminal device within the coverage range of the mobile network.
S302, the first server judges whether the first mobile network is a home mobile network of the first terminal device according to the identifier of the first mobile network, if so, an access point is selected for the first terminal device, first access point information corresponding to the access point is sent to the first terminal device, if not, an access point information acquisition request is sent to a server corresponding to the first mobile network, the first access point information sent by the server is received, and the first access point information is sent to the first terminal device.
In this embodiment, after receiving an identifier of a first mobile network sent by a first terminal device, a first server determines whether the first mobile network is a home mobile network of the first terminal device according to the identifier of the first mobile network, and if so, selects an access point for the first terminal device and sends first access point information corresponding to the access point to the first terminal device; if not, sending an access point information acquisition request to a server corresponding to the first mobile network so that the server can select an access point for the first terminal device, sending first access point information corresponding to the access point to the first server, and sending the first access point information to the first terminal device after the first server receives the first access point information sent by the server. When the first terminal device is within the coverage of the first mobile network, the first terminal device can directly access the first mobile network through the access point corresponding to the first access point information.
And S303, the second terminal equipment acquires the identifier of the first mobile network and sends the identifier of the first mobile network to a second server, the second terminal equipment is out of the coverage range of the mobile network, and the second server is a server corresponding to the home mobile network of the second terminal equipment.
In this embodiment, when a second terminal device outside the coverage of the mobile network needs to connect to the first mobile network, the identifier of the first mobile network is obtained, and the identifier of the first mobile network is sent to the second server. The second terminal device may obtain the identifier of the first mobile network through any terminal device within the coverage of the first mobile network. The first mobile network may be a home mobile network of the second terminal device, or may be another mobile network, which is not limited in this embodiment. The first terminal device in this embodiment is the first terminal device in the first embodiment, and the second terminal device in the first embodiment is the second terminal device in the first embodiment. The second terminal device is any terminal device out of the coverage area of the mobile network. Step S303 may be executed in parallel with step S301 and step S302, or may be executed in series, which is not limited in this embodiment.
S304, the second server judges whether the first mobile network is the home mobile network of the second terminal equipment according to the identification of the first mobile network, if so, an access point is selected for the second terminal equipment, second access point information corresponding to the access point is sent to the second terminal equipment, if not, an access point information acquisition request is sent to the server corresponding to the first mobile network, the second access point information sent by the server is received, and the second access point information is sent to the second terminal equipment.
In this embodiment, after receiving the identifier of the first mobile network sent by the second terminal device, the second server determines whether the first mobile network is a home mobile network of the second terminal device according to the identifier of the first mobile network, and if so, selects an access point for the second terminal device, and sends second access point information corresponding to the access point to the second terminal device; if not, sending an access point information acquisition request to a server corresponding to the first mobile network so that the server can select an access point for the second terminal equipment, sending second access point information corresponding to the access point to the second server, and sending the second access point information to the second terminal equipment after the second server receives the second access point information sent by the server. When the second terminal device is within the coverage of the first mobile network, the second terminal device can directly access the first mobile network through the access point corresponding to the second access point information.
S305, the first terminal equipment sends the first access point information to the second terminal equipment in a broadcasting mode.
In this embodiment, when the first access point information is the access point information obtained by the first server according to the identifier of the first mobile network, the first terminal device broadcasts the first access point information after receiving the first access point information sent by the first server.
S306, the second terminal equipment determines access point information from the access point information belonging to the first access point information and the second access point information at the same time, and sends a network connection request carrying the determined access point information to the first terminal equipment.
In this embodiment, after receiving the second access point information sent by the second server, the second terminal device receives the first access point information broadcast by the first terminal device, then determines one access point information from the access point information belonging to both the first access point information and the second access point information, and sends a network connection request carrying the determined access point information to the first terminal device.
S307, the first terminal device accesses the first mobile network through the access point corresponding to the determined access point information.
In this embodiment, after receiving a network connection request carrying determined access point information sent by a second terminal device, a first terminal device accesses an access point corresponding to the determined access point information to a first mobile network, so that the second terminal device accesses the first mobile network through the first terminal device.
In the network connection described in fig. 3, since the first terminal device has the first access point information corresponding to the access point for accessing the first mobile network, the second terminal device has the second access point information corresponding to the access point for accessing the first mobile network, and the first access point information and the second access point information include the same access point information, and in addition, the first terminal device is currently within the coverage of the first mobile network, the second terminal device can access the first mobile network through the first terminal device, and it can be seen that when the terminal device is outside the coverage of the mobile network, the terminal device can access the mobile network.
Referring to fig. 4, fig. 4 is a flowchart illustrating another network connection method according to an embodiment of the present invention. The network connection method shown in fig. 4 is described from the perspective of a terminal device within the network coverage and a terminal device outside the network coverage. As shown in fig. 4, the network connection method may include the following steps.
S401, a first terminal device sends an identifier of a first mobile network to a first server, wherein the first terminal device is within a coverage range of the first mobile network, and the first server is a server corresponding to a home mobile network of the first terminal device.
In this embodiment, the first terminal device may access the mobile network through the access point, and therefore, in order to access the mobile network, the first terminal device needs to send an identifier of the mobile network currently available to the first terminal device, that is, an identifier of the first mobile network, to the first server. The first terminal device is located in the coverage range of the first mobile network, and the first server is a server corresponding to the home mobile network of the first terminal device. The first mobile network may be a home mobile network of the first terminal device, or may be another mobile network, which is not limited in this embodiment. For example, when the SIM card used by the first terminal device is a china unicom card, the mobile network of the home location of the first terminal device is a china unicom network, the first server is a server corresponding to the china unicom network, and when the first terminal device is currently only located in the coverage area of the china telecommunication network, the identifier of the first mobile network is an identifier of the china telecommunication network. The first terminal device is any terminal device within the coverage range of the mobile network.
S402, the first server judges whether the first mobile network is a home mobile network of the first terminal equipment according to the identification of the first mobile network, if so, the identification of a second mobile network equivalent to the first mobile network is obtained, a first access point for accessing the first mobile network and a second access point for accessing the second mobile network are selected for the first terminal equipment, the identification of the second mobile network and first access point information comprising the access point information corresponding to the first access point and the access point information corresponding to the second access point are sent to the first terminal equipment, if not, an access point information obtaining request is sent to the server corresponding to the first mobile network, the identification of the second mobile network sent by the server and the first access point information comprising the access point information corresponding to the first access point and the access point information corresponding to the second access point are received, and sending the identity of the second mobile network and the first access point information to the first terminal device.
In this embodiment, after receiving an identifier of a first mobile network sent by a first terminal device, a first server determines whether the first mobile network is a home mobile network of the first terminal device according to the identifier of the first mobile network, if so, obtains an identifier of a second mobile network equivalent to the first mobile network, selects a first access point for accessing the first mobile network and a second access point for accessing the second mobile network for the first terminal device, and sends the identifier of the second mobile network and first access point information including access point information corresponding to the first access point and access point information corresponding to the second access point to the first terminal device; if not, sending an access point information acquisition request to a server corresponding to the first mobile network to trigger the server to acquire an identifier of a second mobile network equivalent to the first mobile network, selecting a first access point for accessing the first mobile network and a second access point for accessing the second mobile network for the first terminal device, sending the identifier of the second mobile network and first access point information comprising the access point information corresponding to the first access point and the access point information corresponding to the second access point to the first server, and sending the identifier of the second mobile network and the first access point information to the first terminal device after the first server receives the identifier of the second mobile network sent by the server and the first access point information comprising the access point information corresponding to the first access point and the access point information corresponding to the second access point. The mobile network equivalent to the first mobile network, which can be obtained by the server according to the identifier of the first mobile network, may include only a mobile network currently available to the first terminal device, may also include a mobile network currently available to the first terminal device and a mobile network currently unavailable to the first terminal device, and may also include only a mobile network currently unavailable to the first terminal device, which is not limited in this embodiment. The identifier of the second mobile network is a part or all of the mobile networks in the mobile network equivalent to the first mobile network that can be acquired by the server according to the identifier of the first mobile network, and the second mobile network is a mobile network currently usable by the first terminal device, that is, the first terminal device is currently in the coverage of the second mobile network, but a mobile network in the mobile network equivalent to the first mobile network that is not currently usable by the first terminal device is not written here. When the first terminal equipment is within the coverage range of the first mobile network, the first terminal equipment can directly access the first mobile network through the first access point; when the first terminal device is within the coverage area of the second mobile network, the first terminal device can directly access the second mobile network through the second access point. Wherein, the operator of the second mobile network equivalent to the first mobile network and the operator of the first mobile network are the same operator, for example: when the identifier of the first mobile network is 46007, it indicates that the first mobile network is a 4G network of a china mobile operator network, and the identifier of the second mobile network equivalent to the first mobile network may be 46000 and/or 46002, where 46000 is a 2G network of a china mobile operator network and 46002 is a 3G network of a china mobile operator network.
And S403, the second terminal device acquires the identifier of the first mobile network and sends the identifier of the first mobile network to a second server, the second terminal device is out of the coverage area of the mobile network, and the second server is a server corresponding to the home mobile network of the second terminal device.
In this embodiment, when a second terminal device located outside the coverage of the mobile network needs to connect to the first mobile network, the identifier of the second mobile network is obtained. The second terminal device may obtain the identifier of the first mobile network through any terminal device within the coverage of the first mobile network. The first terminal device in this embodiment is the first terminal device in the first embodiment, and the second terminal device in the first embodiment is the second terminal device in the first embodiment. Step S403 may be executed in parallel with step S401 and step S402, or may be executed in series, which is not limited in this embodiment. The second terminal device is any terminal device out of the coverage area of the mobile network.
S404, the second server judges whether the first mobile network is a home mobile network of the second terminal device according to the identifier of the first mobile network, if so, the identifier of a third mobile network equivalent to the first mobile network is obtained, a third access point for accessing the first mobile network and a fourth access point for accessing the third mobile network are selected for the second terminal device, the identifier of the third mobile network and second access point information comprising the access point information corresponding to the third access point and the access point information corresponding to the fourth access point are sent to the second terminal device, if not, an access point information obtaining request is sent to the server corresponding to the first mobile network, the identifier of the third mobile network sent by the server and the second access point information comprising the access point information corresponding to the third access point and the access point information corresponding to the fourth access point are received, and transmitting the identifier of the third mobile network and the second access point information to the second terminal device.
In this embodiment, after receiving an identifier of a first mobile network sent by a second terminal device, a second server determines whether the first mobile network is a home mobile network of the second terminal device according to the identifier of the first mobile network, if so, obtains an identifier of a third mobile network equivalent to the first mobile network, selects a third access point for accessing the first mobile network and a fourth access point for accessing the third mobile network for the first terminal device, and sends the identifier of the third mobile network and second access point information including access point information corresponding to the third access point and access point information corresponding to the fourth access point to the second terminal device; if not, sending an access point information acquisition request to a server corresponding to the first mobile network to trigger the server to acquire an identifier of a third mobile network equivalent to the first mobile network, selecting a third access point for accessing the first mobile network and a fourth access point for accessing the third mobile network for the second terminal device, sending the identifier of the third mobile network and second access point information comprising the access point information corresponding to the third access point and the access point information corresponding to the fourth access point to the second server, and sending the identifier of the third mobile network and the second access point information to the second terminal device after the second server receives the identifier of the third mobile network sent by the server and the second access point information comprising the access point information corresponding to the third access point and the access point information corresponding to the fourth access point. The identifier of the third mobile network is all the mobile networks in the mobile networks equivalent to the first mobile network, which can be acquired by the second server according to the identifier of the first mobile network. When the second terminal equipment is within the coverage range of the first mobile network, the second terminal equipment can directly access the first mobile network through the third access point; when the second terminal device is within the coverage area of the third mobile network, the second terminal device can directly access the third mobile network through the fourth access point.
S405, the first terminal equipment sends the identification of the first mobile network and the identification of the second mobile network to the second terminal equipment in a broadcasting mode.
In this embodiment, after the first terminal device receives the first access point information and the identifier of the second mobile network sent by the first server, because the first terminal device may access the first mobile network and may also access the second mobile network, and the first terminal device does not know which mobile network the second terminal device needs, the first terminal device may broadcast the identifier of the first mobile network and the identifier of the second mobile network.
S406, the second terminal device determines an identifier of a mobile network from the identifier of the first mobile network and the identifier of the target mobile network, and sends an access point information obtaining request carrying the determined identifier of the mobile network to the first terminal device, where the identifier of the target mobile network is an identifier of a mobile network belonging to both the identifier of the second mobile network and the identifier of the third mobile network.
In this embodiment, after receiving the second access point information and the identifier of the third mobile network sent by the second server, the second terminal device receives the identifier of the first mobile network and the identifier of the second mobile network broadcast by the first terminal device, determines an identifier of one mobile network from the identifier of the first mobile network and the identifier of the target mobile network as needed, and then sends an access point information acquisition request carrying the determined identifier of the mobile network to the first terminal device. Wherein the identity of the target mobile network is an identity of a mobile network belonging to both the identity of the second mobile network and the identity of the third mobile network.
S407, the first terminal device sends the access point information corresponding to the identifier of the mobile network determined in the first access point information to the second terminal device.
In this embodiment, after receiving an access point information acquisition request carrying a determined identifier of a mobile network, which is sent by a second terminal device, a first terminal device selects access point information corresponding to the determined identifier of the mobile network from first access point information, and sends the access point information corresponding to the determined identifier of the mobile network in the selected first access point information to the second terminal device.
S408, the second terminal device determines access point information from the access point information which belongs to the access point information corresponding to the determined mobile network identifier and the access point information of the second access point information at the same time, and sends a network connection request carrying the determined access point information to the first terminal device.
In this embodiment, after receiving the access point information corresponding to the identifier of the determined mobile network sent by the first terminal device, the second terminal device determines, as needed, one access point information from the access point information belonging to both the access point information corresponding to the identifier of the determined mobile network and the access point information of the second access point information, and sends a network connection request carrying the access point information to the first terminal device.
And S409, the first terminal equipment accesses the determined mobile network through the access point corresponding to the determined access point information.
In this embodiment, after receiving a network connection request carrying determined access point information sent by a second terminal device, a first terminal device accesses a determined mobile network through an access point corresponding to the determined access point information, so that the second terminal device accesses the determined mobile network through the first terminal device.
In the network connection method described in fig. 4, since the first terminal device has access point information corresponding to an access point for accessing the first mobile network, the second terminal device has access point information corresponding to an access point for accessing the first mobile network, and the access point information corresponding to the first terminal device and the access point information corresponding to the second terminal device have the same access point information, and in addition, the first terminal device is currently located within the coverage of the first mobile network, the second terminal device can access the first mobile network through the first terminal device. Therefore, when the terminal device is out of the coverage range of the mobile network, the terminal device can access the mobile network.
Referring to fig. 5, fig. 5 is a structural diagram of a terminal device according to an embodiment of the present invention. The terminal device is a mobile phone and the like which can use an operator network. As shown in fig. 5, the terminal device 500 may include:
a sending unit 501, configured to send an identifier of a first mobile network to a server, where the terminal device 500 is in a coverage area of the first mobile network, and the server is a server corresponding to a home mobile network of the terminal device 500;
a receiving unit 502, configured to receive first access point information sent by a server, where the first access point information includes access point information obtained by the server according to an identifier of a first mobile network;
the sending unit 501 is further configured to send second access point information to the target terminal device, where the target terminal device is outside the coverage of the mobile network, and the second access point information is part or all of the access point information in the first access point information received by the receiving unit 502;
the receiving unit 502 is further configured to receive a network connection request carrying third access point information sent by the target terminal device, where the third access point information is one of the second access point information and the access point information that the target terminal device can use;
an accessing unit 503, configured to access the first mobile network through an access point corresponding to the third access point information carried in the network connection request received by the receiving unit 502.
As a possible implementation, the second access point information is all the access point information in the first access point information;
the manner of sending, by the sending unit 501, the second access point information to the target terminal device is specifically:
and transmitting the second access point information to the target terminal equipment in a broadcasting mode.
As a possible implementation manner, the receiving unit 502 is further configured to receive, while receiving first access point information sent by the server, an identifier of a second mobile network that is equivalent to the first mobile network and sent by the server, where the first access point information further includes access point information obtained by the server according to the identifier of the second mobile network;
a sending unit 501, configured to send, in a broadcast manner, an identifier of the first mobile network and an identifier of the second mobile network to the target terminal device;
the receiving unit 502 is further configured to receive an access point information obtaining request, which is sent by a target terminal device and carries an identifier of a third mobile network, where the identifier of the third mobile network is an identifier of a mobile network determined by the target terminal device from an identifier of the first mobile network and an identifier of the second mobile network;
the second access point information is the access point information corresponding to the identifier of the third mobile network in the first access point information;
the accessing unit 503 is specifically configured to access the third mobile network through the access point corresponding to the third access point information.
As a possible implementation, the access point information includes an access point name or an access point name index.
In the terminal device described in fig. 5, since the terminal device has access point information corresponding to an access point for accessing the first mobile network, the target terminal device has access point information corresponding to an access point for accessing the first mobile network, and the access point information corresponding to the terminal device and the access point information corresponding to the target terminal device have the same access point information, and in addition, the terminal device is within the coverage of the first mobile network, the target terminal device can access the first mobile network through the terminal device. Therefore, when the terminal device is out of the coverage range of the mobile network, the terminal device can access the mobile network.
Referring to fig. 6, fig. 6 is a structural diagram of another terminal device according to the disclosure of the embodiment of the present invention. The terminal device is a mobile phone and the like which can use an operator network. As shown in fig. 6, the terminal device 600 may include: at least one processor 601, e.g., a CPU, a memory 602, input devices 603, output devices 604, and at least one communication bus 605. Wherein a communication bus 605 is used to enable the connection communication between these components. The memory 602 may be a high-speed RAM memory or a non-volatile memory, such as at least one disk memory. The memory 602 may optionally include at least one memory device located remotely from the processor 601. Wherein:
an output device 604, configured to send an identifier of the first mobile network to a server, where the terminal device 600 is in a coverage area of the first mobile network, and the server is a server corresponding to a home mobile network of the terminal device 600;
an input device 603, configured to receive first access point information sent by the server, where the first access point information includes access point information obtained by the server according to an identifier of the first mobile network;
the output device 604 is further configured to send second access point information to the target terminal device, where the target terminal device is outside the coverage of the mobile network, and the second access point information is part or all of the first access point information;
the input device 603 is further configured to receive a network connection request carrying third access point information sent by the target terminal device, and send the network connection request to the processor 601, where the third access point information is one of the second access point information and the access point information that the target terminal device can use;
the memory 602 stores a set of program codes, and the processor 601 is configured to call the program codes stored in the memory 602 to perform the following operations:
and accessing the first mobile network through the access point corresponding to the third access point information.
As a possible implementation, the second access point information is all the access point information in the first access point information;
the way for the output device 604 to send the second access point information to the target terminal device is specifically:
and transmitting the second access point information to the target terminal equipment in a broadcasting mode.
As a possible implementation manner, the input device 603 is further configured to receive, while receiving the first access point information sent by the server, an identifier of a second mobile network equivalent to the first mobile network, where the first access point information further includes access point information obtained by the server according to the identifier of the second mobile network;
after the input device 603 receives the first access point information sent by the server and before the output device 604 sends the second access point information to the target terminal device, the output device 604 is further configured to send the identifier of the first mobile network and the identifier of the second mobile network to the target terminal device in a broadcast manner;
the input device 603 is further configured to receive an access point information acquisition request that is sent by the target terminal device and carries an identifier of a third mobile network, where the identifier of the third mobile network is an identifier of a mobile network that is determined by the target terminal device from the identifier of the first mobile network and the identifier of the second mobile network;
the second access point information is the access point information corresponding to the identifier of the third mobile network in the first access point information;
the way for the processor 601 to access the first mobile network through the access point corresponding to the third access point information is specifically as follows:
and accessing the third mobile network through the access point corresponding to the third access point information.
As a possible implementation, the access point information includes an access point name or an access point name index.
In the terminal device described in fig. 6, since the terminal device has access point information corresponding to an access point for accessing the first mobile network, the target terminal device has access point information corresponding to an access point for accessing the first mobile network, and the access point information corresponding to the terminal device and the access point information corresponding to the target terminal device have the same access point information, and in addition, the terminal device is within the coverage of the first mobile network, the target terminal device can access the first mobile network through the terminal device. Therefore, when the terminal device is out of the coverage range of the mobile network, the terminal device can access the mobile network.
Referring to fig. 7, fig. 7 is a structural diagram of another terminal device according to an embodiment of the disclosure. As shown in fig. 7, the terminal device 700 may include:
an obtaining unit 701, configured to obtain an identifier of a first mobile network, where the terminal device 700 is located outside a coverage area of the mobile network;
a sending unit 702, configured to send the identifier of the first mobile network obtained by the obtaining unit 701 to a server, where the server is a server corresponding to a home mobile network of the terminal device 700;
a receiving unit 703, configured to receive first access point information sent by a server, where the first access point information includes access point information obtained by the server according to an identifier of a first mobile network;
the receiving unit 703 is further configured to receive second access point information sent by a target terminal device, where the target terminal device is located within a coverage area of the first mobile network;
a determining unit 704 configured to determine one access point information from access point information belonging to both the first access point information received by the receiving unit 703 and the second access point information received by the receiving unit 703;
the sending unit 702 is further configured to send a network connection request carrying the access point information determined by the determining unit 704 to the target terminal device, so as to trigger the target terminal device to access the first mobile network through the access point corresponding to the determined access point information.
As a possible implementation manner, the manner of receiving, by the receiving unit 703, the second access point information sent by the target terminal device is specifically:
and receiving second access point information sent by the target terminal equipment in a broadcasting mode.
As a possible implementation manner, the receiving unit 703 is further configured to receive, while receiving first access point information sent by the server, an identifier of a second mobile network that is equivalent to the first mobile network and sent by the server, where the first access point information further includes access point information obtained by the server according to the identifier of the second mobile network;
a receiving unit 703, configured to receive an identifier of the first mobile network and an identifier of a third mobile network equivalent to the first mobile network, where the identifiers are sent by the target terminal device in a broadcast manner;
a determining unit 704, configured to determine an identifier of a mobile network from the identifier of the first mobile network and the identifier of the target mobile network, where the identifier of the target mobile network is an identifier of a mobile network belonging to both the identifier of the second mobile network and the identifier of the third mobile network;
a sending unit 702, configured to send an access point information obtaining request carrying the determined identifier of the mobile network to the target terminal device;
the manner of receiving, by the receiving unit 703, the second access point information sent by the target terminal device is specifically:
receiving access point information corresponding to the determined mobile network identifier sent by the target terminal equipment;
the determining unit 704 determines one access point information from the access point information belonging to both the first access point information and the second access point information, specifically:
determining access point information from access point information corresponding to the first access point information and the determined mobile network identifier at the same time;
the method for sending the network connection request carrying the determined access point information to the target terminal device by the sending unit 702 to trigger the target terminal device to access the first mobile network through the access point corresponding to the determined access point information specifically includes:
and sending a network connection request carrying the determined access point information to the target terminal equipment to trigger the target terminal equipment to access the determined mobile network through the access point corresponding to the determined access point information.
As a possible implementation, the access point information includes an access point name or an access point name index.
In the terminal device described in fig. 7, since the terminal device has first access point information corresponding to an access point for accessing the first mobile network, the target terminal device has second access point information corresponding to an access point for accessing the first mobile network, and the first access point information and the second access point information have the same access point information, and in addition, the target first terminal device is within the coverage of the first mobile network, the terminal device can access the first mobile network through the target terminal device. Therefore, when the terminal device is out of the coverage range of the mobile network, the terminal device can access the mobile network.
Referring to fig. 8, fig. 8 is a structural diagram of another terminal device according to the disclosure of the embodiment of the present invention. The terminal device is a mobile phone and the like which can use an operator network. As shown in fig. 8, the terminal apparatus 800 may include: at least one processor 801, such as a CPU, memory 802, input devices 803, output devices 804, and at least one communication bus 805. Wherein a communication bus 805 is used to enable the connection communication between these components. The memory 802 may be a high-speed RAM memory or a non-volatile memory, such as at least one disk memory. The memory 802 may optionally include at least one memory device located remotely from the processor 801 as previously described. Wherein:
the memory 802 stores a set of program codes, and the processor 801 is configured to call the program codes stored in the memory 802 to perform the following operations:
acquiring an identifier of a first mobile network, wherein the terminal device 800 is out of the coverage of the mobile network;
an output device 804, configured to send an identifier of the first mobile network to a server, where the server is a server corresponding to a home mobile network of the terminal apparatus 800;
an input device 803, configured to receive first access point information sent by a server, where the first access point information includes access point information obtained by the server according to an identifier of a first mobile network;
the input device 803 is further configured to receive second access point information sent by a target terminal device, where the target terminal device is located within a coverage area of the first mobile network;
the processor 801 is also configured to invoke program code stored in the memory 802 to perform the following operations:
determining access point information from access point information belonging to both the first access point information and the second access point information;
the output device 804 is further configured to send a network connection request carrying the determined access point information to the target terminal device, so as to trigger the target terminal device to access the first mobile network through the access point corresponding to the determined access point information.
As a possible implementation manner, the manner of receiving, by the input device 803, the second access point information sent by the target terminal device is specifically:
and receiving second access point information sent by the target terminal equipment in a broadcasting mode.
As a possible implementation manner, the input device 803 is further configured to receive, while receiving the first access point information sent by the server, an identifier of a second mobile network equivalent to the first mobile network, where the first access point information further includes access point information obtained by the server according to the identifier of the second mobile network;
after the input device 803 receives the first access point information sent by the server and before receiving the second access point information sent by the target terminal device, the input device 803 is further configured to receive an identifier of a first mobile network and an identifier of a third mobile network equivalent to the first mobile network, which are sent by the target terminal device in a broadcast manner;
the processor 801 is also configured to invoke program code stored in the memory 802 to perform the following operations:
determining an identifier of a mobile network from the identifier of the first mobile network and the identifier of the target mobile network, wherein the identifier of the target mobile network is the identifier of the mobile network which belongs to the identifier of the second mobile network and the identifier of the third mobile network at the same time;
the output device 804 is further configured to send an access point information acquisition request carrying the determined identifier of the mobile network to the target terminal device;
the way for the input device 803 to receive the second access point information sent by the target terminal device is specifically:
receiving access point information corresponding to the determined mobile network identifier sent by the target terminal equipment;
the way for the processor 801 to determine one access point information from the access point information belonging to both the first access point information and the second access point information is specifically:
determining access point information from access point information corresponding to the first access point information and the determined mobile network identifier at the same time;
the way for the output device 804 to send the network connection request carrying the determined access point information to the target terminal device to trigger the target terminal device to access the first mobile network through the access point corresponding to the determined access point information is specifically as follows:
and sending a network connection request carrying the determined access point information to the target terminal equipment to trigger the target terminal equipment to access the determined mobile network through the access point corresponding to the determined access point information.
As a possible implementation, the access point information includes an access point name or an access point name index.
In the terminal device described in fig. 8, since the terminal device has first access point information corresponding to an access point for accessing the first mobile network, the target terminal device has second access point information corresponding to an access point for accessing the first mobile network, and the first access point information and the second access point information have the same access point information, and in addition, the target first terminal device is within the coverage of the first mobile network, the terminal device can access the first mobile network through the target terminal device. Therefore, when the terminal device is out of the coverage range of the mobile network, the terminal device can access the mobile network.
In one embodiment, the embodiment of the present invention further discloses a computer storage medium, in which a computer program is stored, and when the computer program in the computer storage medium is read into a computer, the computer can complete all the steps of the data transmission method disclosed in the embodiment of the present invention.
It should be noted that, for simplicity of description, the above-mentioned embodiments of the method are described as a series of acts or combinations, but those skilled in the art will recognize that the present invention is not limited by the order of acts, as some steps may occur in other orders or concurrently in accordance with the invention. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required by the invention.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by associated hardware instructed by a program, which may be stored in a computer-readable storage medium, and the storage medium may include: flash disks, Read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
The network connection method and the related device provided by the embodiment of the present invention are described in detail above, and a specific example is applied in the description to explain the principle and the embodiment of the present invention, and the description of the above embodiment is only used to help understanding the method and the core idea of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.
Claims (24)
1. A network connection method, comprising:
a first terminal device sends an identifier of a first mobile network to a server, wherein the first terminal device is in the coverage range of the first mobile network, and the server is a server corresponding to a home mobile network of the first terminal device;
the first terminal equipment receives first access point information sent by the server, wherein the first access point information comprises access point information obtained by the server according to the identifier of the first mobile network;
the first terminal equipment sends second access point information to second terminal equipment, wherein the second terminal equipment is out of the coverage area of a mobile network, and the second access point information is part or all of the first access point information;
the first terminal equipment receives a network connection request which is sent by the second terminal equipment and carries third access point information, wherein the third access point information belongs to one of the second access point information and the access point information which can be used by the second terminal equipment;
and the first terminal equipment accesses the first mobile network through the access point corresponding to the third access point information.
2. The method of claim 1, wherein the second access point information is all of the first access point information;
the sending, by the first terminal device, the second access point information to the second terminal device includes:
and the first terminal equipment sends the second access point information to second terminal equipment in a broadcasting mode.
3. The method according to claim 1, wherein the first terminal device, while receiving the first access point information sent by the server, also receives an identifier of a second mobile network equivalent to the first mobile network, sent by the server, wherein the first access point information further includes access point information obtained by the server according to the identifier of the second mobile network;
after the first terminal device receives the first access point information sent by the server and before sending the second access point information to the second terminal device, the method further includes:
the first terminal equipment sends the identification of the first mobile network and the identification of the second mobile network to second terminal equipment in a broadcasting mode;
the first terminal device receives an access point information acquisition request which is sent by the second terminal device and carries an identifier of a third mobile network, wherein the identifier of the third mobile network is the identifier of one mobile network determined by the second terminal device from the identifier of the first mobile network and the identifier of the second mobile network;
the second access point information is access point information corresponding to the identifier of the third mobile network in the first access point information;
the accessing, by the first terminal device, to the first mobile network through the access point corresponding to the third access point information includes:
and the first terminal equipment accesses the third mobile network through the access point corresponding to the third access point information.
4. A method according to any of claims 1-3, wherein the access point information comprises an access point name or an access point name index.
5. A network connection method, comprising:
a first terminal device acquires an identifier of a first mobile network, wherein the first terminal device is out of a coverage range of the mobile network;
the first terminal equipment sends the identification of the first mobile network to a server, wherein the server is a server corresponding to a home mobile network of the first terminal equipment;
the first terminal equipment receives first access point information sent by the server, wherein the first access point information comprises access point information obtained by the server according to the identifier of the first mobile network;
the first terminal equipment receives second access point information sent by second terminal equipment, and the second terminal equipment is located in the coverage range of the first mobile network;
the first terminal device determines access point information from access point information belonging to both the first access point information and the second access point information;
and the first terminal equipment sends a network connection request carrying the determined access point information to the second terminal equipment so as to trigger the second terminal equipment to access the first mobile network through the access point corresponding to the determined access point information.
6. The method of claim 5, wherein the receiving, by the first terminal device, the second access point information sent by the second terminal device comprises:
and the first terminal equipment receives second access point information sent by second terminal equipment in a broadcasting mode.
7. The method according to claim 6, wherein the first terminal device, while receiving the first access point information sent by the server, also receives an identifier of a second mobile network equivalent to the first mobile network, sent by the server, wherein the first access point information further includes access point information obtained by the server according to the identifier of the second mobile network;
after the first terminal device receives the first access point information sent by the server and before receiving the second access point information sent by the second terminal device, the method further includes:
the first terminal equipment receives an identifier of the first mobile network and an identifier of a third mobile network equivalent to the first mobile network, which are sent by second terminal equipment in a broadcast mode;
the first terminal equipment determines an identifier of a mobile network from the identifier of the first mobile network and the identifier of a target mobile network, wherein the identifier of the target mobile network is the identifier of the mobile network which belongs to the identifier of the second mobile network and the identifier of the third mobile network at the same time;
the first terminal equipment sends an access point information acquisition request carrying the determined identifier of the mobile network to the second terminal equipment;
the receiving, by the first terminal device, the second access point information sent by the second terminal device includes:
the first terminal equipment receives access point information corresponding to the determined mobile network identifier sent by the second terminal equipment;
the determining, by the first terminal device, one access point information from access point information belonging to both the first access point information and the second access point information includes:
the first terminal equipment determines access point information from the access point information which simultaneously belongs to the first access point information and corresponds to the determined mobile network identifier;
the first terminal device sending a network connection request carrying the determined access point information to the second terminal device to trigger the second terminal device to access the first mobile network through the access point corresponding to the determined access point information includes:
and the first terminal equipment sends a network connection request carrying the determined access point information to the second terminal equipment so as to trigger the second terminal equipment to access the determined mobile network through the access point corresponding to the determined access point information.
8. The method according to any of claims 6-7, wherein the access point information comprises an access point name or an access point name index.
9. A terminal device, comprising:
a sending unit, configured to send an identifier of a first mobile network to a server, where the terminal device is in a coverage area of the first mobile network, and the server is a server corresponding to a home mobile network of the terminal device;
a receiving unit, configured to receive first access point information sent by the server, where the first access point information includes access point information obtained by the server according to an identifier of the first mobile network;
the sending unit is further configured to send second access point information to a target terminal device, where the target terminal device is outside a coverage area of a mobile network, and the second access point information is part or all of the first access point information;
the receiving unit is further configured to receive a network connection request carrying third access point information sent by the target terminal device, where the third access point information is one of the second access point information and access point information that the target terminal device can use;
and the access unit is used for accessing the first mobile network through the access point corresponding to the third access point information.
10. The terminal device according to claim 9, wherein the second access point information is all access point information in the first access point information;
the mode of sending the second access point information to the target terminal device by the sending unit is specifically as follows:
and sending the second access point information to the target terminal equipment in a broadcasting mode.
11. The terminal device according to claim 9, wherein the receiving unit is further configured to receive, while receiving first access point information sent by the server, an identifier of a second mobile network equivalent to the first mobile network, where the first access point information further includes access point information obtained by the server according to the identifier of the second mobile network;
the sending unit is further configured to send the identifier of the first mobile network and the identifier of the second mobile network to a target terminal device in a broadcast manner;
the receiving unit is further configured to receive an access point information acquisition request which is sent by the target terminal device and carries an identifier of a third mobile network, where the identifier of the third mobile network is an identifier of a mobile network determined by the target terminal device from the identifier of the first mobile network and the identifier of the second mobile network;
the second access point information is access point information corresponding to the identifier of the third mobile network in the first access point information;
the access unit is specifically configured to access the third mobile network through an access point corresponding to the third access point information.
12. A terminal device according to any of claims 9-11, characterised in that the access point information comprises an access point name or an access point name index.
13. A terminal device comprising a processor, a memory, an input means, and an output means, wherein:
the output device is used for sending an identifier of a first mobile network to a server, wherein the terminal equipment is in the coverage range of the first mobile network, and the server is a server corresponding to a home mobile network of the terminal equipment;
the input device is configured to receive first access point information sent by the server, where the first access point information includes access point information obtained by the server according to an identifier of the first mobile network;
the output device is further configured to send second access point information to a target terminal device, where the target terminal device is outside a coverage area of a mobile network, and the second access point information is part or all of the first access point information;
the input device is further configured to receive a network connection request that is sent by the target terminal device and carries third access point information, where the third access point information is one of the second access point information and access point information that the target terminal device can use;
the memory has stored therein a set of program code, and the processor is configured to invoke the program code stored in the memory to perform the following operations:
and accessing the first mobile network through the access point corresponding to the third access point information.
14. The terminal device according to claim 13, wherein the second access point information is all access point information in the first access point information;
the way for the output device to send the second access point information to the target terminal device is specifically as follows:
and sending the second access point information to the target terminal equipment in a broadcasting mode.
15. The terminal device according to claim 13, wherein the input device is further configured to receive, at the same time as receiving the first access point information sent by the server, an identifier of a second mobile network equivalent to the first mobile network, where the first access point information further includes access point information obtained by the server according to the identifier of the second mobile network;
after the input device receives the first access point information sent by the server and before the output device sends the second access point information to the target terminal equipment, the output device is further configured to send the identifier of the first mobile network and the identifier of the second mobile network to the target terminal equipment in a broadcast manner;
the input device is further configured to receive an access point information acquisition request that is sent by the target terminal device and carries an identifier of a third mobile network, where the identifier of the third mobile network is an identifier of a mobile network that is determined by the target terminal device from the identifier of the first mobile network and the identifier of the second mobile network;
the second access point information is access point information corresponding to the identifier of the third mobile network in the first access point information;
the mode that the processor accesses the first mobile network through the access point corresponding to the third access point information is specifically as follows:
and accessing the third mobile network through the access point corresponding to the third access point information.
16. A terminal device according to any of claims 13-15, characterised in that the access point information comprises an access point name or an access point name index.
17. A terminal device, comprising:
an obtaining unit, configured to obtain an identifier of a first mobile network, where the terminal device is located outside a coverage area of the mobile network;
a sending unit, configured to send an identifier of the first mobile network to a server, where the server is a server corresponding to a home mobile network of the terminal device;
a receiving unit, configured to receive first access point information sent by the server, where the first access point information includes access point information obtained by the server according to an identifier of the first mobile network;
the receiving unit is further configured to receive second access point information sent by a target terminal device, where the target terminal device is located within a coverage area of the first mobile network;
a determining unit configured to determine one access point information from access point information belonging to both the first access point information and the second access point information;
the sending unit is further configured to send a network connection request carrying the determined access point information to the target terminal device, so as to trigger the target terminal device to access the first mobile network through the access point corresponding to the determined access point information.
18. The terminal device of claim 17, wherein the manner for the receiving unit to receive the second access point information sent by the target terminal device is specifically as follows:
and receiving second access point information sent by the target terminal equipment in a broadcasting mode.
19. The terminal device according to claim 17, wherein the receiving unit is further configured to receive, while receiving first access point information sent by the server, an identifier of a second mobile network equivalent to the first mobile network, where the first access point information further includes access point information obtained by the server according to the identifier of the second mobile network;
the receiving unit is further configured to receive an identifier of the first mobile network and an identifier of a third mobile network equivalent to the first mobile network, where the identifiers are sent by a target terminal device in a broadcast manner;
the determining unit is further configured to determine an identifier of a mobile network from the identifier of the first mobile network and the identifier of a target mobile network, where the identifier of the target mobile network is an identifier of a mobile network that belongs to both the identifier of the second mobile network and the identifier of the third mobile network;
the sending unit is further configured to send an access point information acquisition request carrying the determined identifier of the mobile network to the target terminal device;
the manner of receiving, by the receiving unit, the second access point information sent by the target terminal device is specifically:
receiving access point information corresponding to the determined mobile network identifier sent by the target terminal device;
the determining unit determines one access point information from the access point information belonging to both the first access point information and the second access point information, specifically:
determining access point information from access point information corresponding to the first access point information and the determined mobile network identifier at the same time;
the method for the sending unit to send the network connection request carrying the determined access point information to the target terminal device to trigger the target terminal device to access the first mobile network through the access point corresponding to the determined access point information specifically includes:
and sending a network connection request carrying the determined access point information to the target terminal equipment to trigger the target terminal equipment to access the determined mobile network through the access point corresponding to the determined access point information.
20. A terminal device according to any of claims 17-19, characterised in that the access point information comprises an access point name or an access point name index.
21. A terminal device comprising a processor, a memory, an input means, and an output means, wherein:
the memory has stored therein a set of program code, and the processor is configured to invoke the program code stored in the memory to perform the following operations:
acquiring an identifier of a first mobile network, wherein the terminal equipment is out of the coverage range of the mobile network;
the output device is used for sending the identifier of the first mobile network to a server, and the server is a server corresponding to a home mobile network of the terminal equipment;
the input device is configured to receive first access point information sent by the server, where the first access point information includes access point information obtained by the server according to an identifier of the first mobile network;
the input device is further configured to receive second access point information sent by a target terminal device, where the target terminal device is located within a coverage area of the first mobile network;
the processor is further configured to invoke program code stored in the memory to:
determining one access point information from access point information belonging to both the first access point information and the second access point information;
the output device is further configured to send a network connection request carrying the determined access point information to the target terminal device, so as to trigger the target terminal device to access the first mobile network through the access point corresponding to the determined access point information.
22. The terminal device of claim 21, wherein the manner for the input device to receive the second access point information sent by the target terminal device is specifically as follows:
and receiving second access point information sent by the target terminal equipment in a broadcasting mode.
23. The terminal device of claim 21, wherein the input device is further configured to receive, at the same time as receiving first access point information sent by the server, an identifier of a second mobile network equivalent to the first mobile network, where the first access point information further includes access point information obtained by the server according to the identifier of the second mobile network;
after the input device receives the first access point information sent by the server and before the input device receives the second access point information sent by the target terminal equipment, the input device is further used for receiving the identifier of the first mobile network and the identifier of a third mobile network equivalent to the first mobile network, which are sent by the target terminal equipment in a broadcasting mode;
the processor is further configured to invoke program code stored in the memory to:
determining an identity of a mobile network from the identity of the first mobile network and an identity of a target mobile network, the identity of the target mobile network being an identity of a mobile network belonging to both the identity of the second mobile network and the identity of the third mobile network;
the output device is further configured to send an access point information acquisition request carrying the determined identifier of the mobile network to the target terminal device;
the mode of receiving the second access point information sent by the target terminal device by the input device is specifically as follows:
receiving access point information corresponding to the determined mobile network identifier sent by the target terminal device;
the processor determines one access point information from the access point information belonging to both the first access point information and the second access point information in a specific manner:
determining access point information from access point information corresponding to the first access point information and the determined mobile network identifier at the same time;
the method for the output device to send the network connection request carrying the determined access point information to the target terminal device to trigger the target terminal device to access the first mobile network through the access point corresponding to the determined access point information specifically includes:
and sending a network connection request carrying the determined access point information to the target terminal equipment to trigger the target terminal equipment to access the determined mobile network through the access point corresponding to the determined access point information.
24. A terminal device according to any of claims 21-23, wherein the access point information comprises an access point name or an access point name index.
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/CN2015/086032 WO2017020246A1 (en) | 2015-08-04 | 2015-08-04 | Network connection method and related equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107852579A CN107852579A (en) | 2018-03-27 |
CN107852579B true CN107852579B (en) | 2020-02-14 |
Family
ID=57942264
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201580081997.0A Active CN107852579B (en) | 2015-08-04 | 2015-08-04 | Network connection method and related equipment |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN107852579B (en) |
WO (1) | WO2017020246A1 (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103415084A (en) * | 2013-07-18 | 2013-11-27 | 中国联合网络通信集团有限公司 | Mobile terminal internet surfing method and mobile terminal |
CN103442409A (en) * | 2013-08-20 | 2013-12-11 | 浙江大学 | User access method under macro cell and small cell heterogeneous network |
CN103731900A (en) * | 2013-12-10 | 2014-04-16 | 浙江大学 | User access mode selecting method under cell heterogeneous network |
WO2014201702A1 (en) * | 2013-06-21 | 2014-12-24 | 华为技术有限公司 | Method, user equipment and enb for indicating auxiliary access capability |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20140073289A1 (en) * | 2012-09-11 | 2014-03-13 | Wavemax Corp. | 3g/4g mobile data offload via roaming in a network of shared protected/locked wi-fi access points |
US20140334387A1 (en) * | 2013-05-08 | 2014-11-13 | Nokia Corporation | Method, apparatus, and computer program product for protecting shared transmission opportunity |
CN103327644B (en) * | 2013-05-24 | 2016-03-30 | 华为技术有限公司 | A kind of method and apparatus of wireless connections |
EP2890214A1 (en) * | 2013-12-26 | 2015-07-01 | Telefonica Digital España, S.L.U. | A method for providing wireless data connectivity between user computing devices in a given area and computing device |
-
2015
- 2015-08-04 CN CN201580081997.0A patent/CN107852579B/en active Active
- 2015-08-04 WO PCT/CN2015/086032 patent/WO2017020246A1/en active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2014201702A1 (en) * | 2013-06-21 | 2014-12-24 | 华为技术有限公司 | Method, user equipment and enb for indicating auxiliary access capability |
CN103415084A (en) * | 2013-07-18 | 2013-11-27 | 中国联合网络通信集团有限公司 | Mobile terminal internet surfing method and mobile terminal |
CN103442409A (en) * | 2013-08-20 | 2013-12-11 | 浙江大学 | User access method under macro cell and small cell heterogeneous network |
CN103731900A (en) * | 2013-12-10 | 2014-04-16 | 浙江大学 | User access mode selecting method under cell heterogeneous network |
Also Published As
Publication number | Publication date |
---|---|
WO2017020246A1 (en) | 2017-02-09 |
CN107852579A (en) | 2018-03-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110267327B (en) | Service transmission method and device | |
CN110691384B (en) | Network slice using method and device | |
EP3557913B1 (en) | Network slice selection policy updating method and apparatus | |
CN110383896B (en) | Network access method, terminal, access network and core network | |
EP3197213B1 (en) | Network access method and mobile communication terminal | |
CN102761856B (en) | Terminal room shares the methods, devices and systems of software | |
CN107094305A (en) | A kind of cut-in method of wireless network, device and user terminal | |
CN102026224A (en) | Method and system for processing network switch and gateway equipment thereof | |
WO2023015816A1 (en) | Esim device configuration system, method and apparatus, and storage medium | |
CN105472585A (en) | Network setting method and mobile terminal | |
CN108243631B (en) | Network access method and equipment | |
CN114205378A (en) | Network distribution method and device of Internet of things equipment, storage medium and electronic device | |
CN114222284A (en) | Terminal equipment identification method and device and readable storage medium | |
CN105530714A (en) | MIFI communication service system and MIFI and communication method thereof | |
CN104113837A (en) | Method and device for access authentication of wireless local area network | |
CN107852579B (en) | Network connection method and related equipment | |
CN111510995B (en) | Wireless communication method and apparatus | |
CN116723116A (en) | Network quality parameter acquisition method and related device | |
CN113194521B (en) | Network searching method and device for 5G communication module, computer equipment and storage medium | |
CN111885583B (en) | Network sharing method and device | |
US20120163237A1 (en) | Apparatus and method for configuring personal space with virtual switch | |
CN102891888B (en) | Data access method and related equipment and system | |
CN105682181A (en) | Local area network access method, gateway equipment and user equipment | |
CN107211479B (en) | Method and device for selecting access network | |
GB2594930A (en) | Authentication of devices to third party services |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |