WO2017107355A1 - 一种网络模式配置方法及移动终端 - Google Patents

一种网络模式配置方法及移动终端 Download PDF

Info

Publication number
WO2017107355A1
WO2017107355A1 PCT/CN2016/080598 CN2016080598W WO2017107355A1 WO 2017107355 A1 WO2017107355 A1 WO 2017107355A1 CN 2016080598 W CN2016080598 W CN 2016080598W WO 2017107355 A1 WO2017107355 A1 WO 2017107355A1
Authority
WO
WIPO (PCT)
Prior art keywords
card
mobile terminal
network
protocol stack
mode value
Prior art date
Application number
PCT/CN2016/080598
Other languages
English (en)
French (fr)
Inventor
贺志辉
刘勇
Original Assignee
宇龙计算机通信科技(深圳)有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 宇龙计算机通信科技(深圳)有限公司 filed Critical 宇龙计算机通信科技(深圳)有限公司
Publication of WO2017107355A1 publication Critical patent/WO2017107355A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/18Processing of user or subscriber data, e.g. subscribed services, user preferences or user profiles; Transfer of user or subscriber data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/18Processing of user or subscriber data, e.g. subscribed services, user preferences or user profiles; Transfer of user or subscriber data
    • H04W8/183Processing at user equipment or user record carrier
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/02Arrangements for optimising operational condition
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/02Terminal devices
    • H04W88/06Terminal devices adapted for operation in multiple networks or having at least two operational modes, e.g. multi-mode terminals

Definitions

  • the present invention relates to the field of network configuration technologies, and in particular, to a network mode configuration method and a mobile terminal.
  • the card slot 2 is inserted into the SIM (Subscriber Identity Module) card and generally only supports the GSM (Global System for Mobile Communication) network, providing simple voice.
  • GSM Global System for Mobile Communication
  • the hardware implementation manner is to control the card slot switching of the hardware, or manually switch the card 2 to the card slot 1 and then reboot, to achieve the purpose of high-standard network, such as 4G switching; in the software implementation manner, the first implementation manner is The purpose of the card 2 is to access the high-standard network by switching the underlying protocol stack.
  • the second implementation method is to integrate the existing MBN (Modem Software Configuration, modem software configuration, Qualcomm introduced to meet multi-vendor, multi-network Type, multi-purpose Modem software configuration scheme)
  • MBN Modem Software Configuration, modem software configuration, Qualcomm introduced to meet multi-vendor, multi-network Type, multi-purpose Modem software configuration scheme
  • the full Netcom solution and the 4G software switching solution are switched, and the free switching function of different network standards of the three networks is realized by pure software.
  • the hardware implementation cost is high and the reliability is low.
  • the first implementation manner can only be applied to the SIM card of the same carrier. Switching; the second implementation can switch the dual-card 4G freely by switching the data master card, but this solution does not support the hot-swap card-switching SIM card 4G function.
  • the invention provides a network mode configuration method and a mobile terminal, so that the mobile terminal is powered on or hot
  • the 4G main card of the mobile terminal and its network mode are automatically configured, which is beneficial to improving the flexibility of the network mode switching of the mobile terminal and improving the user experience.
  • a first aspect of the embodiments of the present invention provides a network mode configuration method, including:
  • the mobile terminal determines, according to the card attribute information of the at least one SIM card, the mobile terminal. 4G main card;
  • the mobile terminal updates the network protocol stack of the 4G primary card to a network protocol stack that matches the network mode value.
  • the method further includes:
  • the mobile terminal switches the data main card of the mobile terminal to the 4G main card after updating the network protocol stack; and sets the data main card to the 4G protocol stack main card, which ensures that the 4G main card can start the network data by 4G. Dialing, and avoiding the problem that the data master card switching speed is slow due to the switching of the data master card simultaneously switching the 4G master card. It is beneficial to improve the switching efficiency of the data master card.
  • the mobile terminal updates a modem software configuration MBN file in the modem Modem of the mobile terminal to an MBN file that matches the network mode value. In this way, ensure that the 4G primary card is properly networked and data dialed.
  • the network protocol stack of the 4G primary card is updated. After the network protocol stack matching the network mode value, the method further includes:
  • the mobile terminal transmits the network mode value to a modem Modem of the mobile terminal to activate the 4G primary card.
  • the network protocol stack that updates the 4G primary card is the network A network protocol stack with matching pattern values, including:
  • the network mode of the mobile terminal in the SIM card information data table simInfo of the mobile terminal Setting an NwMode field to store the network mode value;
  • the mobile terminal updates the network in the Setting.db when it detects that the network mode value of the NwMode field does not match the pre-stored network mode value in the SIM card network mode setting table Setting.db of the mobile terminal.
  • the mode value is a network mode value of the NwMode field;
  • the mobile terminal updates the network protocol stack of the 4G primary card to a network protocol stack that matches the network mode value in the Setting.db.
  • the specific implementation manner of the network protocol stack that the mobile terminal updates the network protocol stack of the 4G primary card to match the network mode value in the Setting.db includes: the mobile terminal detects the mobile terminal Updating the protocol stack configuration information of the 4G primary card in the modem modem to the network mode value in the Setting.db, updating the network protocol stack of the 4G primary card to the network in the Setting.db A network protocol stack with matching pattern values.
  • the determining, by the card attribute information of the at least one SIM card, the moving The 4G main card of the terminal including:
  • the mobile terminal determines that the SIM card is a 4G primary card of the mobile terminal;
  • the at least one SIM card When the number of the at least one SIM card is 2, that is, the at least one SIM card includes a first SIM card inserted into the first card slot and a second SIM card inserted into the second card slot, The mobile terminal determines that the SIM card selected by the user is the 4G primary card of the mobile terminal.
  • a second aspect of the embodiment of the present invention discloses a mobile terminal, including:
  • a primary card determining unit configured to determine, according to the card attribute information of the at least one SIM card, when the location identification information of the at least one SIM card in the card slot of the mobile terminal does not match the location identification information of the pre-stored SIM card
  • the 4G primary card of the mobile terminal
  • a mode determining unit configured to determine, according to a mapping relationship between a type of the pre-stored SIM card and a network mode value, and a type of the 4G primary card, a network mode value corresponding to the type of the 4G primary card;
  • a protocol stack update unit configured to update a network protocol stack of the 4G primary card to be a network protocol stack that matches the network mode value.
  • the mobile terminal further includes:
  • a data master card switching unit configured to update the network of the 4G master card in the protocol stack update unit After the protocol stack is a network protocol stack matching the network mode value, the data master card of the mobile terminal is switched to the 4G primary card after the updated network protocol stack;
  • a chip configuration unit configured to update a modem software configuration MBN file in the modem Modem of the mobile terminal to be an MBN file that matches the network mode value.
  • the mobile terminal further includes:
  • a primary card activation unit configured to: after the protocol stack update unit updates a network protocol stack of the 4G primary card to a network protocol stack that matches the network mode value, the data primary card switching unit switches the mobile terminal The data master card is sent to the modem Modem of the mobile terminal to activate the 4G master card before the data master card is on the 4G master card after updating the network protocol stack.
  • the protocol stack update unit is specifically configured to:
  • the network protocol stack that updates the 4G primary card is a network protocol stack that matches the network mode value in the Setting.db.
  • the primary card determining unit is specifically configured to:
  • the number of the at least one SIM card is 1, determining that the SIM card is a 4G primary card of the mobile terminal;
  • the at least one SIM card When the number of the at least one SIM card is 2, that is, the at least one SIM card includes a first SIM card inserted into the first card slot and a second SIM card inserted into the second card slot, then determining The SIM card selected by the user is the 4G primary card of the mobile terminal.
  • the mobile terminal when detecting that the location identifier information of the at least one SIM card in the card slot of the mobile terminal does not match the location identifier information of the pre-stored SIM card, the mobile terminal determines the mobile according to the card attribute information of the at least one SIM card.
  • Terminal 4G master card secondly, according to the class of pre-stored SIM card The mapping relationship between the type and the network mode value, and the type of the 4G primary card, determine the network mode value corresponding to the type of the 4G primary card, and finally, update the network protocol stack of the 4G primary card to the network protocol stack that matches the network mode value. .
  • the mobile terminal can automatically configure the 4G main card of the mobile terminal and its network mode, which is beneficial to improving the flexibility of the network mode switching of the mobile terminal and improving the user experience.
  • FIG. 1 is a schematic flowchart of a network mode configuration method according to a first embodiment of the present invention
  • FIG. 2 is a schematic flowchart of a network mode configuration method according to a second embodiment of the present invention.
  • FIG. 3 is a schematic flowchart of a network mode configuration method according to a third embodiment of the present invention.
  • FIG. 4 is a schematic structural diagram of a mobile terminal according to a fourth embodiment of the present invention.
  • FIG. 5 is a schematic structural diagram of a mobile terminal according to a fifth embodiment of the present invention.
  • references to "an embodiment” herein mean that a particular feature, structure, or characteristic described in connection with the embodiments can be included in at least one embodiment of the invention.
  • the appearances of the phrases in various places in the specification are not necessarily referring to the same embodiments, and are not exclusive or alternative embodiments that are mutually exclusive. Those skilled in the art will understand and implicitly understand that the embodiments described herein can be combined with other embodiments.
  • the invention provides a network mode configuration method and a mobile terminal, so that the mobile terminal automatically configures the 4G main card of the mobile terminal and the network mode thereof when the mobile terminal is powered on or hot swapped, which is beneficial to improving the compliance of the mobile terminal network mode switching. Sexuality, enhance the user experience.
  • the mobile terminal described in the embodiments of the present invention may include a handheld device having a wireless communication function, an in-vehicle device, a wearable device, a computing device, or other processing device connected to the wireless modem, and various forms of user equipment (User Equipment, a mobile station (Mobile Station, MS for short), a terminal (terminal), a terminal device (Terminal Equipment), etc., is installed with an Android Android operating system, and the mobile terminal is provided with a first card slot and a second card.
  • user equipment User Equipment
  • a mobile station Mobile Station, MS for short
  • terminal terminal
  • Terminal device Terminal Equipment
  • FIG. 1 is a flowchart of a network mode configuration method according to a first embodiment of the present invention. As shown in FIG. 1 , the network mode configuration method may specifically include the following steps:
  • the mobile terminal determines the mobile according to the card attribute information of the at least one SIM card. 4G main card of the terminal;
  • the card attribute information includes the number, type, and location identifier information of the at least one SIM card, the card slot includes a first card slot and a second card slot, and the location identifier information includes an integrated circuit card of the SIM card.
  • the number of the at least one SIM card is 1, determining that the SIM card is a 4G primary card of the mobile terminal;
  • the at least one SIM card When the number of the at least one SIM card is 2, that is, the at least one SIM card includes a first SIM card inserted into the first card slot and a second SIM card inserted into the second card slot, then determining The SIM card selected by the user is the 4G primary card of the mobile terminal. or,
  • the SIM card When the number of the at least one SIM card is 2, that is, the at least one SIM card includes a first SIM card inserted into the first card slot and a second SIM card inserted into the second card slot, the SIM is The SIM card of the type of the card is a 4G master card of the mobile terminal.
  • a SIM card other than the 4G primary card is a secondary card of the mobile terminal.
  • the mobile terminal determines, according to a mapping relationship between a pre-stored type of the SIM card and a network mode value, and a type of the 4G primary card, a network mode value corresponding to the type of the 4G primary card.
  • mapping relationship between the type of the pre-stored SIM card and the network mode value may be as follows:
  • the mobile terminal updates a network protocol stack of the 4G primary card to a network protocol stack that matches the network mode value.
  • the specific implementation manner of the network protocol stack that the mobile terminal updates the network protocol stack of the 4G primary card to match the network mode value includes:
  • the mobile terminal stores the network mode value in a network mode configuration NwMode field of a SIM card information data table simInfo of the mobile terminal;
  • simInfo.NwMode NETWORK_MODE_LTE_CDMA_EVDO;
  • simInfo.NwMode NETWORK_MODE_TD_SCDMA_GSM_LTE;
  • simInfo.NwMode NETWORK_MODE_LTE_GSM_WCDMA;
  • simInfo.NwMode NETWORK_MODE_TD_SCDMA_LTE_CDMA_EVDO_GSM_WCDMA is set.
  • the network mode value may be configured for the secondary card, and the specific process is the same as the step of configuring the 4G primary card.
  • the mobile terminal updates the network in the Setting.db when it detects that the network mode value of the NwMode field does not match the pre-stored network mode value in the SIM card network mode setting table Setting.db of the mobile terminal.
  • the mode value is a network mode value of the NwMode field;
  • the mobile terminal updates the network protocol stack of the 4G primary card to a network protocol stack that matches the network mode value in the Setting.db.
  • the specific implementation manner of the network protocol stack that the mobile terminal updates the network protocol stack of the 4G primary card to match the network mode value in the Setting.db includes:
  • the mobile terminal acquires a network mode value in the Setting.db by calling a dual card 4G switching entry function of the mobile terminal;
  • the mobile terminal detects whether protocol stack configuration information of the 4G primary card in the modem Modem of the mobile terminal matches a network mode value in the Setting.db;
  • the mobile terminal when the mobile terminal detects that the location identification information of the at least one SIM card in the card slot of the mobile terminal does not match the location identification information of the pre-stored SIM card, the mobile terminal performs the card according to the at least one SIM card.
  • the attribute information determines the 4G primary card of the mobile terminal, and secondly, determines the network mode value corresponding to the type of the 4G primary card according to the mapping relationship between the type of the pre-stored SIM card and the network mode value, and the type of the 4G primary card.
  • the network protocol stack of the updated 4G primary card is a network protocol stack that matches the network mode value.
  • FIG. 2 is a flowchart of a network mode configuration method according to a second embodiment of the present invention. As shown in FIG. 2, the network mode configuration method may specifically include the following steps:
  • the mobile terminal determines, according to the card attribute information of the at least one SIM card, when the location identifier information of the at least one SIM card in the card slot of the mobile terminal does not match the location identifier information of the pre-stored SIM card.
  • the 4G main card of the mobile terminal
  • the card attribute information includes the number, type, and location identifier information of the at least one SIM card, the card slot includes a first card slot and a second card slot, and the location identifier information includes an integrated circuit card of the SIM card.
  • the mobile terminal determines, according to a mapping relationship between a pre-stored type of the SIM card and a network mode value, and a type of the 4G primary card, a network mode value corresponding to the type of the 4G primary card.
  • the mobile terminal updates the network protocol stack of the 4G primary card to a network protocol stack that matches the network mode value.
  • the specific implementation manner of the network protocol stack that the mobile terminal updates the network protocol stack of the 4G primary card to match the network mode value includes:
  • the mobile terminal stores the network mode value in a network mode configuration NwMode field of a SIM card information data table simInfo of the mobile terminal;
  • the mobile terminal updates the network in the Setting.db when it detects that the network mode value of the NwMode field does not match the pre-stored network mode value in the SIM card network mode setting table Setting.db of the mobile terminal.
  • the mode value is a network mode value of the NwMode field;
  • the mobile terminal updates the network protocol stack of the 4G primary card to a network protocol stack that matches the network mode value in the Setting.db.
  • the specific implementation manner of the network protocol stack that the mobile terminal updates the network protocol stack of the 4G primary card to match the network mode value in the Setting.db includes:
  • the mobile terminal acquires a network mode value in the Setting.db by calling a dual card 4G switching entry function of the mobile terminal;
  • the mobile terminal detects whether protocol stack configuration information of the 4G primary card in the modem Modem of the mobile terminal matches a network mode value in the Setting.db;
  • the mobile terminal switches a data master card of the mobile terminal to a 4G master card after updating the network protocol stack.
  • Setting the data master card to the 4G protocol stack master card not only ensures that the 4G master card can dial the network data from 4G, but also avoids the problem that the data master card switching speed is slow due to the switching of the data master card simultaneously switching the 4G master card. It is beneficial to improve the switching efficiency of the data master card.
  • the mobile terminal updates a modem software configuration MBN file in a modem Modem of the mobile terminal to an MBN file that matches the network mode value. In this way, ensure that the 4G primary card is properly networked and data dialed.
  • the mobile terminal when the mobile terminal detects that the location identification information of the at least one SIM card in the card slot of the mobile terminal does not match the location identification information of the pre-stored SIM card, the mobile terminal performs the card according to the at least one SIM card.
  • the attribute information determines the 4G primary card of the mobile terminal, and secondly, determines the network mode value corresponding to the type of the 4G primary card according to the mapping relationship between the type of the pre-stored SIM card and the network mode value, and the type of the 4G primary card.
  • the network protocol stack of the updated 4G primary card is a network protocol stack that matches the network mode value.
  • FIG. 3 is a flowchart of a network mode configuration method according to a third embodiment of the present invention. As shown in FIG. 2, the network mode configuration method may specifically include the following steps:
  • the mobile terminal determines, according to the card attribute information of the at least one SIM card, when the location identifier information of the at least one SIM card in the card slot of the mobile terminal does not match the location identifier information of the pre-stored SIM card.
  • the 4G main card of the mobile terminal
  • the card attribute information includes the number, type, and location identifier information of the at least one SIM card, the card slot includes a first card slot and a second card slot, and the location identifier information includes an integrated circuit card of the SIM card.
  • the mobile terminal determines, according to a mapping relationship between a pre-stored type of the SIM card and a network mode value, and a type of the 4G primary card, a network mode value corresponding to the type of the 4G primary card.
  • the mobile terminal updates the network protocol stack of the 4G primary card to a network protocol stack that matches the network mode value.
  • the specific implementation manner of the network protocol stack that the mobile terminal updates the network protocol stack of the 4G primary card to match the network mode value includes:
  • the mobile terminal stores the network mode value in a network mode configuration NwMode field of a SIM card information data table simInfo of the mobile terminal;
  • the mobile terminal updates the network in the Setting.db when it detects that the network mode value of the NwMode field does not match the pre-stored network mode value in the SIM card network mode setting table Setting.db of the mobile terminal.
  • the mode value is a network mode value of the NwMode field;
  • the mobile terminal updates the network protocol stack of the 4G primary card to a network protocol stack that matches the network mode value in the Setting.db.
  • the specific implementation manner of the network protocol stack that the mobile terminal updates the network protocol stack of the 4G primary card to match the network mode value in the Setting.db includes:
  • the mobile terminal acquires a network mode value in the Setting.db by calling a dual card 4G switching entry function of the mobile terminal;
  • the mobile terminal detects whether protocol stack configuration information of the 4G primary card in the modem Modem of the mobile terminal matches a network mode value in the Setting.db;
  • the mobile terminal sends the network mode value to a modem Modem of the mobile terminal to activate the 4G primary card. In this way, it can be ensured that the Modem is correctly searched.
  • the mobile terminal switches the data main card of the mobile terminal to the 4G main card after updating the network protocol stack; and sets the data main card to the 4G protocol stack main card, thereby ensuring that the 4G main card can be 4G.
  • the network data dialing avoids the problem that the data master card switching speed is slow due to the switching of the data master card simultaneously switching the 4G master card. It is beneficial to improve the switching efficiency of the data master card.
  • the mobile terminal updates a modulation solution in a modem Modem of the mobile terminal.
  • the tuner software configures the MBN file to be an MBN file that matches the network mode value. In this way, ensure that the 4G primary card is properly networked and data dialed.
  • the mobile terminal when the mobile terminal detects that the location identification information of the at least one SIM card in the card slot of the mobile terminal does not match the location identification information of the pre-stored SIM card, the mobile terminal performs the card according to the at least one SIM card.
  • the attribute information determines the 4G primary card of the mobile terminal, and secondly, determines the network mode value corresponding to the type of the 4G primary card according to the mapping relationship between the type of the pre-stored SIM card and the network mode value, and the type of the 4G primary card.
  • the network protocol stack of the updated 4G primary card is a network protocol stack that matches the network mode value.
  • the device embodiment of the present invention is used to perform the method for implementing the first to third embodiments of the present invention.
  • the device embodiment of the present invention is used to perform the method for implementing the first to third embodiments of the present invention.
  • the device embodiment of the present invention is used to perform the method for implementing the first to third embodiments of the present invention.
  • Only parts related to the embodiment of the present invention are shown, and the specific technical details are not disclosed. Please refer to the first to third embodiments of the present invention.
  • FIG. 4 is a structural diagram of a terminal according to a fourth embodiment of the present invention.
  • the terminal in the embodiment of the present invention includes a primary card determining unit 401, a mode determining unit 402, and a protocol stack updating unit 403, where
  • the primary card determining unit 401 is configured to: according to the card of the at least one SIM card, when detecting that the location identification information of the at least one SIM card in the card slot of the mobile terminal does not match the location identification information of the pre-stored SIM card
  • the attribute information determines a 4G primary card of the mobile terminal
  • the card attribute information includes the number, type, and location identifier information of the at least one SIM card, the card slot includes a first card slot and a second card slot, and the location identifier information includes an integrated circuit card of the SIM card.
  • the mode determining unit 402 is configured to determine, according to a mapping relationship between a type of the pre-stored SIM card and a network mode value, and a type of the 4G primary card, a network mode value corresponding to the type of the 4G primary card;
  • the protocol stack update unit 403 is configured to update a network protocol stack of the 4G primary card to be a network protocol stack that matches the network mode value.
  • the mobile terminal further includes:
  • a data master card switching unit configured to: after the protocol stack update unit updates the network protocol stack of the 4G master card to a network protocol stack matching the network mode value, switch the data master card of the mobile terminal to the Said to update the 4G main card after the network protocol stack;
  • a chip configuration unit configured to update a modem software configuration MBN file in the modem Modem of the mobile terminal to be an MBN file that matches the network mode value.
  • the mobile terminal further includes:
  • a primary card activation unit configured to send the network to a modem modem of the mobile terminal after the protocol stack update unit updates a network protocol stack of the 4G primary card to a network protocol stack matching the network mode value
  • the mode value is to activate the 4G master card.
  • protocol stack update unit is specifically configured to:
  • the network protocol stack that updates the 4G primary card is a network protocol stack that matches the network mode value in the Setting.db.
  • the primary card determining unit is specifically configured to:
  • the number of the at least one SIM card is 1, determining that the SIM card is a 4G primary card of the mobile terminal;
  • the at least one SIM card When the number of the at least one SIM card is 2, that is, the at least one SIM card includes a first SIM card inserted into the first card slot and a second SIM card inserted into the second card slot, then determining The SIM card selected by the user is the 4G primary card of the mobile terminal.
  • the mobile terminal when the mobile terminal detects that the location identification information of the at least one SIM card in the card slot of the mobile terminal does not match the location identification information of the pre-stored SIM card, Determining the 4G main card of the mobile terminal by the card attribute information of the at least one SIM card, and secondly determining the type of the 4G main card according to the mapping relationship between the type of the pre-stored SIM card and the network mode value, and the type of the 4G main card
  • the network mode value, and finally, the network protocol stack of the updated 4G primary card is a network protocol stack that matches the network mode value.
  • FIG. 5 is a schematic structural diagram of another terminal according to a fifth embodiment of the present invention.
  • the terminal can include at least one processor 501, such as a CPU, at least one receiver 503, at least one memory 504, at least one transmitter 505, and at least one communication bus 502.
  • the communication bus 502 is used to implement connection communication between these components.
  • the receiver 503 and the transmitter 505 of the device in the embodiment of the present invention may be a wired sending port, or may be a wireless device, for example, including an antenna device, for performing signaling or data communication with other node devices.
  • the memory 504 may be a high speed RAM memory or a non-volatile memory such as at least one disk memory.
  • the memory 504 can optionally also be at least one storage device located remotely from the aforementioned processor 501.
  • a set of program codes is stored in the memory 504, and the processor 501 is configured to call program code stored in the memory for performing the following operations:
  • the card attribute information includes the number, type, and location identifier information of the at least one SIM card, the card slot includes a first card slot and a second card slot, and the location identifier information includes an integrated circuit card of the SIM card.
  • the network protocol stack of the 4G primary card is updated to be a network protocol stack that matches the network mode value.
  • the processor 501 updates the network protocol stack of the 4G primary card to a network protocol stack that matches the network mode value, the processor 501 is further configured to:
  • the modem software configuration MBN file in the modem Modem of the mobile terminal is updated to be an MBN file that matches the network mode value.
  • the processor 501 updates the network protocol stack of the 4G primary card to a network protocol stack that matches the network mode value, the processor 501 is further configured to:
  • the network mode value is sent to the modem Modem of the mobile terminal to activate the 4G primary card.
  • the processor 501 updates the network protocol stack of the 4G primary card to a network protocol stack that matches the network mode value, and includes:
  • the network protocol stack that updates the 4G primary card is a network protocol stack that matches the network mode value in the Setting.db.
  • the determining, by the processor 501, the 4G main card of the mobile terminal according to the card attribute information of the at least one SIM card including:
  • the number of the at least one SIM card is 1, determining that the SIM card is a 4G primary card of the mobile terminal;
  • the at least one SIM card When the number of the at least one SIM card is 2, that is, the at least one SIM card includes a first SIM card inserted into the first card slot and a second SIM card inserted into the second card slot, then determining The SIM card selected by the user is the 4G primary card of the mobile terminal.
  • the mobile terminal when the mobile terminal detects that the location identification information of the at least one SIM card in the card slot of the mobile terminal does not match the location identification information of the pre-stored SIM card, the mobile terminal performs the card according to the at least one SIM card.
  • the attribute information determines the 4G primary card of the mobile terminal, and secondly, according to the pre-stored
  • the mapping relationship between the type of the SIM card and the network mode value, and the type of the 4G primary card determine the network mode value corresponding to the type of the 4G primary card, and finally, update the network protocol stack of the 4G primary card to match the network mode value.
  • Network protocol stack In this way, when the mobile terminal detects that the SIM card in the card slot changes, the mobile terminal can automatically configure the 4G main card of the mobile terminal and its network mode, which is beneficial to improving the flexibility of the network mode switching of the mobile terminal and improving the user experience.
  • the program may be stored in a computer readable storage medium, and the storage medium may include: Flash disk, read-only memory (English: Read-Only Memory, referred to as: ROM), random accessor (English: Random Access Memory, referred to as: RAM), disk or optical disk.
  • ROM Read-Only Memory
  • RAM Random Access Memory

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Telephone Function (AREA)

Abstract

本发明实施例公开了一种网络模式配置方法及移动终端,包括:当检测到移动终端的卡槽中的至少一个SIM卡的位置标识信息与预存的SIM卡的位置标识信息不匹配时,根据至少一个SIM卡的卡属性信息确定移动终端的4G主卡;根据预存的SIM卡的类型与网络模式值之间的映射关系,以及4G主卡的类型,确定4G主卡的类型对应的网络模式值;更新4G主卡的网络协议栈为与网络模式值匹配的网络协议栈。采用本发明实施例,有利于提升移动终端网络模式切换的柔顺性,提升用户体验。

Description

一种网络模式配置方法及移动终端
本申请要求于2015年12月22日提交中国专利局,申请号为201510979235.4、发明名称为“一种网络模式配置方法及移动终端”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本发明涉及网络配置技术领域,尤其涉及一种网络模式配置方法及移动终端。
背景技术
现有的安卓Android双卡双待手机中,卡槽2插入SIM(Subscriber Identity Module,客户识别模块)卡后一般只支持GSM(Global System for Mobile Communication,全球移动通信系统)网络,提供简单的语音通话功能和低速的GPRS(General Packet Radio Service,通用分组无线服务技术)上网业务,如果用户需要使用卡2的4/3G数据业务,目前有软件实现和硬件实现两种方式。其中,硬件实现方式是控制硬件的卡槽切换,或者,手动将卡2换到卡槽1上再重新开机,达到高制式网络如4G切换的目的;软件实现方式中,第一种实现方式是通过切换底层协议栈来实现卡2接入高制式网络的目的,第二种实现方式是融合已有的基于MBN(Modem Software Configuration,调制解调器软件配置,高通公司推出的用来满足多厂家,多网络类型,多用途的Modem软件配置方案)切换的全网通方案和4G软件切换方案,通过纯软件方式实现三网不同网络制式的自由切换功能。
可见,已有的双卡槽的移动终端的网络制式切换方案中,硬件实现方式成本较高,可靠性较低,软件实现方式中,第一种实现方式仅能适用于相同运营商的SIM卡的切换;第二种实现方式虽然可以通过切换数据主卡自由切换双卡4G,但此方案不支持热插拔换卡切换SIM卡的4G功能。
发明内容
本发明提供一种网络模式配置方法及移动终端,以期移动终端在开机或热 插拔换卡情况下,自动配置移动终端的4G主卡及其网络模式,有利于提升移动终端网络模式切换的柔顺性,提升用户体验。
本发明实施例第一方面提供了一种网络模式配置方法,包括:
移动终端当检测到移动终端的卡槽中的至少一个SIM卡的位置标识信息与预存的SIM卡的位置标识信息不匹配时,根据所述至少一个SIM卡的卡属性信息确定所述移动终端的4G主卡;
所述移动终端根据预存的SIM卡的类型与网络模式值之间的映射关系,以及所述4G主卡的类型,确定所述4G主卡的类型对应的网络模式值;
所述移动终端更新所述4G主卡的网络协议栈为与所述网络模式值匹配的网络协议栈。
本发明实施例第一方面第一种可能的实现方式中,所述移动终端更新所述4G主卡的网络协议栈为与所述网络模式值匹配的网络协议栈之后,所述方法还包括:
所述移动终端切换所述移动终端的数据主卡到所述更新网络协议栈后的4G主卡上;将数据主卡设置到4G协议栈主卡,既保证了4G主卡可以4G起网数据拨号,又避免出现因切换数据主卡同时切换4G主卡而引起数据主卡切换速度慢的问题。有利于提升数据主卡的切换效率。
所述移动终端更新所述移动终端的调制解调器Modem中的调制解调器软件配置MBN文件为与所述网络模式值匹配的MBN文件。如此,确保4G主卡正确起网和数据拨号。
结合本发明实施例第一方面或第一方面第一种可能的实现方式,在本发明实施例第一方面第二种可能的实现方式中,所述更新所述4G主卡的网络协议栈为与所述网络模式值匹配的网络协议栈之后,所述方法还包括:
所述移动终端向所述移动终端的调制解调器Modem发送所述网络模式值以激活所述4G主卡。
结合本发明实施例第一方面第二种可能的实现方式,在本发明实施例第一方面第三种可能的实现方式中,所述更新所述4G主卡的网络协议栈为与所述网络模式值匹配的网络协议栈,包括:
所述移动终端在所述移动终端的SIM卡信息数据表simInfo的网络模式配 置NwMode字段存储所述网络模式值;
所述移动终端当检测到所述NwMode字段的网络模式值与所述移动终端的SIM卡网络模式设置表Setting.db中的预存的网络模式值不匹配时,更新所述Setting.db中的网络模式值为所述NwMode字段的网络模式值;
所述移动终端更新所述4G主卡的网络协议栈为与所述Setting.db中的网络模式值匹配的网络协议栈。
其中,所述移动终端更新所述4G主卡的网络协议栈为与所述Setting.db中的网络模式值匹配的网络协议栈的具体实现方式包括:所述移动终端当检测到所述移动终端的调制解调器Modem中的所述4G主卡的协议栈配置信息与所述Setting.db中的网络模式值不匹配时,更新所述4G主卡的网络协议栈为与所述Setting.db中的网络模式值匹配的网络协议栈。
结合本发明实施例第一方面第三种可能的实现方式,在本发明实施例第一方面第四种可能的实现方式中,所述根据所述至少一个SIM卡的卡属性信息确定所述移动终端的4G主卡,包括:
当所述至少一个SIM卡的数量为1时,则所述移动终端确定所述SIM卡为所述移动终端的4G主卡;
当所述至少一个SIM卡的数量为2时,即所述至少一个SIM卡包括插入所述第一卡槽的第一SIM卡和插入所述第二卡槽的第二SIM卡时,则所述移动终端确定用户选取的SIM卡为所述移动终端的4G主卡。
本发明实施例第二方面公开了一种移动终端,包括:
主卡确定单元,用于当检测到移动终端的卡槽中的至少一个SIM卡的位置标识信息与预存的SIM卡的位置标识信息不匹配时,根据所述至少一个SIM卡的卡属性信息确定所述移动终端的4G主卡;
模式确定单元,用于根据预存的SIM卡的类型与网络模式值之间的映射关系,以及所述4G主卡的类型,确定所述4G主卡的类型对应的网络模式值;
协议栈更新单元,用于更新所述4G主卡的网络协议栈为与所述网络模式值匹配的网络协议栈。
本发明实施例第二方面第一种可能的实现方式中,所述移动终端还包括:
数据主卡切换单元,用于在所述协议栈更新单元更新所述4G主卡的网络 协议栈为与所述网络模式值匹配的网络协议栈之后,切换所述移动终端的数据主卡到所述更新网络协议栈后的4G主卡上;
芯片配置单元,用于更新所述移动终端的调制解调器Modem中的调制解调器软件配置MBN文件为与所述网络模式值匹配的MBN文件。
结合本发明实施例第二方面或第二方面第一种可能的实现方式,在本发明实施例第二方面第二种可能的实现方式中,所述移动终端还包括:
主卡激活单元,用于在所述协议栈更新单元更新所述4G主卡的网络协议栈为与所述网络模式值匹配的网络协议栈之后,所述数据主卡切换单元切换所述移动终端的数据主卡到所述更新网络协议栈后的4G主卡上之前,向所述移动终端的调制解调器Modem发送所述网络模式值以激活所述4G主卡。
结合本发明实施例第二方面第二种可能的实现方式,在本发明实施例第二方面第三种可能的实现方式中,所述协议栈更新单元具体用于:
在所述移动终端的SIM卡信息数据表simInfo的网络模式配置NwMode字段存储所述网络模式值;
当检测到所述NwMode字段的网络模式值与所述移动终端的SIM卡网络模式设置表Setting.db中的预存的网络模式值不匹配时,更新所述Setting.db中的网络模式值为所述NwMode字段的网络模式值;
更新所述4G主卡的网络协议栈为与所述Setting.db中的网络模式值匹配的网络协议栈。
结合本发明实施例第二方面第三种可能的实现方式,在本发明实施例第二方面第四种可能的实现方式中,所述主卡确定单元具体用于:
当所述至少一个SIM卡的数量为1时,则确定所述SIM卡为所述移动终端的4G主卡;
当所述至少一个SIM卡的数量为2时,即所述至少一个SIM卡包括插入所述第一卡槽的第一SIM卡和插入所述第二卡槽的第二SIM卡时,则确定用户选取的SIM卡为所述移动终端的4G主卡。
本发明实施例中,移动终端当检测到移动终端的卡槽中的至少一个SIM卡的位置标识信息与预存的SIM卡的位置标识信息不匹配时,根据至少一个SIM卡的卡属性信息确定移动终端的4G主卡,其次,根据预存的SIM卡的类 型与网络模式值之间的映射关系,以及4G主卡的类型,确定4G主卡的类型对应的网络模式值,最后,更新4G主卡的网络协议栈为与网络模式值匹配的网络协议栈。如此,移动终端在检测到卡槽中的SIM卡发生变化的情况下,能够自动配置移动终端的4G主卡及其网络模式,有利于提升移动终端网络模式切换的柔顺性,提升用户体验。
附图说明
为了更清楚地说明本发明实施例的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1是本发明第一实施例提出的一种网络模式配置方法的流程示意图;
图2是本发明第二实施例提出的一种网络模式配置方法的流程示意图;
图3是本发明第三实施例提出的一种网络模式配置方法的流程示意图;
图4是本发明第四实施例提出的一种移动终端的结构示意图;
图5是本发明第五实施例提出的一种移动终端的结构示意图。
具体实施方式
为了使本技术领域的人员更好地理解本发明方案,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分的实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本发明保护的范围。
本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”和“第三”等是用于区别不同对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、 产品或设备固有的其它步骤或单元。
在本文中提及“实施例”意味着,结合实施例描述的特定特征、结构或特性可以包含在本发明的至少一个实施例中。在说明书中的各个位置出现该短语并不一定均是指相同的实施例,也不是与其它实施例互斥的独立的或备选的实施例。本领域技术人员显式地和隐式地理解的是,本文所描述的实施例可以与其它实施例相结合。
本发明提供一种网络模式配置方法及移动终端,以期移动终端在开机或热插拔换卡情况下,自动配置移动终端的4G主卡及其网络模式,有利于提升移动终端网络模式切换的柔顺性,提升用户体验。
本发明实施例中所描述的移动终端可以包括具有无线通信功能的手持设备、车载设备、可穿戴设备、计算设备或连接到无线调制解调器的其它处理设备,以及各种形式的用户设备(User Equipment,简称UE),移动台(Mobile station,简称MS),终端(terminal),终端设备(Terminal Equipment)等安装有安卓Android操作系统的移动电子设备,该移动终端设置有第一卡槽和第二卡槽,且硬件射频支持时分双工TDD-LTE/频分双工FDD-LTE/时分同步码分多址系统TD-SCDMA/宽带码分多址WCDMA/GSM/中国电信EVDO等多种网络制式,以及支持基于高通Modem MBN切换方案和软件切换双卡4G方案。
下面结合附图及具体实施方式,对本发明实施例的技术方案进行详细说明。
请参考图1,图1是本发明第一实施例提出的一种网络模式配置方法的流程图,如图1所示,该网络模式配置方法具体可以包括以下步骤:
S101、移动终端当检测到移动终端的卡槽中的至少一个SIM卡的位置标识信息与预存的SIM卡的位置标识信息不匹配时,根据所述至少一个SIM卡的卡属性信息确定所述移动终端的4G主卡;
所述卡属性信息包括所述至少一个SIM卡的数量、类型以及所述位置标识信息,所述卡槽包括第一卡槽和第二卡槽,所述位置标识信息包括SIM卡的集成电路卡识别码ICCID和位置信息,所述位置信息包括第一卡槽标识和第二卡槽标识;
可以理解的是,所述根据所述至少一个SIM卡的卡属性信息确定所述移动终端的4G主卡的具体实现方式可以是多种多样的。
当所述至少一个SIM卡的数量为1时,则确定所述SIM卡为所述移动终端的4G主卡;
当所述至少一个SIM卡的数量为2时,即所述至少一个SIM卡包括插入所述第一卡槽的第一SIM卡和插入所述第二卡槽的第二SIM卡时,则确定用户选取的SIM卡为所述移动终端的4G主卡。或者,
当所述至少一个SIM卡的数量为2时,即所述至少一个SIM卡包括插入所述第一卡槽的第一SIM卡和插入所述第二卡槽的第二SIM卡时,将SIM卡的类型为电信C卡的SIM卡确定为所述移动终端的4G主卡。
可选的,上述移动终端在确定4G主卡的同时,若上述至少一个SIM卡的数量为2,则除所述4G主卡之外的一个SIM卡为所述移动终端的副卡。
S102、所述移动终端根据预存的SIM卡的类型与网络模式值之间的映射关系,以及所述4G主卡的类型,确定所述4G主卡的类型对应的网络模式值;
其中,所述预存的SIM卡的类型与网络模式值之间的映射关系可以如下表所示:
插入卡 4G主卡的网络模式 2G卡的网络模式
电信卡 NETWORK_MODE_LTE_CDMA_EVDO NETWORK_MODE_GSM_ONLY
移动卡 NETWORK_MODE_TD_SCDMA_GSM_LTE NETWORK_MODE_GSM_ONLY
联通卡 NETWORK_MODE_LTE_GSM_WCDMA NETWORK_MODE_GSM_ONLY
其他卡 NETWORK_MODE_TD_SCDMA_LTE_CDMA_EVDO_GSM_WCDMA NETWORK_MODE_GSM_ONLY
S103,所述移动终端更新所述4G主卡的网络协议栈为与所述网络模式值匹配的网络协议栈。
具体实现中,所述移动终端更新所述4G主卡的网络协议栈为与所述网络模式值匹配的网络协议栈的具体实现方式包括:
所述移动终端在所述移动终端的SIM卡信息数据表simInfo的网络模式配置NwMode字段存储所述网络模式值;
具体实现中,当所述4G主卡的类型为电信卡C卡时,设置simInfo.NwMode=NETWORK_MODE_LTE_CDMA_EVDO;
当所述4G主卡的类型为移动卡时,设置simInfo.NwMode= NETWORK_MODE_TD_SCDMA_GSM_LTE;
当所述4G主卡的类型为联通卡时,设置simInfo.NwMode=NETWORK_MODE_LTE_GSM_WCDMA;
当所述4G主卡的类型为其他卡时,设置simInfo.NwMode=NETWORK_MODE_TD_SCDMA_LTE_CDMA_EVDO_GSM_WCDMA。
可选的,若所述移动终端存储所述副卡,则可以为该副卡配置网络模式值,具体过程与配置所述4G主卡的步骤相同。
所述移动终端当检测到所述NwMode字段的网络模式值与所述移动终端的SIM卡网络模式设置表Setting.db中的预存的网络模式值不匹配时,更新所述Setting.db中的网络模式值为所述NwMode字段的网络模式值;
所述移动终端更新所述4G主卡的网络协议栈为与所述Setting.db中的网络模式值匹配的网络协议栈。其中,所述移动终端更新所述4G主卡的网络协议栈为与所述Setting.db中的网络模式值匹配的网络协议栈的具体实现方式包括:
所述移动终端通过调用所述移动终端的双卡4G切换入口函数,获取所述Setting.db中的网络模式值;
所述移动终端检测所述移动终端的调制解调器Modem中的所述4G主卡的协议栈配置信息与所述Setting.db中的网络模式值是否匹配;
当检测到所述Modem中的所述4G主卡的协议栈配置信息与所述Setting.db中的网络模式值不匹配时,更新所述4G主卡的网络协议栈为与所述Setting.db中的网络模式值匹配的网络协议栈。
可以看出,本发明实施例中,移动终端当检测到移动终端的卡槽中的至少一个SIM卡的位置标识信息与预存的SIM卡的位置标识信息不匹配时,根据至少一个SIM卡的卡属性信息确定移动终端的4G主卡,其次,根据预存的SIM卡的类型与网络模式值之间的映射关系,以及4G主卡的类型,确定4G主卡的类型对应的网络模式值,最后,更新4G主卡的网络协议栈为与网络模式值匹配的网络协议栈。如此,移动终端在检测到卡槽中的SIM卡发生变化的情况下,能够自动配置移动终端的4G主卡及其网络模式,有利于提升移动终端网络模式切换的柔顺性,提升用户体验。
请参考图2,图2是本发明第二实施例提出的一种网络模式配置方法的流程图,如图2所示,该网络模式配置方法具体可以包括以下步骤:
S201、所述移动终端当检测到移动终端的卡槽中的至少一个SIM卡的位置标识信息与预存的SIM卡的位置标识信息不匹配时,根据所述至少一个SIM卡的卡属性信息确定所述移动终端的4G主卡;
所述卡属性信息包括所述至少一个SIM卡的数量、类型以及所述位置标识信息,所述卡槽包括第一卡槽和第二卡槽,所述位置标识信息包括SIM卡的集成电路卡识别码ICCID和位置信息,所述位置信息包括第一卡槽标识和第二卡槽标识;
S202、所述移动终端根据预存的SIM卡的类型与网络模式值之间的映射关系,以及所述4G主卡的类型,确定所述4G主卡的类型对应的网络模式值;
S203、所述移动终端更新所述4G主卡的网络协议栈为与所述网络模式值匹配的网络协议栈。
具体实现中,所述移动终端更新所述4G主卡的网络协议栈为与所述网络模式值匹配的网络协议栈的具体实现方式包括:
所述移动终端在所述移动终端的SIM卡信息数据表simInfo的网络模式配置NwMode字段存储所述网络模式值;
所述移动终端当检测到所述NwMode字段的网络模式值与所述移动终端的SIM卡网络模式设置表Setting.db中的预存的网络模式值不匹配时,更新所述Setting.db中的网络模式值为所述NwMode字段的网络模式值;
所述移动终端更新所述4G主卡的网络协议栈为与所述Setting.db中的网络模式值匹配的网络协议栈。
其中,所述移动终端更新所述4G主卡的网络协议栈为与所述Setting.db中的网络模式值匹配的网络协议栈的具体实现方式包括:
所述移动终端通过调用所述移动终端的双卡4G切换入口函数,获取所述Setting.db中的网络模式值;
所述移动终端检测所述移动终端的调制解调器Modem中的所述4G主卡的协议栈配置信息与所述Setting.db中的网络模式值是否匹配;
当检测到所述Modem中的所述4G主卡的协议栈配置信息与所述Setting.db中的网络模式值不匹配时,更新所述4G主卡的网络协议栈为与所述Setting.db中的网络模式值匹配的网络协议栈。
S204、所述移动终端切换所述移动终端的数据主卡到所述更新网络协议栈后的4G主卡上;
将数据主卡设置到4G协议栈主卡,既保证了4G主卡可以4G起网数据拨号,又避免出现因切换数据主卡同时切换4G主卡而引起数据主卡切换速度慢的问题。有利于提升数据主卡的切换效率。
S205、所述移动终端更新所述移动终端的调制解调器Modem中的调制解调器软件配置MBN文件为与所述网络模式值匹配的MBN文件。如此,确保4G主卡正确起网和数据拨号。
可以看出,本发明实施例中,移动终端当检测到移动终端的卡槽中的至少一个SIM卡的位置标识信息与预存的SIM卡的位置标识信息不匹配时,根据至少一个SIM卡的卡属性信息确定移动终端的4G主卡,其次,根据预存的SIM卡的类型与网络模式值之间的映射关系,以及4G主卡的类型,确定4G主卡的类型对应的网络模式值,最后,更新4G主卡的网络协议栈为与网络模式值匹配的网络协议栈。如此,移动终端在检测到卡槽中的SIM卡发生变化的情况下,能够自动配置移动终端的4G主卡及其网络模式,有利于提升移动终端网络模式切换的柔顺性,提升用户体验。
请参考图3,图3是本发明第三实施例提出的一种网络模式配置方法的流程图,如图2所示,该网络模式配置方法具体可以包括以下步骤:
S301、所述移动终端当检测到移动终端的卡槽中的至少一个SIM卡的位置标识信息与预存的SIM卡的位置标识信息不匹配时,根据所述至少一个SIM卡的卡属性信息确定所述移动终端的4G主卡;
所述卡属性信息包括所述至少一个SIM卡的数量、类型以及所述位置标识信息,所述卡槽包括第一卡槽和第二卡槽,所述位置标识信息包括SIM卡的集成电路卡识别码ICCID和位置信息,所述位置信息包括第一卡槽标识和第二卡槽标识;
S302、所述移动终端根据预存的SIM卡的类型与网络模式值之间的映射关系,以及所述4G主卡的类型,确定所述4G主卡的类型对应的网络模式值;
S303、所述移动终端更新所述4G主卡的网络协议栈为与所述网络模式值匹配的网络协议栈。
具体实现中,所述移动终端更新所述4G主卡的网络协议栈为与所述网络模式值匹配的网络协议栈的具体实现方式包括:
所述移动终端在所述移动终端的SIM卡信息数据表simInfo的网络模式配置NwMode字段存储所述网络模式值;
所述移动终端当检测到所述NwMode字段的网络模式值与所述移动终端的SIM卡网络模式设置表Setting.db中的预存的网络模式值不匹配时,更新所述Setting.db中的网络模式值为所述NwMode字段的网络模式值;
所述移动终端更新所述4G主卡的网络协议栈为与所述Setting.db中的网络模式值匹配的网络协议栈。其中,所述移动终端更新所述4G主卡的网络协议栈为与所述Setting.db中的网络模式值匹配的网络协议栈的具体实现方式包括:
所述移动终端通过调用所述移动终端的双卡4G切换入口函数,获取所述Setting.db中的网络模式值;
所述移动终端检测所述移动终端的调制解调器Modem中的所述4G主卡的协议栈配置信息与所述Setting.db中的网络模式值是否匹配;
当检测到所述Modem中的所述4G主卡的协议栈配置信息与所述Setting.db中的网络模式值不匹配时,更新所述4G主卡的网络协议栈为与所述Setting.db中的网络模式值匹配的网络协议栈。
S304、所述移动终端向所述移动终端的调制解调器Modem发送所述网络模式值以激活所述4G主卡。如此,可以确保所述Modem正确搜网。
S305、所述移动终端切换所述移动终端的数据主卡到所述更新网络协议栈后的4G主卡上;将数据主卡设置到4G协议栈主卡,既保证了4G主卡可以4G起网数据拨号,又避免出现因切换数据主卡同时切换4G主卡而引起数据主卡切换速度慢的问题。有利于提升数据主卡的切换效率。
S306、所述移动终端更新所述移动终端的调制解调器Modem中的调制解 调器软件配置MBN文件为与所述网络模式值匹配的MBN文件。如此,确保4G主卡正确起网和数据拨号。
可以看出,本发明实施例中,移动终端当检测到移动终端的卡槽中的至少一个SIM卡的位置标识信息与预存的SIM卡的位置标识信息不匹配时,根据至少一个SIM卡的卡属性信息确定移动终端的4G主卡,其次,根据预存的SIM卡的类型与网络模式值之间的映射关系,以及4G主卡的类型,确定4G主卡的类型对应的网络模式值,最后,更新4G主卡的网络协议栈为与网络模式值匹配的网络协议栈。如此,移动终端在检测到卡槽中的SIM卡发生变化的情况下,能够自动配置移动终端的4G主卡及其网络模式,有利于提升移动终端网络模式切换的柔顺性,提升用户体验。
下面为本发明装置实施例,本发明装置实施例用于执行本发明方法实施例一至三实现的方法,为了便于说明,仅示出了与本发明实施例相关的部分,具体技术细节未揭示的,请参照本发明第一实施例至第三实施例。
请参考图4,图4是本发明第四实施例提出的一种终端的结构图。如图4所示,本发明实施例中的终端包括主卡确定单元401、模式确定单元402、协议栈更新单元403,其中,
所述主卡确定单元401,用于当检测到移动终端的卡槽中的至少一个SIM卡的位置标识信息与预存的SIM卡的位置标识信息不匹配时,根据所述至少一个SIM卡的卡属性信息确定所述移动终端的4G主卡;
所述卡属性信息包括所述至少一个SIM卡的数量、类型以及所述位置标识信息,所述卡槽包括第一卡槽和第二卡槽,所述位置标识信息包括SIM卡的集成电路卡识别码ICCID和位置信息,所述位置信息包括第一卡槽标识和第二卡槽标识;
所述模式确定单元402,用于根据预存的SIM卡的类型与网络模式值之间的映射关系,以及所述4G主卡的类型,确定所述4G主卡的类型对应的网络模式值;
所述协议栈更新单元403,用于更新所述4G主卡的网络协议栈为与所述网络模式值匹配的网络协议栈。
可选的,所述移动终端还包括:
数据主卡切换单元,用于在所述协议栈更新单元更新所述4G主卡的网络协议栈为与所述网络模式值匹配的网络协议栈之后,切换所述移动终端的数据主卡到所述更新网络协议栈后的4G主卡上;
芯片配置单元,用于更新所述移动终端的调制解调器Modem中的调制解调器软件配置MBN文件为与所述网络模式值匹配的MBN文件。
可选的,所述移动终端还包括:
主卡激活单元,用于在所述协议栈更新单元更新所述4G主卡的网络协议栈为与所述网络模式值匹配的网络协议栈之后,向所述移动终端的调制解调器Modem发送所述网络模式值以激活所述4G主卡。
可选的,所述协议栈更新单元具体用于:
在所述移动终端的SIM卡信息数据表simInfo的网络模式配置NwMode字段存储所述网络模式值;
当检测到所述NwMode字段的网络模式值与所述移动终端的SIM卡网络模式设置表Setting.db中的预存的网络模式值不匹配时,更新所述Setting.db中的网络模式值为所述NwMode字段的网络模式值;
更新所述4G主卡的网络协议栈为与所述Setting.db中的网络模式值匹配的网络协议栈。
可选的,所述主卡确定单元具体用于:
当所述至少一个SIM卡的数量为1时,则确定所述SIM卡为所述移动终端的4G主卡;
当所述至少一个SIM卡的数量为2时,即所述至少一个SIM卡包括插入所述第一卡槽的第一SIM卡和插入所述第二卡槽的第二SIM卡时,则确定用户选取的SIM卡为所述移动终端的4G主卡。
可以理解的是,本实施例的移动终端的各模块的功能可根据上述方法实施例中的方法具体实现,其具体实现过程可以参照上述方法实施例的相关描述,此处不再赘述。
可以看出,本发明实施例中,移动终端当检测到移动终端的卡槽中的至少一个SIM卡的位置标识信息与预存的SIM卡的位置标识信息不匹配时,根据 至少一个SIM卡的卡属性信息确定移动终端的4G主卡,其次,根据预存的SIM卡的类型与网络模式值之间的映射关系,以及4G主卡的类型,确定4G主卡的类型对应的网络模式值,最后,更新4G主卡的网络协议栈为与网络模式值匹配的网络协议栈。如此,移动终端在检测到卡槽中的SIM卡发生变化的情况下,能够自动配置移动终端的4G主卡及其网络模式,有利于提升移动终端网络模式切换的柔顺性,提升用户体验。
图5是本发明第五实施例提出的另一种终端的结构示意图。如图所示,该终端可以包括:至少一个处理器501,例如CPU,至少一个接收器503,至少一个存储器504,至少一个发送器505,至少一个通信总线502。其中,通信总线502用于实现这些组件之间的连接通信。其中,本发明实施例中装置的接收器503和发送器505可以是有线发送端口,也可以为无线设备,例如包括天线装置,用于与其他节点设备进行信令或数据的通信。存储器504可以是高速RAM存储器,也可以是非不稳定的存储器(non-volatile memory),例如至少一个磁盘存储器。存储器504可选的还可以是至少一个位于远离前述处理器501的存储装置。存储器504中存储一组程序代码,且处理器501用于调用存储器中存储的程序代码,用于执行以下操作:
当检测到移动终端的卡槽中的至少一个SIM卡的位置标识信息与预存的SIM卡的位置标识信息不匹配时,根据所述至少一个SIM卡的卡属性信息确定所述移动终端的4G主卡;
所述卡属性信息包括所述至少一个SIM卡的数量、类型以及所述位置标识信息,所述卡槽包括第一卡槽和第二卡槽,所述位置标识信息包括SIM卡的集成电路卡识别码ICCID和位置信息,所述位置信息包括第一卡槽标识和第二卡槽标识;
根据预存的SIM卡的类型与网络模式值之间的映射关系,以及所述4G主卡的类型,确定所述4G主卡的类型对应的网络模式值;
更新所述4G主卡的网络协议栈为与所述网络模式值匹配的网络协议栈。
可选的,所述处理器501更新所述4G主卡的网络协议栈为与所述网络模式值匹配的网络协议栈之后,所述处理器501还用于:
切换所述移动终端的数据主卡到所述更新网络协议栈后的4G主卡上;
更新所述移动终端的调制解调器Modem中的调制解调器软件配置MBN文件为与所述网络模式值匹配的MBN文件。
可选的,所述处理器501更新所述4G主卡的网络协议栈为与所述网络模式值匹配的网络协议栈之后,所述处理器501还用于:
向所述移动终端的调制解调器Modem发送所述网络模式值以激活所述4G主卡。
可选的,所述处理器501更新所述4G主卡的网络协议栈为与所述网络模式值匹配的网络协议栈,包括:
在所述移动终端的SIM卡信息数据表simInfo的网络模式配置NwMode字段存储所述网络模式值;
当检测到所述NwMode字段的网络模式值与所述移动终端的SIM卡网络模式设置表Setting.db中的预存的网络模式值不匹配时,更新所述Setting.db中的网络模式值为所述NwMode字段的网络模式值;
更新所述4G主卡的网络协议栈为与所述Setting.db中的网络模式值匹配的网络协议栈。
可选的,所述处理器501根据所述至少一个SIM卡的卡属性信息确定所述移动终端的4G主卡,包括:
当所述至少一个SIM卡的数量为1时,则确定所述SIM卡为所述移动终端的4G主卡;
当所述至少一个SIM卡的数量为2时,即所述至少一个SIM卡包括插入所述第一卡槽的第一SIM卡和插入所述第二卡槽的第二SIM卡时,则确定用户选取的SIM卡为所述移动终端的4G主卡。
可以理解的是,本实施例的终端的各模块的功能可根据上述方法实施例中的方法具体实现,其具体实现过程可以参照上述方法实施例的相关描述,此处不再赘述。
可以看出,本发明实施例中,移动终端当检测到移动终端的卡槽中的至少一个SIM卡的位置标识信息与预存的SIM卡的位置标识信息不匹配时,根据至少一个SIM卡的卡属性信息确定移动终端的4G主卡,其次,根据预存的 SIM卡的类型与网络模式值之间的映射关系,以及4G主卡的类型,确定4G主卡的类型对应的网络模式值,最后,更新4G主卡的网络协议栈为与网络模式值匹配的网络协议栈。如此,移动终端在检测到卡槽中的SIM卡发生变化的情况下,能够自动配置移动终端的4G主卡及其网络模式,有利于提升移动终端网络模式切换的柔顺性,提升用户体验。
需要说明的是,对于前述的各个方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本发明并不受所描述的动作顺序的限制,因为依据本发明,某一些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是本发明所必须的。
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详细描述的部分,可以参见其他实施例的相关描述。
本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于一计算机可读存储介质中,存储介质可以包括:闪存盘、只读存储器(英文:Read-Only Memory,简称:ROM)、随机存取器(英文:Random Access Memory,简称:RAM)、磁盘或光盘等。
以上对本发明实施例所提供的方法及相关设备进行了详细介绍,本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的一般技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。

Claims (10)

  1. 一种网络模式配置方法,其特征在于,包括:
    当检测到移动终端的卡槽中的至少一个SIM卡的位置标识信息与预存的SIM卡的位置标识信息不匹配时,根据所述至少一个SIM卡的卡属性信息确定所述移动终端的4G主卡;
    根据预存的SIM卡的类型与网络模式值之间的映射关系,以及所述4G主卡的类型,确定所述4G主卡的类型对应的网络模式值;
    更新所述4G主卡的网络协议栈为与所述网络模式值匹配的网络协议栈。
  2. 根据权利要求1所述的方法,其特征在于,所述更新所述4G主卡的网络协议栈为与所述网络模式值匹配的网络协议栈之后,所述方法还包括:
    切换所述移动终端的数据主卡到所述更新网络协议栈后的4G主卡上;
    更新所述移动终端的调制解调器Modem中的调制解调器软件配置MBN文件为与所述网络模式值匹配的MBN文件。
  3. 根据权利要求1或2任一项所述的方法,其特征在于,所述更新所述4G主卡的网络协议栈为与所述网络模式值匹配的网络协议栈之后,所述方法还包括:
    向所述移动终端的调制解调器Modem发送所述网络模式值以激活所述4G主卡。
  4. 根据权利要求3所述的方法,其特征在于,所述更新所述4G主卡的网络协议栈为与所述网络模式值匹配的网络协议栈,包括:
    在所述移动终端的SIM卡信息数据表simInfo的网络模式配置NwMode字段存储所述网络模式值;
    当检测到所述NwMode字段的网络模式值与所述移动终端的SIM卡网络模式设置表Setting.db中的预存的网络模式值不匹配时,更新所述Setting.db中的网络模式值为所述NwMode字段的网络模式值;
    更新所述4G主卡的网络协议栈为与所述Setting.db中的网络模式值匹配的网络协议栈。
  5. 根据权利要求4所述的方法,其特征在于,所述根据所述至少一个SIM 卡的卡属性信息确定所述移动终端的4G主卡,包括:
    当所述至少一个SIM卡的数量为1时,则确定所述SIM卡为所述移动终端的4G主卡;
    当所述至少一个SIM卡的数量为2时,即所述至少一个SIM卡包括插入所述第一卡槽的第一SIM卡和插入所述第二卡槽的第二SIM卡时,则确定用户选取的SIM卡为所述移动终端的4G主卡。
  6. 一种移动终端,其特征在于,包括:
    主卡确定单元,用于当检测到移动终端的卡槽中的至少一个SIM卡的位置标识信息与预存的SIM卡的位置标识信息不匹配时,根据所述至少一个SIM卡的卡属性信息确定所述移动终端的4G主卡;
    模式确定单元,用于根据预存的SIM卡的类型与网络模式值之间的映射关系,以及所述4G主卡的类型,确定所述4G主卡的类型对应的网络模式值;
    协议栈更新单元,用于更新所述4G主卡的网络协议栈为与所述网络模式值匹配的网络协议栈。
  7. 根据权利要求6所述的移动终端,其特征在于,所述移动终端还包括:
    数据主卡切换单元,用于在所述协议栈更新单元更新所述4G主卡的网络协议栈为与所述网络模式值匹配的网络协议栈之后,切换所述移动终端的数据主卡到所述更新网络协议栈后的4G主卡上;
    芯片配置单元,用于更新所述移动终端的调制解调器Modem中的调制解调器软件配置MBN文件为与所述网络模式值匹配的MBN文件。
  8. 根据权利要求6或7任一项所述的移动终端,其特征在于,所述移动终端还包括:
    主卡激活单元,用于在所述协议栈更新单元更新所述4G主卡的网络协议栈为与所述网络模式值匹配的网络协议栈之后,向所述移动终端的调制解调器Modem发送所述网络模式值以激活所述4G主卡。
  9. 根据权利要求8所述的移动终端,其特征在于,所述协议栈更新单元具体用于:
    在所述移动终端的SIM卡信息数据表simInfo的网络模式配置NwMode字段存储所述网络模式值;
    当检测到所述NwMode字段的网络模式值与所述移动终端的SIM卡网络模式设置表Setting.db中的预存的网络模式值不匹配时,更新所述Setting.db中的网络模式值为所述NwMode字段的网络模式值;
    更新所述4G主卡的网络协议栈为与所述Setting.db中的网络模式值匹配的网络协议栈。
  10. 根据权利要求9所述的移动终端,其特征在于,所述主卡确定单元具体用于:
    当所述至少一个SIM卡的数量为1时,则确定所述SIM卡为所述移动终端的4G主卡;
    当所述至少一个SIM卡的数量为2时,即所述至少一个SIM卡包括插入所述第一卡槽的第一SIM卡和插入所述第二卡槽的第二SIM卡时,则确定用户选取的SIM卡为所述移动终端的4G主卡。
PCT/CN2016/080598 2015-12-22 2016-04-29 一种网络模式配置方法及移动终端 WO2017107355A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510979235.4 2015-12-22
CN201510979235.4A CN105530626A (zh) 2015-12-22 2015-12-22 一种网络模式配置方法及移动终端

Publications (1)

Publication Number Publication Date
WO2017107355A1 true WO2017107355A1 (zh) 2017-06-29

Family

ID=55772537

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/080598 WO2017107355A1 (zh) 2015-12-22 2016-04-29 一种网络模式配置方法及移动终端

Country Status (2)

Country Link
CN (1) CN105530626A (zh)
WO (1) WO2017107355A1 (zh)

Families Citing this family (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105530626A (zh) * 2015-12-22 2016-04-27 东莞酷派软件技术有限公司 一种网络模式配置方法及移动终端
CN106059998B (zh) * 2016-05-04 2019-03-12 深圳市万普拉斯科技有限公司 注册VoLTE网络的方法、装置和终端
CN105959451B (zh) * 2016-06-29 2019-03-22 宇龙计算机通信科技(深圳)有限公司 一种加载mbn的方法及移动终端
CN106412879B (zh) * 2016-11-14 2019-06-07 深圳市万普拉斯科技有限公司 调制解调器的软件配置激活控制方法、装置及终端
CN106657837B (zh) * 2016-12-02 2021-12-14 海信视像科技股份有限公司 一种电视机制式切换方法及电视机
CN106792635A (zh) * 2016-12-09 2017-05-31 努比亚技术有限公司 一种接入数据网络的装置及方法
CN107295500B (zh) * 2017-05-10 2020-01-07 深圳市万普拉斯科技有限公司 Sim卡数据控制方法、装置和计算机设备
CN107332578A (zh) * 2017-05-19 2017-11-07 上海优思通信科技有限公司 多sim卡移动终端锁网的方法
CN107172610B (zh) * 2017-05-25 2020-08-14 宇龙计算机通信科技(深圳)有限公司 Gsm网络自适配方法、装置及电子设备
CN107864474A (zh) * 2017-11-23 2018-03-30 维沃移动通信有限公司 一种mbn更新方法及移动终端
CN107889178B (zh) * 2017-12-08 2020-10-16 囯网河北省电力有限公司电力科学研究院 采集终端网络制式切换方法及终端设备
CN111278076A (zh) * 2020-01-20 2020-06-12 锐迪科微电子科技(上海)有限公司 Ev-do连接状态的响应方法、系统、设备和介质
CN113676894B (zh) * 2020-05-14 2023-06-13 成都鼎桥通信技术有限公司 业务处理方法及设备

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104581846A (zh) * 2014-12-16 2015-04-29 广东欧珀移动通信有限公司 一种双卡双待手机智能高速上网的方法及装置
CN104602275A (zh) * 2014-12-19 2015-05-06 小米科技有限责任公司 客户识别模块sim卡切换方法及装置
WO2015090795A1 (en) * 2013-12-18 2015-06-25 Gemalto M2M Gmbh Fast switching of imsis due to acquisition and storage of access info for second imsi while registered with first imsi
CN105530626A (zh) * 2015-12-22 2016-04-27 东莞酷派软件技术有限公司 一种网络模式配置方法及移动终端

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104125593B (zh) * 2014-06-16 2018-11-09 联想(北京)有限公司 一种信息处理方法及电子设备
CN104661207B (zh) * 2015-03-10 2019-04-12 西安酷派软件科技有限公司 网络协议类型的设置方法、设置装置和终端

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015090795A1 (en) * 2013-12-18 2015-06-25 Gemalto M2M Gmbh Fast switching of imsis due to acquisition and storage of access info for second imsi while registered with first imsi
CN104581846A (zh) * 2014-12-16 2015-04-29 广东欧珀移动通信有限公司 一种双卡双待手机智能高速上网的方法及装置
CN104602275A (zh) * 2014-12-19 2015-05-06 小米科技有限责任公司 客户识别模块sim卡切换方法及装置
CN105530626A (zh) * 2015-12-22 2016-04-27 东莞酷派软件技术有限公司 一种网络模式配置方法及移动终端

Also Published As

Publication number Publication date
CN105530626A (zh) 2016-04-27

Similar Documents

Publication Publication Date Title
WO2017107355A1 (zh) 一种网络模式配置方法及移动终端
WO2017084498A1 (zh) 用户设备网络处理方法、装置及用户设备
US10659360B2 (en) Routing method, near field communication controller, device host, and terminal
CN106714140B (zh) 一种通信方法及移动终端
CN105722059B (zh) 一种移动终端及双调制解调器系统的通信方法
US10159031B2 (en) Access point, station, and beacon frame sending method and system
CN106211250B (zh) 一种移动终端及其卡槽的自适应切换方法、系统
CN104883713A (zh) 确定终端的通信模式的方法和终端
CN110266343B (zh) 天线切换方法及相关设备
CN105517076A (zh) 移动终端的小区重选方法和装置
US20220322088A1 (en) Network roaming method, terminal device, and computer readable storage medium
WO2017166202A1 (zh) 一种电子设备及其搜索移动通信网络的方法
US10841783B2 (en) Method and apparatus for data communication using bluetooth low energy
EP3376821B1 (en) Network registration of a dsds terminal
CN113242542B (zh) 移动终端的搜网控制方法、装置及移动终端
US10164701B2 (en) Antenna allocation method and terminal
CN107396435B (zh) 射频电路控制方法、移动终端及计算机可读存储介质
CN112866984B (zh) 通话记录的同步方法、云平台和终端
CN107466087B (zh) 一种网络搜索方法及移动终端
US20190230582A1 (en) Method for determining parameter set of cell, method for sending parameter set of cell, device, and system
US11012835B2 (en) Method and terminal for acquiring transmission resource in vehicle to everything
US20240004730A1 (en) Event processing method and device
CN110572177B (zh) 基于天线的通信方法、通信终端及具有存储功能的装置
JP6514350B2 (ja) 移動端末の使用領域を限定するための方法および装置、ならびに移動端末
CN114828163A (zh) 一种网络接入方法、装置及终端设备

Legal Events

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

Ref document number: 16877169

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16877169

Country of ref document: EP

Kind code of ref document: A1