CN105704712B - Network resource sharing method, mobile terminal and server - Google Patents

Network resource sharing method, mobile terminal and server Download PDF

Info

Publication number
CN105704712B
CN105704712B CN201610031455.9A CN201610031455A CN105704712B CN 105704712 B CN105704712 B CN 105704712B CN 201610031455 A CN201610031455 A CN 201610031455A CN 105704712 B CN105704712 B CN 105704712B
Authority
CN
China
Prior art keywords
mobile terminal
server
information
access point
access
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610031455.9A
Other languages
Chinese (zh)
Other versions
CN105704712A (en
Inventor
李文要
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201610031455.9A priority Critical patent/CN105704712B/en
Publication of CN105704712A publication Critical patent/CN105704712A/en
Application granted granted Critical
Publication of CN105704712B publication Critical patent/CN105704712B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/02Protecting privacy or anonymity, e.g. protecting personally identifiable information [PII]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information

Abstract

The application provides a network resource sharing method, a mobile terminal and a server, and mobile network resource sharing among the mobile terminals can be realized through the server. The network resource sharing method of the embodiment of the invention comprises the following steps: a first mobile terminal receives an access request of a user, wherein the access request carries target access point information; the first mobile terminal sends an access request to a second mobile terminal corresponding to the target access point information through the server; the first mobile terminal receives an access response fed back by the second mobile terminal through the server, wherein the access response comprises an access code and information of available network resources, and the available network resources are mobile network resources shared by the second mobile terminal; and the first mobile terminal accesses the network through the second mobile terminal according to the access code and the available network resources.

Description

Network resource sharing method, mobile terminal and server
Technical Field
The present application relates to the field of communications technologies, and in particular, to a network resource sharing method, a mobile terminal, and a server.
Background
With the arrival of 4G networks, the types of network resources are more and more abundant, the total amount of network resources is also continuously increased, and the consumption speed of mobile network traffic is also faster and faster.
The WiFi network technology may enable users to access the network using more public resources, and various existing WiFi accesses are all for public WiFi access, and a carrier or a merchant generally provides WiFi hotspot services.
Although the existing WiFi hotspot service can provide additional network support for a mobile network, a WiFi hotspot generally needs to be set by an operator or a merchant, and for an area where the operator or the merchant does not set the WiFi hotspot, a user cannot access the network through the WiFi hotspot, thereby affecting the internet surfing experience of the user.
Disclosure of Invention
The application provides a network resource sharing method, a mobile terminal and a server, and mobile network resource sharing among the mobile terminals can be realized through the server.
A first aspect of the present invention provides a method for sharing network resources, including:
a first mobile terminal receives an access request of a user, wherein the access request carries target access point information;
the first mobile terminal sends the access request to a second mobile terminal corresponding to the target access point information through a server, wherein the access request carries the target access point information;
the first mobile terminal receives an access response fed back by the second mobile terminal through the server, wherein the access response comprises an access code and information of available network resources, and the available network resources are mobile network resources shared by the second mobile terminal;
and the first mobile terminal accesses the network through the second mobile terminal according to the access code and the available network resources.
The first mobile terminal and the second mobile terminal interact through a server, a target access point shared by the second mobile terminal is registered in the server, the first mobile terminal receives an access request initiated by a user, the access request carries target access point information, the first mobile terminal sends the access request to the second mobile terminal corresponding to the target access point information through the server, the first mobile terminal receives an access response fed back by the second mobile terminal through the server, the access response comprises an access code and information of available network resources, the available network resources are mobile network resources shared by the second mobile terminal, the first mobile terminal accesses a network through the second mobile terminal according to the access code and the available network resources, and when the first mobile terminal is in an area without a public WiFi hotspot, the server requests to access a mobile network shared by the second mobile terminal, after the server obtains the access response of the second mobile terminal, the first mobile terminal can use the mobile network resource shared by the second mobile terminal, and the network experience of the user is improved.
With reference to the first aspect of the present invention, in a first implementation manner of the first aspect of the present invention, before the first mobile terminal accesses the network through the second mobile terminal according to the access code and the available network resource, the method further includes:
the first mobile terminal decrypts the access code according to a preset encryption and decryption rule, wherein the preset encryption and decryption rule is known by the first mobile terminal and the server;
alternatively, the first and second electrodes may be,
the first mobile terminal receives an encrypted message sent by the server, and determines an encryption and decryption protocol according to the encrypted message, wherein the encrypted message comprises the protocol type of the encryption and decryption protocol;
and the first mobile terminal decrypts the access code according to the encryption and decryption protocol.
In order to improve the security of mobile network resources shared by a second mobile terminal, after obtaining an access response of the second mobile terminal, a server encrypts an access code therein, so that only a first mobile terminal can use the mobile network resources shared by the second mobile terminal, the first mobile terminal decrypts the access code after receiving the access response, if a set of known encryption and decryption rules are preset between the first mobile terminal and the server, the first mobile terminal decrypts the access code according to the preset encryption and decryption rules, and the decrypted access code can be accessed to a mobile network shared by the second mobile terminal; or, if the server selects one of the multiple encryption and decryption protocols to encrypt the access code, the encrypted message received by the first mobile terminal and sent by the server contains the protocol type of the encryption and decryption protocols, the access code is decrypted after the encryption and decryption protocols are determined according to the protocol type, the decrypted access code can be accessed to the mobile network shared by the second mobile terminal, and for other mobile terminals, the correct decryption method of the encrypted access code is not known, so that the access code cannot be accessed to the mobile network shared by the second mobile terminal, only the first mobile terminal can be accessed, the problem of network occupation is avoided, and the security of the mobile network resource shared by the second mobile terminal is ensured.
With reference to the first aspect and the first implementation manner of the first aspect of the present invention, in a second implementation manner of the first aspect of the present invention, before the first mobile terminal receives an access request of a user, the method further includes:
the first mobile terminal searches nearby candidate access points to obtain a candidate access point set;
the first mobile terminal sends the candidate access point set to the server;
the first mobile terminal receives a set of available access points fed back by the server, the set of available access points is a subset of the candidate set of access points, and available access point information in the set of available access points is access point information which is registered in the server.
Before the first mobile terminal receives an access request of a user, the first mobile terminal needs to obtain available access point information that can be accessed to a network, and a specific manner may be that the first mobile terminal automatically or the user starts an access point search function, searches for nearby candidate access points to obtain a candidate access point set, and sends the candidate access point set to a server, the first mobile terminal receives an available access point set fed back by the server, the available access point set is a subset of the candidate access point set, and the available access point information in the available access point set is access point information that the second mobile terminal has registered in the server.
With reference to the second implementation manner of the first aspect of the present invention, in a third implementation manner of the first aspect of the present invention, before the first mobile terminal receives an access request of a user, the method further includes:
the first mobile terminal presents the set of available access points to a user;
the first mobile terminal receiving the access request of the user comprises the following steps:
and the first mobile terminal receives an access request from the user, wherein the target access point information carried in the access request belongs to the available access point set.
After the first mobile terminal receives the available access point set fed back by the server, the first mobile terminal displays the available access point set to a user, so that the user can select a target access point needing to be accessed from the available access point set, after the user selects the target access point, the first mobile terminal receives an access request from the user, and target access point information carried in the access request belongs to the available access point set.
With reference to the first aspect, the first implementation manner of the first aspect, the second implementation manner of the first aspect, or the third implementation manner of the first aspect, in the fourth implementation manner of the first aspect, after the first mobile terminal sends the access request to the second mobile terminal corresponding to the target access point information through the server, and before the first mobile terminal receives an access response fed back by the second mobile terminal through the server, the method further includes:
the first mobile terminal receives expense information sent by the second mobile terminal through the server, wherein the expense information is used for indicating the expense to be paid by the first mobile terminal when the first mobile terminal uses the available network resources;
the first mobile terminal pays through a payment platform according to the expense information and receives payment success response;
and the first mobile terminal sends the payment success response to the second mobile terminal through the server.
After the first mobile terminal sends an access request to the server and before the first mobile terminal receives an access response fed back by the second mobile terminal through the server, the first mobile terminal receives cost information sent by the second mobile terminal through the server, the cost information is used for indicating the cost required to be paid by the first mobile terminal for using the available network resources, namely the mobile network resources provided by the second mobile terminal to the first mobile terminal need to be paid, and the cost information is interacted through the server, the first mobile terminal completes payment through the payment platform according to the cost information and receives a payment success response, the first mobile terminal sends the payment success response to the second mobile terminal through the server, so that the second mobile terminal confirms that the payment is successful after receiving the payment success response, and online transaction is realized, in addition, when a user using the first mobile terminal is in a face-to-face condition with a user using the second mobile terminal, it is also possible to conduct an offline transaction, the user manually confirming the success of the payment at the second mobile terminal.
In combination with the fourth embodiment of the first aspect of the present invention, in the fifth embodiment of the first aspect of the present invention,
the information of the available network resources is information of available flow.
The available network resources are available mobile network resources provided by the second mobile terminal to the first mobile terminal, and since in an actual situation, the charging mode of the network resources used by a network operator is generally charging according to the traffic, the information of the available network resources is the information of the available traffic; in addition, the mobile network resources shared by the second mobile terminal may also be charged according to the time duration, for example, if the first mobile terminal pays for 20 yuan, the first mobile terminal is allowed to access the network for 1 hour.
With reference to the fifth implementation manner of the first aspect of the present invention, in a sixth implementation manner of the first aspect of the present invention, after the first mobile terminal accesses a network through the second mobile terminal according to the access code and the available network resources, the method further includes:
the first mobile terminal receives prompt information sent by the second mobile terminal through the server, wherein the prompt information is used for indicating that a difference value between the used flow of the first mobile terminal and the available flow is smaller than a preset value;
the first mobile terminal displays the prompt information to a user;
if the user indicates to continue using, the first mobile terminal sends a flow increasing request to the second mobile terminal through the server;
the first mobile terminal receives additional cost information sent by the second mobile terminal through the server, wherein the additional cost information is used for indicating the cost required to be paid by the first mobile terminal when the first mobile terminal requests the increased flow;
the first mobile terminal pays through a payment platform according to the additional fee information and receives an additional payment success response;
the first mobile terminal sends the additional payment success response to the second mobile terminal through the server;
and the first mobile terminal receives a traffic increase response sent by the second mobile terminal through the server, wherein the traffic increase response contains information of additional traffic.
After a first mobile terminal accesses a network through a second mobile terminal, the second mobile terminal monitors mobile network resources used by the first mobile terminal, when a difference value between a used flow and an available flow is smaller than a preset value, the first mobile terminal receives prompt information sent by the second mobile terminal through a server, the first mobile terminal displays the prompt information to a user through a popup window or a prompt tone, the user can select continuous fee according to requirements, or the user selects continuous use and flow increase, the first mobile terminal sends a flow increase request to the second mobile terminal through the server, the first mobile terminal receives additional fee information sent by the second mobile terminal through the server, the first mobile terminal pays through a payment platform according to the additional fee information and receives an additional fee successful response, and the first mobile terminal sends an additional fee successful response to the second mobile terminal through the server, the first mobile terminal receives the flow increasing response sent by the second mobile terminal through the server, the flow increasing response contains additional flow information, a user using the second mobile terminal can realize flow management and control when sharing the mobile network resources, and flexibility and autonomy of sharing the mobile network resources are improved.
A second aspect of the present invention provides a network resource sharing method, including:
the method comprises the steps that a server receives an access request sent by a first mobile terminal, wherein the access request carries target access point information;
the server determines a second mobile terminal according to the target access point information;
the server sends the access request to the second mobile terminal;
the server receives an access response fed back by the second mobile terminal, wherein the access response comprises an access code and information of available network resources, and the available network resources are mobile network resources shared by the second mobile terminal;
and the server sends the access response to the first mobile terminal, and the access response indicates that the first mobile terminal accesses the network through the second mobile terminal according to the access code and the available network resources.
The first mobile terminal and the second mobile terminal interact through a server, a target access point shared by the second mobile terminal is registered in the server, when the first mobile terminal selects the target access point, the server receives an access request sent by the first mobile terminal, the access request carries target access point information, because the target access point is registered in the server, the second mobile terminal corresponding to the target access point information is also stored in the server, the server determines the second mobile terminal according to the target access point information, sends the access request to the second mobile terminal, receives an access response fed back by the second mobile terminal, the access response comprises an access code and information of available network resources, the available network resources are mobile network resources of the second mobile terminal, and the server sends the access response to the first mobile terminal, the first mobile terminal can access the network through the second mobile terminal according to the access code and the available network resources, so that when the first mobile terminal is located in an area without a public WiFi hotspot, the first mobile terminal can request to access the mobile network shared by the second mobile terminal through the server, and after the server obtains an access response of the second mobile terminal, the first mobile terminal can use the mobile network resources shared by the second mobile terminal, thereby improving the network experience of a user.
With reference to the second aspect of the present invention, in a first implementation manner of the second aspect of the present invention, before the server sends the access response to the first mobile terminal, the method further includes:
the server encrypts the access code according to a preset encryption and decryption rule, wherein the preset encryption and decryption rule is known by the first mobile terminal and the server;
alternatively, the first and second electrodes may be,
the server encrypts the access code according to an encryption and decryption protocol;
and the server sends an encrypted message to the first mobile terminal, wherein the encrypted message contains the protocol type of the encryption and decryption protocol, and the encryption and decryption protocol is known by the server and the first mobile terminal.
In order to improve the security of mobile network resources shared by a second mobile terminal, after obtaining an access response of the second mobile terminal, a server encrypts an access code therein, so that only a first mobile terminal can use the mobile network resources shared by the second mobile terminal, after receiving the access response sent by the second mobile terminal, the server encrypts the access code therein, and if a set of known encryption and decryption rules are preset between the first mobile terminal and the server, the server encrypts the access code according to the preset encryption and decryption rules; or, the server selects one of the multiple encryption and decryption protocols to encrypt the access code, and sends an encrypted message to the first mobile terminal, where the encrypted message includes the protocol type of the encryption and decryption protocols, the first mobile terminal may determine the encryption and decryption protocols according to the protocol type in the encrypted message, and decrypt the access code, and the decrypted access code may be accessed to the mobile network shared by the second mobile terminal.
With reference to the first implementation manner of the second aspect of the present invention, in the second implementation manner of the second aspect of the present invention, before the server receives the access request sent by the first mobile terminal, the method further includes:
the server receives a candidate access point set sent by the first mobile terminal, wherein the candidate access point set is obtained by searching nearby candidate access points for the first mobile terminal;
the server obtains an available access point set according to the registered access point information and the candidate access point set, wherein the available access point information in the available access point set is consistent with the registered access point information;
the server sends the set of available access points to the first mobile terminal.
Before the server receives an access request sent by the first mobile terminal, the first mobile terminal automatically or a user starts an access point searching function to search nearby candidate access points to obtain a candidate access point set, the server receives the candidate access point set sent by the first terminal, the server obtains an available access point set according to registered access point information and the candidate access point set, the available access point information in the available access point set is the registered access point information, and the server sends the available access point set to the first mobile terminal, so that the first mobile terminal can know which candidate access points are the available access points.
With reference to the second aspect of the present invention, in a third implementation of the second aspect of the present invention, before the server receives the candidate access point set sent by the first mobile terminal, the method further includes:
the server receives a network sharing instruction sent by the second mobile terminal, wherein the network sharing instruction comprises access point information;
and the server stores the access point information into the registered access point information.
Before the server receives the candidate access point set sent by the first mobile terminal, the second mobile terminal needs to complete registration of access point information on the server, the server receives a network sharing instruction sent by the second mobile terminal, the network sharing instruction comprises the access point information, and the server stores the access point information into the registered access point information.
With reference to the second aspect, the first implementation manner of the second aspect, the second implementation manner of the second aspect, or the third implementation manner of the second aspect, in a fourth implementation manner of the second aspect of the present invention, after the server sends the access request to the second mobile terminal and before the server sends the access response to the first mobile terminal, the method further includes:
the server receives expense information sent by the second mobile terminal, wherein the expense information is used for indicating the expense to be paid by the first mobile terminal when the first mobile terminal uses the available network resources;
the server sends the expense information to the first mobile terminal, so that the first mobile terminal pays through a payment platform according to the expense information;
after the first mobile terminal finishes payment according to the expense information, the server receives a payment success response sent by the first mobile terminal;
and the server sends the payment success response to the second mobile terminal.
After the server sends the access request to the second mobile terminal and before the server sends the access response to the first mobile terminal, the server receives cost information sent by the second mobile terminal, wherein the cost information is used for indicating the cost required to be paid when the first mobile terminal uses the available network resources, namely the mobile network resources provided by the second mobile terminal to the first mobile terminal need to be paid, the cost information is interacted through the server, the first mobile terminal completes payment through the payment platform according to the cost information, and after the payment success response is received, the server receives the payment success response sent by the first mobile terminal and sends the payment success response to the second mobile terminal, so that the second mobile terminal confirms that the payment succeeds after receiving the payment success response, and online transaction is realized.
In combination with the fourth embodiment of the second aspect of the present invention, in the fifth embodiment of the second aspect of the present invention,
the information of the available network resources is information of available flow;
after the server sends the access response to the first mobile terminal, the method further includes:
the server receives prompt information sent by the second mobile terminal, wherein the prompt information is used for indicating that the difference value between the used flow of the first mobile terminal and the available flow is smaller than a preset value;
when the first mobile terminal shows the prompt message to a user and the user indicates to continue using, the server receives a flow increasing request sent by the first mobile terminal;
the server sends the flow increasing request to the second mobile terminal, so that the second mobile terminal generates additional cost information according to the flow increasing request, wherein the additional cost information is used for indicating the cost required to be paid by the first mobile terminal for requesting the increased flow;
the server receives additional expense information sent by the second mobile terminal;
the server sends the additional expense information to the first mobile terminal, so that the first mobile terminal pays through a payment platform according to the additional expense information;
after the first mobile terminal finishes payment according to the additional fee information, the server receives an additional payment success response sent by the first mobile terminal;
the server sends the additional payment success response to the second mobile terminal, so that the second mobile terminal generates a flow increasing response according to the additional payment success response;
the server receives a flow increasing response sent by the second mobile terminal;
and the server sends the flow increasing response to the first mobile terminal.
The available network resources are available mobile network resources provided by the second mobile terminal to the first mobile terminal, and since in an actual situation, the charging mode of the network resources used by a network operator is generally charging according to the traffic, the information of the available network resources is the information of the available traffic; in addition, the mobile network resource shared by the second mobile terminal can also be charged according to the time length, for example, the first mobile terminal is charged for 20 yuan, the first mobile terminal is allowed to access the network for 1 hour, after the first mobile terminal accesses the network, the second mobile terminal monitors the mobile network resource used by the first mobile terminal, when the difference value between the used flow and the available flow is smaller than the preset value, the server receives the prompt message sent by the second mobile terminal and sends the prompt message to the first mobile terminal, when the user using the first mobile terminal selects to continue using and increase the flow, the server receives the flow increasing request sent by the first mobile terminal and sends the flow increasing request to the second mobile terminal, the server receives the additional cost information sent by the second mobile terminal and sends the additional cost information to the first mobile terminal, when the first mobile terminal pays through the payment platform according to the additional cost information, the server receives an additional payment success response sent by the first mobile terminal and sends the additional payment success response to the second mobile terminal, after the second mobile terminal receives the payment success response, the server receives an increased flow response sent by the second mobile terminal and sends the increased flow response to the first mobile terminal, and a user using the second mobile terminal can realize flow control during sharing of mobile network resources, so that the flexibility and the autonomy of sharing of the mobile network resources are improved.
A third aspect of the present invention provides a network resource sharing method, including:
a second mobile terminal receives an access request sent by a first mobile terminal through a server, wherein the access request carries target access point information, and the target access point information is access point information registered by the second mobile terminal in the server;
the second mobile terminal generates an access response according to the access request, wherein the access response comprises an access code and information of available network resources, and the available network resources are mobile network resources shared by the second mobile terminal;
and the second mobile terminal sends the access response to the first mobile terminal through the server so that the first mobile terminal accesses the network according to the access code and the available network resources.
The first mobile terminal and the second mobile terminal interact through the server, a target access point shared by the second mobile terminal is registered in the server, the second mobile terminal receives an access request sent by the first mobile terminal through the server, the access request carries target access point information, the second mobile terminal generates an access response according to the access request, the access response comprises an access code and information of available network resources, the available network resources are mobile network resources shared by the second mobile terminal, the second mobile terminal sends the access response to the first mobile terminal through the server, so that when the first mobile terminal is located in an area without a public WiFi hotspot, the mobile network shared by the second mobile terminal can be accessed through the server request, and after the access response of the second mobile terminal is obtained through the server, the first mobile terminal can use the mobile network resources shared by the second mobile terminal, the network experience of the user is improved.
With reference to the third aspect of the present invention, in a first implementation manner of the third aspect of the present invention, before the second mobile terminal receives, through the server, the access request sent by the first mobile terminal, the method further includes:
the second mobile terminal receives a network sharing instruction, wherein the network sharing instruction comprises access point information;
and the second mobile terminal sends the network sharing instruction to the server.
If mobile network resources need to be shared, the second mobile terminal completes registration of access point information on the server, receives a network sharing instruction which comprises the access point information, and sends the network sharing instruction to the server, so that the server stores the access point information into the registered access point information after receiving the network sharing instruction sent by the second mobile terminal, and can send the registration completion information to the second mobile terminal to inform that the second mobile terminal is registered.
With reference to the first implementation manner of the third aspect of the present invention, in the second implementation manner of the third aspect of the present invention, after the second mobile terminal receives, through the server, the access request sent by the first mobile terminal, and before the second mobile terminal generates an access response according to the access request, the method further includes:
the second mobile terminal sends expense information to the first mobile terminal through the server, wherein the expense information is used for indicating the expense to be paid by the first mobile terminal when the first mobile terminal uses the available network resources;
and the second mobile terminal receives the payment success response sent by the first mobile terminal through the server.
After the second mobile terminal receives the access request sent by the first mobile terminal through the server and before the second mobile terminal generates an access response according to the access request, the second mobile terminal sends cost information to the first mobile terminal through the service, the cost information is used for indicating the cost required to be paid by the first mobile terminal when the first mobile terminal uses available network resources, namely the mobile network resources provided by the second mobile terminal to the first mobile terminal need to be paid, the cost information is interacted through the server, and after the first mobile terminal completes payment through the payment platform according to the cost information, the second mobile terminal receives the successful payment response sent by the first mobile terminal through the server, so that online transaction is realized.
With reference to the second embodiment of the third aspect of the present invention, in the third embodiment of the third aspect of the present invention,
the information of the available network resources is information of available flow;
after the second mobile terminal sends the access response to the first mobile terminal through the server, the method further includes:
the second mobile terminal sends prompt information to the first mobile terminal through a server, wherein the prompt information is used for indicating that the difference value between the used flow of the first mobile terminal and the available flow is smaller than a preset value;
the second mobile terminal receives a flow increasing request sent by the first mobile terminal through a server;
the second mobile terminal generates additional cost information according to the flow increasing request, wherein the additional cost information is used for indicating the cost required to be paid by the first mobile terminal for requesting the increased flow;
the second mobile terminal sends the additional expense information to the first mobile terminal through the server, so that the first mobile terminal pays through a payment platform according to the additional expense information;
after the first mobile terminal completes payment according to the additional fee information, the second mobile terminal receives an additional payment success response sent by the first mobile terminal through the server;
and the second mobile terminal generates a flow increasing response according to the additional payment success response and sends the flow increasing response to the first mobile terminal through the server.
The available network resources are available mobile network resources provided by the second mobile terminal to the first mobile terminal, and since in an actual situation, the charging mode of the network resources used by a network operator is generally charging according to the traffic, the information of the available network resources is the information of the available traffic; in addition, the mobile network resource shared by the second mobile terminal may also be charged according to a time duration, for example, if the first mobile terminal pays 20 yuan, the first mobile terminal is allowed to access the network for 1 hour, after the first mobile terminal accesses the network, the second mobile terminal monitors the mobile network resource used by the first mobile terminal, when a difference between a used traffic and an available traffic is smaller than a preset value, the second mobile terminal sends a prompt message to the first mobile terminal through the server, when a user using the first mobile terminal selects to continue using and increase the traffic, the second mobile terminal receives a traffic increase request sent by the first mobile terminal through the server, generates additional cost information according to the traffic increase request, and sends the additional cost information to the first mobile terminal through the server, when the first mobile terminal charges according to the additional cost information, after payment is carried out through the payment platform, the second mobile terminal receives the additional payment success response sent by the first mobile terminal through the server, the second mobile terminal receives the payment success response to generate the flow increasing response, the flow increasing response is sent to the first mobile terminal through the server, a user using the second mobile terminal can realize flow control when sharing the mobile network resources, and flexibility and autonomy of sharing the mobile network resources are improved.
A fourth aspect of the present invention provides a mobile terminal, comprising:
the terminal receiving module is used for receiving an access request of a user, wherein the access request carries target access point information;
the terminal sending module is used for sending the access request to a second mobile terminal corresponding to the target access point information through a server;
the terminal receiving module is further configured to receive, by the server, an access response fed back by the second mobile terminal, where the access response includes an access code and information of available network resources, and the available network resources are mobile network resources shared by the second mobile terminal;
and the network access module is used for accessing the network through the second mobile terminal according to the access code and the available network resources.
The first mobile terminal and the second mobile terminal interact through a server, a target access point shared by the second mobile terminal is registered in the server, a terminal receiving module receives an access request initiated by a user, the access request carries target access point information, a terminal sending module sends the access request to the second mobile terminal corresponding to the target access point information through the server, the terminal receiving module receives an access response fed back by the second mobile terminal through the server, the access response comprises information of an access code and available network resources, the available network resources are mobile network resources shared by the second mobile terminal, and the network access module accesses a network through the second mobile terminal according to the access code and the available network resources, so that the first mobile terminal can access a mobile network of the second mobile terminal through the server request when being in an area without a public WiFi hotspot, after the server obtains the access response of the second mobile terminal, the first mobile terminal can use the mobile network resource shared by the second mobile terminal, and the network experience of the user is improved.
With reference to the fourth aspect of the present invention, in the first implementation manner of the fourth aspect of the present invention, the mobile terminal further includes: a terminal processing module;
the terminal processing module is used for decrypting the access code according to a preset encryption and decryption rule, wherein the preset encryption and decryption rule is known by the first mobile terminal and the server;
alternatively, the first and second electrodes may be,
the terminal processing module is used for receiving an encrypted message sent by the server and determining an encryption and decryption protocol according to the encrypted message, wherein the encrypted message comprises the protocol type of the encryption and decryption protocol;
and the terminal processing module is also used for decrypting the access code according to the encryption and decryption protocol.
In order to improve the security of mobile network resources shared by a second mobile terminal, after obtaining an access response of the second mobile terminal, a server encrypts an access code therein, so that only a first mobile terminal can use the mobile network resources shared by the second mobile terminal, a terminal processing module decrypts the access code after receiving the access response, and if a set of commonly known encryption and decryption rules are preset between the first mobile terminal and the server, the terminal processing module decrypts the access code according to the preset encryption and decryption rules, and the decrypted access code can be accessed to a mobile network shared by the second mobile terminal; or, if the server selects one of the multiple encryption and decryption protocols to encrypt the access code, the terminal processing module receives an encrypted message sent by the server, the encrypted message includes a protocol type of the encryption and decryption protocols, after the encryption and decryption protocols are determined according to the protocol type, the access code is decrypted, the decrypted access code can be accessed to the mobile network shared by the second mobile terminal, for other mobile terminals, the correct decryption method of the encrypted access code is not known, so that the access code cannot be accessed to the mobile network shared by the second mobile terminal, only the first mobile terminal can be accessed, the problem of network occupation is avoided, and the security of the mobile network resource shared by the second mobile terminal is ensured.
With reference to the first implementation manner of the fourth aspect of the present invention, in the second implementation manner of the fourth aspect of the present invention, the mobile terminal further includes: a search module;
the searching module is used for searching nearby candidate access points to obtain a candidate access point set;
the terminal sending module is further configured to send the candidate access point set to the server;
the terminal receiving module is further configured to receive an available access point set fed back by the server, where the available access point set is a subset of the candidate access point set, and available access point information in the available access point set is access point information that has been registered in the server.
With reference to the second embodiment of the fourth aspect of the present invention, in the third embodiment of the fourth aspect of the present invention, the mobile terminal further includes: a display module;
the display module is used for displaying the available access point set to a user;
the terminal receiving module is specifically configured to receive an access request from the user, where target access point information carried in the access request belongs to the available access point set.
With reference to the fourth aspect of the present invention, the first embodiment of the fourth aspect, the second embodiment of the fourth aspect, or the third embodiment of the fourth aspect, in the fourth embodiment of the fourth aspect of the present invention,
the terminal receiving module is further configured to receive, by the server, cost information sent by the second mobile terminal, where the cost information is used to indicate a cost that needs to be paid by the first mobile terminal to use the available network resource;
the terminal processing module is also used for paying through a payment platform according to the expense information and receiving a response of successful payment;
the terminal sending module is further configured to send the payment success response to the second mobile terminal through the server.
In combination with the fourth embodiment of the fourth aspect of the present invention, in the fifth embodiment of the fourth aspect of the present invention,
the information of the available network resources is information of available flow;
the terminal receiving module is further configured to receive, by the server, a prompt message sent by the second mobile terminal, where the prompt message is used to indicate that a difference between a used flow of the first mobile terminal and the available flow is smaller than a preset value;
the display module is also used for displaying the prompt information to a user;
the terminal sending module is further configured to send a flow increasing request to the second mobile terminal through the server when the user indicates to continue using the mobile terminal;
the terminal receiving module is further configured to receive, by the server, additional cost information sent by the second mobile terminal, where the additional cost information is used to indicate a cost that needs to be paid when the first mobile terminal requests an increased flow;
the terminal processing module is also used for paying through a payment platform according to the additional fee information and receiving an additional payment success response;
the terminal sending module is further configured to send the additional payment success response to the second mobile terminal through the server;
the terminal receiving module is further configured to receive, through the server, a traffic increase response sent by the second mobile terminal, where the traffic increase response includes information of additional traffic.
A fifth aspect of the present invention provides a server comprising:
the server receiving module is used for receiving an access request sent by a first mobile terminal, wherein the access request carries target access point information;
a determining module, configured to determine a second mobile terminal according to the target access point information;
the server sending module is used for sending the access request to the second mobile terminal;
the server receiving module is further configured to receive an access response fed back by the second mobile terminal, where the access response includes an access code and information of available network resources, and the available network resources are mobile network resources shared by the second mobile terminal;
the server sending module is further configured to send the access response to the first mobile terminal, where the access response indicates that the first mobile terminal accesses the network through the second mobile terminal according to the access code and the available network resource.
The first mobile terminal and the second mobile terminal interact through a server, and a target access point shared by the second mobile terminal is registered in the server, when the first mobile terminal selects the target access point, a server receiving module receives an access request sent by the first mobile terminal, the access request carries target access point information, because the target access point is registered in the server, the second mobile terminal corresponding to the target access point information is also stored in the server, a determining module determines the second mobile terminal according to the target access point information, the server sending module sends the access request to the second mobile terminal, the receiving module receives an access response fed back by the second mobile terminal, the access response comprises an access code and information of available network resources, and the available network resources are mobile network resources shared by the second mobile terminal, the server sending module sends the access response to the first mobile terminal, the first mobile terminal can access the network through the second mobile terminal according to the access code and the available network resources, when the first mobile terminal is located in an area without a public WiFi hotspot, the server can request to access the mobile network shared by the second mobile terminal, and after the server obtains the access response of the second mobile terminal, the first mobile terminal can use the mobile network resources shared by the second mobile terminal, so that the network experience of a user is improved.
With reference to the fifth aspect of the present invention, in the first embodiment of the fifth aspect of the present invention, the server further includes: a server processing module;
the server processing module is used for encrypting the access code according to an encryption and decryption protocol;
the server sending module is further configured to send an encrypted message to the first mobile terminal, where the encrypted message includes a protocol type of the encryption/decryption protocol, and the encryption/decryption protocol is known to the server and the first mobile terminal.
With reference to the first embodiment of the fifth aspect of the present invention, in the second embodiment of the fifth aspect of the present invention,
the server receiving module is further configured to receive a candidate access point set sent by the first mobile terminal, where the candidate access point set is obtained by searching for a nearby candidate access point for the first mobile terminal;
the server processing module is further configured to obtain an available access point set according to the registered access point information and the candidate access point set, where the available access point information in the available access point set is consistent with the registered access point information;
the server sending module is further configured to send the set of available access points to the first mobile terminal.
With reference to the second embodiment of the fifth aspect of the present invention, in the third embodiment of the fifth aspect of the present invention, the server further includes: a storage module;
the server receiving module is further configured to receive a network sharing instruction sent by the second mobile terminal, where the network sharing instruction includes access point information;
the storage module is configured to store the access point information in the registered access point information.
With reference to the fifth aspect of the present invention, the first embodiment of the fifth aspect, the second embodiment of the fifth aspect, or the third embodiment of the fifth aspect, in the fourth embodiment of the fifth aspect of the present invention,
the server receiving module is further configured to receive cost information sent by the second mobile terminal, where the cost information is used to indicate a cost that needs to be paid by the first mobile terminal to use the available network resource;
the server sending module is further configured to send the fee information to the first mobile terminal, so that the first mobile terminal pays the fee through a payment platform according to the fee information;
the server receiving module is further configured to receive a payment success response sent by the first mobile terminal after the first mobile terminal completes payment according to the fee information;
the server sending module is further configured to send the payment success response to the second mobile terminal.
In combination with the fourth embodiment of the fifth aspect of the present invention, in the fifth embodiment of the fifth aspect of the present invention,
the information of the available network resources is information of available flow;
the server receiving module is further configured to receive a prompt message sent by the second mobile terminal, where the prompt message is used to indicate that a difference between a used flow of the first mobile terminal and the available flow is smaller than a preset value;
the server receiving module is further configured to receive a traffic increase request sent by the first mobile terminal when the first mobile terminal displays the prompt message to a user and the user indicates to continue using the first mobile terminal;
the server sending module is further configured to send the traffic increase request to the second mobile terminal, so that the second mobile terminal generates additional cost information according to the traffic increase request, where the additional cost information is used to indicate a cost that needs to be paid by the first mobile terminal for requesting the increased traffic;
the server receiving module is further configured to receive additional cost information sent by the second mobile terminal;
the server sending module is further configured to send the additional cost information to the first mobile terminal, so that the first mobile terminal pays through a payment platform according to the additional cost information;
the server receiving module is further configured to receive an additional payment success response sent by the first mobile terminal after the first mobile terminal completes payment according to the additional fee information;
the server sending module is further configured to send the additional payment success response to the second mobile terminal, so that the second mobile terminal generates a traffic increase response according to the additional payment success response;
the server receiving module is further configured to receive a traffic increase response sent by the second mobile terminal;
the server sending module is further configured to send the traffic increase response to the first mobile terminal.
A sixth aspect of the present invention provides a mobile terminal, including:
the wireless communication device comprises an input unit, a memory, a radio frequency RF circuit, a WiFi module and a processor, wherein the input unit, the radio frequency RF circuit, the WiFi module and the processor are connected with each other through a bus, computer instructions are stored in the memory, and the processor executes the computer instructions, so that the following method is realized:
receiving an access request, wherein the access request carries target access point information;
sending the access request to a second mobile terminal corresponding to the target access point information through a server;
receiving, by the server, an access response fed back by the second mobile terminal, where the access response includes an access code and information of available network resources, and the available network resources are mobile network resources shared by the second mobile terminal;
and accessing the network according to the access code and the available network resources.
The method comprises the steps of receiving an access request, wherein the access request carries target access point information, sending the access request to a second mobile terminal corresponding to the target access point information through a server, receiving an access response fed back by the second mobile terminal through the server, wherein the access response comprises an access code and information of available network resources, the available network resources are mobile network resources shared by the second mobile terminal, and accessing the network according to the access code and the available network resources, so that the first mobile terminal can be requested to access the mobile network shared by the second mobile terminal through the server when the first mobile terminal is in an area without a public WiFi hotspot, and after the access response of the second mobile terminal is obtained through the server, the first mobile terminal can use the mobile network resources shared by the second mobile terminal, so that the network experience of a user is improved.
A seventh aspect of the present invention provides a server comprising:
the wireless network interface, the CPU and the memory are connected with each other through a bus, a computer instruction is stored in the memory, and the processor executes the computer instruction, so that the following method is realized:
receiving an access request sent by a first mobile terminal, wherein the access request carries target access point information;
determining a second mobile terminal according to the target access point information;
sending the access request to the second mobile terminal;
receiving an access response fed back by the second mobile terminal, wherein the access response comprises an access code and information of available network resources, and the available network resources are mobile network resources shared by the second mobile terminal;
and sending the access response to the first mobile terminal so that the first mobile terminal accesses the network according to the access code and the available network resources.
Receiving an access request sent by a first mobile terminal, wherein the access request carries target access point information, because a target access point is registered in a server, a second mobile terminal corresponding to the target access point information is also stored in the server, determining the second mobile terminal according to the target access point information, sending the access request to the second mobile terminal, receiving an access response fed back by the second mobile terminal, wherein the access response comprises an access code and information of available network resources, the available network resources are mobile network resources shared by the second mobile terminal, sending the access response to the first mobile terminal, and the first mobile terminal can access a network according to the access code and the available network resources, so that when the first mobile terminal is in an area without a public WiFi hotspot, the server can request to access a mobile network shared by the second mobile terminal, after the server obtains the access response of the second mobile terminal, the first mobile terminal can use the mobile network resource shared by the second mobile terminal, and the network experience of the user is improved.
Drawings
Fig. 1 is a schematic diagram of interaction between a first mobile terminal, a second mobile terminal and a server according to the present application;
fig. 2 is a schematic structural diagram of an entity apparatus of a mobile terminal provided in the present application;
fig. 3 is a schematic structural diagram of a physical device of a server provided in the present application;
fig. 4 is a schematic diagram of a network resource sharing method provided in the present application;
fig. 5 is a signaling flow diagram of interaction between a first mobile terminal, a second mobile terminal, and a server according to the present application;
fig. 6 is another signaling flow diagram of the interaction between the first mobile terminal, the second mobile terminal and the server provided in the present application;
fig. 7 is another signaling flow diagram of the interaction between the first mobile terminal, the second mobile terminal and the server provided in the present application;
fig. 8 is another signaling flow diagram of the interaction between the first mobile terminal, the second mobile terminal and the server provided in the present application;
fig. 9 is another signaling flow diagram of the interaction between the first mobile terminal, the second mobile terminal and the server provided in the present application;
fig. 10 is a schematic structural diagram of a mobile terminal provided in the present application;
fig. 11 is another schematic structural diagram of a mobile terminal provided in the present application;
FIG. 12 is a schematic diagram of a server according to the present application;
fig. 13 is another schematic structural diagram of a server provided in the present application.
Detailed Description
The application provides a network resource sharing method, a mobile terminal and a server, and mobile network resource sharing among the mobile terminals can be realized through the server.
The technical solutions in the present application will be described clearly and completely with reference to the accompanying drawings in the present application, 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 application.
Fig. 1 is a schematic view of an application scenario according to an embodiment of the present invention. The first mobile terminal and the second mobile terminal are mobile terminals with WiFi modules such as mobile phones or tablet computers, the first mobile terminal and the second mobile terminal are interacted through a server, the first mobile terminal and the second mobile terminal are both provided with application programs supporting the network resource sharing method of the invention or Software Development Kit (SDK) integrated by other third party applications such as games, and the application programs or the connection between the SDK and the server adopt HTTPS + XML interface protocol, under the condition of sharing mobile network resource surplus of users (namely users using the second mobile terminal), WiFi access points can be registered in the server by using the second mobile terminal, when access users (namely users using the first mobile terminal) need to use the mobile network resource, the access requests are sent by using the first mobile terminal through the server and the second mobile terminal, after the server obtains the access response of the second mobile terminal, the first mobile terminal can access the network through the WiFi access point of the second mobile terminal, and the mobile network resources shared by the second mobile terminal are used.
The first mobile terminal and the second mobile terminal are both mobile phones as an example, and a block diagram of a partial structure of the mobile phone is shown in fig. 2, where the mobile phone includes: a Radio Frequency (RF) circuit 210, a memory 220, an input unit 230, a display unit 240, a sensor 250, an audio circuit 260, a wireless fidelity (WiFi) module 270, a processor 280, and a power supply 290. Those skilled in the art will appreciate that the handset configuration shown in fig. 2 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The components of the mobile phone are specifically described with reference to fig. 2:
the RF circuit 210 may be used for receiving and transmitting signals during information transmission and reception or during a call, and in particular, receives downlink information of a base station and then processes the received downlink information to the processor 280; in addition, the data for designing uplink is transmitted to the base station. In general, the RF circuit 210 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, the RF circuitry 210 may also communicate with networks and other devices via wireless communications. The wireless communication may use any communication standard or protocol, including but not limited to global system for Mobile communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), LTE, e-mail, Short Message Service (SMS), and the like.
The memory 220 may be used to store software programs and modules, and the processor 280 executes various functional applications and data processing of the mobile phone by operating the software programs and modules stored in the memory 220. The memory 220 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 220 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The input unit 230 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the cellular phone. Specifically, the input unit 230 may include a touch panel 231 and other input devices 232. The touch panel 231, also referred to as a touch screen, may collect touch operations of a user (e.g., operations of the user on or near the touch panel 231 using any suitable object or accessory such as a finger, a stylus, etc.) thereon or nearby, and drive the corresponding connection device according to a preset program. Alternatively, the touch panel 231 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts it to touch point coordinates, and then provides the touch point coordinates to the processor 280, and can receive and execute commands from the processor 280. In addition, the touch panel 231 may be implemented in various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. The input unit 230 may include other input devices 232 in addition to the touch panel 231. In particular, other input devices 232 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 240 may be used to display information input by the user or information provided to the user and various menus of the mobile phone. The display unit 240 may include a display panel 241, and optionally, the display panel 241 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. Further, the touch panel 231 may cover the display panel 241, and when the touch panel 231 detects a touch operation thereon or nearby, the touch panel is transmitted to the processor 280 to determine the type of the touch event, and then the processor 280 provides a corresponding visual output on the display panel 241 according to the type of the touch event. Although in fig. 2, the touch panel 231 and the display panel 241 are two independent components to implement the input and output functions of the mobile phone, in some embodiments, the touch panel 231 and the display panel 241 may be integrated to implement the input and output functions of the mobile phone.
The handset may also include at least one sensor 250, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that adjusts the brightness of the display panel 241 according to the brightness of ambient light, and a proximity sensor that turns off the display panel 241 and/or the backlight when the mobile phone is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when stationary, and can be used for applications of recognizing the posture of a mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured on the mobile phone, further description is omitted here.
Audio circuitry 260, speaker 261, and microphone 262 may provide an audio interface between the user and the handset. The audio circuit 260 may transmit the electrical signal converted from the received audio data to the speaker 261, and convert the electrical signal into a sound signal by the speaker 261 and output the sound signal; on the other hand, the microphone 262 converts the collected sound signals into electrical signals, which are received by the audio circuit 260 and converted into audio data, which are processed by the audio data output processor 280, and then transmitted to, for example, another cellular phone via the RF circuit 210, or output to the memory 220 for further processing.
WiFi belongs to short-distance wireless transmission technology, and the mobile phone can help a user to receive and send e-mails, browse webpages, access streaming media and the like through the WiFi module 270, and provides wireless broadband internet access for the user.
The processor 280 is a control center of the mobile phone, connects various parts of the entire mobile phone by using various interfaces and lines, and performs various functions of the mobile phone and processes data by operating or executing software programs and/or modules stored in the memory 220 and calling data stored in the memory 220, thereby performing overall monitoring of the mobile phone. Alternatively, processor 280 may include one or more processing units; preferably, the processor 280 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 280.
The handset also includes a power supply 290 (e.g., a battery) for powering the various components, which may preferably be logically coupled to the processor 280 via a power management system, such that the power management system may be used to manage charging, discharging, and power consumption.
Although not shown, the mobile phone may further include a camera, a bluetooth module, etc., which are not described herein.
Fig. 3 is a schematic structural diagram of a server according to an embodiment of the present invention, which may have a relatively large difference due to different configurations or performances, and may include one or more Central Processing Units (CPUs) 322 (e.g., one or more processors) and a memory 332, and one or more storage media 330 (e.g., one or more mass storage devices) storing an application 342 or data 344. Memory 332 and storage media 330 may be, among other things, transient storage or persistent storage. The program stored on the storage medium 330 may include one or more modules (not shown), each of which may include a series of instruction operations for the server. Still further, the CPU322 may be configured to communicate with the storage medium 330 to execute a series of instruction operations in the storage medium 330 on the server.
The server may also include one or more power supplies 326, one or more wireless network interfaces 350, one or more input-output interfaces 358, and/or one or more operating systems 341, such as Windows Server, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, and the like.
The first mobile terminal and the second mobile terminal are connected with the wireless network interface 350 of the server through the RF circuit 210, and the first mobile terminal and the second mobile terminal realize network access through the WiFi module.
Referring to fig. 4, an embodiment of the present invention provides a method for sharing network resources, including:
401. a first mobile terminal receives an access request of a user;
the first mobile terminal receives an access request of a user, where the access request carries target access point information, such as WiFi access point information, where the WiFi access point information includes a WiFi name, that is, the first mobile terminal wants to connect to the WiFi access point but does not have a WiFi password, and therefore needs to send the access request to a provider to obtain the WiFi password.
402. The first mobile terminal sends an access request to a second mobile terminal corresponding to the target access point information through the server;
the first mobile terminal sends the access request to the server, and since the target access point information is registered by the second mobile terminal at the server before, the target access point information is bound with the second mobile terminal, and the server may determine the second mobile terminal according to the target access point information in the access request and send the access request to the second mobile terminal.
403. The first mobile terminal receives an access response fed back by the second mobile terminal through the server;
after the second mobile terminal responds to the access request, the first mobile terminal receives an access response fed back by the second mobile terminal through the server, the access response comprises an access code and information of available network resources, and the available network resources are mobile network resources shared by the second mobile terminal.
404. And the first mobile terminal accesses the network through the second mobile terminal according to the access code and the available network resources.
After obtaining the access response of the second mobile terminal, the first mobile terminal accesses the network through the second mobile terminal according to the access code and the information of the available network resources, if the target access point information is WiFi access point information, the access code is a WiFi password, the information of the available network resources is information of available flow or information of available duration, the first mobile terminal accesses the WiFi access point by using the WiFi password, for example, the information of the available flow is 100M, after the first mobile terminal accesses the network through the WiFi access point, the flow of the used network resources cannot exceed 100M, for example, the information of the available duration is 1 hour, and after the first mobile terminal accesses the network through the WiFi access point, the time of using the network resources cannot exceed 1 hour.
In the embodiment of the invention, the first mobile terminal accesses the network through the second mobile terminal according to the access code and the available network resource, so that the first mobile terminal can request to access the mobile network shared by the second mobile terminal through the server when the first mobile terminal is in an area without a public WiFi hotspot, and after the server obtains the access response of the second mobile terminal, the first mobile terminal can use the mobile network resource shared by the second mobile terminal, thereby improving the network experience of a user.
In order to facilitate better understanding, the network resource sharing method of the present invention is described in detail below through three-party interaction among the first mobile terminal, the server, and the second mobile terminal.
As shown in fig. 5, which is a signaling flow diagram among a first Mobile terminal, a server, and a second Mobile terminal, where the first Mobile terminal and the second Mobile terminal use a Mobile phone as an example, an access user uses the first Mobile terminal, a sharing user uses the second Mobile terminal, both the access user and the sharing user complete user registration, a registration identifier is a device unique identifier, the device unique identifier includes a local International Mobile Equipment Identifier (IMEI) or a feature information of a local device such as a network card physical address MAC, and the second Mobile terminal has registered a WiFi access point in the server and is connected to a 4G network through the WiFi access point.
The network resource sharing method in the embodiment of the present invention is described with reference to the signaling flow in fig. 5:
501. the first mobile terminal receives an access request, wherein the access request can be initiated by an access user or an application program with system management authority, the access request carries target access point information, the target access point information is WiFi access point information of a WiFi access point registered by the second mobile terminal in a server, and the WiFi access point information comprises a WiFi name and the like;
502. after receiving the access request, the first mobile terminal sends the access request to a server;
503. the WiFi access point information is bound with the second mobile terminal, for example, the WiFi access point information is bound with the unique equipment identifier of the second mobile terminal, the bound associated information is stored in a memory of the server, and the second mobile terminal is determined according to the WiFi access point information by calling the associated information;
504. after determining the second mobile terminal, the server sends an access request to the second mobile terminal;
505. the second mobile terminal receives the access request, generates an access response according to the access request, where the access response may be generated by the operation of the sharing user after the second mobile terminal shows the access request to the sharing user, or may be generated by an automatic response of an application having a system management right, the access response includes an access code and information of available network resources, the access code is a WiFi password, the available network resources are 4G network resources shared by the second mobile terminal, the information of the available network resources is information of available traffic, for example, the information of the available traffic is 100M, after the first mobile terminal accesses the 4G network through the WiFi access point, the traffic of the used 4G network resources cannot exceed 100M, the information of the available network resources may also be information of available duration, for example, the information of the available duration is 1 hour, after the first mobile terminal accesses the 4G network through the WiFi access point, the time for using the 4G network resources cannot exceed 1 hour;
506. after responding to the access request, the second mobile terminal sends an access response to the server;
507. the server receives an access response sent by the second mobile terminal and sends the access response to the first mobile terminal;
508. and the first mobile terminal receives an access response fed back by the second mobile terminal through the server, and accesses the 4G network through the WiFi access point shared by the second mobile terminal according to the access code (namely the WiFi password) in the access response and the available network resources.
Optionally, in some embodiments of the present invention, in order to improve security of a mobile network resource shared by a second mobile terminal, after obtaining an access response of the second mobile terminal, a server encrypts an access code therein, so that only a first mobile terminal can use the mobile network resource shared by the second mobile terminal, and after receiving the access response, the first mobile terminal decrypts the access code, and can access the network by using an available network resource and the decrypted access code, which is described with reference to a signaling flow in fig. 6:
601. details are described with reference to signaling flow step 501;
602. details are described with reference to signaling flow step 502;
603. details are described with reference to signaling flow step 503;
604. details are described with reference to signaling flow step 504;
605. details are described with reference to signaling flow step 505;
606. details are described with reference to signaling flow step 506;
607. after receiving the access response sent by the second mobile terminal, the server encrypts the access code in the access response, and the specific encryption mode may be: encrypting the access code according to a preset encryption and decryption rule, wherein the preset encryption and decryption rule is known to the first mobile terminal and the server, for example, the access code is '12345', and a new access code '0000112345' is formed by the device unique identifier '00001' of the first mobile terminal and the access code, or the server encrypts the access code according to the encryption and decryption protocol, and the server needs to send an encryption message to inform the protocol type of the encryption and decryption protocol of the first mobile terminal, wherein the encryption and decryption protocol is known to the server and the first mobile terminal;
608. the server carries the encrypted access code and the encrypted message in the access response and sends the access response to the first mobile terminal, the encrypted message can also be sent to the first mobile terminal independently, and detailed description is not needed when the server sends the encrypted message to the first mobile terminal independently;
609. after receiving the access response, the first mobile terminal obtains an access code in the access response, and if the access response does not contain the encryption message, the first mobile terminal decrypts the access code according to a preset encryption and decryption rule; if the encrypted message is obtained from the access response, determining an encryption and decryption protocol according to the encrypted message, and decrypting the access code according to the determined encryption and decryption protocol;
610. and the first mobile terminal accesses the 4G network through the WiFi access point according to the decrypted access code and the available network resources.
Optionally, in some embodiments of the present invention, before the first mobile terminal receives the access request, the second mobile terminal further needs to register WiFi access point information in the server, and the first mobile terminal further needs to perform an access point query operation, which is described with reference to the signaling flow in fig. 7:
701. the second mobile terminal receives a network sharing instruction, wherein the network sharing instruction comprises WiFi access point information, if a sharing user uses the second mobile terminal not before user registration, the network sharing instruction also needs to carry a device unique identifier of the second mobile terminal, if the sharing user uses the second mobile terminal to perform user registration before the user registration, the network sharing instruction does not need to carry the device unique identifier of the second mobile terminal, only the situation that the sharing user uses the second mobile terminal to perform user registration is considered, the network sharing instruction also can comprise tariff information and the like, and the network sharing instruction can be initiated by the sharing user or initiated by an application program with system management authority;
702. the second mobile terminal sends the network sharing instruction to the server;
703. after the server receives the network sharing instruction, since the sharing user uses the second mobile terminal to perform user registration before, the server stores the WiFi access point information in the network sharing instruction into the registered access point information to indicate that the WiFi access point is registered, and after the registration is successful, the server can also send a registration success notification to the second mobile terminal, which is not specifically described herein;
704. after a WiFi internet access switch is turned on by a first mobile terminal, automatically searching nearby candidate access points, or manually searching nearby candidate access points by an access user to obtain a candidate access point set, wherein the candidate access point set comprises WiFi names of a plurality of WiFi access points;
705. the first mobile terminal sends the candidate access point set to a server;
706. the server receives a candidate access point set sent by the first mobile terminal, compares each access point information in the registered access point information with each candidate access point information in the candidate access point set to obtain an available access point set, wherein the available access point information in the available access point set is the access point information registered in the server, and if the first mobile terminal and the second mobile terminal are in a WiFi connectable range, the WiFi access point information of the second mobile terminal is in the available access point set;
707. the server sends the available access point set to the first mobile terminal;
708. the first mobile terminal displays the available access point set to an access user, wherein WiFi access point information of the second mobile terminal is also located in the available access point set, a WiFi name is displayed to the access user, and tariff information can also be displayed to the access user, so that the access user can select the WiFi access point information as target access point information according to price selection, and the first mobile terminal receives an access request which carries the target access point information;
709. details are described with reference to signaling flow step 602;
710. details are described with reference to signaling flow step 603;
711. details are described with reference to signaling flow step 604;
712. details are described with reference to signaling flow step 605;
713. details are described with reference to signaling flow step 606;
714. details are described with reference to signaling flow step 607;
715. details are described with reference to signaling flow step 608;
716. details are described with reference to signaling flow step 609;
717. the details are described with reference to signaling flow step 610.
Optionally, in some embodiments of the present invention, before the second mobile terminal responds to the access request sent by the first mobile terminal, the second mobile terminal further needs to send cost information to the first mobile terminal, and after the first mobile terminal completes the cost payment, the second mobile terminal feeds back the access response to the first mobile terminal through the server, that is, steps 801, 802, and 803 are added between signaling flow steps 712 and 713 shown in fig. 7, which is described with reference to the signaling flow in fig. 8:
801. after receiving the access request, the second mobile terminal sends cost information to the first mobile terminal through the server, where the cost information is, for example, 20M traffic or 50M traffic for 1 hour, and the cost information may be generated by the sharing user through instant setting or may be automatically generated by the second mobile terminal according to the preset of the sharing user or according to the existing price of 4G network resources;
802. the first mobile terminal receives the expense information sent by the second mobile terminal through the server, then displays the expense information to the access user, and the access user pays through the payment platform according to the expense information and receives payment success response;
803. the first mobile terminal sends the payment success response to the second mobile terminal through the server, and the second mobile terminal can perform step 713 after receiving the payment success response.
It should be noted that steps 801, 802 and 803 need not be performed if the access user is paying by a cash transaction.
Under the condition that the 4G network resources are surplus, the sharing user can share the surplus 4G network resources to the required access user in the mode, and obtain certain cost, so that the benefit requirement of the sharing user is met, the network resource requirement of the access user is met, and the operation of the network resources of an operator can be promoted.
Optionally, in some embodiments of the present invention, after the first mobile terminal accesses the 4G network through the WiFi access point according to the decrypted access code and the available network resource, that is, after the signaling flow step 717 in fig. 8, the second mobile terminal further needs to monitor the available network resource used by the first mobile terminal, because in an actual situation, the charging manner of the network resource used by the network operator is generally charging according to the traffic, in this embodiment, the information of the available network resource takes the information of the available traffic as an example, when a difference between the traffic used by the first mobile terminal and the available traffic is smaller than a preset value, the second mobile terminal sends the prompt information to the first mobile terminal through the server, and if the access user needs to increase the traffic, the second mobile terminal needs to request to increase the traffic and complete the payment of the charge, specifically, the following is described with reference to the signaling flow in fig. 9:
901. after a first mobile terminal accesses a 4G network through a WiFi access point of a second mobile terminal, the second mobile terminal monitors available network resources (namely network flow) used by the first mobile terminal, and when the difference value between the flow used by the first mobile terminal and the available flow is smaller than a preset value, the second mobile terminal sends prompt information to the first mobile terminal through a server;
902. the first mobile terminal receives prompt information sent by the second mobile terminal through the server, and the prompt information is displayed to the access user to remind the access user that the available flow is running low, so that the access user can determine whether to increase the network flow or not, or the network flow does not need to be increased; if the user needs to continue to use the 4G network resource shared by the second mobile terminal, the first mobile terminal generates a traffic increase request, wherein the traffic increase request contains information of traffic requested to be increased, such as 100M increase;
903. a first mobile terminal sends a flow increasing request to a second mobile terminal through a server;
904. the second mobile terminal receives the flow increasing request sent by the first mobile terminal through the server, if the sharing user does not want to increase the shared flow after seeing the flow increasing request displayed by the second mobile terminal, the second mobile terminal is controlled not to respond to the flow increasing request, and if the sharing user is willing to increase the shared flow, the cost required to be paid by the flow increased by the first mobile terminal request is set at the second mobile terminal, and additional cost information is generated; or the second mobile terminal automatically generates additional cost information according to a preset cost standard and the flow requested to be increased by the first mobile terminal;
905. the second mobile terminal sends the additional cost information to the first mobile terminal through the server;
906. the method comprises the steps that after a first mobile terminal receives additional expense information sent by the first mobile terminal through a server, the additional expense information is displayed to an access user, the access user pays through a payment platform according to the additional expense information, and receives an additional payment success response;
907. the first mobile terminal sends an additional payment success response to the second mobile terminal through the server;
908. and the second mobile terminal responds to the flow increasing request after receiving the additional payment success response through the server to obtain a flow increasing response, and the flow increasing response is fed back to the first mobile terminal through the server and contains the information of the additional flow.
It should be noted that, because the first mobile terminal is a WiFi access point that accesses the second mobile terminal through a WiFi link, thereby accessing the network, and the WiFi network technology belongs to a short-range wireless technology, when an access user moves with the first mobile terminal or a sharing user moves with the second mobile terminal, so that a distance between the first mobile terminal and the second mobile terminal is greater than a distance for maintaining a stable WiFi link, the first mobile terminal may disconnect from the WiFi connection of the second mobile terminal, and the shared available network resources are not used up, then, when the first mobile terminal searches for a WiFi name corresponding to the second mobile terminal again, the first mobile terminal accesses the network again through an access response when the first mobile terminal accesses the network for the first time.
The above embodiments describe the network resource sharing method of the present invention, and the following describes a mobile terminal and a server through the embodiments.
Referring to fig. 10, an embodiment of the present invention provides a mobile terminal, including:
a terminal receiving module 1001, configured to receive an access request of a user, where the access request carries target access point information;
the details are described with reference to signaling flow step 501.
A terminal sending module 1002, configured to send, through the server, an access request to a second mobile terminal corresponding to the target access point information, where the access request carries the target access point information;
the details are described with reference to signaling flow steps 502, 503 and 504.
The terminal receiving module 1001 is further configured to receive, by the server, an access response fed back by the second mobile terminal, where the access response includes an access code and information of available network resources, and the available network resources are mobile network resources shared by the second mobile terminal;
the details are described with reference to signaling flow step 507.
A network access module 1003, configured to access the network through the second mobile terminal according to the access code and the available network resource.
The details are described with reference to signaling flow step 508.
The terminal receiving module 1001 receives an access request, the access request carries target access point information, the terminal sending module 1002 sends the access request to a second mobile terminal corresponding to the target access point information through a server, the terminal receiving module 1001 receives an access response fed back by the second mobile terminal through the server, the access response comprises an access code and information of available network resources, the available network resources are mobile network resources shared by the second mobile terminal, the network access module 1003 accesses the network according to the access code and the available network resources, so that when the first mobile terminal is located in an area without a public WiFi hotspot, the first mobile terminal can request to access a mobile network shared by the second mobile terminal through the server, and after the server obtains the access response of the second mobile terminal, the first mobile terminal can use the mobile network resources shared by the second mobile terminal, the network experience of the user is improved.
Optionally, as shown in fig. 11, in some embodiments of the present invention, the mobile terminal further includes: a terminal processing module 1101;
the terminal processing module 1101 is configured to decrypt the access code according to a preset encryption and decryption rule, where the preset encryption and decryption rule is known to the first mobile terminal and the server;
alternatively, the first and second electrodes may be,
the terminal processing module 1101 is configured to receive an encrypted message sent by the server, determine an encryption and decryption protocol according to the encrypted message, where the encrypted message includes a protocol type of the encryption and decryption protocol;
the terminal processing module 1101 is further configured to decrypt the access code according to an encryption/decryption protocol.
The details are described with reference to signaling flow step 609.
Optionally, as shown in fig. 11, in some embodiments of the present invention, the mobile terminal further includes: a search module 1102;
a searching module 1102, configured to search nearby candidate access points to obtain a candidate access point set;
the details are described with reference to signaling flow step 704.
The terminal sending module 1002 is further configured to send the candidate access point set to the server;
the details are described with reference to signaling flow step 705.
The terminal receiving module 1001 is further configured to receive an available access point set fed back by the server, where the available access point set is a subset of the candidate access point set, and available access point information in the available access point set is access point information that has been registered in the server.
The details are described with reference to signaling flow step 707.
Optionally, as shown in fig. 11, in some embodiments of the present invention, the mobile terminal further includes: a display module 1103;
a display module 1103 for presenting the set of available access points to a user;
the details are described with reference to signaling flow step 708.
The terminal receiving module 1001 is specifically configured to receive an access request from a user, where target access point information carried in the access request belongs to an available access point set.
The details are described with reference to signaling flow step 708.
Alternatively, in some embodiments of the present invention,
the terminal receiving module 1001 is further configured to receive, by the server, cost information sent by the second mobile terminal, where the cost information is used to indicate a cost that needs to be paid by the first mobile terminal to use an available network resource;
the details are described with reference to signaling flow step 801.
The terminal processing module 1101 is further configured to pay through the payment platform according to the fee information, and receive a successful payment response;
the details are described with reference to signaling flow step 802.
The terminal sending module 1002 is further configured to send a payment success response to the second mobile terminal through the server.
The details are described with reference to signaling flow step 803.
Alternatively, as shown in fig. 11, in some embodiments of the invention,
the information of the available network resources is the information of available flow;
the terminal receiving module 1001 is further configured to receive, by the server, a prompt message sent by the second mobile terminal, where the prompt message is used to indicate that a difference between a used flow and an available flow of the first mobile terminal is smaller than a preset value;
the details are described with reference to signaling flow step 901.
The display module 1103 is further configured to display a prompt message to a user;
the details are described with reference to signaling flow step 902.
The terminal sending module 1002 is further configured to send a flow increasing request to the second mobile terminal through the server when the user indicates to continue using the mobile terminal;
the details are described with reference to signaling flow step 903.
The terminal receiving module 1001 is further configured to receive, by the server, additional cost information sent by the second mobile terminal, where the additional cost information is used to indicate a cost that needs to be paid when the first mobile terminal requests an increased traffic;
the details are described with reference to signaling flow step 905.
The terminal processing module 1103 is further configured to pay through the payment platform according to the additional fee information, and receive an additional payment success response;
the details are described with reference to signaling flow step 906.
The terminal sending module 1002 is further configured to send an additional payment success response to the second mobile terminal through the server;
the details are described with reference to signaling flow step 907.
The terminal receiving module 1001 is further configured to receive, through the server, a traffic increase response sent by the second mobile terminal, where the traffic increase response includes information of additional traffic.
The details are described with reference to signaling flow step 908.
Referring to fig. 12, an embodiment of the present invention provides a server, including:
a server receiving module 1201, configured to receive an access request sent by a first mobile terminal, where the access request carries target access point information;
the details are described with reference to signaling flow step 502.
A determining module 1202, configured to determine a second mobile terminal according to the target access point information;
the details are described with reference to signaling flow step 503.
A server sending module 1203, configured to send the access request to the second mobile terminal;
the details are described with reference to signaling flow step 504.
The server receiving module 1201 is further configured to receive an access response fed back by the second mobile terminal, where the access response includes an access code and information of available network resources, and the available network resources are mobile network resources shared by the second mobile terminal;
the details are described with reference to signaling flow step 506.
The server sending module 1203 is further configured to send an access response to the first mobile terminal, where the access response indicates that the first mobile terminal accesses the network through the second mobile terminal according to the access code and the available network resource.
The details are described with reference to signaling flow step 507.
Optionally, as shown in fig. 13, in some embodiments of the present invention, the server further includes: a server processing module 1301;
the server processing module 1301 is configured to encrypt the access code according to a preset encryption and decryption rule, where the preset encryption and decryption rule is known to the first mobile terminal and the server;
alternatively, the first and second electrodes may be,
the server processing module 1301 is configured to encrypt the access code according to an encryption and decryption protocol;
the server sending module 1301 is further configured to send an encrypted message to the first mobile terminal, where the encrypted message includes a protocol type of an encryption/decryption protocol, and the encryption/decryption protocol is known to the server and the first mobile terminal.
The details are described with reference to signaling flow steps 607 and 608.
Alternatively, as shown in FIG. 13, in some embodiments of the invention,
the server receiving module 1201 is further configured to receive a candidate access point set sent by the first mobile terminal, where the candidate access point set is obtained by searching for a nearby candidate access point for the first mobile terminal;
the details are described with reference to signaling flow step 705.
The server processing module 1301 is further configured to obtain an available access point set according to the registered access point information and the candidate access point set, where the available access point information in the available access point set is the registered access point information;
the details are described with reference to signaling flow step 706.
The server sending module 1203 is further configured to send the set of available access points to the first mobile terminal.
The details are described with reference to signaling flow step 707.
Optionally, as shown in fig. 13, in some embodiments of the present invention, the server further includes: a storage module 1302;
the server receiving module 1201 is further configured to receive a network sharing instruction sent by the second mobile terminal, where the network sharing instruction includes access point information;
the details are described with reference to signaling flow step 702.
A storage module 1302, configured to store the access point information in the registered access point information.
The details are described with reference to signaling flow step 703.
Alternatively, in some embodiments of the present invention,
the information of the available network resources is the information of available flow;
the server receiving module 1201 is further configured to receive cost information sent by the second mobile terminal, where the cost information is used to indicate a cost that the first mobile terminal needs to pay to use the available network resource;
the details are described with reference to signaling flow step 801.
The server sending module 1203 is further configured to send the cost information to the first mobile terminal, so that the first mobile terminal pays through the payment platform according to the cost information;
the details are described with reference to signaling flow step 801.
The server receiving module 1201 is further configured to, after the first mobile terminal completes payment according to the fee information, receive a payment success response sent by the first mobile terminal;
the details are described with reference to signaling flow step 803.
The server sending module 1203 is further configured to send a payment success response to the second mobile terminal.
The details are described with reference to signaling flow step 803.
Alternatively, in some embodiments of the present invention,
the server receiving module 1201 is further configured to receive a prompt message sent by the second mobile terminal, where the prompt message is used to indicate that a difference between a used flow and an available flow of the first mobile terminal is smaller than a preset value;
the details are described with reference to signaling flow step 901.
The server receiving module 1201 is further configured to receive a traffic increase request sent by the first mobile terminal when the first mobile terminal displays the prompt message to the user and the user indicates to continue using the mobile terminal;
the details are described with reference to signaling flow step 903.
The server sending module 1203 is further configured to send the traffic increase request to the second mobile terminal, so that the second mobile terminal generates additional cost information according to the traffic increase request, where the additional cost information is used to indicate a cost that needs to be paid by the first mobile terminal for requesting the increased traffic;
the details are described with reference to signaling flow step 903.
The server receiving module 1201 is further configured to receive additional cost information sent by the second mobile terminal;
the details are described with reference to signaling flow step 905.
The server sending module 1203 is further configured to send the additional cost information to the first mobile terminal, so that the first mobile terminal pays through the payment platform according to the additional cost information;
the details are described with reference to signaling flow step 905.
The server receiving module 1201 is further configured to receive an additional payment success response sent by the first mobile terminal after the first mobile terminal completes payment according to the additional fee information;
the details are described with reference to signaling flow step 907.
The server sending module 1203 is further configured to send the additional payment success response to the second mobile terminal, so that the second mobile terminal generates a traffic increase response according to the additional payment success response;
the details are described with reference to signaling flow step 907.
The server receiving module 1201 is further configured to receive a traffic increase response sent by the second mobile terminal;
the details are described with reference to signaling flow step 908.
The server sending module 1203 is further configured to send the traffic increase response to the first mobile terminal.
The details are described with reference to signaling flow step 908.
The above describes an embodiment of a modular structure of a mobile terminal, and the following description is made of physical devices, such as a mobile phone, of a first mobile terminal and a second mobile terminal.
As shown in fig. 2, an embodiment of the present invention provides a mobile terminal, including:
the input unit 230, the memory 220, the RF circuit 210, the WiFi module 270, and the processor 280 are connected to each other through a bus, the memory 220 stores computer instructions, and the processor 280 executes the computer instructions, so as to implement the following method:
receiving an access request of a user, wherein the access request carries target access point information;
sending the access request to a second mobile terminal corresponding to the target access point information through the server;
receiving an access response fed back by the second mobile terminal through the server, wherein the access response comprises an access code and information of available network resources, and the available network resources are mobile network resources shared by the second mobile terminal;
and accessing the network through the second mobile terminal according to the access code and the available network resources.
Optionally, in some embodiments of the present invention, the processor 280, by executing the computer instructions, may further implement the following method:
decrypting the access code according to a preset encryption and decryption rule;
alternatively, the first and second electrodes may be,
receiving an encrypted message sent by a server, and determining an encryption and decryption protocol according to the encrypted message, wherein the encrypted message comprises a protocol type of the encryption and decryption protocol;
and decrypting the access code according to the encryption and decryption protocol.
As shown in fig. 3, an embodiment of the present invention provides a server, including:
the wireless network interface 350, the CPU322 and the memory 332 are connected to each other through a bus, the memory 332 stores computer instructions, and the CPU322 executes the computer instructions, thereby implementing the following method:
receiving an access request sent by a first mobile terminal, wherein the access request carries target access point information;
determining a second mobile terminal according to the target access point information;
sending the access request to a second mobile terminal;
receiving an access response fed back by the second mobile terminal, wherein the access response comprises an access code and information of available network resources, and the available network resources are mobile network resources shared by the second mobile terminal;
and sending an access response to the first mobile terminal, wherein the access response indicates that the first mobile terminal accesses the network through the second mobile terminal according to the access code and the available network resources.
Optionally, in some embodiments of the present invention, CPU322, by executing the computer instructions, may further implement the following method:
encrypting the access code according to a preset encryption and decryption rule;
alternatively, the first and second electrodes may be,
encrypting the access code according to an encryption and decryption protocol;
and sending an encrypted message to the first mobile terminal, wherein the encrypted message comprises the protocol type of the encryption and decryption protocol.
The related description may be understood by referring to the related description and effects corresponding to the steps of the signaling flow shown in fig. 5 and fig. 6, which are not repeated herein.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present application.

Claims (14)

1. A method for sharing network resources, comprising:
a first mobile terminal searches nearby candidate access points to obtain a candidate access point set;
the first mobile terminal sends the candidate access point set to a server;
the first mobile terminal receives an available access point set fed back by the server, wherein the available access point set is a subset of the candidate access point set, available access point information in the available access point set is access point information registered in the server, the registered access point information comprises tariff information, and the tariff information is information carried in a network sharing instruction sent to the server by the mobile terminal corresponding to the available access point information;
the first mobile terminal shows the available access point set to a user, wherein the available access point set comprises the access point information and the tariff information;
the first mobile terminal receives an access request from the user, wherein target access point information carried in the access request belongs to the available access point set;
the first mobile terminal sends the access request to a second mobile terminal corresponding to the target access point information through the server, wherein the second mobile terminal is a terminal registered in the server;
the first mobile terminal receives an access response fed back by the second mobile terminal through the server, wherein the access response comprises an access code and information of available network resources, the available network resources are mobile network resources shared by the second mobile terminal, and the information of the available network resources is information of available flow;
the first mobile terminal accesses the network through the second mobile terminal according to the access code and the available network resources;
after the first mobile terminal accesses the network through the second mobile terminal according to the access code and the available network resources, the method further comprises the following steps:
the first mobile terminal receives prompt information sent by the second mobile terminal through the server, wherein the prompt information is used for indicating that a difference value between the used flow of the first mobile terminal and the available flow is smaller than a preset value;
the first mobile terminal displays the prompt information to a user;
if the user indicates to continue using, the first mobile terminal sends a flow increasing request to the second mobile terminal through the server;
the first mobile terminal receives additional cost information sent by the second mobile terminal through the server, wherein the additional cost information is used for indicating the cost required to be paid by the first mobile terminal when the first mobile terminal requests the increased flow;
the first mobile terminal pays through a payment platform according to the additional fee information and receives an additional payment success response;
the first mobile terminal sends the additional payment success response to the second mobile terminal through the server;
and the first mobile terminal receives a traffic increase response sent by the second mobile terminal through the server, wherein the traffic increase response contains information of additional traffic.
2. The method of claim 1, wherein before the first mobile terminal accesses the network through the second mobile terminal according to the access code and the available network resource, the method further comprises:
the first mobile terminal decrypts the access code according to a preset encryption and decryption rule, wherein the preset encryption and decryption rule is known by the first mobile terminal and the server;
alternatively, the first and second electrodes may be,
the first mobile terminal receives an encrypted message sent by the server, and determines an encryption and decryption protocol according to the encrypted message, wherein the encrypted message comprises the protocol type of the encryption and decryption protocol;
and the first mobile terminal decrypts the access code according to the encryption and decryption protocol.
3. The method according to claim 1 or 2, wherein after the first mobile terminal sends the access request to the second mobile terminal corresponding to the target access point information through the server and before the first mobile terminal receives the access response fed back by the second mobile terminal through the server, the method further comprises:
the first mobile terminal receives expense information sent by the second mobile terminal through the server, wherein the expense information is used for indicating the expense to be paid by the first mobile terminal when the first mobile terminal uses the available network resources;
the first mobile terminal pays through a payment platform according to the expense information and receives payment success response;
and the first mobile terminal sends the payment success response to the second mobile terminal through the server.
4. A method for sharing network resources, comprising:
the server receives a network sharing instruction sent by a second mobile terminal, wherein the network sharing instruction comprises access point information and tariff information;
the server stores the access point information and the tariff information into registered access point information;
the server receives a candidate access point set sent by a first mobile terminal, wherein the candidate access point set is obtained by searching nearby candidate access points for the first mobile terminal;
the server obtains an available access point set according to the registered access point information and the candidate access point set, wherein the available access point set comprises available access point information and tariff information, and the available access point information and the tariff information in the available access point set are the registered access point information;
the server sends the set of available access points to the first mobile terminal;
the server receives an access request sent by a first mobile terminal, wherein target access point information carried in the access request belongs to the available access point set;
the server determines a second mobile terminal according to the target access point information, wherein the second mobile terminal is a terminal registered in the server;
the server sends the access request to the second mobile terminal;
the server receives an access response fed back by the second mobile terminal, wherein the access response comprises an access code and information of available network resources, the available network resources are mobile network resources shared by the second mobile terminal, and the information of the available network resources is information of available flow;
the server sends the access response to the first mobile terminal, and the access response indicates that the first mobile terminal accesses the network through the second mobile terminal according to the access code and the available network resources;
after the server sends the access response to the first mobile terminal, the method further includes:
the server receives prompt information sent by the second mobile terminal, wherein the prompt information is used for indicating that the difference value between the used flow of the first mobile terminal and the available flow is smaller than a preset value;
when the first mobile terminal shows the prompt message to a user and the user indicates to continue using, the server receives a flow increasing request sent by the first mobile terminal;
the server sends the flow increasing request to the second mobile terminal, so that the second mobile terminal generates additional cost information according to the flow increasing request, wherein the additional cost information is used for indicating the cost required to be paid by the first mobile terminal for requesting the increased flow;
the server receives additional expense information sent by the second mobile terminal;
the server sends the additional expense information to the first mobile terminal, so that the first mobile terminal pays through a payment platform according to the additional expense information;
after the first mobile terminal finishes payment according to the additional fee information, the server receives an additional payment success response sent by the first mobile terminal;
the server sends the additional payment success response to the second mobile terminal, so that the second mobile terminal generates a flow increasing response according to the additional payment success response;
the server receives a flow increasing response sent by the second mobile terminal;
and the server sends the flow increasing response to the first mobile terminal.
5. The method according to claim 4, wherein before the server sends the access response to the first mobile terminal, the method further comprises:
the server encrypts the access code according to a preset encryption and decryption rule, wherein the preset encryption and decryption rule is known by the first mobile terminal and the server;
alternatively, the first and second electrodes may be,
the server encrypts the access code according to an encryption and decryption protocol;
and the server sends an encrypted message to the first mobile terminal, wherein the encrypted message contains the protocol type of the encryption and decryption protocol, and the encryption and decryption protocol is known by the server and the first mobile terminal.
6. The network resource sharing method according to claim 4 or 5,
after the server sends the access request to the second mobile terminal and before the server sends the access response to the first mobile terminal, the method further comprises:
the server receives expense information sent by the second mobile terminal, wherein the expense information is used for indicating the expense to be paid by the first mobile terminal when the first mobile terminal uses the available network resources;
the server sends the expense information to the first mobile terminal, so that the first mobile terminal pays through a payment platform according to the expense information;
after the first mobile terminal finishes payment according to the expense information, the server receives a payment success response sent by the first mobile terminal;
and the server sends the payment success response to the second mobile terminal.
7. A mobile terminal, comprising:
the searching module is used for searching nearby candidate access points to obtain a candidate access point set;
the terminal sending module is used for sending the candidate access point set to a server;
a terminal receiving module, configured to receive an available access point set fed back by the server, where the available access point set is a subset of the candidate access point set, and available access point information in the available access point set is access point information registered in the server, where the registered access point information includes tariff information, and the tariff information is information carried in a network sharing instruction sent to the server by a mobile terminal corresponding to the available access point information;
a display module, configured to display the available access point set to a user, where the available access point set includes the access point information and the tariff information;
the terminal receiving module is further configured to receive an access request from the user, where target access point information carried in the access request belongs to the available access point set;
the terminal sending module is used for sending the access request to a second mobile terminal corresponding to the target access point information through the server, wherein the access request carries the target access point information, and the second mobile terminal is a terminal registered in the server;
the terminal receiving module is further configured to receive, by the server, an access response fed back by the second mobile terminal, where the access response includes an access code and information of available network resources, the available network resources are mobile network resources shared by the second mobile terminal, and the information of the available network resources is information of available traffic;
the network access module is used for accessing a network through the second mobile terminal according to the access code and the available network resources;
the terminal receiving module is further configured to receive, by the server, a prompt message sent by the second mobile terminal, where the prompt message is used to indicate that a difference between a used flow of the first mobile terminal and the available flow is smaller than a preset value;
the display module is also used for displaying the prompt information to a user;
the terminal sending module is further configured to send a flow increasing request to the second mobile terminal through the server when the user indicates to continue using the mobile terminal;
the terminal receiving module is further configured to receive, by the server, additional cost information sent by the second mobile terminal, where the additional cost information is used to indicate a cost that needs to be paid when the first mobile terminal requests an increased flow;
the mobile terminal further includes: the terminal processing module is used for paying through a payment platform according to the additional fee information and receiving an additional payment success response;
the terminal sending module is further configured to send the additional payment success response to the second mobile terminal through the server;
the terminal receiving module is further configured to receive, through the server, a traffic increase response sent by the second mobile terminal, where the traffic increase response includes information of additional traffic.
8. The mobile terminal of claim 7,
the terminal processing module is further configured to decrypt the access code according to a preset encryption and decryption rule, where the preset encryption and decryption rule is known by the first mobile terminal and the server;
alternatively, the first and second electrodes may be,
the terminal processing module is further configured to receive an encrypted message sent by the server, determine an encryption and decryption protocol according to the encrypted message, where the encrypted message includes a protocol type of the encryption and decryption protocol;
and the terminal processing module is also used for decrypting the access code according to the encryption and decryption protocol.
9. The mobile terminal according to claim 7 or 8,
the terminal receiving module is further configured to receive, by the server, cost information sent by the second mobile terminal, where the cost information is used to indicate a cost that needs to be paid by the first mobile terminal to use the available network resource;
the terminal processing module is also used for paying through a payment platform according to the expense information and receiving a response of successful payment;
the terminal sending module is further configured to send the payment success response to the second mobile terminal through the server.
10. A server, comprising:
the server receiving module is used for receiving a network sharing instruction sent by a second mobile terminal, wherein the network sharing instruction comprises access point information and tariff information;
the storage module is used for storing the access point information and the tariff information into registered access point information;
the server receiving module is further configured to receive a candidate access point set sent by a first mobile terminal, where the candidate access point set is obtained by searching for a nearby candidate access point for the first mobile terminal;
the server processing module is further configured to obtain an available access point set according to the registered access point information and the candidate access point set, where the available access point set includes available access point information and tariff information, and the available access point information and the tariff information in the available access point set are the registered access point information;
a server sending module, configured to send the set of available access points to the first mobile terminal;
the server receiving module is further configured to receive an access request sent by the first mobile terminal, where target access point information carried in the access request belongs to the available access point set;
a determining module, configured to determine a second mobile terminal according to the target access point information, where the second mobile terminal is a terminal registered in the server;
the server sending module is further configured to send the access request to the second mobile terminal;
the server receiving module is further configured to receive an access response fed back by the second mobile terminal, where the access response includes an access code and information of available network resources, the available network resources are mobile network resources shared by the second mobile terminal, and the information of the available network resources is information of available traffic;
the server sending module is further configured to send the access response to the first mobile terminal, where the access response indicates that the first mobile terminal accesses the network through the second mobile terminal according to the access code and the available network resource;
the server receiving module is further configured to receive a prompt message sent by the second mobile terminal, where the prompt message is used to indicate that a difference between a used flow of the first mobile terminal and the available flow is smaller than a preset value;
the server receiving module is further configured to receive a traffic increase request sent by the first mobile terminal when the first mobile terminal displays the prompt message to a user and the user indicates to continue using the first mobile terminal;
the server sending module is further configured to send the traffic increase request to the second mobile terminal, so that the second mobile terminal generates additional cost information according to the traffic increase request, where the additional cost information is used to indicate a cost that needs to be paid by the first mobile terminal for requesting the increased traffic;
the server receiving module is further configured to receive additional cost information sent by the second mobile terminal;
the server sending module is further configured to send the additional cost information to the first mobile terminal, so that the first mobile terminal pays through a payment platform according to the additional cost information;
the server receiving module is further configured to receive an additional payment success response sent by the first mobile terminal after the first mobile terminal completes payment according to the additional fee information;
the server sending module is further configured to send the additional payment success response to the second mobile terminal, so that the second mobile terminal generates a traffic increase response according to the additional payment success response;
the server receiving module is further configured to receive a traffic increase response sent by the second mobile terminal;
the server sending module is further configured to send the traffic increase response to the first mobile terminal.
11. The server according to claim 10, further comprising: a server processing module;
the server processing module is used for encrypting the access code according to a preset encryption and decryption rule, wherein the preset encryption and decryption rule is known by the first mobile terminal and the server;
alternatively, the first and second electrodes may be,
the server processing module is used for encrypting the access code according to an encryption and decryption protocol;
the server sending module is further configured to send an encrypted message to the first mobile terminal, where the encrypted message includes a protocol type of the encryption/decryption protocol, and the encryption/decryption protocol is known to the server and the first mobile terminal.
12. The server according to claim 10 or 11,
the server receiving module is further configured to receive cost information sent by the second mobile terminal, where the cost information is used to indicate a cost that needs to be paid by the first mobile terminal to use the available network resource;
the server sending module is further configured to send the fee information to the first mobile terminal, so that the first mobile terminal pays the fee through a payment platform according to the fee information;
the server receiving module is further configured to receive a payment success response sent by the first mobile terminal after the first mobile terminal completes payment according to the fee information;
the server sending module is further configured to send the payment success response to the second mobile terminal.
13. A mobile terminal, comprising:
the wireless communication device comprises an input unit, a memory, a radio frequency RF circuit, a WiFi module and a processor, wherein the input unit, the radio frequency RF circuit, the WiFi module and the processor are connected with each other through a bus, computer instructions are stored in the memory, and the processor executes the computer instructions, so that the following method is realized:
searching nearby candidate access points to obtain a candidate access point set;
sending the set of candidate access points to a server;
receiving an available access point set fed back by the server, wherein the available access point set is a subset of the candidate access point set, available access point information in the available access point set is access point information registered in the server, the registered access point information comprises tariff information, and the tariff information is information carried in a network sharing instruction sent to the server by a mobile terminal corresponding to the available access point information;
displaying the available access point set to a user, wherein the available access point set comprises the access point information and the tariff information;
receiving an access request from the user, wherein target access point information carried in the access request belongs to the available access point set;
sending the access request to a second mobile terminal corresponding to the target access point information through the server, wherein the second mobile terminal is a terminal registered in the server;
receiving, by the server, an access response fed back by the second mobile terminal, where the access response includes an access code and information of available network resources, where the available network resources are mobile network resources shared by the second mobile terminal, and the information of the available network resources is information of available traffic;
accessing the network through the second mobile terminal according to the access code and the available network resources;
receiving prompt information sent by the second mobile terminal through the server, wherein the prompt information is used for indicating that a difference value between the used flow of the first mobile terminal and the available flow is smaller than a preset value;
displaying the prompt information to a user;
if the user indicates to continue using, sending a flow increasing request to the second mobile terminal through the server;
receiving additional expense information sent by the second mobile terminal through the server, wherein the additional expense information is used for indicating the expense to be paid when the first mobile terminal requests the increased flow;
paying through a payment platform according to the additional fee information, and receiving an additional payment success response;
sending the additional payment success response to the second mobile terminal through the server;
and receiving a traffic increase response sent by the second mobile terminal through the server, wherein the traffic increase response comprises information of additional traffic.
14. A server, comprising:
the wireless network interface, the CPU and the memory are connected with each other through a bus, a computer instruction is stored in the memory, and the processor executes the computer instruction, so that the following method is realized:
receiving a network sharing instruction sent by a second mobile terminal, wherein the network sharing instruction comprises access point information and tariff information;
storing the access point information and the tariff information into registered access point information;
receiving a candidate access point set sent by a first mobile terminal, wherein the candidate access point set is obtained by searching nearby candidate access points for the first mobile terminal;
obtaining an available access point set according to the registered access point information and the candidate access point set, wherein the available access point set comprises available access point information and tariff information, and the available access point information and the tariff information in the available access point set are the registered access point information;
sending the set of available access points to the first mobile terminal;
receiving an access request sent by the first mobile terminal, wherein target access point information carried in the access request belongs to the available access point set;
determining the second mobile terminal according to the target access point information, wherein the second mobile terminal is a terminal registered in the server;
sending the access request to the second mobile terminal;
receiving an access response fed back by the second mobile terminal, wherein the access response comprises an access code and information of available network resources, the available network resources are mobile network resources shared by the second mobile terminal, and the information of the available network resources is information of available flow;
sending the access response to the first mobile terminal, wherein the access response indicates that the first mobile terminal accesses the network through the second mobile terminal according to the access code and the available network resources;
receiving prompt information sent by the second mobile terminal, wherein the prompt information is used for indicating that a difference value between the used flow of the first mobile terminal and the available flow is smaller than a preset value;
when the first mobile terminal shows the prompt information to a user and the user indicates to continue using, receiving a flow increasing request sent by the first mobile terminal;
sending the flow increasing request to the second mobile terminal so that the second mobile terminal generates additional cost information according to the flow increasing request, wherein the additional cost information is used for indicating the cost required to be paid by the first mobile terminal for requesting the increased flow;
receiving additional expense information sent by the second mobile terminal;
sending the additional expense information to the first mobile terminal, so that the first mobile terminal pays through a payment platform according to the additional expense information;
after the first mobile terminal finishes payment according to the additional fee information, receiving an additional payment success response sent by the first mobile terminal;
sending the additional payment success response to the second mobile terminal so that the second mobile terminal generates a flow increasing response according to the additional payment success response;
receiving a flow increasing response sent by the second mobile terminal;
and sending the flow increasing response to the first mobile terminal.
CN201610031455.9A 2016-01-18 2016-01-18 Network resource sharing method, mobile terminal and server Active CN105704712B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610031455.9A CN105704712B (en) 2016-01-18 2016-01-18 Network resource sharing method, mobile terminal and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610031455.9A CN105704712B (en) 2016-01-18 2016-01-18 Network resource sharing method, mobile terminal and server

Publications (2)

Publication Number Publication Date
CN105704712A CN105704712A (en) 2016-06-22
CN105704712B true CN105704712B (en) 2020-06-16

Family

ID=56226475

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610031455.9A Active CN105704712B (en) 2016-01-18 2016-01-18 Network resource sharing method, mobile terminal and server

Country Status (1)

Country Link
CN (1) CN105704712B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106385684B (en) * 2016-09-08 2020-02-07 三星电子(中国)研发中心 Method and device for sharing wireless network and method and device for accessing wireless network
CN107820300A (en) * 2017-11-27 2018-03-20 北京小米移动软件有限公司 Network search method and device
CN108769989B (en) * 2018-05-14 2021-06-18 青岛海信宽带多媒体技术有限公司 Wireless network connection method, wireless access device and equipment
CN109347666B (en) * 2018-10-11 2021-09-14 安徽独角仙信息科技有限公司 Automatic network access configuration method and system for wifi Internet of things equipment
CN110162370B (en) * 2019-05-22 2022-10-14 广州小鹏汽车科技有限公司 Operation method of interactive application program, interactive interface unification method and device thereof
CN110719503A (en) * 2019-09-27 2020-01-21 视联动力信息技术股份有限公司 Data acquisition method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103716393A (en) * 2013-12-27 2014-04-09 深圳天珑无线科技有限公司 Resource sharing method and device and terminal used for LAN communication
CN103731810A (en) * 2013-12-31 2014-04-16 小米科技有限责任公司 Access point sharing method and device
CN104902568A (en) * 2014-03-03 2015-09-09 联想(北京)有限公司 Wireless network resource sharing method and electronic equipment
CN105246046A (en) * 2015-11-13 2016-01-13 Tcl集团股份有限公司 Method and device for sharing flow of mobile terminal

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103179500A (en) * 2013-01-18 2013-06-26 南京安讯科技有限责任公司 Mobile phone traffic sharing method
CN104918288B (en) * 2014-03-11 2019-02-05 中国移动通信集团公司 A kind of flow sharing method, equipment and system
CN104125307A (en) * 2014-08-15 2014-10-29 广东欧珀移动通信有限公司 Data flow sharing method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103716393A (en) * 2013-12-27 2014-04-09 深圳天珑无线科技有限公司 Resource sharing method and device and terminal used for LAN communication
CN103731810A (en) * 2013-12-31 2014-04-16 小米科技有限责任公司 Access point sharing method and device
CN104902568A (en) * 2014-03-03 2015-09-09 联想(北京)有限公司 Wireless network resource sharing method and electronic equipment
CN105246046A (en) * 2015-11-13 2016-01-13 Tcl集团股份有限公司 Method and device for sharing flow of mobile terminal

Also Published As

Publication number Publication date
CN105704712A (en) 2016-06-22

Similar Documents

Publication Publication Date Title
CN105704712B (en) Network resource sharing method, mobile terminal and server
US11449955B2 (en) Information processing method and apparatus
CN112492589B (en) Method and device for accessing equipment identifier
CN106332307B (en) Method for accessing application program to network and mobile terminal
US10304461B2 (en) Remote electronic service requesting and processing method, server, and terminal
WO2017198161A1 (en) Network connection method, apparatus, storage medium, and terminal
CN105471931B (en) Method, device and system for inquiring service data
CN110622571B (en) Network connection method, device and terminal
WO2018161962A1 (en) Method, electronic device and system for sharing images
CN106550361B (en) Data transmission method, equipment and computer readable storage medium
CN111064713B (en) Node control method and related device in distributed system
CN108834132B (en) Data transmission method and equipment and related medium product
WO2019184016A1 (en) Sim card authentication method and terminal
CN108702625B (en) Method, device and terminal for establishing wireless local area network connection
CN104392350A (en) Virtual resource data processing method, device and system
CN113038434B (en) Device registration method and device, mobile terminal and storage medium
CN113158198A (en) Access control method, device, terminal equipment and storage medium
CN108848492B (en) Method, device, terminal and storage medium for starting user identity identification card
CN111357255B (en) Building a trusted application common to multiple applications
CN107465646B (en) A kind of application method for down loading, system and relevant device
CN109801136B (en) Food ordering method, system, terminal, server and medium for preventing malicious ordering
CN109600340B (en) Operation authorization method, device, terminal and server
WO2017166976A1 (en) Method, device, and system for distributing and verifying application service
CN107148011B (en) Method, device and system for executing target service
CN107995150B (en) Identity verification method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant