Method and system for switching uplink channels of dual-card dual-pass mobile terminal
Technical Field
The invention belongs to the technical field of communication, and particularly relates to a method and a system for switching uplink channels of a dual-card dual-pass mobile terminal.
Background
When the dual-card bi-pass mobile terminal accesses the internet service, a main card bearing service is generally selected, an auxiliary card bearing service can also be selected manually, and the main card or the auxiliary card is not selected in a targeted manner according to the current network condition of the main card, the network condition of the auxiliary card and the accessed internet service condition. When the mobile terminal accesses the internet service through the main card, if the uplink channel of the main card fails, if the uplink signal is weak and not enough to transmit data, and the downlink channel is good, the uplink channel cannot transmit data, and the idle condition of the downlink channel occurs, so that the user access the internet service is paused, and the user experience is poor.
Disclosure of Invention
Aiming at the problems in the prior art, the invention provides a method and a system for switching an uplink channel of a dual-card dual-pass mobile terminal. The uplink channel switching method can be switched to the 3G/2G card to transmit uplink channel data when the 4G card uplink channel fails, so that the uplink channel can normally transmit data, the mobile terminal can access internet services without pause, and user experience is improved.
The invention provides a method for switching uplink channels of a dual-card bi-pass mobile terminal, wherein the dual cards are a 4G card and a 3G/2G card, the uplink channel is a channel for accessing Internet services by the mobile terminal, and the mobile terminal defaults to bear the uplink channel services by the 4G card, and the method comprises the following steps:
judging whether the uplink channel has a fault;
and if so, switching the uplink channel, and switching the mobile terminal to a 3G/2G card for bearing the uplink channel service.
Preferably, the performing the uplink channel switching, and switching the mobile terminal to have the 3G/2G card carry the uplink channel service includes:
MME sends the uplink channel switching request to PDN GW; the request comprises the IMSI of the 4G card and the IMSI of the 3G/2G card;
PDN GW sends out data service paging request to GGSN; the destination address of the request is IMSI of the 3G/2G card, and the type of the data service is unilateral uplink connection;
after receiving the paging request, the 3G/2G card sends an attachment request to the GGSN; the connection specified in the request is a single-side uplink connection;
GGSN allocates IP address for 3G/2G card and informs PDN GW single side up connection allocated IP address;
the GGSN informs the 3G/2G card to carry out the uplink channel switching, and the 3G/2G card sends out the uplink channel switching request;
sending the uplink data sent to the Internet to the 3G/2G card;
the 3G/2G card sends the uplink data to the GGSN, and the GGSN forwards the uplink data to PDN GW;
and the PDN GW converts the source IP address of the 3G/2G card in the uplink data into the source IP address of the 4G card and sends the source IP address of the 4G card to an internet service destination address.
Preferably, before the determining whether the uplink channel fails, the method further includes:
sending a message to an MME, wherein the message comprises the type of the mobile terminal is a dual-card dual-call terminal, the 4G card is a main card, the IMSI of the 4G card, the 3G/2G card is a secondary card and the IMSI of the 3G/2G card;
the MME associates the IMSI of the 4G card with the IMSI of the 3G/2G card;
sending the message to the MSC;
the MSC associates the IMSI of the 4G card with the IMSI of the 3G/2G card.
Preferably, after the performing the uplink channel switching and switching the mobile terminal to bear the uplink channel service by the 3G/2G card, the method further includes:
sending downlink data sent to the mobile terminal to a PDN GW, and sending the downlink data to a 4G card by the PDN GW according to a source IP address of the 4G card;
and the 4G card sends the downlink data to an application program.
Preferably, the determining whether the uplink channel fails includes:
monitoring the data transmission condition of the uplink channel in real time;
judging whether the uplink channel has data to be sent to the Internet within a set time;
if yes, the uplink channel is normal; and if not, the uplink channel fails.
The invention also provides a system for switching the uplink channel of the dual-card dual-pass mobile terminal, wherein the dual cards are a 4G card and a 3G/2G card, the uplink channel is a channel for the mobile terminal to access the Internet service, and the mobile terminal defaults to bear the uplink channel service by the 4G card, and the system comprises: the judging module is used for judging whether the uplink channel has a fault;
and the switching module is used for switching the uplink channel and switching the mobile terminal to a 3G/2G card bearing uplink channel service when the judgment result of the judgment module is yes.
Preferably, the switching module includes:
a switching request unit, configured to send the uplink channel switching request to the PDN GW by the MME; the request comprises the IMSI of the 4G card and the IMSI of the 3G/2G card;
a paging request unit, configured to send a data service paging request to the GGSN by the PDN GW; the destination address of the request is IMSI of the 3G/2G card, and the type of the data service is unilateral uplink connection;
an attachment request unit, which is used for the 3G/2G card to send an attachment request to the GGSN after receiving the paging request; the connection specified in the request is a single-side uplink connection;
a distribution informing unit, which is used for GGSN to distribute IP address for 3G/2G card and inform PDN GW unilateral uplink connection distributed IP address;
a notification switching unit, configured to notify, by the GGSN, the 3G/2G card to perform the uplink channel switching, where the 3G/2G card sends the uplink channel switching request;
the communication unit is used for sending the uplink data sent to the Internet to the 3G/2G card;
the data forwarding unit is used for the 3G/2G card to send the uplink data to the GGSN, and the GGSN forwards the uplink data to the PDN GW;
and the address conversion unit is used for the PDN GW to convert the source IP address of the 3G/2G card in the uplink data into the source IP address of the 4G card and send the source IP address of the 4G card to the internet service destination address.
Preferably, the method further comprises the following steps:
the communication module is used for sending a message to an MME, wherein the message comprises the type of the mobile terminal, the type of the mobile terminal is a dual-card dual-call terminal, the type of the mobile terminal is a 4G card is a main card, the type of the mobile terminal is an IMSI of the 4G card, the type of the mobile terminal is a 3G/2G card is an auxiliary card, and the type of the mobile terminal is an IMSI of the 3G/2G card; and is also used for sending the message to MSC;
the association module is used for associating the IMSI of the 4G card with the IMSI of the 3G/2G card by the MME; and the MSC is also used for associating the IMSI of the 4G card with the IMSI of the 3G/2G card.
Preferably, the mobile terminal further comprises a sending module, configured to send downlink data sent to the mobile terminal to the PDN GW, where the PDN GW sends the downlink data to the 4G card according to a source IP address of the 4G card;
the communication module is also used for the 4G card to send the downlink data to an application program.
Preferably, the judging module includes:
the monitoring unit is used for monitoring the data transmission condition of the uplink channel in real time;
the judging unit is used for judging whether the uplink channel has data to be sent to the Internet within set time;
and the determining unit is used for determining that the uplink channel is normal when the judgment result of the judging unit is yes, and determining that the uplink channel has a fault when the judgment result of the judging unit is no.
The invention has the beneficial effects that: according to the method for switching the uplink channel of the dual-card bi-pass mobile terminal, when the uplink channel fails, the uplink channel is switched, the mobile terminal is switched to the 3G/2G card to carry the uplink channel service, and the uplink channel of the 4G card can be switched to the 3G/2G card to transmit uplink channel data when the uplink channel of the 4G card fails, so that the uplink channel can normally transmit data, the mobile terminal can access the internet service without pause, and user experience is improved.
According to the dual-card bi-pass mobile terminal uplink channel switching system, the judgment module and the switching module are arranged, when the 4G card uplink channel fails, the 3G/2G card uplink channel can be switched to transmit uplink channel data, so that the uplink channel can normally transmit data, the mobile terminal can access internet services without pause, and user experience is improved.
Drawings
Fig. 1 is a flowchart of an uplink channel switching method for a dual-card dual-pass mobile terminal in embodiment 1 of the present invention;
fig. 2 is a detailed flowchart of step S11 in the method for switching uplink channels of a dual-card dual-pass mobile terminal according to embodiment 2 of the present invention;
fig. 3 is a schematic block diagram of an uplink channel switching system of a dual-card dual-pass mobile terminal in embodiment 3 of the present invention.
Detailed Description
In order to make those skilled in the art better understand the technical solution of the present invention, the following describes in detail a method and a system for switching uplink channels of a dual-card dual-pass mobile terminal according to the present invention with reference to the accompanying drawings and the detailed description.
Example 1:
the embodiment provides a method for switching uplink channels of a dual-card bi-pass mobile terminal, where the dual cards are a 4G card and a 3G/2G card, the uplink channel is a channel for the mobile terminal to access an internet service, the mobile terminal defaults to have the 4G card carry the uplink channel service, the 4G card is a main card, and the 3G/2G card is an auxiliary card. The uplink channel switching method comprises the following steps: as shown in figure 1 of the drawings, in which,
step S10: and judging whether the uplink channel has a fault.
If so, go to step S11: and performing uplink channel switching, and switching the mobile terminal to bear the uplink channel service by the 3G/2G card.
The dual-card dual-pass mobile terminal has a dual-standby function, wherein the dual-card means that when two USIM/SIM cards support different network formats, the mobile terminal supports the two USIM/SIM cards to register successfully on two networks respectively and to standby simultaneously; when the two USIM/SIM cards support the same network system, the mobile terminal supports the two USIM/SIM cards to register successfully on the same network respectively and stand by at the same time.
When the uplink channel fails, the dual-card bi-pass mobile terminal switches the uplink channel to bear the uplink channel service through the 3G/2G card, and can switch to the 3G/2G card to transmit uplink channel data when the 4G card uplink channel fails, so that the uplink channel can normally transmit data, the mobile terminal can access the internet service without pausing, and user experience is improved.
Example 2:
on the basis of embodiment 1, this embodiment provides an uplink channel switching method for a dual-card dual-pass mobile terminal, where the uplink channel switching method further includes, before step S10:
step S06: and sending a message to the MME, wherein the message comprises the type of the mobile terminal is a dual-card dual-call terminal, the 4G card is a main card, the IMSI of the 4G card, the 3G/2G card is a secondary card and the IMSI of the 3G/2G card.
Step S07: the MME associates the IMSI of the 4G card with the IMSI of the 3G/2G card.
Step S08: the message is sent to the MSC.
Step S09: the MSC associates the IMSI of the 4G card with the IMSI of the 3G/2G card.
Steps S06-S09 are ready for performing uplink channel switching when the uplink channel fails, so that the mobile terminal can smoothly switch to the 3G/2G card to carry the uplink channel service when the uplink channel fails.
In this embodiment, step S10: judging whether the uplink channel has a fault specifically comprises: step S101: and monitoring the data sending condition of the uplink channel in real time.
Step S102: and judging whether the uplink channel has data to be sent to the Internet within the set time. If so, the uplink channel is normal; if not, the uplink channel fails.
The eNodeB monitors the data transmission condition of the uplink channel in real time and judges whether the uplink channel fails or not according to the data transmission condition.
If the judgment result of the step S10 is YES, the step S11 is executed: and performing uplink channel switching, and switching the mobile terminal to bear the uplink channel service by the 3G/2G card. Wherein, step S11 specifically includes: as shown in figure 2 of the drawings, in which,
step S110: MME sends an uplink channel switching request to PDN GW; the request contains the IMSI of the 4G card and the IMSI of the 3G/2G card.
Step S111: PDN GW sends out data service paging request to GGSN; the destination address of the request is IMSI of the 3G/2G card, and the type of the data service is unilateral uplink connection.
Step S112: after receiving the paging request, the 3G/2G card sends an attachment request to the GGSN; the connection specified in the request is a single-sided uplink connection.
Step S113: and the GGSN allocates IP addresses for the 3G/2G cards and informs the PDN GW of the IP addresses allocated by unilateral uplink connection.
Step S114: the GGSN informs the 3G/2G card to carry out the uplink channel switching, and the 3G/2G card sends out an uplink channel switching request.
Step S115: and sending the uplink data sent to the Internet to the 3G/2G card.
Step S116: and the 3G/2G card sends the uplink data to the GGSN, and the GGSN forwards the uplink data to the PDN GW.
Through steps S110 to S116, the uplink channel of the mobile terminal is switched, so that the uplink channel that originally fails can normally transmit data.
Step S117: and the PDN GW converts the source IP address of the 3G/2G card in the uplink data into the source IP address of the 4G card and sends the source IP address of the 4G card to the destination address of the Internet service.
Since the downlink data of the mobile terminal is originally carried by the 4G card, and the uplink channel data is switched to be transmitted by the 3G/2G card after the uplink channel fails, the data transmitted to the mobile terminal by the internet still needs to be transmitted by the 4G card after the uplink channel data is normally transmitted to the internet because the downlink channel is normal, and step S117 is ready for transmitting the data by the downlink channel of the mobile terminal.
In this embodiment, after step S11, the method further includes:
step S12: and sending the downlink data sent to the mobile terminal to the PDN GW, and sending the downlink data to the 4G card by the PDN GW according to the source IP address of the 4G card.
Step S13: and the 4G card sends the downlink data to the application program.
The steps S12-S13 realize the normal transmission of the downlink channel data of the mobile terminal.
Advantageous effects of examples 1 to 2: in the method for switching uplink channels of a dual-card bi-pass mobile terminal provided in embodiment 1-2, when an uplink channel fails, the uplink channel is switched to a 3G/2G card to carry an uplink channel service, and when the uplink channel of the 4G card fails, the uplink channel can be switched to the 3G/2G card to transmit uplink channel data, so that the uplink channel can be maintained to normally transmit data, and thus the mobile terminal cannot pause when accessing the internet service, and user experience is improved.
Example 3:
based on the dual-card dual-pass mobile terminal uplink channel switching method provided in embodiment 2, this embodiment provides a dual-card dual-pass mobile terminal uplink channel switching system, where the dual cards are a 4G card and a 3G/2G card, the uplink channel is a channel through which the mobile terminal accesses an internet service, and the mobile terminal defaults to have the 4G card carry the uplink channel service, and the uplink channel switching system includes: as shown in fig. 3, the determining module 1 is configured to determine whether the uplink channel fails. And the switching module 2 is configured to perform uplink channel switching when the determination result of the determining module 1 is yes, and switch the mobile terminal to a 3G/2G card bearing an uplink channel service.
Wherein, the judging module 1 includes: and the monitoring unit 11 is configured to monitor a data sending situation of the uplink channel in real time. And the judging unit 12 is used for judging whether the uplink channel has data to be sent to the internet within the set time. A determining unit 13, configured to determine that the uplink channel is normal when the determination result of the determining unit 12 is yes, and determine that the uplink channel is faulty when the determination result of the determining unit 12 is no.
In this embodiment, the switching module 2 includes: a switching request unit 21, configured to send an uplink channel switching request to the PDN GW by the MME; the request contains the IMSI of the 4G card and the IMSI of the 3G/2G card. A paging request unit 22, configured to send a data service paging request to the GGSN by the PDN GW; the destination address of the request is IMSI of the 3G/2G card, and the type of the data service is unilateral uplink connection. An attachment request unit 23, configured to send an attachment request to the GGSN after the 3G/2G card receives the paging request; the connection specified in the request is a single-sided uplink connection. And an allocation notifying unit 24, configured to allocate an IP address to the 3G/2G card by the GGSN, and notify the PDN GW of the IP address allocated for the unilateral uplink connection. A notification switching unit 25, configured to notify the 3G/2G card to perform uplink channel switching by the GGSN, where the 3G/2G card sends an uplink channel switching request. And the communication unit 26 is used for sending the uplink data sent to the Internet to the 3G/2G card. And the data forwarding unit 27 is used for the 3G/2G card to send the uplink data to the GGSN, and the GGSN forwards the uplink data to the PDN GW. And an address conversion unit 28, configured to the PDN GW convert the source IP address of the 3G/2G card in the uplink data into the source IP address of the 4G card, and send the source IP address of the 4G card to an internet service destination address.
The switching request unit 21, the paging request unit 22, the attachment request unit 23, the allocation notification unit 24, the notification switching unit 25, the communication unit 26, and the data forwarding unit 27 are arranged to switch the uplink channel of the mobile terminal, so that the uplink channel which originally fails can normally transmit data. The address translation unit 28 is arranged to prepare the mobile terminal for downstream channel transmission of data.
In this embodiment, the uplink channel switching system further includes a communication module 3, configured to send a message to the MME, where the message includes a mobile terminal type of a dual-card dual-active terminal, a 4G card as a primary card, an IMSI of the 4G card, a 3G/2G card as a secondary card, and an IMSI of the 3G/2G card; and is also used for sending the above message to the MSC. The association module 4 is used for the MME to associate the IMSI of the 4G card with the IMSI of the 3G/2G card; and the MSC is also used for associating the IMSI of the 4G card with the IMSI of the 3G/2G card.
The communication module 3 and the association module 4 are arranged to prepare for switching the uplink channel when the uplink channel fails, so that the mobile terminal can be smoothly switched to the 3G/2G card to carry the uplink channel service when the uplink channel fails.
In this embodiment, the uplink channel switching system further includes a sending module 5, configured to send downlink data sent to the mobile terminal to the PDN GW, where the PDN GW sends the downlink data to the 4G card according to the source IP address of the 4G card. The communication module 3 is also used for the 4G card to send the downlink data to the application program.
The sending module 5 and the communication module 3 are arranged to realize the normal transmission of the downlink channel data of the mobile terminal.
Beneficial effects of example 3: the dual-card bi-pass mobile terminal uplink channel switching system provided in embodiment 3, by setting the determining module and the switching module, can switch to the 3G/2G card to transmit uplink channel data when the 4G card uplink channel fails, so as to keep the uplink channel capable of normally transmitting data, and further prevent the mobile terminal from pausing when accessing internet services, thereby improving user experience.
It will be understood that the above embodiments are merely exemplary embodiments taken to illustrate the principles of the present invention, which is not limited thereto. It will be apparent to those skilled in the art that various modifications and improvements can be made without departing from the spirit and substance of the invention, and these modifications and improvements are also considered to be within the scope of the invention.