WO2017076015A1 - MiFi的控制方法和装置 - Google Patents

MiFi的控制方法和装置 Download PDF

Info

Publication number
WO2017076015A1
WO2017076015A1 PCT/CN2016/087335 CN2016087335W WO2017076015A1 WO 2017076015 A1 WO2017076015 A1 WO 2017076015A1 CN 2016087335 W CN2016087335 W CN 2016087335W WO 2017076015 A1 WO2017076015 A1 WO 2017076015A1
Authority
WO
WIPO (PCT)
Prior art keywords
sim card
mifi
operator
disconnected
data network
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.)
Ceased
Application number
PCT/CN2016/087335
Other languages
English (en)
French (fr)
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.)
Le Holdings Beijing Co Ltd
Leauto Intelligent Technology Beijing Co Ltd
Original Assignee
Le Holdings Beijing Co Ltd
Leauto Intelligent Technology Beijing 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 Le Holdings Beijing Co Ltd, Leauto Intelligent Technology Beijing Co Ltd filed Critical Le Holdings Beijing Co Ltd
Publication of WO2017076015A1 publication Critical patent/WO2017076015A1/zh
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

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
    • H04W8/183Processing at user equipment or user record carrier
    • 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/08Access point devices
    • H04W88/10Access point devices adapted for operation in multiple networks, e.g. multi-mode access points
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/22Processing or transfer of terminal data, e.g. status or physical capabilities
    • H04W8/24Transfer of terminal data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/30Connection release
    • 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/04Terminal devices adapted for relaying to or from another terminal or user
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/18Selecting a network or a communication service
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/02Hierarchically pre-organised networks, e.g. paging networks, cellular networks, WLAN [Wireless Local Area Network] or WLL [Wireless Local Loop]
    • H04W84/04Large scale networks; Deep hierarchical networks
    • H04W84/042Public Land Mobile systems, e.g. cellular systems
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/02Hierarchically pre-organised networks, e.g. paging networks, cellular networks, WLAN [Wireless Local Area Network] or WLL [Wireless Local Loop]
    • H04W84/10Small scale networks; Flat hierarchical networks
    • H04W84/12WLAN [Wireless Local Area Networks]

Definitions

  • the present invention relates to the field of network communication technologies, and in particular, to a method and an apparatus for controlling MiFi.
  • MiFi portable broadband wireless device
  • a SIM (Subscriber Identity Module) card is inserted in the MiFi, the network side accesses the Internet through the data network, and the user side passes the WiFi (Wireless-Fidelity) network. Provide hotspot access to the Internet for other WiFi terminal devices.
  • WiFi Wireless-Fidelity
  • the existing MiFi will be limited to the network status of the operator to which the SIM card is installed.
  • the MiFi cannot continue to access the network, so it cannot continue to be another WiFi terminal.
  • the device provides data access services.
  • the embodiment of the invention provides a method and a device for controlling the MiFi, which is to solve the problem that the MiFi in the prior art is limited by the network status of the operator to which the SIM card installed is installed.
  • an embodiment of the present invention provides a method for controlling MiFi, in which at least two SIM cards of different operators are installed in the MiFi, and the method includes:
  • an embodiment of the present invention provides a control device for MiFi, in which at least two SIM cards of different operators are installed in the MiFi, and the device includes:
  • the monitoring module is configured to monitor whether the data network corresponding to the SIM card of the currently connected source operator is disconnected;
  • Selecting a module when the monitoring module monitors disconnection, selecting a SIM card of another operator other than the SIM card of the source operator as a SIM card of the target operator;
  • connection module configured to connect to a data network corresponding to the SIM card of the target operator.
  • a computer program comprising computer readable code that, when run on a MiFi, causes the MiFi to perform the above-described MiFi control method.
  • a computer readable medium wherein the computer program described above is stored.
  • the beneficial effects of the present invention are: the method and device for controlling the MiFi provided by the embodiment of the present invention, where at least two SIM cards of different operators are installed in the MiFi, and the data corresponding to the SIM card of a certain source operator is connected to the MiFi.
  • the network it is possible to monitor whether the data network corresponding to the SIM card of the currently connected source operator is disconnected. If disconnected, the SIM card of the carrier other than the SIM card of the source operator can be selected as the target operator. SIM card and connected to the data network corresponding to the target carrier's SIM card.
  • the MiFi can still select the data network corresponding to the SIM card of another operator to connect, so the solution is solved.
  • the MiFi is limited by the problem of the network status of the operator to which the SIM card installed is installed, which improves the user experience.
  • FIG. 1 is a flow chart showing the steps of a method for controlling MiFi according to Embodiment 1 of the present invention
  • FIG. 2 is a flow chart showing the steps of a method for controlling MiFi according to Embodiment 2 of the present invention
  • FIG. 3 is a schematic structural diagram of a MiFi according to Embodiment 2 of the present invention.
  • FIG. 4 is a flow chart showing the steps of a method for controlling MiFi according to Embodiment 3 of the present invention.
  • FIG. 5 is a structural block diagram of a MiFi control apparatus according to Embodiment 4 of the present invention.
  • FIG. 6 is a structural block diagram of a MiFi control apparatus according to Embodiment 5 of the present invention.
  • FIG. 7 shows schematically a block diagram of a MiFi for performing the method according to the invention
  • Fig. 8 schematically shows a storage unit for holding or carrying program code implementing the method according to the invention.
  • FIG. 1 a flow chart of steps of a method for controlling MiFi according to Embodiment 1 of the present invention is shown.
  • Step 101 Monitor whether the data network corresponding to the SIM card of the currently connected source operator is disconnected.
  • the MiFi of the embodiment of the present invention at least two SIM cards of different operators are installed, and each SIM card corresponds to one type of data network.
  • the MiFi can connect to a data network corresponding to one SIM card.
  • the SIM card is the SIM card of the source carrier.
  • the data network initially connected may be a data network corresponding to a SIM card manually selected by the user, or may be a data network corresponding to a SIM card with a strong intensity automatically selected by the MiFi according to the network signal strength, and the present invention is implemented. This example does not limit this.
  • the data network corresponding to the SIM card of the source operator After the data network corresponding to the SIM card of the source operator is connected to the MiFi, the data network corresponding to the SIM card of the currently connected source operator can be monitored to determine whether it is necessary to connect the data corresponding to the SIM card of another carrier.
  • the internet The monitoring may be real-time monitoring, or may be monitored according to a set time interval. For the time interval, the person skilled in the art may set any applicable value according to actual experience, for example, may be set to 5s, 10s, etc., and the implementation of the present invention The examples do not limit the specific values.
  • Step 102 If disconnected, select a SIM card of another operator other than the SIM card of the source operator as the SIM card of the target operator.
  • the MiFi cannot be continuously accessed.
  • one of the SIM cards of the other operators except the SIM card of the source operator may be selected as the target operator.
  • the SIM card can then be connected to the data network corresponding to the target carrier's SIM card, thereby ensuring that the MiFi can still access the data network.
  • Step 103 Connect to a data network corresponding to the SIM card of the target operator.
  • the MiFi control method provided by the embodiment of the present invention, at least two SIM cards of different operators are installed in the MiFi, and when the MiFi is connected to the data network corresponding to the SIM card of a source operator, the currently connected network can be monitored. Whether the data network corresponding to the SIM card of the source operator is disconnected. If it is disconnected, the SIM card of the carrier other than the SIM card of the source operator can be selected as the SIM card of the target carrier and connected to the target carrier. The SIM card corresponds to the data network. Therefore, in the embodiment of the present invention, the MiFi is not caused even because the network condition of the currently connected data network is poor. The method continues to access the data network, and the MiFi can still select the data network corresponding to the SIM card of the other carrier to connect. Therefore, the problem that the MiFi in the prior art is limited by the network status of the operator to which the SIM card is installed is solved. , improved user experience.
  • FIG. 2 a flow chart of steps of a method for controlling MiFi according to Embodiment 2 of the present invention is shown.
  • Step 201 Detect whether the MiFi is enabled by the WiFi hotspot function. If it is turned on, step 202 is performed; if not, the corresponding operation is performed.
  • the MiFi includes three SIM cards, SIM1, SIM2 and SIM3, and also includes a main controller and a WiFi module.
  • the SIM1, SIM2, SIM3 and WiFi modules respectively have respective corresponding network signals.
  • three SIM cards belong to different operators (for example, SIM1 belongs to mobile, SIM2 belongs to China Unicom, SIM3 belongs to China Unicom, SIM3 belongs to telecommunications, etc.), and the main controller is mainly used for network connection on the network side of MiFi and WiFi connected to the MiFi on the user side.
  • the terminal device controls the WiFi module to implement the WiFi hotspot function of the MiFi, and the WiFi module can be turned on and off (corresponding to the opening and closing of the WiFi hotspot function respectively).
  • the MiFi shown in FIG. 3 is only for illustration.
  • the MiFi in the embodiment of the present invention is not limited to three SIM cards including SIM1, SIM2, and SIM3 as shown in FIG. Any two SIM cards are included in the embodiment of the present invention.
  • WiFi hotspot function of the MiFi After the WiFi hotspot function of the MiFi is enabled, other WiFi terminal devices are allowed to access the currently connected data network of the MiFi through the WiFi hotspot of the MiFi; when the WiFi hotspot function of the MiFi is turned off, other WiFi terminals are prohibited.
  • the device accesses the currently connected data network of the MiFi through the WiFi hotspot of the MiFi.
  • the process of detecting whether the MiFi is enabled with the WiFi hotspot function may be: detecting whether the WiFi module in the MiFi is enabled, and if enabled, indicating that the MiFi is enabled by the WiFi hotspot function.
  • the on/off options corresponding to the WiFi module can be set in the MiFi, for example, the on and off buttons can be set, and when the option is turned on, the MiFi can receive an instruction to enable the WiFi module, and after receiving the WiFi, the WiFi can be turned on.
  • Module, when selecting the close option, MiFi can receive the command to turn off the WiFi module, and then close the WiFi module after receiving it.
  • Step 202 After detecting that the WiFi hotspot function is enabled by the MiFi, monitor whether the data network corresponding to the SIM card of the currently connected source operator is disconnected. If it is disconnected, step 203 is performed; if not, the corresponding operation is performed.
  • WiFi hotspot function is enabled in MiFi
  • other WiFi terminal devices are allowed to access the currently connected data network through the MiFi WiFi hotspot.
  • the WiFi hotspot function of MiFi is turned off, in this case, regardless of whether the data connection of MiFi is disconnected, other WiFi terminal devices will be prohibited from passing the MiFi.
  • the WiFi hotspot is connected to the data network that the MiFi is currently connected to, so there is virtually no need to monitor the MiFi network connection.
  • the data network corresponding to the SIM card of the currently connected source operator is disconnected; and if the MiFi is detected, If the WiFi hotspot function is not enabled, the corresponding operation may be performed, and the corresponding operation may be a process of continuously performing a function of detecting whether the MiFi is enabled or not. In this way, the power consumption of the MiFi can be further reduced and power can be saved.
  • a routing table is stored in the MiFi, and the network connection information of the MiFi can be recorded in the routing table.
  • the MiFi shown in FIG. 3 is taken as an example, and the routing table can separately record SIM1, SIM2, and SIM3.
  • the status of the network port includes two types: connection and disconnection. For example, if the MiFi is currently connected to the data network corresponding to the SIM1 card, the status of the network ports in the routing table is: SIM1 is the connection, SIM2 and SIM3 are disconnected.
  • the step 202 may include: monitoring the source operation recorded in the routing table saved in the MiFi. Whether the status of the network port corresponding to the SIM card of the quotient is changed from disconnected to disconnected; if so, The data network corresponding to the SIM card of the currently connected source carrier is disconnected.
  • Step 203 If disconnected, select a SIM card of another operator other than the SIM card of the source operator as the SIM card of the target operator.
  • the MiFi can automatically select the SIM card of another operator as the SIM card of the target operator, and connect to the data network based on the SIM card of the target operator. If the data network corresponding to the SIM card of the currently connected source operator is not disconnected, the corresponding operation may be performed, and the corresponding operation may continue to repeatedly monitor the data corresponding to the SIM card of the currently connected source operator. The process of disconnecting the network.
  • the selection process of the step 203 can be performed according to the actual situation of the number of SIM cards installed in the MiFi. Specifically, the following two situations may be included: In the first case, if two SIM cards of different operators are installed in the MiFi, the SIM card of another operator other than the SIM card of the source operator is selected as the target operator. SIM card. The second case: if there are at least three SIM cards of different operators installed in the MiFi, select the SIM of one operator with the strongest network signal strength from the SIM cards of other operators except the SIM card of the source operator. The card acts as the SIM card of the target carrier.
  • the SIM card of the source operator is SIM1
  • the network connection of SIM1 is disconnected
  • MiFi will select the one with the strongest network signal strength from SIM2 and SIM3.
  • the SIM card is used as the SIM card of the target carrier. It should be noted that the process of determining the network signal strength of the SIM card of each of the other operators may be processed by any suitable method according to actual experience, which is not discussed in detail in the embodiments of the present invention.
  • Step 204 Connect to a data network corresponding to the SIM card of the target operator.
  • the MiFi can be automatically connected to the data network corresponding to the SIM card of the target operator. After the connection, the MiFi can continue to access the data corresponding to the SIM card of the target operator.
  • the network continues to provide data access services for other WiFi terminal devices.
  • the step 204 may include: obtaining a name of a network port corresponding to the SIM card of the target operator; and updating, by disconnecting, the network port status corresponding to the name of the network port recorded in the routing table saved in the MiFi.
  • MiFi Take the MiFi shown in Figure 3 as an example. If the source carrier's SIM card is SIM1, then when SIM1 When the network connection is disconnected, MiFi will select one SIM card with the strongest network signal strength from SIM2 and SIM3 as the SIM card of the target operator. For example, select SIM2 as the SIM card of the target operator, and then connect to the SIM2 after selection. Corresponding data network. Specifically, the name of the network port corresponding to the SIM2 is obtained, and then the network port status corresponding to the name is updated from disconnected to connected. Therefore, the status of the network port recorded in the updated routing table is: SIM1 is disconnected, and SIM2 is Connect, SIM3 is disconnected.
  • steps 201 to 204 may all be performed by the main controller in the MiFi shown in FIG. 3.
  • the embodiment of the present invention can well overcome the drawbacks of the MiFi solution in which only a single SIM card is installed. For example, if you install three SIM cards (one Unicom + one mobile + one telecom), you can better reflect the advantages of this solution. When users carry MiFi to an area, if Unicom does not have a signal, With a mobile network, you can also use a telecommunications network when there is no signal to move. Thereby greatly facilitating the use of the user and improving the user experience.
  • FIG. 4 a flow chart of steps of a method for controlling MiFi according to Embodiment 3 of the present invention is shown.
  • step 401 the WiFi hotspot function of MiFi is turned on.
  • the on/off options corresponding to the WiFi module can be set in the MiFi, for example, the on and off buttons can be set, and when the option is turned on, the MiFi can receive an instruction to enable the WiFi module, and receive the command.
  • the WiFi module can be turned on, that is, the WiFi hotspot function of MiFi is turned on.
  • step 402 a routing table monitoring process is performed.
  • the routing table monitoring process may be preset, and the process is mainly used to monitor the change status of the routing table.
  • step 403 it is monitored whether the routing table is changed. If yes, go to step 404; if no, go back to step 402.
  • This step may correspond to step 202 of the second embodiment, and may be specifically implemented in step 202. Therefore, the step of monitoring whether the routing table is changed may be: monitoring whether the state of the network port corresponding to the SIM card of the source operator recorded in the routing table saved in the MiFi is changed from disconnected to disconnected.
  • Step 404 Obtain a name of a network port corresponding to the SIM card of the target operator, and update the routing table.
  • This step may correspond to step 203 and step 204 of the second embodiment, and specifically refer to the related descriptions of step 203 and step 204.
  • step 405 the NAT table is refreshed and the SNAT table is set accordingly.
  • a network address translation (NAT) and a source network address translation (SNAT) table may be saved in the MiFi.
  • the NAT table stores the external network information of the MiFi.
  • the SNAT table stores the external network information of MiFi and the information of the source network.
  • the NAT table can be refreshed and the SNAT table can be set accordingly.
  • the specific information of the external network information saved in the NAT table and the SNAT table is set to the information of the SIM card corresponding to the target carrier. .
  • the MiFi shown in Figure 3 Take the MiFi shown in Figure 3 as an example. If the SIM card of the source operator is SIM1, when the network connection of SIM1 is disconnected, MiFi selects SIM2 as the SIM card of the target carrier, then refreshes the NAT table and sets the SNAT table accordingly.
  • the external network information saved in the NAT table and the SNAT table may be set to the information of the SIM2 corresponding network, for example, the external network address is set to the address of the SIM2 corresponding network, and the external network is The interface name is set to the interface name of the network corresponding to SIM2.
  • FIG. 5 there is shown a block diagram showing the structure of a MiFi control apparatus according to a fourth embodiment of the present invention. At least two SIM cards of different operators are installed in the MiFi of the embodiment of the present invention.
  • the monitoring module 501 is configured to monitor whether the data network corresponding to the SIM card of the currently connected source operator is disconnected;
  • the selecting module 502 is configured to: when the monitoring module monitors disconnection, select a SIM card of another operator other than the SIM card of the source operator as the SIM card of the target operator;
  • the connection module 503 is configured to connect to a data network corresponding to the SIM card of the target operator.
  • the control device of the MiFi installs at least two SIM cards of different operators in the MiFi.
  • the MiFi When the MiFi is connected to the data network corresponding to the SIM card of a source operator, the currently connected terminal can be monitored. Whether the data network corresponding to the SIM card of the source operator is disconnected. If it is disconnected, the SIM card of the carrier other than the SIM card of the source operator can be selected as the SIM card of the target carrier and connected to the target carrier.
  • the SIM card corresponds to the data network. Therefore, in the embodiment of the present invention, even if the MiFi cannot continue to access the data network due to poor network conditions of the currently connected data network, the MiFi can still select the data network corresponding to the SIM card of another operator to connect, so the solution is solved.
  • the MiFi is limited by the problem of the network status of the operator to which the SIM card installed is installed, which improves the user experience.
  • FIG. 6 there is shown a block diagram showing the structure of a MiFi control apparatus according to a fifth embodiment of the present invention. At least two SIM cards of different operators are installed in the MiFi of the embodiment of the present invention.
  • the monitoring module 601 is configured to monitor whether the data network corresponding to the SIM card of the currently connected source operator is disconnected;
  • the selecting module 602 is configured to: when the monitoring module monitors disconnection, select a SIM card of another operator other than the SIM card of the source operator as the SIM card of the target operator;
  • the connection module 603 is configured to connect to a data network corresponding to the SIM card of the target operator.
  • the control device of the MiFi further includes: a detecting module 604, configured to detect whether the MiFi is enabled by the WiFi hotspot function before the monitoring module monitors whether the data network corresponding to the SIM card of the currently connected source operator is disconnected.
  • the monitoring module is specifically configured to monitor whether the data network corresponding to the SIM card of the currently connected source operator is disconnected after the detecting module detects that the MiFi is enabled by the WiFi hotspot function.
  • the monitoring module 601 can include:
  • the routing table monitoring sub-module 6011 is configured to monitor whether the state of the network port corresponding to the SIM card of the source operator recorded in the routing table saved in the MiFi is changed from the connection to the disconnection;
  • the determining sub-module 6012 is configured to determine that the data network corresponding to the SIM card of the currently connected source operator is disconnected when the routing table monitoring sub-module monitors the result to be yes.
  • the selecting module 602 can include:
  • the first selection sub-module 6021 is configured to select a SIM card of another operator other than the SIM card of the source operator as the SIM card of the target operator when the SIM card of two different carriers is installed in the MiFi;
  • the second selection sub-module 6022 is configured to select, when the SIM card of at least three different operators is installed in the MiFi, select the one with the highest network signal strength from the SIM cards of other operators except the SIM card of the source operator.
  • the operator's SIM card acts as the SIM card of the target carrier.
  • connection module 603 can include:
  • the obtaining sub-module 6031 is configured to obtain a name of a network port corresponding to the SIM card of the target operator.
  • the update submodule 6032 is configured to update the network port status corresponding to the name of the network port recorded in the routing table stored in the MiFi from disconnected to connected.
  • the embodiment of the present invention can well overcome the drawbacks of the MiFi solution in which only a single SIM card is installed. For example, if you install three SIM cards (one Unicom + one mobile + one telecom), you can better reflect the advantages of this solution. When users carry MiFi to an area, if Unicom does not have a signal, With a mobile network, you can also use a telecommunications network when there is no signal to move. Thereby greatly facilitating the use of the user and improving the user experience.
  • the description is relatively simple, and the relevant parts can be referred to the description of the method embodiment.
  • the device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, ie may be located A place, or it can be distributed to multiple network units. Some or all of the modules may be selected according to actual needs to implement the embodiment. The purpose of the program. Those of ordinary skill in the art can understand and implement without deliberate labor.
  • the various component embodiments of the present invention may be implemented in hardware, or in a software module running on one or more processors, or in a combination thereof.
  • a microprocessor or digital signal processor may be used in practice to implement some or all of the functionality of some or all of the components of MiFi in accordance with embodiments of the present invention.
  • the invention can also be implemented as a device or device program (e.g., a computer program and a computer program product) for performing some or all of the methods described herein.
  • a program implementing the invention may be stored on a computer readable medium or may be in the form of one or more signals.
  • Such signals may be downloaded from an Internet website, provided on a carrier signal, or provided in any other form.
  • FIG. 7 shows that MiFi in accordance with the present invention can be implemented.
  • the MiFi conventionally includes a processor 710 and a computer program product or computer readable medium in the form of a memory 720.
  • Memory 720 can be an electronic memory such as a flash memory, EEPROM (Electrically Erasable Programmable Read Only Memory), EPROM, hard disk, or ROM.
  • Memory 720 has a memory space 730 for program code 731 for performing any of the method steps described above.
  • storage space 730 for program code may include various program code 731 for implementing various steps in the above methods, respectively.
  • the program code can be read from or written to one or more computer program products.
  • These computer program products include program code carriers such as hard disks, compact disks (CDs), memory cards or floppy disks.
  • Such a computer program product is typically a portable or fixed storage unit as described with reference to FIG.
  • the storage unit may have a storage section, a storage space, and the like arranged similarly to the storage 720 in the MiFi of FIG.
  • the program code can be compressed, for example, in an appropriate form.
  • the storage unit includes computer readable code 731', code that can be read by a processor, such as 710, which when executed by MiFi causes the MiFi to perform various steps in the methods described above.

Landscapes

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

Abstract

本发明提供一种MiFi的控制方法和装置。其中,MiFi中安装有至少两张不同运营商的SIM卡,MiFi的控制方法包括:监控当前已连接的源运营商的SIM卡对应的数据网络是否断开;若断开,则选取除源运营商的SIM卡之外的其他运营商的SIM卡作为目标运营商的SIM卡;连接至目标运营商的SIM卡对应的数据网络。本发明中即使由于当前已连接的数据网络的网络状况较差导致MiFi无法继续接入该数据网络,MiFi仍然可以选择其他运营商的SIM卡对应的数据网络进行连接,故解决了现有技术中MiFi会受限于其中安装的SIM卡所属运营商的网络状况的问题,提升了用户体验。

Description

MiFi的控制方法和装置
本申请要求在2015年11月6日提交中国专利局、申请号为201510752706.8、发明名称为“MiFi的控制方法和装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本发明涉及网络通信技术领域,尤其涉及一种MiFi的控制方法和装置。
背景技术
随着网络技术的飞速发展,用户对网络的依赖性越来越大,无论是工作、学习、休闲娱乐等都离不开网络。近年来,用户对网络便捷性的要求也越来越高,尤其是在某些网络接口不足的场合,网络连接的共享就显得更加至关重要。因此,为了更大程度地方便用户的使用,MiFi(便携式宽带无线装置)随之出现。MiFi是一个便携式宽带无线装置,集调制解调器、路由器和接入点三者功能于一身,内置调制解调器可以接入一个无线信号,内部路由器可在多个用户和无线设备之间共享这一连接,故MiFi有时也被成为个人“热点”。
使用现有的MiFi,通过在MiFi中插入一张SIM(Subscriber Identity Module,用户身份识别模块)卡,网络侧通过数据网络接入互联网,用户侧则通过WiFi(Wireless-Fidelity,无线保真)网络为其他WiFi终端设备提供热点接入互联网。
但是,现有的MiFi会受限于其中安装的SIM卡所属运营商的网络状况,当所属运营商的网络情况较差时,将导致MiFi无法继续接入该网络,故无法继续为其他WiFi终端设备提供数据接入服务。
发明内容
本发明实施例提供一种MiFi的控制方法和装置,用以解决现有技术中MiFi会受限于其中安装的SIM卡所属运营商的网络状况的问题。
根据本发明的一个方面,本发明实施例提供一种MiFi的控制方法,所述MiFi中安装有至少两张不同运营商的SIM卡,所述方法包括:
监控当前已连接的源运营商的SIM卡对应的数据网络是否断开;
若断开,则选取除所述源运营商的SIM卡之外的其他运营商的SIM卡作为目标运营商的SIM卡;
连接至所述目标运营商的SIM卡对应的数据网络。
根据本发明的另一个方面,本发明实施例提供一种MiFi的控制装置,所述MiFi中安装有至少两张不同运营商的SIM卡,所述装置包括:
监控模块,用于监控当前已连接的源运营商的SIM卡对应的数据网络是否断开;
选取模块,用于在所述监控模块监控到断开时,选取除所述源运营商的SIM卡之外的其他运营商的SIM卡作为目标运营商的SIM卡;
连接模块,用于连接至所述目标运营商的SIM卡对应的数据网络。
根据本发明的又一个方面,提供了一种计算机程序,其包括计算机可读代码,当所述计算机可读代码在MiFi上运行时,导致所述MiFi执行上述的MiFi的控制方法。
根据本发明的再一个方面,提供了一种计算机可读介质,其中存储了上述的计算机程序。
本发明的有益效果为:本发明实施例提供的MiFi的控制方法和装置,在MiFi中安装有至少两张不同运营商的SIM卡,当MiFi已连接某一源运营商的SIM卡对应的数据网络时,可以监控当前已连接的源运营商的SIM卡对应的数据网络是否断开,如果断开则可以选取除源运营商的SIM卡之外的其他运营商的SIM卡作为目标运营商的SIM卡,并连接至目标运营商的SIM卡对应的数据网络。因此,本发明实施例中即使由于当前已连接的数据网络的网络状况较差导致MiFi无法继续接入该数据网络,MiFi仍然可以选择其他运营商的SIM卡对应的数据网络进行连接,故解决了现有技术中MiFi会受限于其中安装的SIM卡所属运营商的网络状况的问题,提升了用户体验。
上述说明仅是本发明技术方案的概述,为了能够更清楚了解本发明的技术手段,而可依照说明书的内容予以实施,并且为了让本发明 的上述和其它目的、特征和优点能够更明显易懂,以下特举本发明的具体实施方式。
附图说明
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作一简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1为本发明实施例一的一种MiFi的控制方法的步骤流程图;
图2为本发明实施例二的一种MiFi的控制方法的步骤流程图;
图3为本发明实施例二的一种MiFi的结构示意图;
图4为本发明实施例三的一种MiFi的控制方法的步骤流程图;
图5为本发明实施例四的一种MiFi的控制装置的结构框图;
图6为本发明实施例五的一种MiFi的控制装置的结构框图。
图7示意性地示出了用于执行根据本发明的方法的MiFi的框图;以及
图8示意性地示出了用于保持或者携带实现根据本发明的方法的程序代码的存储单元。
具体实施例
为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。
实施例一
参照图1,示出了本发明实施例一的一种MiFi的控制方法的步骤流程图。
本发明实施例的MiFi的控制方法可以包括以下步骤:
步骤101,监控当前已连接的源运营商的SIM卡对应的数据网络是否断开。
本发明实施例的MiFi中安装有至少两张不同运营商的SIM卡,每张SIM卡各自对应一种类型的数据网络,初始时MiFi可以连接其中的一张SIM卡对应的数据网络,该张SIM卡为源运营商的SIM卡。其中,初始时连接的数据网络可以为用户手动选择的一张SIM卡对应的数据网络,也可以为MiFi根据网络信号强度自动选择的强度较大的一张SIM卡对应的数据网络,本发明实施例对此并不加以限制。
在MiFi连接上源运营商的SIM卡对应的数据网络后,可以监控当前已连接的源运营商的SIM卡对应的数据网络是否断开,以确定是否需要连接其他运营商的SIM卡对应的数据网络。其中,监控可以为实时监控,也可以为按照设定的时间间隔监控,对于该时间间隔,本领域技术人员根据可以实际经验设置任意适用的数值,例如可以设置为5s、10s等,本发明实施例对具体的数值并不加以限制。
步骤102,若断开,则选取除源运营商的SIM卡之外的其他运营商的SIM卡作为目标运营商的SIM卡。
如果在步骤101中监控到当前已连接的源运营商的SIM卡对应的数据网络断开,则由于MiFi中安装有至少两张不同运营商的SIM卡,因此为了避免MiFi无法继续接入上述断开的网络而导致无法继续为其他WiFi终端设备提供数据接入服务,本发明实施例中可以进一步从除源运营商的SIM卡之外的其他运营商的SIM卡中选取一张作为目标运营商的SIM卡,然后可以连接至该目标运营商的SIM卡对应的数据网络,从而保证MiFi仍然能够接入数据网络。
步骤103,连接至目标运营商的SIM卡对应的数据网络。
本发明实施例提供的MiFi的控制方法,在MiFi中安装有至少两张不同运营商的SIM卡,当MiFi已连接某一源运营商的SIM卡对应的数据网络时,可以监控当前已连接的源运营商的SIM卡对应的数据网络是否断开,如果断开则可以选取除源运营商的SIM卡之外的其他运营商的SIM卡作为目标运营商的SIM卡,并连接至目标运营商的SIM卡对应的数据网络。因此,本发明实施例中即使由于当前已连接的数据网络的网络状况较差导致MiFi无 法继续接入该数据网络,MiFi仍然可以选择其他运营商的SIM卡对应的数据网络进行连接,故解决了现有技术中MiFi会受限于其中安装的SIM卡所属运营商的网络状况的问题,提升了用户体验。
实施例二
参照图2,示出了本发明实施例二的一种MiFi的控制方法的步骤流程图。
本发明实施例的MiFi的控制方法可以包括以下步骤:
步骤201,检测MiFi是否被开启WiFi热点功能。若被开启,则执行步骤202;若未被开启,则执行相应操作。
本发明实施例中,MiFi中安装有至少两张不同运营商的SIM卡。参照图3,示出了本发明实施例二的一种MiFi的结构示意图。该MiFi中包括SIM1、SIM2和SIM3这三张SIM卡,还包括主控制器和WiFi模块,SIM1、SIM2、SIM3和WiFi模块分别具有各自对应的网络信号。其中,三张SIM卡分别属于不同运营商(例如SIM1属于移动,SIM2属于联通,SIM3属于电信等),主控制器主要用于对MiFi的网络侧的网络连接及用户侧连接至该MiFi的WiFi终端设备等进行控制,WiFi模块为实现MiFi的WiFi热点功能的模块,可以对WiFi模块进行开启和关闭(分别对应于WiFi热点功能的开启和关闭)。需要说明的是,图3所示的MiFi仅是用于举例说明,本发明实施例中的MiFi并不限定于包括如图3所示的SIM1、SIM2和SIM3这三张SIM卡,也可以仅包括其中的任意两张SIM卡,本发明实施例对此并不加以限制。
当MiFi的WiFi热点功能被开启后,则允许其他的WiFi终端设备通过该MiFi的WiFi热点接入该MiFi当前已连接的数据网络;当MiFi的WiFi热点功能被关闭后,则禁止其他的WiFi终端设备通过该MiFi的WiFi热点接入该MiFi当前已连接的数据网络。优选地,本发明实施例中可以检测MiFi是否被开启WiFi热点功能,进而根据检测结果确定是否对MiFi当前已连接的源运营商的SIM卡对应的数据网络的连接状态进行监控。
其中,检测MiFi是否被开启WiFi热点功能的过程可以为:检测MiFi中的WiFi模块是否被开启,若被开启则说明MiFi被开启WiFi热点功能。 在具体实现中,可以在MiFi中设置WiFi模块对应的开启和关闭选项,例如可以设置开启和关闭按钮等,当选择开启选项时MiFi可接收到开启WiFi模块的指令,接收到之后即可开启WiFi模块,当选择关闭选项时MiFi可接收到关闭WiFi模块的指令,接收到之后即可关闭WiFi模块。
步骤202,在检测到MiFi被开启WiFi热点功能后,监控当前已连接的源运营商的SIM卡对应的数据网络是否断开。若断开,则执行步骤203;若未断开,则执行相应操作。
考虑到在MiFi被开启WiFi热点功能后,才会允许其他的WiFi终端设备通过该MiFi的WiFi热点接入该MiFi当前已连接的数据网络,该种情况下如果MiFi的数据网络连接断开,则将导致其他的WiFi终端设备无法再继续通过该MiFi连接网络;而如果MiFi的WiFi热点功能关闭,该种情况下无论MiFi的数据网络连接是否断开,都将禁止其他的WiFi终端设备通过该MiFi的WiFi热点接入该MiFi当前已连接的数据网络,因此实际上无需对MiFi的网络连接进行监控。因此,优选地,本发明实施例中可以进一步限定在检测到MiFi被开启WiFi热点功能后,才会监控当前已连接的源运营商的SIM卡对应的数据网络是否断开;而如果检测到MiFi未被开启WiFi热点功能,则可以执行相应操作,该相应操作可以为继续重复执行检测MiFi是否被开启WiFi热点功能的过程。通过上述方式能够进一步降低MiFi的功耗,节省电能。
本发明实施例中,在MiFi的内部保存有路由表,该路由表中可以记载MiFi的网络连接信息等,以图3所示的MiFi为例,该路由表中可以分别记载SIM1、SIM2和SIM3这三张SIM卡各自对应的网络端口的名称、网络端口的状态、各自对应的运营商的名称等信息。其中,网络端口的状态包括连接和断开两种,例如MiFi当前已连接SIM1卡对应的数据网络,则路由表中记载的网络端口的状态分别为:SIM1为连接,SIM2和SIM3均为断开,后续如果SIM1卡对应的数据网络断开,则路由表中记载的网络端口的状态将自动更新,分别为:SIM1、SIM2和SIM3均为断开。因此,可以通过对路由表的监控来对当前已连接的源运营商的SIM卡对应的数据网络是否断开进行监控,故该步骤202可以包括:监控MiFi内部保存的路由表中记载的源运营商的SIM卡对应的网络端口状态是否由连接变换为断开;若是,则确 定当前已连接的源运营商的SIM卡对应的数据网络断开。
步骤203,若断开,则选取除源运营商的SIM卡之外的其他运营商的SIM卡作为目标运营商的SIM卡。
如果在步骤202中监控到当前已连接的源运营商的SIM卡对应的数据网络断开,则为了避免由于MiFi的数据网络连接断开而导致其他WiFi终端设备也无法再继续接入该数据网络,本发明实施例中MiFi可以自动选取其他运营商的SIM卡作为目标运营商的SIM卡,并基于该目标运营商的SIM卡连接数据网络。而如果监控到当前已连接的源运营商的SIM卡对应的数据网络未断开,则可以执行相应操作,该相应操作可以为继续重复执行监控当前已连接的源运营商的SIM卡对应的数据网络是否断开的过程。
优选地,本发明实施例中可以根据MiFi中安装的SIM卡个数的实际情况执行该步骤203的选取过程。具体可以包括以下两种情况:第一种情况:若MiFi中安装有两张不同运营商的SIM卡,则选取除源运营商的SIM卡之外的另一个运营商的SIM卡作为目标运营商的SIM卡。第二种情况:若MiFi中安装有至少三张不同运营商的SIM卡,则从除源运营商的SIM卡之外的其他运营商的SIM卡中选取网络信号强度最大的一个运营商的SIM卡作为目标运营商的SIM卡。以图3所示的安装有三张SIM卡的MiFi为例,如果源运营商的SIM卡为SIM1,则当SIM1的网络连接断开时,MiFi将从SIM2和SIM3中选取网络信号强度最大的一张SIM卡作为目标运营商的SIM卡。需要说明的是,对于其中对各个其他运营商的SIM卡的网络信号强度的判断过程,本领域技术人员根据实际经验采用任意适用的方式处理即可,本发明实施例对此不再详细论述。
步骤204,连接至目标运营商的SIM卡对应的数据网络。
在步骤204中选取出目标运营商的SIM卡后,MiFi即可自动连接至该目标运营商的SIM卡对应的数据网络,连接之后MiFi即可继续接入该目标运营商的SIM卡对应的数据网络,继续为其他WiFi终端设备提供数据接入服务。优选地,该步骤204可以包括:获取目标运营商的SIM卡对应的网络端口的名称;将MiFi内部保存的路由表中记载的网络端口的名称对应的网络端口状态由断开更新为连接。
以图3所示的MiFi为例,如果源运营商的SIM卡为SIM1,则当SIM1 的网络连接断开时,MiFi将从SIM2和SIM3中选取网络信号强度最大的一张SIM卡作为目标运营商的SIM卡,如选取SIM2作为目标运营商的SIM卡,选取之后将连接至该SIM2对应的数据网络。具体可以为获取SIM2对应的网络端口的名称,然后将该名称对应的网络端口状态由断开更新为连接,因此更新后路由表中记载的网络端口的状态分别为:SIM1为断开,SIM2为连接,SIM3为断开。
最后需要说明的是,上述步骤201~步骤204可以均为由图3所示的MiFi中的主控器执行的步骤。
与传统的MiFi解决方案相比,本发明实施例能够很好的克服仅安装单一SIM卡的MiFi方案的弊端。例如如果安装三张SIM卡(一张联通+一张移动+一张电信),那么就能够更大限度的体现本方案的优势,当用户携带MiFi到达某区域时,如果联通没有信号时也可以使用移动的网络,移动没有信号时还可以使用电信的网络。从而极大地方便了用户的使用,提升用户体验。
实施例三
参照图4,示出了本发明实施例三的一种MiFi的控制方法的步骤流程图。
本发明实施例的MiFi的控制方法可以包括以下步骤:
步骤401,开启MiFi的WiFi热点功能。
如实施例二的步骤201所述,可以在MiFi中设置WiFi模块对应的开启和关闭选项,例如可以设置开启和关闭按钮等,当选择开启选项时MiFi可接收到开启WiFi模块的指令,接收到之后即可开启WiFi模块,也即开启MiFi的WiFi热点功能。
步骤402,执行路由表监控进程。
本发明实施例中,可以预先设定路由表监控进程,该进程主要用于对路由表的变化状况进行监控。
步骤403,监控路由表是否改变。若是,则执行步骤404;若否,则返回步骤402。
该步骤可以对应于实施例二的步骤202,可以为步骤202的具体实现过 程,因此该步骤监控路由表是否改变具体可以指:监控MiFi内部保存的路由表中记载的源运营商的SIM卡对应的网络端口状态是否由连接变换为断开。
步骤404,获取目标运营商的SIM卡对应的网络端口的名称,并更新路由表。
该步骤可以对应于实施例二的步骤203和步骤204,具体参照步骤203和步骤204的相关描述即可。
步骤405,刷新NAT表并相应设置SNAT表。
本发明实施例中,MiFi内部还可以保存NAT(Network Address Translation,网络地址转换)表和SNAT(Source Network Address Translation,源网络地址转换)表,其中NAT表中保存有MiFi对外的网络信息等(如当前对外的网络地址、对外的网络接口名称等),SNAT表中保存有MiFi对外的网络信息和源网络的信息等。
在对上述路由表进行更新后,还可以刷新NAT表并相应设置SNAT表,具体可以为:将NAT表和SNAT表中保存的对外的网络信息均设置为目标运营商的SIM卡对应网络的信息。以图3所示的MiFi为例,如果源运营商的SIM卡为SIM1,则当SIM1的网络连接断开时,MiFi选取SIM2作为目标运营商的SIM卡,则刷新NAT表并相应设置SNAT表可以为:将NAT表和SNAT表中保存的对外的网络信息(即SIM1对应网络的信息)设置为SIM2对应网络的信息,例如将对外的网络地址设置为SIM2对应网络的地址,将对外的网络接口名称设置为SIM2对应网络的接口名称等。
对于前述的各方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本发明并不受所描述的动作顺序的限制,因为依据本发明,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是本发明所必须的。
实施例四
参照图5,示出了本发明实施例四的一种MiFi的控制装置的结构框图。本发明实施例的MiFi中安装有至少两张不同运营商的SIM卡。
本发明实施例的MiFi的控制装置可以包括以下模块:
监控模块501,用于监控当前已连接的源运营商的SIM卡对应的数据网络是否断开;
选取模块502,用于在监控模块监控到断开时,选取除源运营商的SIM卡之外的其他运营商的SIM卡作为目标运营商的SIM卡;
连接模块503,用于连接至目标运营商的SIM卡对应的数据网络。
本发明实施例提供的MiFi的控制装置,在MiFi中安装有至少两张不同运营商的SIM卡,当MiFi已连接某一源运营商的SIM卡对应的数据网络时,可以监控当前已连接的源运营商的SIM卡对应的数据网络是否断开,如果断开则可以选取除源运营商的SIM卡之外的其他运营商的SIM卡作为目标运营商的SIM卡,并连接至目标运营商的SIM卡对应的数据网络。因此,本发明实施例中即使由于当前已连接的数据网络的网络状况较差导致MiFi无法继续接入该数据网络,MiFi仍然可以选择其他运营商的SIM卡对应的数据网络进行连接,故解决了现有技术中MiFi会受限于其中安装的SIM卡所属运营商的网络状况的问题,提升了用户体验。
实施例五
参照图6,示出了本发明实施例五的一种MiFi的控制装置的结构框图。本发明实施例的MiFi中安装有至少两张不同运营商的SIM卡。
本发明实施例的MiFi的控制装置可以包括以下模块:
监控模块601,用于监控当前已连接的源运营商的SIM卡对应的数据网络是否断开;
选取模块602,用于在监控模块监控到断开时,选取除源运营商的SIM卡之外的其他运营商的SIM卡作为目标运营商的SIM卡;
连接模块603,用于连接至目标运营商的SIM卡对应的数据网络。
优选地,MiFi的控制装置还包括:检测模块604,用于在监控模块监控当前已连接的源运营商的SIM卡对应的数据网络是否断开之前,检测MiFi是否被开启WiFi热点功能。相应地,监控模块,具体用于在检测模块检测到MiFi被开启WiFi热点功能后,监控当前已连接的源运营商的SIM卡对应的数据网络是否断开。
优选地,监控模块601可以包括:
路由表监控子模块6011,用于监控MiFi内部保存的路由表中记载的源运营商的SIM卡对应的网络端口状态是否由连接变换为断开;
确定子模块6012,用于在路由表监控子模块监控到结果为是时,确定当前已连接的源运营商的SIM卡对应的数据网络断开。
优选地,选取模块602可以包括:
第一选取子模块6021,用于在MiFi中安装有两张不同运营商的SIM卡时,选取除源运营商的SIM卡之外的另一个运营商的SIM卡作为目标运营商的SIM卡;
第二选取子模块6022,用于在MiFi中安装有至少三张不同运营商的SIM卡时,从除源运营商的SIM卡之外的其他运营商的SIM卡中选取网络信号强度最大的一个运营商的SIM卡作为目标运营商的SIM卡。
优选地,连接模块603可以包括:
获取子模块6031,用于获取目标运营商的SIM卡对应的网络端口的名称;
更新子模块6032,用于将MiFi内部保存的路由表中记载的网络端口的名称对应的网络端口状态由断开更新为连接。
与传统的MiFi解决方案相比,本发明实施例能够很好的克服仅安装单一SIM卡的MiFi方案的弊端。例如如果安装三张SIM卡(一张联通+一张移动+一张电信),那么就能够更大限度的体现本方案的优势,当用户携带MiFi到达某区域时,如果联通没有信号时也可以使用移动的网络,移动没有信号时还可以使用电信的网络。从而极大地方便了用户的使用,提升用户体验。
对于装置实施例而言,由于其与方法实施例基本相似,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。
以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例 方案的目的。本领域普通技术人员在不付出创造性的劳动的情况下,即可以理解并实施。
本发明的各个部件实施例可以以硬件实现,或者以在一个或者多个处理器上运行的软件模块实现,或者以它们的组合实现。本领域的技术人员应当理解,可以在实践中使用微处理器或者数字信号处理器(DSP)来实现根据本发明实施例的MiFi中的一些或者全部部件的一些或者全部功能。本发明还可以实现为用于执行这里所描述的方法的一部分或者全部的设备或者装置程序(例如,计算机程序和计算机程序产品)。这样的实现本发明的程序可以存储在计算机可读介质上,或者可以具有一个或者多个信号的形式。这样的信号可以从因特网网站上下载得到,或者在载体信号上提供,或者以任何其他形式提供。
例如,图7示出了可以实现根据本发明的MiFi。该MiFi传统上包括处理器710和以存储器720形式的计算机程序产品或者计算机可读介质。存储器720可以是诸如闪存、EEPROM(电可擦除可编程只读存储器)、EPROM、硬盘或者ROM之类的电子存储器。存储器720具有用于执行上述方法中的任何方法步骤的程序代码731的存储空间730。例如,用于程序代码的存储空间730可以包括分别用于实现上面的方法中的各种步骤的各个程序代码731。这些程序代码可以从一个或者多个计算机程序产品中读出或者写入到这一个或者多个计算机程序产品中。这些计算机程序产品包括诸如硬盘,紧致盘(CD)、存储卡或者软盘之类的程序代码载体。这样的计算机程序产品通常为如参考图8所述的便携式或者固定存储单元。该存储单元可以具有与图7的MiFi中的存储器720类似布置的存储段、存储空间等。程序代码可以例如以适当形式进行压缩。通常,存储单元包括计算机可读代码731’,即可以由例如诸如710之类的处理器读取的代码,这些代码当由MiFi运行时,导致该MiFi执行上面所描述的方法中的各个步骤。
本文中所称的“一个实施例”、“实施例”或者“一个或者多个实施例”意味着,结合实施例描述的特定特征、结构或者特性包括在本发明的至少一个实施例中。此外,请注意,这里“在一个实施例中”的词语例子不一定全指同一个实施例。
在此处所提供的说明书中,说明了大量具体细节。然而,能够理解, 本发明的实施例可以在没有这些具体细节的情况下被实践。在一些实例中,并未详细示出公知的方法、结构和技术,以便不模糊对本说明书的理解。
应该注意的是上述实施例对本发明进行说明而不是对本发明进行限制,并且本领域技术人员在不脱离所附权利要求的范围的情况下可设计出替换实施例。在权利要求中,不应将位于括号之间的任何参考符号构造成对权利要求的限制。单词“包含”不排除存在未列在权利要求中的元件或步骤。位于元件之前的单词“一”或“一个”不排除存在多个这样的元件。本发明可以借助于包括有若干不同元件的硬件以及借助于适当编程的计算机来实现。在列举了若干装置的单元权利要求中,这些装置中的若干个可以是通过同一个硬件项来具体体现。单词第一、第二、以及第三等的使用不表示任何顺序。可将这些单词解释为名称。
此外,还应当注意,本说明书中使用的语言主要是为了可读性和教导的目的而选择的,而不是为了解释或者限定本发明的主题而选择的。因此,在不偏离所附权利要求书的范围和精神的情况下,对于本技术领域的普通技术人员来说许多修改和变更都是显而易见的。对于本发明的范围,对本发明所做的公开是说明性的,而非限制性的,本发明的范围由所附权利要求书限定。
最后应说明的是:以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围。

Claims (12)

  1. 一种MiFi的控制方法,其特征在于,所述MiFi中安装有至少两张不同运营商的SIM卡,所述方法包括:
    监控当前已连接的源运营商的SIM卡对应的数据网络是否断开;
    若断开,则选取除所述源运营商的SIM卡之外的其他运营商的SIM卡作为目标运营商的SIM卡;
    连接至所述目标运营商的SIM卡对应的数据网络。
  2. 根据权利要求1所述的方法,其特征在于,
    在所述监控当前已连接的源运营商的SIM卡对应的数据网络是否断开的步骤之前,还包括:
    检测所述MiFi是否被开启WiFi热点功能;
    所述监控当前已连接的源运营商的SIM卡对应的数据网络是否断开的步骤,包括:
    在检测到所述MiFi被开启WiFi热点功能后,监控当前已连接的源运营商的SIM卡对应的数据网络是否断开。
  3. 根据权利要求1所述的方法,其特征在于,所述监控当前已连接的源运营商的SIM卡对应的数据网络是否断开的步骤,包括:
    监控所述MiFi内部保存的路由表中记载的所述源运营商的SIM卡对应的网络端口状态是否由连接变换为断开;
    若是,则确定当前已连接的源运营商的SIM卡对应的数据网络断开。
  4. 根据权利要求1所述的方法,其特征在于,所述选取除所述源运营商的SIM卡之外的其他运营商的SIM卡作为目标运营商的SIM卡的步骤,包括:
    若所述MiFi中安装有两张不同运营商的SIM卡,则选取除所述源运营商的SIM卡之外的另一个运营商的SIM卡作为目标运营商的SIM卡;
    若所述MiFi中安装有至少三张不同运营商的SIM卡,则从除所述源运营商的SIM卡之外的其他运营商的SIM卡中选取网络信号强度最大的一个运营商的SIM卡作为目标运营商的SIM卡。
  5. 根据权利要求1所述的方法,其特征在于,所述连接至所述目标运 营商的SIM卡对应的数据网络的步骤,包括:
    获取所述目标运营商的SIM卡对应的网络端口的名称;
    将所述MiFi内部保存的路由表中记载的所述网络端口的名称对应的网络端口状态由断开更新为连接。
  6. 一种MiFi的控制装置,其特征在于,所述MiFi中安装有至少两张不同运营商的SIM卡,所述装置包括:
    监控模块,用于监控当前已连接的源运营商的SIM卡对应的数据网络是否断开;
    选取模块,用于在所述监控模块监控到断开时,选取除所述源运营商的SIM卡之外的其他运营商的SIM卡作为目标运营商的SIM卡;
    连接模块,用于连接至所述目标运营商的SIM卡对应的数据网络。
  7. 根据权利要求6所述的装置,其特征在于,
    还包括:检测模块,用于在所述监控模块监控当前已连接的源运营商的SIM卡对应的数据网络是否断开之前,检测所述MiFi是否被开启WiFi热点功能;
    所述监控模块,具体用于在所述检测模块检测到所述MiFi被开启WiFi热点功能后,监控当前已连接的源运营商的SIM卡对应的数据网络是否断开。
  8. 根据权利要求6所述的装置,其特征在于,所述监控模块包括:
    路由表监控子模块,用于监控所述MiFi内部保存的路由表中记载的所述源运营商的SIM卡对应的网络端口状态是否由连接变换为断开;
    确定子模块,用于在所述路由表监控子模块监控到结果为是时,确定当前已连接的源运营商的SIM卡对应的数据网络断开。
  9. 根据权利要求6所述的装置,其特征在于,所述选取模块包括:
    第一选取子模块,用于在所述MiFi中安装有两张不同运营商的SIM卡时,选取除所述源运营商的SIM卡之外的另一个运营商的SIM卡作为目标运营商的SIM卡;
    第二选取子模块,用于在所述MiFi中安装有至少三张不同运营商的SIM卡时,从除所述源运营商的SIM卡之外的其他运营商的SIM卡中选取网络 信号强度最大的一个运营商的SIM卡作为目标运营商的SIM卡。
  10. 根据权利要求6所述的装置,其特征在于,所述连接模块包括:
    获取子模块,用于获取所述目标运营商的SIM卡对应的网络端口的名称;
    更新子模块,用于将所述MiFi内部保存的路由表中记载的所述网络端口的名称对应的网络端口状态由断开更新为连接。
  11. 一种计算机程序,包括计算机可读代码,当所述计算机可读代码在MiFi上运行时,导致所述MiFi执行根据权利要求1-5中的任一个所述的MiFi的控制方法。
  12. 一种计算机可读介质,其中存储了如权利要求11所述的计算机程序。
PCT/CN2016/087335 2015-11-06 2016-06-27 MiFi的控制方法和装置 Ceased WO2017076015A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510752706.8 2015-11-06
CN201510752706.8A CN105657689A (zh) 2015-11-06 2015-11-06 MiFi的控制方法和装置

Publications (1)

Publication Number Publication Date
WO2017076015A1 true WO2017076015A1 (zh) 2017-05-11

Family

ID=56482168

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/087335 Ceased WO2017076015A1 (zh) 2015-11-06 2016-06-27 MiFi的控制方法和装置

Country Status (3)

Country Link
US (1) US9596717B1 (zh)
CN (1) CN105657689A (zh)
WO (1) WO2017076015A1 (zh)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105657689A (zh) * 2015-11-06 2016-06-08 乐卡汽车智能科技(北京)有限公司 MiFi的控制方法和装置
CN107172683A (zh) * 2017-07-06 2017-09-15 珠海市魅族科技有限公司 网络连接方法、装置、终端及计算机可读存储介质
CN107612566B (zh) * 2017-10-25 2024-03-19 浙江嘉科电子有限公司 一种三网融合移动网络终端
CN108430087B (zh) * 2018-03-26 2020-10-16 新华三技术有限公司 功耗控制方法、装置和路由器
US11202339B2 (en) * 2019-04-10 2021-12-14 Mediatek Inc. Apparatuses and methods for packet distribution on multiple subscriber identities
CN112243256B (zh) * 2019-07-16 2023-08-04 北京小米移动软件有限公司 无线网络分享方法、装置、移动终端及存储介质
CN114363882A (zh) * 2021-12-31 2022-04-15 展讯半导体(成都)有限公司 数据卡切换方法及装置
CN119497190A (zh) * 2025-01-20 2025-02-21 珠海信和友科技有限公司 无人值守设备的网络服务管理方法、装置、设备及介质

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140066055A1 (en) * 2012-08-28 2014-03-06 Apple Inc. Network reselection for a wireless communication device
WO2014161478A1 (zh) * 2013-07-10 2014-10-09 中兴通讯股份有限公司 一种网络接口的切换方法、接入设备及计算机存储介质
CA2869187A1 (en) * 2013-12-13 2015-06-13 Hong Kong Ucloudlink Network Tech, Ltd. Multi-channel communication terminal
CN104936243A (zh) * 2014-03-21 2015-09-23 亚旭电脑股份有限公司 电信模块与移动热点装置
CN105657689A (zh) * 2015-11-06 2016-06-08 乐卡汽车智能科技(北京)有限公司 MiFi的控制方法和装置

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8929206B2 (en) * 2010-02-04 2015-01-06 Nokia Solutions And Networks Oy Method of supervising a node in a communication system
US20120108206A1 (en) * 2010-10-28 2012-05-03 Haggerty David T Methods and apparatus for access control client assisted roaming
US9712973B2 (en) * 2014-04-23 2017-07-18 Mediatek Inc. Method of selecting a SIM for a location service and multi-SIM device utilizing the same

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140066055A1 (en) * 2012-08-28 2014-03-06 Apple Inc. Network reselection for a wireless communication device
WO2014161478A1 (zh) * 2013-07-10 2014-10-09 中兴通讯股份有限公司 一种网络接口的切换方法、接入设备及计算机存储介质
CA2869187A1 (en) * 2013-12-13 2015-06-13 Hong Kong Ucloudlink Network Tech, Ltd. Multi-channel communication terminal
CN104936243A (zh) * 2014-03-21 2015-09-23 亚旭电脑股份有限公司 电信模块与移动热点装置
CN105657689A (zh) * 2015-11-06 2016-06-08 乐卡汽车智能科技(北京)有限公司 MiFi的控制方法和装置

Also Published As

Publication number Publication date
US9596717B1 (en) 2017-03-14
CN105657689A (zh) 2016-06-08

Similar Documents

Publication Publication Date Title
WO2017076015A1 (zh) MiFi的控制方法和装置
CN108495344B (zh) 一种网络切换方法、装置以及终端
CN105580392B (zh) 无缝呼叫切换
TWI698133B (zh) 無線網路類型的檢測方法、裝置及電子設備
BR112014020465B1 (pt) Método de operação de um terminal portátil tendo um cartão de módulo de identidade de assinante duplo, dispositivo eletrônico e meio legível por computador
CN103529988B (zh) 一种移动终端触摸屏多固件设置方法及系统
US10271201B2 (en) Network registration method and registration device
CN105517083B (zh) 一种网络切换方法、装置以及终端
EP3041229A1 (en) Method and apparatus for recording video and computer program
JP2015111875A (ja) マルチプル無線インターフェースデバイスのための信号スキャニングおよび信号捕捉のための方法および装置
WO2017049731A1 (zh) 一种多系统间的应用安全保护方法及终端
US9615285B2 (en) System, electronic device, method of communicating, and and non-transitory computer-readable storage medium
CN105530676B (zh) 一种混合网络制式下的业务处理方法、装置及移动终端
WO2017096771A1 (zh) 应用缓存数据的存储控制方法及装置
WO2016173349A1 (zh) 一种网络接入方法及移动通信终端
CN105517126A (zh) 一种通信终端中的频段处理方法、装置及通信终端
CN105517192A (zh) 一种无线网络连接方法及装置
CN105407521B (zh) 一种终端业务处理方法、装置及移动终端
US10212215B2 (en) Apparatus and method for providing metadata with network traffic
WO2013174343A2 (zh) 一种交互处理方法、装置及电子设备
CN105517122A (zh) 一种网络切换方法、装置以及终端
WO2015062506A1 (zh) 多图标选择方法与终端
CN106874748A (zh) 一种提供用户数据的方法和装置
CN107277896A (zh) wifi热点管理方法、装置及终端设备
CN105472599A (zh) 访问sim卡的方法和双卡移动终端

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: 16861285

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: 16861285

Country of ref document: EP

Kind code of ref document: A1