WO2018137307A1 - Method and device for switching wi-fi working channels - Google Patents

Method and device for switching wi-fi working channels Download PDF

Info

Publication number
WO2018137307A1
WO2018137307A1 PCT/CN2017/089026 CN2017089026W WO2018137307A1 WO 2018137307 A1 WO2018137307 A1 WO 2018137307A1 CN 2017089026 W CN2017089026 W CN 2017089026W WO 2018137307 A1 WO2018137307 A1 WO 2018137307A1
Authority
WO
WIPO (PCT)
Prior art keywords
mcc
working channel
mobile network
registered
mobile
Prior art date
Application number
PCT/CN2017/089026
Other languages
French (fr)
Chinese (zh)
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 WO2018137307A1 publication Critical patent/WO2018137307A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W60/00Affiliation to network, e.g. registration; Terminating affiliation with the network, e.g. de-registration

Definitions

  • This document relates to, but is not limited to, the field of Wireless-Fidelity (Wi-Fi) technology of a terminal, and in particular, to a method and an apparatus for switching a Wi-Fi working channel.
  • Wi-Fi Wireless-Fidelity
  • Wi-Fi is a technology that allows electronic devices to connect to a Wireless Local Area Network (WLAN).
  • Wi-Fi is one of the most commonly used functions of electronic devices, with users all over the world, but Wi-Fi is available in different parts of the world.
  • -Fi's 2.4G and 5G bands have different working channels, and different countries and regions have different working channels when using Wi-Fi. For example, in the 2.4G band, some countries require operation on channels 1-11, and some countries require operation on channels 1-13, with larger differences in the 5G band.
  • the mobile phone's Wi-Fi working channel is automatically switched.
  • the mobile phone sold to a certain country is configured according to the working channel of the local frequency band.
  • SIM Subscriber Identification Module
  • the working channel of the default configuration works. If the user inserts the SIM card, the working channel is determined according to the information of the SIM card; but when the mobile phone roams to another country and the user does not replace the SIM card of the country, the Wi- of the mobile phone
  • the Fi working channel does not automatically switch to the working channel specified by the roaming country, so it is easy to violate the local laws of the country when using Wi-Fi. Therefore, the above-mentioned Wi-Fi working channel switching method cannot solve the problem when the user roams. happening.
  • the embodiment of the invention provides a method and a device for switching a Wi-Fi working channel, so as to realize Wi-Fi of the terminal when the terminal roams to another country and the user does not replace the SIM card of the country.
  • the working channel can be automatically switched to the working channel specified by the country to avoid violating the local laws of the country when using Wi-Fi.
  • An embodiment of the present invention provides a method for switching a wireless fidelity Wi-Fi working channel, where the method includes:
  • the current Wi-Fi working channel is switched to the Wi-Fi working channel corresponding to the first MCC.
  • the method before the acquiring the first mobile country code MCC currently registered to the mobile network, the method further includes:
  • the obtaining the first MCC currently registered to the mobile network includes:
  • the method further includes:
  • the acquiring the first mobile country code MCC currently registered to the mobile network includes:
  • a communication system is determined according to a preset priority rule
  • the determining, by the first MCC, the Wi-Fi working channel corresponding to the first MCC according to the preset switching rule includes:
  • An embodiment of the present invention further provides an apparatus for switching a wireless fidelity Wi-Fi working channel, where the apparatus includes:
  • Obtaining a module configured to obtain a first mobile country code MCC currently registered to the mobile network
  • a determining module configured to determine, according to the first MCC and the preset switching rule, the wireless fidelity Wi corresponding to the first MCC, when the first MCC is inconsistent with the second MCC that was last registered to the mobile network -Fi working channel;
  • the switching module is configured to switch the current Wi-Fi working channel to a Wi-Fi working channel corresponding to the first MCC.
  • the device further includes:
  • the determining module is configured to determine whether the MCC of the current customer identification module SIM card is consistent with the locally stored MCC;
  • the acquiring module is configured to acquire the first MCC currently registered to the mobile network when the MCC of the current SIM card is consistent with the locally stored MCC.
  • the determining module is further configured to determine whether the first MCC is consistent with the second MCC that was last registered to the mobile network, where, if there is no second MCC that was last registered to the mobile network, The second MCC is a default MCC.
  • the determining module is further configured to: when there are two or more communication systems, determine a communication standard according to a preset priority rule;
  • the obtaining module is further configured to acquire the first MCC currently registered to the mobile network according to the determined communication system.
  • the determining module is configured to determine, according to the relationship between the first MCC and a Wi-Fi working channel corresponding to each MCC, that the first MCC meets the first MCC requirement. Wi-Fi working channel.
  • the method and device for switching the Wi-Fi working channel provided by the embodiment of the present invention, by acquiring the first mobile country code MCC currently registered to the mobile network, the first MCC is inconsistent with the second MCC registered to the mobile network last time. Determining, according to the first MCC, a Wi-Fi working channel corresponding to the first MCC, and switching the current Wi-Fi working channel to the Wi-Fi corresponding to the first MCC.
  • Working channel realizes that when the terminal roams to another country or region, and the user does not replace the SIM card of the country, the original SIM card can be used to communicate with the network operator of the country, and the Wi- of the terminal can be The Fi working channel automatically switches to the working channel specified by the country, thus avoiding violations of local laws in the country when using Wi-Fi.
  • Embodiment 1 is a flowchart of Embodiment 1 of a method for Wi-Fi working channel switching according to the present invention
  • Embodiment 2 is a flowchart of Embodiment 2 of a method for Wi-Fi working channel switching according to the present invention
  • FIG. 3 is a schematic diagram of acquiring interaction signaling according to Embodiment 2 of a method for Wi-Fi working channel switching according to the present invention
  • FIG. 4 is a schematic structural diagram of an apparatus for switching a Wi-Fi working channel according to the present invention.
  • FIG. 1 is a flowchart of a first embodiment of a method for Wi-Fi working channel switching according to the present invention.
  • the method for switching a Wi-Fi working channel according to an embodiment of the present invention is applied to a terminal having a Wi-Fi function, and the terminal can be The form is implemented; for example, the terminal described in the embodiment of the present invention may include, for example, a mobile phone, a smart phone, a notebook computer, a digital broadcast receiver, a personal digital assistant (PDA), a tablet computer (PAD), a portable multimedia player ( A mobile terminal such as a PMP), a navigation device, and the like, and a fixed terminal such as a digital TV, a desktop computer, and the like; below, it is assumed that the terminal is a mobile terminal.
  • PDA personal digital assistant
  • PAD tablet computer
  • a mobile terminal such as a PMP
  • PMP navigation device
  • a fixed terminal such as a digital TV, a desktop computer, and the like; below, it is assumed that the terminal is
  • the method for switching a Wi-Fi working channel may include The following steps:
  • Step 101 Acquire a first mobile country code MCC currently registered to the mobile network.
  • the mobile terminal acquires a first Mobile Country Code (MCC) currently registered to the mobile network;
  • MCC Mobile Country Code
  • the first MCC is an MCC obtained by the mobile terminal from the interaction signaling through the mobile network and interacting with the network operator, and Not the MCC carried in the SIM card.
  • Step 102 Determine, according to the first MCC, a Wi-Fi working channel corresponding to the first MCC, according to the first MCC and the preset switching rule, when the first MCC is inconsistent with the second MCC that is registered to the mobile network.
  • the mobile terminal determines that when the first MCC is inconsistent with the second MCC that was last registered to the mobile network, that is, the mobile terminal determines that the currently acquired MCC is inconsistent with the MCC of the last registration to the mobile network stored in the local memory, the mobile terminal Determining a required Wi-Fi working channel corresponding to the first MCC according to the first MCC and a preset switching rule stored in the local memory.
  • the second MCC is the default MCC, and the MCC of the country or region where the mobile terminal is sold in a certain country or region is used as the default.
  • the MCC, or the MCC of the currently inserted SIM card, is used as the default MCC.
  • the preset switching rule stored in the local memory may be a preset relationship of the Wi-Fi working channel corresponding to each MCC, and optionally it may be for each country and/or region of the world for Wi-Fi.
  • the correspondence list of the working channels of the 2.4G and/or 5G frequency bands may also be a correspondence data table of the working channels of the 2.4G and/or 5G frequency bands of Wi-Fi in each country and/or region of the world, or may be The correspondence between the working channels of 2.4G and/or 5G bands of Wi-Fi in each country and/or region of the world points to the internationally accepted standard information such as tables.
  • Step 103 Switch the current Wi-Fi working channel to a Wi-Fi working channel corresponding to the first MCC.
  • the mobile terminal switches the current Wi-Fi working channel corresponding to the second MCC to the required Wi-Fi working channel corresponding to the first MCC.
  • the second MCC of the mobile terminal is 100, and the corresponding 2.4 G Wi-Fi working channel is 1-10; when the mobile terminal determines that the current MCC is changed to the first MCC is 200, according to the preset The rule determines that the 2.4G Wi-Fi working channel corresponding to the first MCC is 1-13, and switches the currently corresponding 2.4G Wi-Fi working channel 1-10 to the Wi corresponding to the first MCC. -Fi working channel 1-13.
  • the mobile terminal obtains the first mobile country code MCC currently registered to the mobile network, and the first MCC is inconsistent with the second MCC that is last registered to the mobile network. Determining, according to the first MCC, a Wi-Fi working channel corresponding to the first MCC, and switching the current Wi-Fi working channel to the Wi-Fi corresponding to the first MCC.
  • the Wi-Fi working channel automatically switches to the working channel specified by the country, thus avoiding violations of local laws in the country when using Wi-Fi.
  • FIG. 2 is a flowchart of Embodiment 2 of a Wi-Fi working channel switching method according to the present invention.
  • the Wi-Fi working channel switching method provided by the embodiment of the present invention can be applied to a mobile phone with Wi-Fi function.
  • the method for switching the Wi-Fi working channel provided by the embodiment of the present invention may include the following steps:
  • Step 201 Determine whether the MCC of the current SIM card is consistent with the locally stored MCC.
  • the mobile phone determines whether the MCC of the current SIM card is consistent with the locally stored MCC, and determines that the MCC of the current SIM card is inconsistent with the locally stored MCC, and performs steps 202-203; and determines that the MCC of the current SIM card is consistent with the locally stored MCC, Step 204 and subsequent steps.
  • Step 202 Determine a Wi-Fi working channel corresponding to the MCC of the SIM card according to the relationship between the MCC of the SIM card and the Wi-Fi working channel corresponding to each MCC.
  • the mobile phone determines a Wi-Fi working channel corresponding to the MCC of the SIM card according to the relationship between the MCC of the SIM card and the Wi-Fi working channel corresponding to each MCC; optionally, preset the corresponding corresponding to each MCC.
  • the relationship of the Wi-Fi working channel can be a correspondence list of working channels of 2.4G and/or 5G bands of Wi-Fi in each country and/or region of the world, or for each country and/or region in the world.
  • Wi-Fi's 2.4G and/or 5G frequency band working channel correspondence data table can also be used to map the correspondence between Wi-Fi 2.4G and/or 5G frequency bands in each country and/or region of the world. Table and other internationally accepted standard information.
  • Step 203 Switch the current Wi-Fi working channel to a Wi-Fi working channel corresponding to the MCC of the SIM card.
  • the mobile phone switches the current Wi-Fi working channel to the Wi-Fi working channel corresponding to the MCC of the SIM card, and completes the switching work.
  • Step 204 Acquire a first MCC currently registered to the mobile network.
  • the mobile phone When the mobile phone registers with the mobile network operator's network, the mobile phone can obtain the first MCC of the current mobile network from the interactive signaling in the process of registering the mobile network.
  • the communication system can be determined according to the preset priority rule, and the first MCC currently registered to the mobile network is obtained according to the determined communication system.
  • the mobile phone has three communication systems A, B, and C, it can determine the highest priority A as the preferred communication system according to the priority order relationship A>B>C set by the user in advance; A communication system to obtain the first MCC currently registered to the mobile network.
  • Step 205 Determine whether the first MCC is consistent with the second MCC that was last registered to the mobile network.
  • the mobile phone determines whether the first MCC is consistent with the second MCC that was last registered to the mobile network, and determines that the first MCC is consistent with the second MCC that was last registered to the mobile network, and performs step 206; determining that the first MCC is registered with the previous one.
  • steps 207-208 are performed.
  • the default MCC of the mobile phone may be set to the second MCC.
  • Step 206 Maintain the current Wi-Fi working channel.
  • the phone maintains the current Wi-Fi working channel without switching.
  • Step 207 Determine, according to a relationship between the first MCC and a Wi-Fi working channel corresponding to each MCC, a Wi-Fi working channel corresponding to the first MCC.
  • the mobile phone determines, according to the relationship between the first MCC and the Wi-Fi working channel corresponding to each MCC, the Wi-Fi working channel corresponding to the first MCC requirement corresponding to the first MCC.
  • Step 208 Switch the current Wi-Fi working channel to the Wi-Fi corresponding to the first MCC. Working channel.
  • the mobile phone switches the current Wi-Fi working channel to the Wi-Fi working channel corresponding to the first MCC, and implements switching of the Wi-Fi working channel.
  • FIG. 3 is the acquisition of the second embodiment of the Wi-Fi working channel switching method of the present invention.
  • the mobile phone can obtain the MCC of the current network from the interactive signaling in the process of registering the network to be 460; the mobile phone reads the MCC of the last registered network (here assumed to be the first The boot is used, so the MCC will not be used.
  • the default MCC is used because it is a mobile phone sold in China, so the default MCC is 460) and compared with the MCC of the currently registered network. Since the MCC is the same, the mobile phone is the same. It is determined that the current Wi-Fi working channel will not be switched.
  • the mobile phone After that, the user travels to the United States. After arriving in the United States, the mobile phone still uses the SIM card of the Chinese A network operator, and the MCC in the SIM card is still 460. According to the solution provided by the embodiment of the invention, the mobile phone is registered in the United States after being powered on. In the network of the B network operator, the MCC obtained in the signaling interaction with the network side is 310; after obtaining the MCC currently registered to the network, the mobile phone will obtain the previously acquired MCC of the previously registered network with this time. If the current registered MCC is compared, it can be seen that the MMC is changed from 460 to 310.
  • the mobile phone Since the MCC changes, the mobile phone will query the Wi corresponding to the MCC 310 in the relationship list of the Wi-Fi working channel corresponding to each MCC. -Fi working channel, then the mobile phone switches the Wi-Fi working channel corresponding to the MCC to 460 to the new Wi-Fi working channel corresponding to the MCC 310, and the mobile phone will work according to the switched Wi-Fi working channel.
  • the relationship list of the Wi-Fi working channel corresponding to each MCC is preset to be exemplified by the relationship list of the 2.4G Wi-Fi working channel corresponding to China and the United States (Table 1).
  • the specific actual situation may be Set according to actual needs, no restrictions here.
  • the result is that the 2.4G Wi-Fi working channel 1-13 corresponding to the original China is switched to the 2.4G Wi-Fi working channel 1-11 corresponding to the United States; thus, When the mobile phone roams to another country and the user does not change the country's SIM card, the terminal's Wi-Fi working channel can automatically switch to the working channel specified by the country, avoiding violation of the local laws of the country when using Wi-Fi. .
  • the method for switching the Wi-Fi working channel determines whether the MCC of the current SIM card is consistent with the MCC stored locally by the mobile phone; if they are consistent, according to the MCC of the SIM card and the Wi corresponding to each MCC preset
  • the relationship between the -Fi working channel determines the Wi-Fi working channel corresponding to the MCC of the SIM card and switches the current Wi-Fi working channel to the Wi-Fi working channel corresponding to the MCC of the SIM card. If not, the acquiring is performed.
  • the first MCC currently registered to the mobile network; determining whether the first MCC is consistent with the second MCC registered to the mobile network last time, and if consistent, maintaining the current Wi-Fi working channel, if not, according to the first MCC and Presetting the relationship of the Wi-Fi working channel corresponding to each MCC to determine a Wi-Fi working channel corresponding to the first MCC; and switching the current Wi-Fi working channel to the Wi-Fi working channel corresponding to the first MCC Implemented when the mobile terminal roamed to another country or region and the user did not change the country
  • the original SIM card can be used to automatically switch the Wi-Fi working channel of the mobile terminal to the working channel specified by the country by using the signaling interaction of the network operator of the country, so that Wi- is used. Fi can avoid violating local laws in the country.
  • the embodiment of the invention further provides a computer readable storage medium storing computer executable instructions, which are implemented by the processor to implement the method described in the foregoing embodiments.
  • the apparatus 04 for Wi-Fi working channel switching includes: an obtaining module 41, a determining module 42, Switching module 43; wherein
  • the obtaining module 41 is configured to acquire a first mobile country code MCC currently registered to the mobile network;
  • the determining module 42 is configured to determine, according to the first MCC and the preset switching rule, the wireless corresponding to the first MCC, when the first MCC is inconsistent with the second MCC that was last registered to the mobile network.
  • Fidelity Wi-Fi working channel
  • the switching module 43 is configured to switch the current Wi-Fi working channel to a Wi-Fi working channel corresponding to the first MCC.
  • the device further includes: a determining module 44; wherein
  • the determining module 44 is configured to determine whether the MCC of the current customer identification module SIM card is consistent with the locally stored MCC;
  • the obtaining module 41 is configured to acquire the first MCC currently registered to the mobile network when the MCC of the current SIM card is consistent with the locally stored MCC.
  • the determining module 44 is further configured to determine whether the first MCC is consistent with the second MCC that was last registered to the mobile network, where, if there is no second MCC that is last registered to the mobile network, Then the second MCC is the default MCC.
  • the determining module 42 is further configured to: when there are two or more communication systems, determine a communication system according to a preset priority rule;
  • the obtaining module 41 is further configured to acquire the first MCC currently registered to the mobile network according to the determined communication system.
  • the determining module 42 is configured to preset each according to the first MCC.
  • the relationship of the Wi-Fi working channel corresponding to the MCC determines the Wi-Fi working channel corresponding to the first MCC requirement corresponding to the first MCC.
  • the device in this embodiment may be used to implement the technical solution of the foregoing method embodiment, and the implementation principle and the technical effect are similar, and details are not described herein again.
  • the obtaining module 41, the determining module 42, the switching module 43, and the determining module 44 may each be a central processing unit (CPU) and a microprocessor located in the device 04 of the Wi-Fi working channel switching.
  • CPU central processing unit
  • MPU Micro Processor Unit
  • DSP Digital Signal Processor
  • FPGA Field Programmable Gate Array
  • embodiments of the present invention can be provided as a method, system, or computer program product. Accordingly, the present invention can take the form of a hardware embodiment, a software embodiment, or a combination of software and hardware. Moreover, the invention can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) including computer usable program code.
  • the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device.
  • the apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
  • These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device.
  • the instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.
  • the Wi-Fi working channel of the terminal can be automatically switched to the working channel specified by the country, so that Wi is used. -Fi can avoid violating local laws in the country.

Landscapes

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

Abstract

A method and device for switching wireless fidelity (Wi-Fi) working channels. The method comprises: obtaining a first mobile country code (MCC) currently registered to a mobile network (101); determining a Wi-Fi working channel corresponding to the first MCC according to the first MCC and a preset switching rule when the first MCC is inconsistent with a second MCC registered to the mobile network the last time (102); and switching the current Wi-Fi working channel to the Wi-Fi working channel corresponding to the first MCC (103).

Description

Wi-Fi工作信道切换的方法及装置Wi-Fi working channel switching method and device 技术领域Technical field
本文涉及但不限于终端的无线保真(Wireless-Fidelity,Wi-Fi)技术领域,尤其涉及一种Wi-Fi工作信道切换的方法及装置。This document relates to, but is not limited to, the field of Wireless-Fidelity (Wi-Fi) technology of a terminal, and in particular, to a method and an apparatus for switching a Wi-Fi working channel.
背景技术Background technique
Wi-Fi是一种允许电子设备连接到一个无线局域网(Wireless Local Area Networks,WLAN)的技术,Wi-Fi作为电子设备最常用的功能之一,使用者遍布全球各地,但是全球不同地区对于Wi-Fi的2.4G和5G频段的工作信道却有着不同的要求,不同国家和地区在使用Wi-Fi时的工作信道是不同的。例如,在2.4G频段中,有些国家要求在1-11信道上工作,有些国家要求在1-13信道上工作,在5G的频段中差异更大。Wi-Fi is a technology that allows electronic devices to connect to a Wireless Local Area Network (WLAN). Wi-Fi is one of the most commonly used functions of electronic devices, with users all over the world, but Wi-Fi is available in different parts of the world. -Fi's 2.4G and 5G bands have different working channels, and different countries and regions have different working channels when using Wi-Fi. For example, in the 2.4G band, some countries require operation on channels 1-11, and some countries require operation on channels 1-13, with larger differences in the 5G band.
目前,手机的Wi-Fi工作信道自动切换的做法基本是销往某个国家的手机就按照当地的频段的工作信道进行配置,在用户不插入客户识别模块(Subscriber Identification Module,SIM)卡之前按照默认配置的工作信道进行工作,如果用户插入SIM卡后,会根据该SIM卡的信息确定工作信道;但是当手机漫游到另外一个国家,并且用户不更换该国家的SIM卡时,手机的Wi-Fi工作信道不会自动切换到漫游国家规定的工作信道上,这样在使用Wi-Fi时很容易违反该国家当地的法律,因此上述这种Wi-Fi工作信道切换的方式无法解决用户漫游时的情况。At present, the mobile phone's Wi-Fi working channel is automatically switched. The mobile phone sold to a certain country is configured according to the working channel of the local frequency band. Before the user inserts the Subscriber Identification Module (SIM) card, The working channel of the default configuration works. If the user inserts the SIM card, the working channel is determined according to the information of the SIM card; but when the mobile phone roams to another country and the user does not replace the SIM card of the country, the Wi- of the mobile phone The Fi working channel does not automatically switch to the working channel specified by the roaming country, so it is easy to violate the local laws of the country when using Wi-Fi. Therefore, the above-mentioned Wi-Fi working channel switching method cannot solve the problem when the user roams. Happening.
发明内容Summary of the invention
以下是对本文详细描述的主题的概述。本概述并非是为了限制权利要求的保护范围。The following is an overview of the topics detailed in this document. This Summary is not intended to limit the scope of the claims.
本发明实施例提供一种Wi-Fi工作信道切换的方法及装置,以实现当终端漫游到另外一个国家,并且用户不更换该国家的SIM卡时,终端的Wi-Fi 工作信道能够自动切换到该国家规定的工作信道上,避免在使用Wi-Fi时违反该国家当地的法律。The embodiment of the invention provides a method and a device for switching a Wi-Fi working channel, so as to realize Wi-Fi of the terminal when the terminal roams to another country and the user does not replace the SIM card of the country. The working channel can be automatically switched to the working channel specified by the country to avoid violating the local laws of the country when using Wi-Fi.
本发明实施例的技术方案是这样实现的:The technical solution of the embodiment of the present invention is implemented as follows:
本发明实施例提供一种无线保真Wi-Fi工作信道切换的方法,所述方法包括:An embodiment of the present invention provides a method for switching a wireless fidelity Wi-Fi working channel, where the method includes:
获取当前注册到移动网络的第一移动国家码MCC;Obtaining the first mobile country code MCC currently registered to the mobile network;
在所述第一MCC与上一次注册到移动网络的第二MCC不一致时,根据所述第一MCC与预设切换规则确定出所述第一MCC所对应的Wi-Fi工作信道;Determining, according to the first MCC and the preset switching rule, a Wi-Fi working channel corresponding to the first MCC, when the first MCC is inconsistent with the second MCC that is registered to the mobile network last time;
将当前的Wi-Fi工作信道切换为所述第一MCC所对应的Wi-Fi工作信道。The current Wi-Fi working channel is switched to the Wi-Fi working channel corresponding to the first MCC.
上述方案中,在所述获取当前注册到移动网络的第一移动国家码MCC之前,所述方法还包括:In the foregoing solution, before the acquiring the first mobile country code MCC currently registered to the mobile network, the method further includes:
判断当前客户识别模块SIM卡的MCC与本地存储的MCC是否一致;Determining whether the MCC of the current customer identification module SIM card is consistent with the locally stored MCC;
所述获取当前注册到移动网络的第一MCC,包括:The obtaining the first MCC currently registered to the mobile network includes:
在所述当前SIM卡的MCC与所述本地存储的MCC一致时,获取所述当前注册到移动网络的第一MCC。And acquiring, when the MCC of the current SIM card is consistent with the locally stored MCC, the first MCC currently registered to the mobile network.
上述方案中,在所述获取当前注册到移动网络的第一移动国家码MCC之后,所述方法还包括:In the foregoing solution, after the acquiring the first mobile country code MCC currently registered to the mobile network, the method further includes:
判断所述第一MCC与上一次注册到移动网络的第二MCC是否一致,其中,若没有所述上一次注册到移动网络的第二MCC,则所述第二MCC为默认的MCC。Determining whether the first MCC is consistent with the second MCC that was last registered to the mobile network, wherein the second MCC is the default MCC if there is no second MCC that was last registered to the mobile network.
上述方案中,所述获取当前注册到移动网络的第一移动国家码MCC,包括:In the foregoing solution, the acquiring the first mobile country code MCC currently registered to the mobile network includes:
在有两个或两个以上通信制式时,根据预设优先级规则确定出一个通信制式;When there are two or more communication systems, a communication system is determined according to a preset priority rule;
根据确定出的通信制式获取所述当前注册到移动网络的第一MCC。 Acquiring the first MCC currently registered to the mobile network according to the determined communication system.
上述方案中,所述根据所述第一MCC与预设切换规则确定出所述第一MCC所对应的Wi-Fi工作信道,包括:In the foregoing solution, the determining, by the first MCC, the Wi-Fi working channel corresponding to the first MCC according to the preset switching rule, includes:
根据所述第一MCC与预设每个MCC所对应的Wi-Fi工作信道的关系确定出所述第一MCC所对应的符合第一MCC要求的Wi-Fi工作信道。Determining, according to the relationship between the first MCC and the Wi-Fi working channel corresponding to each MCC, a Wi-Fi working channel corresponding to the first MCC requirement corresponding to the first MCC.
本发明实施例还提供一种无线保真Wi-Fi工作信道切换的装置,所述装置包括:An embodiment of the present invention further provides an apparatus for switching a wireless fidelity Wi-Fi working channel, where the apparatus includes:
获取模块,设置为获取当前注册到移动网络的第一移动国家码MCC;Obtaining a module, configured to obtain a first mobile country code MCC currently registered to the mobile network;
确定模块,设置为在所述第一MCC与上一次注册到移动网络的第二MCC不一致时,根据所述第一MCC与预设切换规则确定出所述第一MCC所对应的无线保真Wi-Fi工作信道;a determining module, configured to determine, according to the first MCC and the preset switching rule, the wireless fidelity Wi corresponding to the first MCC, when the first MCC is inconsistent with the second MCC that was last registered to the mobile network -Fi working channel;
切换模块,设置为将当前的Wi-Fi工作信道切换为所述第一MCC所对应的Wi-Fi工作信道。The switching module is configured to switch the current Wi-Fi working channel to a Wi-Fi working channel corresponding to the first MCC.
上述方案中,所述装置还包括:In the above solution, the device further includes:
判断模块,设置为判断当前客户识别模块SIM卡的MCC与本地存储的MCC是否一致;The determining module is configured to determine whether the MCC of the current customer identification module SIM card is consistent with the locally stored MCC;
所述获取模块,是设置为在所述当前SIM卡的MCC与所述本地存储的MCC一致时,获取所述当前注册到移动网络的第一MCC。The acquiring module is configured to acquire the first MCC currently registered to the mobile network when the MCC of the current SIM card is consistent with the locally stored MCC.
上述方案中,所述判断模块,还设置为判断所述第一MCC与上一次注册到移动网络的第二MCC是否一致,其中,若没有所述上一次注册到移动网络的第二MCC,则所述第二MCC为默认的MCC。In the above solution, the determining module is further configured to determine whether the first MCC is consistent with the second MCC that was last registered to the mobile network, where, if there is no second MCC that was last registered to the mobile network, The second MCC is a default MCC.
上述方案中,所述确定模块,还设置为在有两个或两个以上通信制式时,根据预设优先级规则确定出一个通信制式;In the above solution, the determining module is further configured to: when there are two or more communication systems, determine a communication standard according to a preset priority rule;
所述获取模块,还设置为根据确定出的通信制式获取所述当前注册到移动网络的第一MCC。The obtaining module is further configured to acquire the first MCC currently registered to the mobile network according to the determined communication system.
上述方案中,所述确定模块,是设置为根据所述第一MCC与预设每个MCC所对应的Wi-Fi工作信道的关系确定出所述第一MCC所对应的符合第一MCC要求的Wi-Fi工作信道。 In the above solution, the determining module is configured to determine, according to the relationship between the first MCC and a Wi-Fi working channel corresponding to each MCC, that the first MCC meets the first MCC requirement. Wi-Fi working channel.
本发明实施例提供的Wi-Fi工作信道切换的方法及装置,通过获取当前注册到移动网络的第一移动国家码MCC,在所述第一MCC与上一次注册到移动网络的第二MCC不一致时,根据所述第一MCC与预设切换规则确定出所述第一MCC所对应的Wi-Fi工作信道;将当前的Wi-Fi工作信道切换为所述第一MCC所对应的Wi-Fi工作信道;实现了当终端漫游到另外一个国家或地区,并且用户不更换该国家的SIM卡时,利用原有的SIM卡与该国家的网络运营商的信令交互,可以将终端的Wi-Fi工作信道自动切换到该国家规定的工作信道上,这样在使用Wi-Fi时能够避免违反该国家当地的法律。The method and device for switching the Wi-Fi working channel provided by the embodiment of the present invention, by acquiring the first mobile country code MCC currently registered to the mobile network, the first MCC is inconsistent with the second MCC registered to the mobile network last time. Determining, according to the first MCC, a Wi-Fi working channel corresponding to the first MCC, and switching the current Wi-Fi working channel to the Wi-Fi corresponding to the first MCC. Working channel; realizes that when the terminal roams to another country or region, and the user does not replace the SIM card of the country, the original SIM card can be used to communicate with the network operator of the country, and the Wi- of the terminal can be The Fi working channel automatically switches to the working channel specified by the country, thus avoiding violations of local laws in the country when using Wi-Fi.
在阅读并理解了附图和详细描述后,可以明白其他方面。Other aspects will be apparent upon reading and understanding the drawings and detailed description.
附图概述BRIEF abstract
图1为本发明Wi-Fi工作信道切换的方法实施例一的流程图;1 is a flowchart of Embodiment 1 of a method for Wi-Fi working channel switching according to the present invention;
图2为本发明Wi-Fi工作信道切换的方法实施例二的流程图;2 is a flowchart of Embodiment 2 of a method for Wi-Fi working channel switching according to the present invention;
图3为本发明Wi-Fi工作信道切换的方法实施例二的获取交互信令的示意图;3 is a schematic diagram of acquiring interaction signaling according to Embodiment 2 of a method for Wi-Fi working channel switching according to the present invention;
图4为本发明Wi-Fi工作信道切换的装置实施例的结构示意图。FIG. 4 is a schematic structural diagram of an apparatus for switching a Wi-Fi working channel according to the present invention.
本发明的实施方式Embodiments of the invention
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述。The technical solutions in the embodiments of the present invention will be clearly and completely described in the following with reference to the accompanying drawings.
图1为本发明Wi-Fi工作信道切换的方法实施例一的流程图,本发明实施例提供的Wi-Fi工作信道切换的方法应用在具有Wi-Fi功能的终端上,该终端可以以多种形式来实施;例如,本发明实施例中描述的终端可以包括诸如移动电话、智能电话、笔记本电脑、数字广播接收器、个人数字助理(PDA)、平板电脑(PAD)、便携式多媒体播放器(PMP)、导航装置等等的移动终端以及诸如数字TV、台式计算机等等的固定终端;下面,假设该终端为移动终端。1 is a flowchart of a first embodiment of a method for Wi-Fi working channel switching according to the present invention. The method for switching a Wi-Fi working channel according to an embodiment of the present invention is applied to a terminal having a Wi-Fi function, and the terminal can be The form is implemented; for example, the terminal described in the embodiment of the present invention may include, for example, a mobile phone, a smart phone, a notebook computer, a digital broadcast receiver, a personal digital assistant (PDA), a tablet computer (PAD), a portable multimedia player ( A mobile terminal such as a PMP), a navigation device, and the like, and a fixed terminal such as a digital TV, a desktop computer, and the like; below, it is assumed that the terminal is a mobile terminal.
如图1所示,本发明实施例提供的Wi-Fi工作信道切换的方法可以包括 如下步骤:As shown in FIG. 1, the method for switching a Wi-Fi working channel provided by an embodiment of the present invention may include The following steps:
步骤101、获取当前注册到移动网络的第一移动国家码MCC。Step 101: Acquire a first mobile country code MCC currently registered to the mobile network.
移动终端获取当前注册到移动网络的第一移动国家码(Mobile Country Code,MCC);该第一MCC是移动终端通过移动网络与网络运营商进行交互通信,从交互信令中得到的MCC,并不是SIM卡中所携带的MCC。The mobile terminal acquires a first Mobile Country Code (MCC) currently registered to the mobile network; the first MCC is an MCC obtained by the mobile terminal from the interaction signaling through the mobile network and interacting with the network operator, and Not the MCC carried in the SIM card.
步骤102、在所述第一MCC与上一次注册到移动网络的第二MCC不一致时,根据所述第一MCC与预设切换规则确定出所述第一MCC所对应的Wi-Fi工作信道。Step 102: Determine, according to the first MCC, a Wi-Fi working channel corresponding to the first MCC, according to the first MCC and the preset switching rule, when the first MCC is inconsistent with the second MCC that is registered to the mobile network.
移动终端判断在第一MCC与上一次注册到移动网络的第二MCC不一致时,即移动终端判断当前获取到的MCC与存储在本地内存中的上一次注册到移动网络的MCC不一致时,移动终端根据该第一MCC与存储在本地内存中的预设切换规则确定出该第一MCC所对应的符合要求的Wi-Fi工作信道。The mobile terminal determines that when the first MCC is inconsistent with the second MCC that was last registered to the mobile network, that is, the mobile terminal determines that the currently acquired MCC is inconsistent with the MCC of the last registration to the mobile network stored in the local memory, the mobile terminal Determining a required Wi-Fi working channel corresponding to the first MCC according to the first MCC and a preset switching rule stored in the local memory.
其中,若本地内存中没有存储有上一次注册到移动网络的第二MCC,则该第二MCC为默认的MCC,即将移动终端在某个国家或地区进行销售的该国家或地区的MCC作为默认的MCC,或者是当前插入的SIM卡的MCC作为默认的MCC。If the second MCC that was last registered to the mobile network is not stored in the local memory, the second MCC is the default MCC, and the MCC of the country or region where the mobile terminal is sold in a certain country or region is used as the default. The MCC, or the MCC of the currently inserted SIM card, is used as the default MCC.
这里,存储在本地内存中的预设切换规则可以为预设的每个MCC所对应的Wi-Fi工作信道的关系,可选的它可以为全球每个国家和/或地区对于Wi-Fi的2.4G和/或5G频段的工作信道的对应关系列表,也可以为全球每个国家和/或地区对于Wi-Fi的2.4G和/或5G频段的工作信道的对应关系数据表,也可以为全球每个国家和/或地区对于Wi-Fi的2.4G和/或5G频段的工作信道的对应关系指向表等国际上通用的标准信息。Here, the preset switching rule stored in the local memory may be a preset relationship of the Wi-Fi working channel corresponding to each MCC, and optionally it may be for each country and/or region of the world for Wi-Fi. The correspondence list of the working channels of the 2.4G and/or 5G frequency bands may also be a correspondence data table of the working channels of the 2.4G and/or 5G frequency bands of Wi-Fi in each country and/or region of the world, or may be The correspondence between the working channels of 2.4G and/or 5G bands of Wi-Fi in each country and/or region of the world points to the internationally accepted standard information such as tables.
步骤103、将当前的Wi-Fi工作信道切换为所述第一MCC所对应的Wi-Fi工作信道。Step 103: Switch the current Wi-Fi working channel to a Wi-Fi working channel corresponding to the first MCC.
移动终端将当前的与第二MCC所对应的Wi-Fi工作信道切换为与第一MCC所对应的符合要求的Wi-Fi工作信道。The mobile terminal switches the current Wi-Fi working channel corresponding to the second MCC to the required Wi-Fi working channel corresponding to the first MCC.
例如,移动终端的第二MCC为100,所对应的2.4G的Wi-Fi工作信道为1-10;移动终端在确定当前MCC改变成第一MCC为200时,根据预设 规则确定出第一MCC为200所对应的2.4G的Wi-Fi工作信道为1-13,则将当前所对应的2.4G的Wi-Fi工作信道1-10切换成第一MCC所对应的Wi-Fi工作信道1-13。For example, the second MCC of the mobile terminal is 100, and the corresponding 2.4 G Wi-Fi working channel is 1-10; when the mobile terminal determines that the current MCC is changed to the first MCC is 200, according to the preset The rule determines that the 2.4G Wi-Fi working channel corresponding to the first MCC is 1-13, and switches the currently corresponding 2.4G Wi-Fi working channel 1-10 to the Wi corresponding to the first MCC. -Fi working channel 1-13.
本发明实施例提供的Wi-Fi工作信道切换的方法,移动终端通过获取当前注册到移动网络的第一移动国家码MCC,在所述第一MCC与上一次注册到移动网络的第二MCC不一致时,根据所述第一MCC与预设切换规则确定出所述第一MCC所对应的Wi-Fi工作信道;将当前的Wi-Fi工作信道切换为所述第一MCC所对应的Wi-Fi工作信道;实现了当移动终端漫游到另外一个国家或地区,并且用户不更换该国家的SIM卡时,利用原有的SIM卡与该国家的网络运营商的信令交互,可以将移动终端的Wi-Fi工作信道自动切换到该国家规定的工作信道上,这样在使用Wi-Fi时能够避免违反该国家当地的法律。The method for switching the Wi-Fi working channel provided by the embodiment of the present invention, the mobile terminal obtains the first mobile country code MCC currently registered to the mobile network, and the first MCC is inconsistent with the second MCC that is last registered to the mobile network. Determining, according to the first MCC, a Wi-Fi working channel corresponding to the first MCC, and switching the current Wi-Fi working channel to the Wi-Fi corresponding to the first MCC. Working channel; realizing that when the mobile terminal roams to another country or region, and the user does not replace the SIM card of the country, the original SIM card is used to interact with the signaling of the country's network operator, and the mobile terminal can be The Wi-Fi working channel automatically switches to the working channel specified by the country, thus avoiding violations of local laws in the country when using Wi-Fi.
图2为本发明Wi-Fi工作信道切换的方法实施例二的流程图,如图2所示,本发明实施例提供的Wi-Fi工作信道切换的方法可以应用在具有Wi-Fi功能的手机(以下简称手机)中,本发明实施例提供的Wi-Fi工作信道切换的方法可以包括如下步骤:2 is a flowchart of Embodiment 2 of a Wi-Fi working channel switching method according to the present invention. As shown in FIG. 2, the Wi-Fi working channel switching method provided by the embodiment of the present invention can be applied to a mobile phone with Wi-Fi function. The method for switching the Wi-Fi working channel provided by the embodiment of the present invention may include the following steps:
步骤201、判断当前SIM卡的MCC与本地存储的MCC是否一致。Step 201: Determine whether the MCC of the current SIM card is consistent with the locally stored MCC.
手机判断当前SIM卡的MCC与本地存储的MCC是否一致,判断当前SIM卡的MCC与本地存储的MCC不一致时,执行步骤202-203;判断当前SIM卡的MCC与本地存储的MCC一致时,执行步骤204及以后步骤。The mobile phone determines whether the MCC of the current SIM card is consistent with the locally stored MCC, and determines that the MCC of the current SIM card is inconsistent with the locally stored MCC, and performs steps 202-203; and determines that the MCC of the current SIM card is consistent with the locally stored MCC, Step 204 and subsequent steps.
步骤202、根据SIM卡的MCC与预设每个MCC所对应的Wi-Fi工作信道的关系确定出与SIM卡的MCC所对应的Wi-Fi工作信道。Step 202: Determine a Wi-Fi working channel corresponding to the MCC of the SIM card according to the relationship between the MCC of the SIM card and the Wi-Fi working channel corresponding to each MCC.
手机根据SIM卡的MCC与预设每个MCC所对应的Wi-Fi工作信道的关系确定出与SIM卡的MCC所对应的Wi-Fi工作信道;可选的,预设每个MCC所对应的Wi-Fi工作信道的关系,可以为全球每个国家和/或地区对于Wi-Fi的2.4G和/或5G频段的工作信道的对应关系列表,也可以为全球每个国家和/或地区对于Wi-Fi的2.4G和/或5G频段的工作信道的对应关系数据表,也可以为全球每个国家和/或地区对于Wi-Fi的2.4G和/或5G频段的工作信道的对应关系指向表等国际上通用的标准信息。 The mobile phone determines a Wi-Fi working channel corresponding to the MCC of the SIM card according to the relationship between the MCC of the SIM card and the Wi-Fi working channel corresponding to each MCC; optionally, preset the corresponding corresponding to each MCC. The relationship of the Wi-Fi working channel can be a correspondence list of working channels of 2.4G and/or 5G bands of Wi-Fi in each country and/or region of the world, or for each country and/or region in the world. Wi-Fi's 2.4G and/or 5G frequency band working channel correspondence data table can also be used to map the correspondence between Wi-Fi 2.4G and/or 5G frequency bands in each country and/or region of the world. Table and other internationally accepted standard information.
步骤203、将当前的Wi-Fi工作信道切换为SIM卡的MCC所对应的Wi-Fi工作信道。Step 203: Switch the current Wi-Fi working channel to a Wi-Fi working channel corresponding to the MCC of the SIM card.
手机将当前的Wi-Fi工作信道切换为SIM卡的MCC所对应的Wi-Fi工作信道,完成切换工作。The mobile phone switches the current Wi-Fi working channel to the Wi-Fi working channel corresponding to the MCC of the SIM card, and completes the switching work.
步骤204、获取当前注册到移动网络的第一MCC。Step 204: Acquire a first MCC currently registered to the mobile network.
手机注册到移动网络运营商的网络上时,手机可以在注册移动网络的过程中从交互的信令里得到当前移动网络的第一MCC。When the mobile phone registers with the mobile network operator's network, the mobile phone can obtain the first MCC of the current mobile network from the interactive signaling in the process of registering the mobile network.
可选的是,手机在有两个或两个以上通信制式时,可以根据预设优先级规则确定出一个通信制式,根据确定出的通信制式获取所述当前注册到移动网络的第一MCC;例如,手机有A、B、C三个通信制式时,可以根据用户提前设置好的优先级顺序关系A>B>C的关系,确定出优先级最高的A为优选的通信制式;之后,利用A通信制式来获取当前注册到移动网络的第一MCC。Optionally, when the mobile phone has two or more communication systems, the communication system can be determined according to the preset priority rule, and the first MCC currently registered to the mobile network is obtained according to the determined communication system. For example, when the mobile phone has three communication systems A, B, and C, it can determine the highest priority A as the preferred communication system according to the priority order relationship A>B>C set by the user in advance; A communication system to obtain the first MCC currently registered to the mobile network.
步骤205、判断第一MCC与上一次注册到移动网络的第二MCC是否一致。Step 205: Determine whether the first MCC is consistent with the second MCC that was last registered to the mobile network.
手机判断第一MCC与上一次注册到移动网络的第二MCC是否一致,判断第一MCC与上一次注册到移动网络的第二MCC一致时,执行步骤206;判断第一MCC与上一次注册到移动网络的第二MCC不一致时,执行步骤207-208。The mobile phone determines whether the first MCC is consistent with the second MCC that was last registered to the mobile network, and determines that the first MCC is consistent with the second MCC that was last registered to the mobile network, and performs step 206; determining that the first MCC is registered with the previous one. When the second MCC of the mobile network is inconsistent, steps 207-208 are performed.
其中,若手机中没有上一次注册到移动网络的第二MCC,则可以将该手机的默认的MCC设置为第二MCC。If the mobile phone does not have the second MCC registered to the mobile network last time, the default MCC of the mobile phone may be set to the second MCC.
步骤206、保持当前的Wi-Fi工作信道。Step 206: Maintain the current Wi-Fi working channel.
手机保持当前的Wi-Fi工作信道,无需切换。The phone maintains the current Wi-Fi working channel without switching.
步骤207、根据第一MCC与预设每个MCC所对应的Wi-Fi工作信道的关系确定出第一MCC所对应的Wi-Fi工作信道。Step 207: Determine, according to a relationship between the first MCC and a Wi-Fi working channel corresponding to each MCC, a Wi-Fi working channel corresponding to the first MCC.
手机根据第一MCC与预设每个MCC所对应的Wi-Fi工作信道的关系确定出第一MCC所对应的符合第一MCC要求的Wi-Fi工作信道。The mobile phone determines, according to the relationship between the first MCC and the Wi-Fi working channel corresponding to each MCC, the Wi-Fi working channel corresponding to the first MCC requirement corresponding to the first MCC.
步骤208、将当前的Wi-Fi工作信道切换为第一MCC所对应的Wi-Fi 工作信道。Step 208: Switch the current Wi-Fi working channel to the Wi-Fi corresponding to the first MCC. Working channel.
手机将当前的Wi-Fi工作信道切换为第一MCC所对应的Wi-Fi工作信道,实现Wi-Fi工作信道的切换。The mobile phone switches the current Wi-Fi working channel to the Wi-Fi working channel corresponding to the first MCC, and implements switching of the Wi-Fi working channel.
例如,用户在中国购买了一台手机并插入中国A网络运营商的SIM卡,手机注册到A网络运营商的网络上;图3为本发明Wi-Fi工作信道切换的方法实施例二的获取交互信令的示意图,如图3所示,手机在注册网络的过程中可以从交互的信令里获取到当前网络的MCC为460;手机读取上一次注册网络的MCC(这里假设是第一次开机使用,因此没有上一次注册的MCC,则会使用默认的MCC,因为是在中国销售的手机,因此默认的MCC就是460)并与当前注册网络的MCC进行对比,由于MCC相同,因此手机确定不会对当前的Wi-Fi工作信道进行切换。For example, the user purchases a mobile phone in China and inserts the SIM card of the Chinese A network operator, and the mobile phone registers with the network of the A network operator; FIG. 3 is the acquisition of the second embodiment of the Wi-Fi working channel switching method of the present invention. Schematic diagram of the interactive signaling, as shown in FIG. 3, the mobile phone can obtain the MCC of the current network from the interactive signaling in the process of registering the network to be 460; the mobile phone reads the MCC of the last registered network (here assumed to be the first The boot is used, so the MCC will not be used. The default MCC is used because it is a mobile phone sold in China, so the default MCC is 460) and compared with the MCC of the currently registered network. Since the MCC is the same, the mobile phone is the same. It is determined that the current Wi-Fi working channel will not be switched.
之后,用户到美国出差,在到达美国之后,手机仍然使用的是中国A网络运营商的SIM卡,SIM卡中的MCC仍然是460,根据发明实施例提供的方案,手机开机后会注册到美国B网络运营商的网络中,在与网络侧交互的信令中获取到MCC为310;在获取到当前注册到网络的MCC后,手机会将先前获取到的上一次注册网络的MCC与这一次当前注册的MCC进行比较,可知MMC由460变成了310,由于MCC有变化,因此手机会在预设每个MCC所对应的Wi-Fi工作信道的关系列表中查询MCC为310所对应的Wi-Fi工作信道,然后手机将MCC为460所对应的Wi-Fi工作信道切换成新的MCC为310所对应的Wi-Fi工作信道,手机将按照切换后的Wi-Fi工作信道进行工作。After that, the user travels to the United States. After arriving in the United States, the mobile phone still uses the SIM card of the Chinese A network operator, and the MCC in the SIM card is still 460. According to the solution provided by the embodiment of the invention, the mobile phone is registered in the United States after being powered on. In the network of the B network operator, the MCC obtained in the signaling interaction with the network side is 310; after obtaining the MCC currently registered to the network, the mobile phone will obtain the previously acquired MCC of the previously registered network with this time. If the current registered MCC is compared, it can be seen that the MMC is changed from 460 to 310. Since the MCC changes, the mobile phone will query the Wi corresponding to the MCC 310 in the relationship list of the Wi-Fi working channel corresponding to each MCC. -Fi working channel, then the mobile phone switches the Wi-Fi working channel corresponding to the MCC to 460 to the new Wi-Fi working channel corresponding to the MCC 310, and the mobile phone will work according to the switched Wi-Fi working channel.
这里,预设每个MCC所对应的Wi-Fi工作信道的关系列表仅以中国和美国所对应的2.4G的Wi-Fi工作信道的关系列表(表1)来举例说明,具体的实际情况可以根据实际需求进行设置,在此不加以限制。Here, the relationship list of the Wi-Fi working channel corresponding to each MCC is preset to be exemplified by the relationship list of the 2.4G Wi-Fi working channel corresponding to China and the United States (Table 1). The specific actual situation may be Set according to actual needs, no restrictions here.
表1Table 1
工作信道Working channel 频率(MHz)Frequency (MHz) 中国(MCC为460)China (MCC is 460) 美国(MCC为310)United States (MCC 310)
11 24122412 Yes Yes
22 24172417 Yes Yes
33 24222422 Yes Yes
44 24272427 Yes Yes
55 24322432 Yes Yes
66 24372437 Yes Yes
77 24422442 Yes Yes
88 24472447 Yes Yes
99 24522452 Yes Yes
1010 24572457 Yes Yes
1111 24622462 Yes Yes
1212 24672467 Yes no
1313 24722472 Yes no
1414 24842484 no no
最终,通过表1的对应关系,得到结果是将原先中国对应的2.4G的Wi-Fi工作信道1-13切换成美国对应的2.4G的Wi-Fi工作信道1-11;这样,实现了当手机漫游到另外一个国家,并且用户不更换该国家的SIM卡时,终端的Wi-Fi工作信道能够自动切换到该国家规定的工作信道上,避免在使用Wi-Fi时违反该国家当地的法律。Finally, through the correspondence of Table 1, the result is that the 2.4G Wi-Fi working channel 1-13 corresponding to the original China is switched to the 2.4G Wi-Fi working channel 1-11 corresponding to the United States; thus, When the mobile phone roams to another country and the user does not change the country's SIM card, the terminal's Wi-Fi working channel can automatically switch to the working channel specified by the country, avoiding violation of the local laws of the country when using Wi-Fi. .
本发明实施例提供的Wi-Fi工作信道切换的方法,通过手机判断当前SIM卡的MCC与本地存储的MCC是否一致;若一致,则根据SIM卡的MCC与预设每个MCC所对应的Wi-Fi工作信道的关系确定出与SIM卡的MCC所对应的Wi-Fi工作信道并将当前的Wi-Fi工作信道切换为SIM卡的MCC所对应的Wi-Fi工作信道,若不一致,则获取当前注册到移动网络的第一MCC;判断第一MCC与上一次注册到移动网络的第二MCC是否一致,若一致,则保持当前的Wi-Fi工作信道,若不一致,则根据第一MCC与预设每个MCC所对应的Wi-Fi工作信道的关系确定出第一MCC所对应的Wi-Fi工作信道;将当前的Wi-Fi工作信道切换为第一MCC所对应的Wi-Fi工作信道;实现了当移动终端漫游到另外一个国家或地区,并且用户不更换该国 家的SIM卡时,利用原有的SIM卡与该国家的网络运营商的信令交互,可以将移动终端的Wi-Fi工作信道自动切换到该国家规定的工作信道上,这样在使用Wi-Fi时能够避免违反该国家当地的法律。The method for switching the Wi-Fi working channel provided by the embodiment of the present invention determines whether the MCC of the current SIM card is consistent with the MCC stored locally by the mobile phone; if they are consistent, according to the MCC of the SIM card and the Wi corresponding to each MCC preset The relationship between the -Fi working channel determines the Wi-Fi working channel corresponding to the MCC of the SIM card and switches the current Wi-Fi working channel to the Wi-Fi working channel corresponding to the MCC of the SIM card. If not, the acquiring is performed. The first MCC currently registered to the mobile network; determining whether the first MCC is consistent with the second MCC registered to the mobile network last time, and if consistent, maintaining the current Wi-Fi working channel, if not, according to the first MCC and Presetting the relationship of the Wi-Fi working channel corresponding to each MCC to determine a Wi-Fi working channel corresponding to the first MCC; and switching the current Wi-Fi working channel to the Wi-Fi working channel corresponding to the first MCC Implemented when the mobile terminal roamed to another country or region and the user did not change the country When the home SIM card is used, the original SIM card can be used to automatically switch the Wi-Fi working channel of the mobile terminal to the working channel specified by the country by using the signaling interaction of the network operator of the country, so that Wi- is used. Fi can avoid violating local laws in the country.
本发明实施例还提供了一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令被处理器执行时实现上述实施例所述的方法。The embodiment of the invention further provides a computer readable storage medium storing computer executable instructions, which are implemented by the processor to implement the method described in the foregoing embodiments.
图4为本发明Wi-Fi工作信道切换的装置实施例的结构示意图,如图4所示,本发明实施例提供的Wi-Fi工作信道切换的装置04包括:获取模块41、确定模块42、切换模块43;其中,4 is a schematic structural diagram of an apparatus for switching a Wi-Fi working channel according to the present invention. As shown in FIG. 4, the apparatus 04 for Wi-Fi working channel switching according to the embodiment of the present invention includes: an obtaining module 41, a determining module 42, Switching module 43; wherein
所述获取模块41,设置为获取当前注册到移动网络的第一移动国家码MCC;The obtaining module 41 is configured to acquire a first mobile country code MCC currently registered to the mobile network;
所述确定模块42,设置为在所述第一MCC与上一次注册到移动网络的第二MCC不一致时,根据所述第一MCC与预设切换规则确定出所述第一MCC所对应的无线保真Wi-Fi工作信道;The determining module 42 is configured to determine, according to the first MCC and the preset switching rule, the wireless corresponding to the first MCC, when the first MCC is inconsistent with the second MCC that was last registered to the mobile network. Fidelity Wi-Fi working channel;
所述切换模块43,设置为将当前的Wi-Fi工作信道切换为所述第一MCC所对应的Wi-Fi工作信道。The switching module 43 is configured to switch the current Wi-Fi working channel to a Wi-Fi working channel corresponding to the first MCC.
可选的,所述装置还包括:判断模块44;其中,Optionally, the device further includes: a determining module 44; wherein
所述判断模块44,设置为判断当前客户识别模块SIM卡的MCC与本地存储的MCC是否一致;The determining module 44 is configured to determine whether the MCC of the current customer identification module SIM card is consistent with the locally stored MCC;
所述获取模块41,设置为在所述当前SIM卡的MCC与所述本地存储的MCC一致时,获取所述当前注册到移动网络的第一MCC。The obtaining module 41 is configured to acquire the first MCC currently registered to the mobile network when the MCC of the current SIM card is consistent with the locally stored MCC.
可选的,所述判断模块44,还设置为判断所述第一MCC与上一次注册到移动网络的第二MCC是否一致,其中,若没有所述上一次注册到移动网络的第二MCC,则所述第二MCC为默认的MCC。Optionally, the determining module 44 is further configured to determine whether the first MCC is consistent with the second MCC that was last registered to the mobile network, where, if there is no second MCC that is last registered to the mobile network, Then the second MCC is the default MCC.
可选的,所述确定模块42,还设置为在有两个或两个以上通信制式时,根据预设优先级规则确定出一个通信制式;Optionally, the determining module 42 is further configured to: when there are two or more communication systems, determine a communication system according to a preset priority rule;
所述获取模块41,还设置为根据确定出的通信制式获取所述当前注册到移动网络的第一MCC。The obtaining module 41 is further configured to acquire the first MCC currently registered to the mobile network according to the determined communication system.
可选的,所述确定模块42,是设置为根据所述第一MCC与预设每个 MCC所对应的Wi-Fi工作信道的关系确定出所述第一MCC所对应的符合第一MCC要求的Wi-Fi工作信道。Optionally, the determining module 42 is configured to preset each according to the first MCC. The relationship of the Wi-Fi working channel corresponding to the MCC determines the Wi-Fi working channel corresponding to the first MCC requirement corresponding to the first MCC.
本实施例的装置,可以用于执行上述所示方法实施例的技术方案,其实现原理和技术效果类似,此处不再赘述。The device in this embodiment may be used to implement the technical solution of the foregoing method embodiment, and the implementation principle and the technical effect are similar, and details are not described herein again.
在实际应用中,所述获取模块41、确定模块42、切换模块43、判断模块44均可由位于Wi-Fi工作信道切换的装置04中的中央处理器(Central Processing Unit,CPU)、微处理器(Micro Processor Unit,MPU)、数字信号处理器(Digital Signal Processor,DSP)或现场可编程门阵列(Field Programmable Gate Array,FPGA)等实现。In an actual application, the obtaining module 41, the determining module 42, the switching module 43, and the determining module 44 may each be a central processing unit (CPU) and a microprocessor located in the device 04 of the Wi-Fi working channel switching. (Micro Processor Unit, MPU), Digital Signal Processor (DSP) or Field Programmable Gate Array (FPGA).
本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、或计算机程序产品。因此,本发明可采用硬件实施例、软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器和光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art will appreciate that embodiments of the present invention can be provided as a method, system, or computer program product. Accordingly, the present invention can take the form of a hardware embodiment, a software embodiment, or a combination of software and hardware. Moreover, the invention can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) including computer usable program code.
本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present invention has been described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (system), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or FIG. These computer program instructions can be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing device to produce a machine for the execution of instructions for execution by a processor of a computer or other programmable data processing device. Means for implementing the functions specified in one or more of the flow or in a block or blocks of the flow chart.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。 The computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device. The apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device. The instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.
以上所述,仅为本发明的可选实施例而已,并非用于限定本发明的保护范围。The above is only an alternative embodiment of the present invention and is not intended to limit the scope of the present invention.
工业实用性Industrial applicability
上述技术方案实现了当终端漫游到另外一个国家或地区,并且用户不更换该国家的SIM卡时,可以将终端的Wi-Fi工作信道自动切换到该国家规定的工作信道上,这样在使用Wi-Fi时能够避免违反该国家当地的法律。 The above technical solution realizes that when the terminal roams to another country or region, and the user does not replace the SIM card of the country, the Wi-Fi working channel of the terminal can be automatically switched to the working channel specified by the country, so that Wi is used. -Fi can avoid violating local laws in the country.

Claims (11)

  1. 一种无线保真Wi-Fi工作信道切换的方法,所述方法包括:A method for wireless Fidelity Wi-Fi working channel switching, the method comprising:
    获取当前注册到移动网络的第一移动国家码MCC(101);Obtaining the first mobile country code MCC (101) currently registered to the mobile network;
    在所述第一MCC与上一次注册到移动网络的第二MCC不一致时,根据所述第一MCC与预设切换规则确定出所述第一MCC所对应的Wi-Fi工作信道(102);When the first MCC is inconsistent with the second MCC that was last registered to the mobile network, the Wi-Fi working channel corresponding to the first MCC is determined according to the first MCC and the preset switching rule (102);
    将当前的Wi-Fi工作信道切换为所述第一MCC所对应的Wi-Fi工作信道(103)。The current Wi-Fi working channel is switched to the Wi-Fi working channel (103) corresponding to the first MCC.
  2. 根据权利要求1所述的方法,所述方法还包括:The method of claim 1 further comprising:
    在所述获取当前注册到移动网络的第一移动国家码MCC(101)之前,判断当前客户识别模块SIM卡的MCC与本地存储的MCC是否一致;Before the acquiring the first mobile country code MCC (101) currently registered to the mobile network, determining whether the MCC of the current customer identification module SIM card is consistent with the locally stored MCC;
    所述获取当前注册到移动网络的第一MCC,包括:The obtaining the first MCC currently registered to the mobile network includes:
    在所述当前SIM卡的MCC与所述本地存储的MCC一致时,获取所述当前注册到移动网络的第一MCC。And acquiring, when the MCC of the current SIM card is consistent with the locally stored MCC, the first MCC currently registered to the mobile network.
  3. 根据权利要求1所述的方法,所述方法还包括:The method of claim 1 further comprising:
    在所述获取当前注册到移动网络的第一移动国家码MCC(101)之后,判断所述第一MCC与上一次注册到移动网络的第二MCC是否一致,其中,若没有所述上一次注册到移动网络的第二MCC,则所述第二MCC为默认的MCC。After the acquiring the first mobile country code MCC (101) currently registered to the mobile network, determining whether the first MCC is consistent with the second MCC that was last registered to the mobile network, where the last registration is not performed. To the second MCC of the mobile network, the second MCC is the default MCC.
  4. 根据权利要求1所述的方法,其中,所述获取当前注册到移动网络的第一移动国家码MCC(101),包括:The method of claim 1, wherein the obtaining the first mobile country code MCC (101) currently registered to the mobile network comprises:
    在有两个或两个以上通信制式时,根据预设优先级规则确定出一个通信制式;When there are two or more communication systems, a communication system is determined according to a preset priority rule;
    根据确定出的通信制式获取所述当前注册到移动网络的第一MCC。Acquiring the first MCC currently registered to the mobile network according to the determined communication system.
  5. 根据权利要求1至4任一项所述的方法,其中,所述根据所述第一MCC与预设切换规则确定出所述第一MCC所对应的Wi-Fi工作信道(102),包括: The method according to any one of claims 1 to 4, wherein the determining the Wi-Fi working channel (102) corresponding to the first MCC according to the first MCC and the preset switching rule comprises:
    根据所述第一MCC与预设每个MCC所对应的Wi-Fi工作信道的关系确定出所述第一MCC所对应的符合第一MCC要求的Wi-Fi工作信道。Determining, according to the relationship between the first MCC and the Wi-Fi working channel corresponding to each MCC, a Wi-Fi working channel corresponding to the first MCC requirement corresponding to the first MCC.
  6. 一种无线保真Wi-Fi工作信道切换的装置(04),所述装置(04)包括:A device (04) for wireless fidelity Wi-Fi working channel switching, the device (04) comprising:
    获取模块(41),设置为获取当前注册到移动网络的第一移动国家码MCC;An obtaining module (41) configured to obtain a first mobile country code MCC currently registered to the mobile network;
    确定模块(42),设置为在所述第一MCC与上一次注册到移动网络的第二MCC不一致时,根据所述第一MCC与预设切换规则确定出所述第一MCC所对应的无线保真Wi-Fi工作信道;a determining module (42), configured to determine, according to the first MCC and a preset switching rule, the wireless corresponding to the first MCC, when the first MCC is inconsistent with the second MCC that was last registered to the mobile network Fidelity Wi-Fi working channel;
    切换模块(43),设置为将当前的Wi-Fi工作信道切换为所述第一MCC所对应的Wi-Fi工作信道。The switching module (43) is configured to switch the current Wi-Fi working channel to a Wi-Fi working channel corresponding to the first MCC.
  7. 根据权利要求6所述的装置(04),所述装置(04)还包括:The device (04) according to claim 6, the device (04) further comprising:
    判断模块(44),设置为判断当前客户识别模块SIM卡的MCC与本地存储的MCC是否一致;The determining module (44) is configured to determine whether the MCC of the current customer identification module SIM card is consistent with the locally stored MCC;
    所述获取模块(41),是设置为在所述当前SIM卡的MCC与所述本地存储的MCC一致时,获取所述当前注册到移动网络的第一MCC。The obtaining module (41) is configured to acquire the first MCC currently registered to the mobile network when the MCC of the current SIM card is consistent with the locally stored MCC.
  8. 根据权利要求6所述的装置,The device of claim 6
    所述判断模块(44),还设置为判断所述第一MCC与上一次注册到移动网络的第二MCC是否一致,其中,若没有所述上一次注册到移动网络的第二MCC,则所述第二MCC为默认的MCC。The determining module (44) is further configured to determine whether the first MCC is consistent with the second MCC that was last registered to the mobile network, where the second MCC that was last registered to the mobile network is not used. The second MCC is the default MCC.
  9. 根据权利要求6所述的装置,The device of claim 6
    所述确定模块(42),还设置为在有两个或两个以上通信制式时,根据预设优先级规则确定出一个通信制式;The determining module (42) is further configured to: when there are two or more communication systems, determine a communication system according to a preset priority rule;
    所述获取模块(41),还设置为根据确定出的通信制式获取所述当前注册到移动网络的第一MCC。The obtaining module (41) is further configured to acquire the first MCC currently registered to the mobile network according to the determined communication system.
  10. 根据权利要求6至9任一项所述的装置,其中,A device according to any one of claims 6 to 9, wherein
    所述确定模块,是设置为根据所述第一MCC与预设每个MCC所对应的 Wi-Fi工作信道的关系确定出所述第一MCC所对应的符合第一MCC要求的Wi-Fi工作信道。The determining module is configured to correspond to each MCC according to the first MCC. The relationship of the Wi-Fi working channel determines the Wi-Fi working channel corresponding to the first MCC requirement corresponding to the first MCC.
  11. 一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令被处理器执行时实现权利要求1至5中任一项所述的方法。 A computer readable storage medium storing computer executable instructions that, when executed by a processor, implement the method of any one of claims 1 to 5.
PCT/CN2017/089026 2017-01-25 2017-06-19 Method and device for switching wi-fi working channels WO2018137307A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710064145.1 2017-01-25
CN201710064145.1A CN108347754A (en) 2017-01-25 2017-01-25 The method and device of Wi-Fi working channels switching

Publications (1)

Publication Number Publication Date
WO2018137307A1 true WO2018137307A1 (en) 2018-08-02

Family

ID=62963247

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/089026 WO2018137307A1 (en) 2017-01-25 2017-06-19 Method and device for switching wi-fi working channels

Country Status (2)

Country Link
CN (1) CN108347754A (en)
WO (1) WO2018137307A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116156586B (en) * 2022-11-16 2023-10-24 广州通则康威智能科技有限公司 Method, device and equipment for dynamically switching WIFI channel list

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103731813A (en) * 2013-10-31 2014-04-16 东莞宇龙通信科技有限公司 Network selection method and terminal
CN104427507A (en) * 2013-08-29 2015-03-18 华为终端有限公司 Method for self-adaption of Wi-Fi channel range and wireless access equipment controller
CN105578389A (en) * 2015-12-18 2016-05-11 深圳优克云联科技有限公司 Terminal bandwidth configuration method and mobile terminal
CN105992189A (en) * 2015-03-06 2016-10-05 中兴通讯股份有限公司 Method and device for obtaining network service through frequency band information

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105530621A (en) * 2015-12-08 2016-04-27 深圳优克云联科技有限公司 Method and device for controlling opening and closing of dynamic frequency selection function

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104427507A (en) * 2013-08-29 2015-03-18 华为终端有限公司 Method for self-adaption of Wi-Fi channel range and wireless access equipment controller
CN103731813A (en) * 2013-10-31 2014-04-16 东莞宇龙通信科技有限公司 Network selection method and terminal
CN105992189A (en) * 2015-03-06 2016-10-05 中兴通讯股份有限公司 Method and device for obtaining network service through frequency band information
CN105578389A (en) * 2015-12-18 2016-05-11 深圳优克云联科技有限公司 Terminal bandwidth configuration method and mobile terminal

Also Published As

Publication number Publication date
CN108347754A (en) 2018-07-31

Similar Documents

Publication Publication Date Title
US20200205211A1 (en) Unmanned aerial vehicle access method and device
US10897704B2 (en) Method of connecting a terminal device to network, a terminal device and a non-transitory computer readable storage medium
US7620386B2 (en) Establishing a collaborative domain among communication terminals responsive to authentication
CN106488427B (en) Execute the method, apparatus and system of network registry
US9661494B2 (en) Control apparatus, control method, communication system and program
EP2861002A1 (en) Virtual user identification data distributing method and obtaining method, and devices
KR101706388B1 (en) Method and apparatus for providing application service and thereof system
WO2018214960A1 (en) Frequency band scanning method and device, mobile terminal and storage medium
AU2014224110B2 (en) Apparatus, method, and system for activating a mobile terminal
US20140066059A1 (en) Method and apparatus determining white space information
CN111431818B (en) Cross-domain request flow distribution method and device, storage medium and computer equipment
EP3585106A1 (en) Method and apparatus for processing service set identifier, and terminal
WO2018137307A1 (en) Method and device for switching wi-fi working channels
CN112672340A (en) System, method and device for processing operator information
CN107241714B (en) Method, device and storage medium for establishing communication
CN104978157A (en) Display device and image display method of display device
CN112800156A (en) Road side unit based map framing method, system, equipment and storage medium
TWI771522B (en) Method and device of wireless communication
CN105574453B (en) Two-dimensional code processing method and mobile terminal
CN109429301B (en) Service search method, corresponding device and storage medium
CN107241628B (en) Configuration synchronization method of television equipment, television equipment and storage medium
KR101295713B1 (en) Apparatus and Method for Providing Communication Service using USIMs with same ID
WO2018149136A1 (en) Wireless fidelity (wifi) connection method and related product
CN105163315A (en) Wireless network access method
EP2939404A1 (en) Obtaining on-line service

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

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

Country of ref document: EP

Kind code of ref document: A1