WO2018103466A1 - Method for applying wireless fidelity country code, apparatus, intelligent terminal and storage medium - Google Patents

Method for applying wireless fidelity country code, apparatus, intelligent terminal and storage medium Download PDF

Info

Publication number
WO2018103466A1
WO2018103466A1 PCT/CN2017/107532 CN2017107532W WO2018103466A1 WO 2018103466 A1 WO2018103466 A1 WO 2018103466A1 CN 2017107532 W CN2017107532 W CN 2017107532W WO 2018103466 A1 WO2018103466 A1 WO 2018103466A1
Authority
WO
WIPO (PCT)
Prior art keywords
country code
country
location information
wifi
access point
Prior art date
Application number
PCT/CN2017/107532
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 WO2018103466A1 publication Critical patent/WO2018103466A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information
    • 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 communications, and in particular, to a method, an apparatus, an intelligent terminal, and a storage medium for applying a wireless fidelity country code.
  • Terminals in the communication field are devices commonly used by users. Since the devices all have their own operating systems, the terminals are also called smart terminals or smart phones, and smart phones (English: Smartphone) are For the collective title of mobile phones with more computing power and functions than traditional feature phones.
  • the existing smart phone platform (ISO platform or Android platform, etc.) is equipped with a Wifi chip, and supports connecting to the Internet or as a Wifi hotspot for others to connect, that is, the existing smart phone can be a station in different scenarios ( STA) can also be an access point (AP).
  • STA station in different scenarios
  • AP access point
  • the smart terminal may not be used as an AP in different countries due to different country codes, which affects the user's use.
  • An object of the present invention is to provide a method, an apparatus, an intelligent terminal, and a storage medium for a wireless fidelity country code, which mainly solve the shortcomings that the existing smart terminal cannot be used as an access point and affect the user's use.
  • the first aspect provides a method for applying a wireless fidelity country code, where the method includes the following steps: the smart terminal acquires current location information; and the smart terminal extracts the first country corresponding to the current location information according to the current location information. The smart terminal determines whether the first country code is the same as the saved second country code; if the first country code is different from the second country code, the smart terminal replaces the first country code with the first country code The second country code is described and the first country code is saved.
  • the location information includes: coordinate information, an IP address, a base station cell information, or a latitude and longitude One or any combination of degrees.
  • the method further includes:
  • the smart terminal selects an available channel as a hotspot channel according to the first country code.
  • the method further includes:
  • the first country code is set to be the country code of the WIFI.
  • the method further includes:
  • the smart terminal When the smart terminal is turned on, the smart terminal extracts the name of the access point in the scan result of the WIFI scan operation, analyzes the name of the access point, determines the first language type corresponding to the access point name, and determines the first language. Whether the category is in the language category of the access point name of the historical access, if the first language category is in the language category of the access point name of the historical access, setting the country in which the first country code is used by WIFI a code, if the first language type is not in the language category of the access point name accessed by the history, acquiring the country name corresponding to the corresponding language category, acquiring the third country code corresponding to the country name, and setting the third country The code is the country code of WIFI.
  • the second aspect provides an application device of a wireless fidelity country code, the device: an acquiring unit, configured to acquire current location information, and an extracting unit, configured to extract, according to the current location information, the current location information a first country code; a determining unit, configured to determine whether the first country code is the same as the saved second country code. a saving unit, configured to replace the second country code with the first country code and save the first country code if the first country code is different from the second country code.
  • the location information includes one or any combination of coordinate information, IP address, base station cell information, or latitude and longitude information.
  • the device further includes: a selecting unit, configured to select, according to the first country code, an available channel as a hotspot channel when the hotspot is turned on.
  • a selecting unit configured to select, according to the first country code, an available channel as a hotspot channel when the hotspot is turned on.
  • the device further includes: a setting unit, configured to set the first country code to be the country code of the WIFI when the WIFI is turned on.
  • the device further includes: a processing unit, configured to: when the WIFI is turned on, extract an access point name in a scan result of the WIFI scan operation, and analyze the access point name to determine the access point name.
  • a processing unit configured to: when the WIFI is turned on, extract an access point name in a scan result of the WIFI scan operation, and analyze the access point name to determine the access point name.
  • a first language type determining whether the first language category is in a language category of an access point name accessed by the history, such as the language type of the access point name of the historical access point in the first language category, And setting the country code of the first country code to be used by the WIFI, if the first language type is not in the language type of the access point name of the historical access, acquiring the country name corresponding to the corresponding language type, and acquiring the country name.
  • Corresponding third country code setting the country code of the third country code to WIFI.
  • an intelligent terminal in a third aspect, includes: a processor, a memory, a transceiver, and a bus; the processor, the memory, and the transceiver are connected by using the bus; And storing the program code; the processing unit is configured to invoke the program code to execute the application method of the wireless fidelity country code provided by the first aspect.
  • a fourth aspect discloses a storage medium for storing program code; when the program code is executed, the processing unit executes an application method of performing the wireless fidelity country code provided by the first aspect.
  • FIG. 1 is a flow chart of a method of applying a wireless fidelity country code according to a preferred embodiment of the present invention.
  • FIG. 2 is a flow chart of a method of applying a wireless fidelity country code according to another preferred embodiment of the present invention.
  • FIG. 3 is a flow chart of a method for applying a wireless fidelity country code according to still another preferred embodiment of the present invention.
  • FIG. 4 is a structural diagram of an apparatus for applying a wireless fidelity country code according to the present invention.
  • FIG. 5 is a schematic structural diagram of hardware of an intelligent terminal provided by the present invention.
  • Computer device also referred to as “computer” in the context, is meant an intelligent electronic device that can perform predetermined processing, such as numerical calculations and/or logical calculations, by running a predetermined program or instruction, which can include a processor and The memory is executed by the processor to execute a predetermined process pre-stored in the memory to execute a predetermined process, or is executed by hardware such as an ASIC, an FPGA, a DSP, or the like, or a combination of the two.
  • Computer devices include, but are not limited to, servers, personal computers, notebook computers, tablets, smart phones, and the like.
  • a method for applying a wireless fidelity country code is provided, which is implemented by an intelligent terminal, which may be specifically: a mobile phone, a tablet computer, a smart watch, a smart bracelet, and a personal digital assistant. And so on the smart device, the method is shown in Figure 1, including the following steps:
  • Step S101 The smart terminal acquires current location information.
  • the location information in the foregoing step S101 includes but is not limited to: coordinate information, including but not limited to: GPS coordinates, and the location information may further include: an IP address, and the location information may further include: a base station.
  • the cell information of course, the location information may also be: latitude and longitude information.
  • the smart terminal may acquire the current location coordinates through a positioning module (eg, a GPS module or a Beidou module).
  • a positioning module eg, a GPS module or a Beidou module
  • the smart terminal can acquire the IP address through the data packet.
  • the intelligent terminal may acquire the cell information of the base station according to the connected base station.
  • the smart terminal may acquire the latitude and longitude information according to the location coordinates of the positioning module.
  • Step S102 The intelligent terminal extracts the first country code corresponding to the current location information according to the current location information.
  • the smart terminal may acquire the current location coordinates through the positioning module (for example, the GPS module or the Beidou module), determine the country name according to the location coordinates, and determine the first country code corresponding to the country name.
  • the location information is an IP address
  • the smart terminal can obtain the corresponding country information in the IP address by using the IP address, and query the country code corresponding to the country information from the country code list according to the country information.
  • the smart terminal may determine an international code (MCC) according to the base station cell information.
  • MCC international code
  • Step S103 The smart terminal determines whether the first country code is the same as the saved second country code.
  • Step S104 If the first country code is different from the second country code, the smart terminal replaces the second country code with the first country code, and saves the first country code.
  • the second country code may be a historical country code saved by the smart terminal.
  • the user carries the smart terminal from China to Japan, and the historical country code of the smart terminal before the country code is not modified, that is, the second country code is the country code corresponding to China.
  • the modified country code, that is, the first country code is the Japanese country code.
  • the current location information is obtained, the first country code is extracted according to the current location information, and then the first country code is compared with the saved second country code, and if there is a change, When the country code is inconsistent with the second country code, the second country code is replaced with the first country code, thereby avoiding the inconsistency of the first country code corresponding to the current location and affecting the WIFI connection or the WIFI hotspot.
  • the problem of use so the technical solution of the present invention does not affect the user's use.
  • a method for applying an application of a wireless fidelity country code is provided, which is implemented by an intelligent terminal, which may be specifically: a mobile phone, a tablet computer, a smart watch, a smart bracelet, and a personal number.
  • an intelligent terminal which may be specifically: a mobile phone, a tablet computer, a smart watch, a smart bracelet, and a personal number.
  • Assistant and other smart devices the method shown in Figure 2, including the following steps:
  • Step S201 The smart terminal acquires current location information.
  • the location information in the foregoing step S201 includes but is not limited to: coordinate information, including but not limited to: GPS coordinates, the location information may further include: an IP address, and the location information may further include: a base station.
  • coordinate information including but not limited to: GPS coordinates
  • IP address an IP address
  • location information may further include: a base station.
  • the cell information of course, the location information may also be: latitude and longitude information.
  • the smart terminal may acquire the current location coordinates through a positioning module (eg, a GPS module or a Beidou module).
  • a positioning module eg, a GPS module or a Beidou module
  • the smart terminal can acquire the IP address through the data packet.
  • the intelligent terminal may acquire the cell information of the base station according to the connected base station.
  • the smart terminal may acquire the latitude and longitude information according to the location coordinates of the positioning module.
  • Step S202 The intelligent terminal extracts the first country code corresponding to the current location information according to the current location information.
  • the smart terminal may acquire the current location coordinates through the positioning module (for example, the GPS module or the Beidou module), determine the country name according to the location coordinates, and determine the first country code corresponding to the country name.
  • the location information is an IP address
  • the smart terminal can pass The corresponding country information in the IP address is obtained through the IP address, and the country code corresponding to the country information is queried from the country code list according to the country information.
  • the smart terminal may determine an international code (MCC) according to the base station cell information.
  • MCC international code
  • Step S203 The smart terminal determines whether the first country code is the same as the saved second country code.
  • Step S204 If the first country code is different from the second country code, the smart terminal replaces the second country code with the first country code, and saves the first country code.
  • Step S205 When the hot spot is turned on, the smart terminal selects an available channel as a hotspot channel according to the first country code.
  • the implementation method of the foregoing step S205 may specifically be:
  • a touch display screen can be set in a smart terminal, and then a setting interface is displayed on the touch display screen, and a switch for turning on or off the WIFI is displayed in the setting interface for the user to select, such as a user.
  • the smart terminal determines to open the hotspot.
  • the hotspot may be opened by sending a control command to the smart terminal.
  • the smart terminal receives the control command, it is determined that the user turns on the hotspot.
  • the foregoing control commands may be sent by using a wireless method, including but not limited to: 3G, 4G network, or through Bluetooth, etc., and the sending command terminal may be another terminal connected to the smart terminal, for example, a smart watch, a smart bracelet, etc., of course
  • the control command can be sent to the smart terminal for other devices.
  • the specific implementation manner of the present invention is not limited to the specific sending manner of the foregoing control command.
  • This technical solution can increase the availability of hotspots.
  • the current location information is obtained, the first country code is extracted according to the current location information, and then the first country code is compared with the saved second country code, and if there is a change, When the first country code is inconsistent with the second country code, the second country code is replaced with the first country code, thereby avoiding the inconsistency of the first country code corresponding to the current location and affecting the WIFI connection or WIFI.
  • the use of hotspots so the technical solution of the present invention does not affect the user's use.
  • a method for applying a wireless fidelity country code is provided, which is implemented by an intelligent terminal, which may be specifically: a mobile phone, a tablet computer, a smart watch, a smart bracelet, and a personal number.
  • an intelligent terminal which may be specifically: a mobile phone, a tablet computer, a smart watch, a smart bracelet, and a personal number.
  • Assistant and other smart devices the method shown in Figure 3, including the following steps:
  • Step S301 The smart terminal acquires current location information.
  • the location information in the foregoing step S301 includes but is not limited to: coordinate information, including but not limited to: GPS coordinates, the location information may further include: an IP address, and the location information may further include: a base station.
  • coordinate information including but not limited to: GPS coordinates
  • IP address an IP address
  • location information may further include: a base station.
  • the cell information of course, the location information may also be: latitude and longitude information.
  • the smart terminal may acquire the current location coordinates through a positioning module (eg, a GPS module or a Beidou module).
  • a positioning module eg, a GPS module or a Beidou module
  • the smart terminal can acquire the IP address through the data packet.
  • the intelligent terminal may acquire the cell information of the base station according to the connected base station.
  • the smart terminal may acquire the latitude and longitude information according to the location coordinates of the positioning module.
  • Step S302 The intelligent terminal extracts the first country code corresponding to the current location information according to the current location information.
  • the smart terminal may acquire the current location coordinates through the positioning module (for example, the GPS module or the Beidou module), determine the country name according to the location coordinates, and determine the first country code corresponding to the country name.
  • the location information is an IP address
  • the smart terminal can obtain the corresponding country information in the IP address by using the IP address, and query the country code corresponding to the country information from the country code list according to the country information.
  • the smart terminal may determine an international code (MCC) according to the base station cell information.
  • MCC international code
  • Step S303 The smart terminal determines whether the first country code is the same as the saved second country code.
  • Step S304 If the first country code is different from the second country code, the smart terminal replaces the second country code with the first country code, and saves the first country code.
  • Step S305 When the smart terminal opens the WIFI, the intelligent terminal extracts the name of the access point in the scan result of the WIFI scan operation, analyzes the name of the access point, determines the first language type corresponding to the access point name, and determines the first language. Whether the type is in the language type of the access point name of the historical access, for example, if the first language type is in the language type of the access point name of the historical access, the country code whose first country code is used for WIFI is set, such as The first language type is not in the language category of the access point name accessed by the history, the country name corresponding to the corresponding language type is obtained, the third country code corresponding to the country name is obtained, and the country code whose third country code is WIFI is set.
  • the name of an AP access point is generally native or English.
  • most APs are in Chinese or Chinese plus English.
  • Japan most APs are in Japanese.
  • the access AP must have its native language and English.
  • the current location information is obtained, the first country code is extracted according to the current location information, and then the first country code is compared with the saved second country code, and if there is a change, When the first country code is inconsistent with the second country code, the second country code is replaced with the first country code, thereby avoiding the inconsistency of the first country code corresponding to the current location and affecting the WIFI connection or WIFI.
  • the use of hotspots so the technical solution of the present invention does not affect the user's use.
  • the foregoing method may further include:
  • the access parameter is calculated according to the formula 1, and the AP with the largest access parameter is selected as the AP accessed by the WIFI.
  • Xn is the value of the access parameter of the nth AP
  • Sn is the signal strength value of the nth AP.
  • Yn is the number of access terminals of the nth AP, The average number of all AP access terminals.
  • This method can quantitatively calculate the AP that needs to be accessed, and refers to the number of access terminals and the strength of the signal, which avoids the problem that the terminal needs to switch after accessing the AP.
  • FIG. 4 is an application device 400 for a wireless fidelity country code according to the present invention.
  • the obtaining unit 401 is configured to acquire current location information.
  • the extracting unit 402 is configured to extract, according to the current location information, a first country code corresponding to the current location information;
  • the determining unit 403 is configured to determine whether the first country code is the same as the saved second country code.
  • the saving unit 404 is configured to replace the second country code with the first country code and save the first country code if the first country code is different from the second country code.
  • the location information includes one or any combination of coordinate information, IP address, base station cell information, or latitude and longitude information.
  • the device further includes: a selecting unit 405, configured to select, according to the first country code, an available channel as a hotspot channel when the hotspot is turned on.
  • a selecting unit 405 configured to select, according to the first country code, an available channel as a hotspot channel when the hotspot is turned on.
  • the device further includes: a setting unit 406, configured to set the first country code to be the country code of the WIFI when the WIFI is turned on.
  • the device further includes: a processing unit 407, configured to: when the WIFI is turned on, extract an access point name in a scan result of the WIFI scan operation, and analyze the access point name to determine that the access point name corresponds to a first language type, determining whether the first language category is in a language category of an access point name accessed by the history, such as the language type of the access point name of the historical access in the first language category, And setting the country code of the first country code to be used by the WIFI, if the first language type is not in the language type of the access point name of the historical access, acquiring the country name corresponding to the corresponding language type, and acquiring the country name. Corresponding third country code, setting the country code of the third country code to WIFI.
  • each block of the flowchart or block diagram can represent a module, a program segment, or a portion of code that includes one or more of the Executable instructions.
  • the functions noted in the blocks may also occur in a different order than that illustrated in the drawings. For example, two consecutive blocks may be executed substantially in parallel, and they may sometimes be executed in the reverse order, depending upon the functionality involved.
  • each block of the block diagrams and/or flowcharts, and combinations of blocks in the block diagrams and/or flowcharts can be implemented in a dedicated hardware-based system that performs the specified function or function. Or it can be implemented by a combination of dedicated hardware and computer instructions.
  • an embodiment of the present invention further provides an intelligent terminal 500, where the smart terminal 500 includes However, it is not limited to: a smart phone, a smart watch, a tablet computer, a personal computer, a notebook computer, or a computer group.
  • the smart terminal 500 includes a processor 501, a memory 502, a transceiver 503, and a bus 504.
  • the transceiver 503 is configured to transmit and receive data with and from an external device.
  • the number of processors 501 in the terminal 300 may be one or more.
  • processor 501, memory 502, and transceiver 503 may be connected by a bus system or other means.
  • the smart terminal 500 can be used to perform the methods shown in FIGS. 1 and 2. For the meanings and examples of the terms involved in the embodiment, reference may be made to the corresponding descriptions of FIGS. 1 and 2. I will not repeat them here.
  • the program code is stored in the memory 502.
  • the processor 501 is configured to call program code stored in the memory 502 for performing the steps shown in FIG. 1, FIG. 2, and FIG.
  • the processor 501 herein may be a processing component or a general term of multiple processing components.
  • the processing component may be a central processing unit (CPU), an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present application.
  • DSPs digital signal processors
  • FPGAs Field Programmable Gate Arrays
  • the memory 502 may be a storage device or a collective name of a plurality of storage elements, and is used to store executable program code or parameters, data, and the like required for the application running device to operate.
  • the memory 503 may include random access memory (RAM), and may also include non-volatile memory such as a magnetic disk memory, a flash memory, or the like.
  • the bus 504 may be an Industry Standard Architecture (ISA) bus, a Peripheral Component (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus.
  • ISA Industry Standard Architecture
  • PCI Peripheral Component
  • EISA Extended Industry Standard Architecture
  • the bus can be divided into an address bus, a data bus, a control bus, and the like. For ease of representation, only one thick line is shown in Figure 5, but it does not mean that there is only one bus or one type of bus.
  • the terminal may also include input and output means coupled to bus 504 for connection to other portions, such as processor 501, via a bus.
  • the input/output device can provide an input interface for the operator, so that the operator can select the control item through the input interface, and can also be other interfaces through which other devices can be externally connected.
  • a storage medium for storing program code; when the program code is executed, the processing unit performs the following operations:
  • the second country code is replaced with the first country code, and the first country code is saved.
  • the location information includes one or any combination of coordinate information, IP address, base station cell information, or latitude and longitude information.
  • processing unit is further configured to:
  • an available channel is selected as a hotspot channel according to the first country code.
  • processing unit further performs the following operations:
  • the first country code is set to be the country code of the WIFI.
  • processing unit further performs the following operations:
  • the access point name in the scan result of the WIFI scan operation is extracted, and the access point name is determined to determine the first language type corresponding to the access point name, and it is determined whether the first language type is in history.
  • the language category of the accessed access point name if the first language type is in the language type of the access point name of the history access, the country code in which the first country code is used by the WIFI is set.
  • processing unit further performs the following operations:
  • the country name corresponding to the corresponding language type is obtained, and the third country code corresponding to the country name is obtained, and the third country code is set as WIFI country code.
  • the disclosed systems, devices, and methods may be implemented in other manners.
  • the device embodiments described above are merely illustrative.
  • the division of the unit is only a logical function division.
  • multiple units or components may be combined or Can be integrated into another system, or some features can be ignored or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some communication interface, device or unit, and may be electrical, mechanical or otherwise.
  • the unit described as a separate component may or may not be physically separated, and the component displayed as a unit may or may not be a physical unit, that is, may be located in one place, or It can also be distributed to multiple network elements. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the functions may be stored in a computer readable storage medium if implemented in the form of a software functional unit and sold or used as a standalone product.
  • the technical solution of the present invention which is essential or contributes to the prior art, or a part of the technical solution, may be embodied in the form of a software product, which is stored in a storage medium, including
  • the instructions are used to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention.
  • the foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like. .

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Telephone Function (AREA)

Abstract

The present invention relates to the field of communications, and provided are a method for applying a wireless fidelity country code and an apparatus, the method comprising the following steps: a smart terminal acquiring current location information; the smart terminal extracting a first country code corresponding to the current location information according to the current location information; the smart terminal determining whether the first country code is the same as a saved second country code; and if the first country code is not the same as the second country code, the smart terminal replacing the second country code using the first country code and saving the first country code. The technical solution provided by the present invention has the advantage of not affecting the use of a user.

Description

无线保真国家码的应用方法、装置、智能终端及存储介质Application method, device, intelligent terminal and storage medium of wireless fidelity country code 技术领域Technical field
本发明涉及通信领域,尤其涉及一种无线保真国家码的应用方法、装置、智能终端及存储介质。The present invention relates to the field of communications, and in particular, to a method, an apparatus, an intelligent terminal, and a storage medium for applying a wireless fidelity country code.
背景技术Background technique
通信领域的终端,例如手机、平板电脑等设备是属于用户常用的设备,由于目前该设备均具有自身的操作系统,所以也将终端称为智能终端或智能手机,智能手机(英语:Smartphone)是对于那些运算能力及功能比传统功能手机更强的手机的集合性称谓。Terminals in the communication field, such as mobile phones and tablet computers, are devices commonly used by users. Since the devices all have their own operating systems, the terminals are also called smart terminals or smart phones, and smart phones (English: Smartphone) are For the collective title of mobile phones with more computing power and functions than traditional feature phones.
现有的智能手机的平台(ISO平台或者Android平台等),均配备Wifi芯片,同时支持连接路由器上网或者作为Wifi热点供他人连接,即现有的智能手机在不同的场景,即可以为站(STA),也可以为接入点(AP),目前Android技术中每次使用wifi的时候使用的都是一个固定信道,由于国家的差异,不同的国家能够使用的信道是不完全一致的,所以智能终端在不同的国家因为国家码的不同可能导致该智能终端无法作为AP使用,影响用户使用。The existing smart phone platform (ISO platform or Android platform, etc.) is equipped with a Wifi chip, and supports connecting to the Internet or as a Wifi hotspot for others to connect, that is, the existing smart phone can be a station in different scenarios ( STA) can also be an access point (AP). Currently, every time wifi is used in Android technology, a fixed channel is used. Due to differences in countries, channels that can be used by different countries are not completely consistent. The smart terminal may not be used as an AP in different countries due to different country codes, which affects the user's use.
发明内容Summary of the invention
本发明的目的之一是提供一种无线保真国家码的应用方法、装置、智能终端及存储介质,其主要解决现有的智能终端无法作为接入点使用,影响用户使用的缺点。An object of the present invention is to provide a method, an apparatus, an intelligent terminal, and a storage medium for a wireless fidelity country code, which mainly solve the shortcomings that the existing smart terminal cannot be used as an access point and affect the user's use.
第一方面,提供一种无线保真国家码的应用方法,所述方法包括如下步骤:智能终端获取当前的位置信息;智能终端依据该当前的位置信息提取该当前的位置信息对应的第一国家码;智能终端判断所述第一国家码与已保存的第二国家码是否相同;如所述第一国家码与所述第二国家码不相同,智能终端用所述第一国家码替换所述第二国家码,并将所述第一国家码保存。The first aspect provides a method for applying a wireless fidelity country code, where the method includes the following steps: the smart terminal acquires current location information; and the smart terminal extracts the first country corresponding to the current location information according to the current location information. The smart terminal determines whether the first country code is the same as the saved second country code; if the first country code is different from the second country code, the smart terminal replaces the first country code with the first country code The second country code is described and the first country code is saved.
可选的,所述位置信息包括:坐标信息、IP地址、基站小区信息或经纬 度信息中的一种或任意组合。Optionally, the location information includes: coordinate information, an IP address, a base station cell information, or a latitude and longitude One or any combination of degrees.
可选的,所述方法还包括:Optionally, the method further includes:
智能终端在打开热点时,依据所述第一国家码选择一个可用信道作为热点的信道。When the hot spot is turned on, the smart terminal selects an available channel as a hotspot channel according to the first country code.
可选的,所述方法还包括:Optionally, the method further includes:
智能终端在打开WIFI时,设置所述第一国家码为所述WIFI的国家码。When the smart terminal opens the WIFI, the first country code is set to be the country code of the WIFI.
可选的,所述方法还包括:Optionally, the method further includes:
智能终端在打开WIFI时,智能终端提取WIFI扫描操作的扫描结果中的接入点名称,分析所述接入点名称确定所述接入点名称对应的第一语言种类,判断所述第一语言种类是否在历史接入的接入点名称的语言种类中,如所述第一语言种类在历史接入的接入点名称的语言种类中,则设置所述第一国家码为WIFI使用的国家码,如所述第一语言种类不在历史接入的接入点名称的语言种类中,获取对应语言种类对应的国家名称,获取所述国家名称对应的第三国家码,设置所述第三国家码为WIFI的国家码。When the smart terminal is turned on, the smart terminal extracts the name of the access point in the scan result of the WIFI scan operation, analyzes the name of the access point, determines the first language type corresponding to the access point name, and determines the first language. Whether the category is in the language category of the access point name of the historical access, if the first language category is in the language category of the access point name of the historical access, setting the country in which the first country code is used by WIFI a code, if the first language type is not in the language category of the access point name accessed by the history, acquiring the country name corresponding to the corresponding language category, acquiring the third country code corresponding to the country name, and setting the third country The code is the country code of WIFI.
第二方面,提供一种无线保真国家码的应用装置,所述装置:获取单元,用于获取当前的位置信息;提取单元,用于依据该当前的位置信息提取该当前的位置信息对应的第一国家码;判断单元,用于判断所述第一国家码与已保存的第二国家码是否相同。保存单元,用于如所述第一国家码与所述第二国家码不相同,用所述第一国家码替换所述第二国家码,并将所述第一国家码保存。The second aspect provides an application device of a wireless fidelity country code, the device: an acquiring unit, configured to acquire current location information, and an extracting unit, configured to extract, according to the current location information, the current location information a first country code; a determining unit, configured to determine whether the first country code is the same as the saved second country code. a saving unit, configured to replace the second country code with the first country code and save the first country code if the first country code is different from the second country code.
可选的,所述位置信息包括:坐标信息、IP地址、基站小区信息或经纬度信息中的一种或任意组合。Optionally, the location information includes one or any combination of coordinate information, IP address, base station cell information, or latitude and longitude information.
可选的,所述装置还包括:选择单元,用于在打开热点时,依据所述第一国家码选择一个可用信道作为热点的信道。Optionally, the device further includes: a selecting unit, configured to select, according to the first country code, an available channel as a hotspot channel when the hotspot is turned on.
可选的,所述装置还包括:设置单元,用于在打开WIFI时,设置所述第一国家码为所述WIFI的国家码。Optionally, the device further includes: a setting unit, configured to set the first country code to be the country code of the WIFI when the WIFI is turned on.
可选的,所述装置还包括:处理单元,用于在打开WIFI时,提取WIFI扫描操作的扫描结果中的接入点名称,分析所述接入点名称确定所述接入点名称对应的第一语言种类,判断所述第一语言种类是否在历史接入的接入点名称的语言种类中,如所述第一语言种类在历史接入的接入点名称的语言种类中, 则设置所述第一国家码为WIFI使用的国家码,如所述第一语言种类不在历史接入的接入点名称的语言种类中,获取对应语言种类对应的国家名称,获取所述国家名称对应的第三国家码,设置所述第三国家码为WIFI的国家码。Optionally, the device further includes: a processing unit, configured to: when the WIFI is turned on, extract an access point name in a scan result of the WIFI scan operation, and analyze the access point name to determine the access point name. a first language type, determining whether the first language category is in a language category of an access point name accessed by the history, such as the language type of the access point name of the historical access point in the first language category, And setting the country code of the first country code to be used by the WIFI, if the first language type is not in the language type of the access point name of the historical access, acquiring the country name corresponding to the corresponding language type, and acquiring the country name. Corresponding third country code, setting the country code of the third country code to WIFI.
第三方面,提供一种智能终端,所述智能终端包括:处理器、存储器、收发器和总线;所述处理器、所述存储器、所述收发器通过所述总线连接;所述存储器,用于存储程序代码;所述处理单元,用于调用所述程序代码执行第一方面提供的无线保真国家码的应用方法。In a third aspect, an intelligent terminal is provided, the smart terminal includes: a processor, a memory, a transceiver, and a bus; the processor, the memory, and the transceiver are connected by using the bus; And storing the program code; the processing unit is configured to invoke the program code to execute the application method of the wireless fidelity country code provided by the first aspect.
第四方面公开了一种存储介质,所述存储介质用于存储程序代码;当所述程序代码被运行时,处理单元执行执行所述第一方面提供的无线保真国家码的应用方法。A fourth aspect discloses a storage medium for storing program code; when the program code is executed, the processing unit executes an application method of performing the wireless fidelity country code provided by the first aspect.
本领域普通技术人员将了解,虽然下面的详细说明将参考图示实施例、附图进行,但本发明并不仅限于这些实施例。而是,本发明的范围是广泛的,且意在仅通过后附的权利要求限定本发明的范围。Those skilled in the art will appreciate that although the following detailed description is made with reference to the illustrated embodiments and drawings, the invention is not limited to these embodiments. Rather, the scope of the invention is intended to be limited the scope of the invention
附图说明DRAWINGS
通过阅读参照以下附图所作的对非限制性实施例所作的详细描述,本发明的其它特征、目的和优点将会变得更明显:Other features, objects, and advantages of the present invention will become more apparent from the Detailed Description of Description
图1为根据本发明一个优选实施例提供的无线保真国家码的应用方法的流程图。1 is a flow chart of a method of applying a wireless fidelity country code according to a preferred embodiment of the present invention.
图2为根据本发明另一个优选实施例提供的无线保真国家码的应用方法的流程图。2 is a flow chart of a method of applying a wireless fidelity country code according to another preferred embodiment of the present invention.
图3为根据本发明又一个优选实施例提供的无线保真国家码的应用方法的流程图。3 is a flow chart of a method for applying a wireless fidelity country code according to still another preferred embodiment of the present invention.
图4为本发明提供的一种无线保真国家码的应用装置的结构图。FIG. 4 is a structural diagram of an apparatus for applying a wireless fidelity country code according to the present invention.
图5为本发明提供的智能终端的硬件结构示意图。FIG. 5 is a schematic structural diagram of hardware of an intelligent terminal provided by the present invention.
具体实施方式detailed description
在更加详细地讨论示例性实施例之前应当提到的是,一些示例性实施例被 描述成作为流程图描绘的处理或方法。虽然流程图将各项操作描述成顺序的处理,但是其中的许多操作可以被并行地、并发地或者同时实施。此外,各项操作的顺序可以被重新安排。当其操作完成时所述处理可以被终止,但是还可以具有未包括在附图中的附加步骤。所述处理可以对应于方法、函数、规程、子例程、子程序等等。It should be mentioned before discussing the exemplary embodiments in more detail that some exemplary embodiments are Described as a process or method depicted as a flowchart. Although the flowcharts describe various operations as a sequential process, many of the operations can be implemented in parallel, concurrently or concurrently. In addition, the order of operations can be rearranged. The process may be terminated when its operation is completed, but may also have additional steps not included in the figures. The processing may correspond to methods, functions, procedures, subroutines, subroutines, and the like.
在上下文中所称“计算机设备”,也称为“电脑”,是指可以通过运行预定程序或指令来执行数值计算和/或逻辑计算等预定处理过程的智能电子设备,其可以包括处理器与存储器,由处理器执行在存储器中预存的存续指令来执行预定处理过程,或是由ASIC、FPGA、DSP等硬件执行预定处理过程,或是由上述二者组合来实现。计算机设备包括但不限于服务器、个人电脑、笔记本电脑、平板电脑、智能手机等。By "computer device", also referred to as "computer" in the context, is meant an intelligent electronic device that can perform predetermined processing, such as numerical calculations and/or logical calculations, by running a predetermined program or instruction, which can include a processor and The memory is executed by the processor to execute a predetermined process pre-stored in the memory to execute a predetermined process, or is executed by hardware such as an ASIC, an FPGA, a DSP, or the like, or a combination of the two. Computer devices include, but are not limited to, servers, personal computers, notebook computers, tablets, smart phones, and the like.
后面所讨论的方法(其中一些通过流程图示出)可以通过硬件、软件、固件、中间件、微代码、硬件描述语言或者其任意组合来实施。当用软件、固件、中间件或微代码来实施时,用以实施必要任务的程序代码或代码段可以被存储在机器或计算机可读介质(比如存储介质)中。(一个或多个)处理器可以实施必要的任务。The methods discussed below, some of which are illustrated by flowcharts, can be implemented in hardware, software, firmware, middleware, microcode, hardware description languages, or any combination thereof. When implemented in software, firmware, middleware or microcode, the program code or code segments to carry out the necessary tasks can be stored in a machine or computer readable medium, such as a storage medium. The processor(s) can perform the necessary tasks.
这里所公开的具体结构和功能细节仅仅是代表性的,并且是用于描述本发明的示例性实施例的目的。但是本发明可以通过许多替换形式来具体实现,并且不应当被解释成仅仅受限于这里所阐述的实施例。The specific structural and functional details disclosed are merely representative and are for the purpose of describing exemplary embodiments of the invention. The present invention may, however, be embodied in many alternative forms and should not be construed as being limited only to the embodiments set forth herein.
应当理解的是,虽然在这里可能使用了术语“第一”、“第二”等等来描述各个单元,但是这些单元不应当受这些术语限制。使用这些术语仅仅是为了将一个单元与另一个单元进行区分。举例来说,在不背离示例性实施例的范围的情况下,第一单元可以被称为第二单元,并且类似地第二单元可以被称为第一单元。这里所使用的术语“和/或”包括其中一个或更多所列出的相关联项目的任意和所有组合。It should be understood that although the terms "first," "second," etc. may be used herein to describe the various elements, these elements should not be limited by these terms. These terms are used only to distinguish one unit from another. For example, a first unit could be termed a second unit, and similarly a second unit could be termed a first unit, without departing from the scope of the exemplary embodiments. The term "and/or" used herein includes any and all combinations of one or more of the associated listed items.
这里所使用的术语仅仅是为了描述具体实施例而不意图限制示例性实施例。除非上下文明确地另有所指,否则这里所使用的单数形式“一个”、“一项”还意图包括复数。还应当理解的是,这里所使用的术语“包括”和/或“包含”规定所陈述的特征、整数、步骤、操作、单元和/或组件的存在,而不排除存 在或添加一个或更多其他特征、整数、步骤、操作、单元、组件和/或其组合。The terminology used herein is for the purpose of describing the particular embodiments, The singular forms "a", "an", It is also to be understood that the terms "comprise" and / or "comprising" are used in the context of the meaning of the stated features, integers, steps, operations, units and/or components. Add one or more other features, integers, steps, operations, units, components, and/or combinations thereof.
还应当提到的是,在一些替换实现方式中,所提到的功能/动作可以按照不同于附图中标示的顺序发生。举例来说,取决于所涉及的功能/动作,相继示出的两幅图实际上可以基本上同时执行或者有时可以按照相反的顺序来执行。It should also be noted that, in some alternative implementations, the functions/acts noted may occur in a different order than that illustrated in the drawings. For example, two figures shown in succession may in fact be executed substantially concurrently or sometimes in the reverse order, depending on the function/acts involved.
下面结合附图对本发明作进一步详细描述。The invention is further described in detail below with reference to the accompanying drawings.
根据本发明的一个方面,提供了一种无线保真国家码的应用的方法,该方法由智能终端实现,该智能终端具体可以为:手机、平板电脑、智能手表、智能手环、个人数字助理等等智能设备,该方法如图1所示,包括如下步骤:According to an aspect of the present invention, a method for applying a wireless fidelity country code is provided, which is implemented by an intelligent terminal, which may be specifically: a mobile phone, a tablet computer, a smart watch, a smart bracelet, and a personal digital assistant. And so on the smart device, the method is shown in Figure 1, including the following steps:
步骤S101、智能终端获取当前的位置信息。Step S101: The smart terminal acquires current location information.
需要说明的是,上述步骤S101中的位置信息包括但不限于:坐标信息,该坐标信息包括但不限制:GPS坐标,该位置信息还可以包括:IP地址,当然上述位置信息还可以包括:基站小区信息,当然上述位置信息还可以为:经纬度信息。It should be noted that the location information in the foregoing step S101 includes but is not limited to: coordinate information, including but not limited to: GPS coordinates, and the location information may further include: an IP address, and the location information may further include: a base station. The cell information, of course, the location information may also be: latitude and longitude information.
例如,当位置信息为坐标信息时,智能终端可以通过定位模块(例如GPS模块或北斗模块)获取当前的位置坐标。又如,当位置信息为IP地址时,智能终端可以通过数据包获取该IP地址。在如,当前位置信息为基站小区信息时,智能终端可以根据连接基站获取基站的小区信息。另如,位置信息为经纬度信息时,智能终端可以根据定位模块的位置坐标获取经纬度信息。For example, when the location information is coordinate information, the smart terminal may acquire the current location coordinates through a positioning module (eg, a GPS module or a Beidou module). For another example, when the location information is an IP address, the smart terminal can acquire the IP address through the data packet. For example, when the current location information is the base station cell information, the intelligent terminal may acquire the cell information of the base station according to the connected base station. For example, when the location information is latitude and longitude information, the smart terminal may acquire the latitude and longitude information according to the location coordinates of the positioning module.
步骤S102、智能终端依据该当前的位置信息提取该当前的位置信息对应的第一国家码。Step S102: The intelligent terminal extracts the first country code corresponding to the current location information according to the current location information.
例如,当位置信息为坐标信息时,智能终端可以通过定位模块(例如GPS模块或北斗模块)获取当前的位置坐标,依据位置坐标确定国家名称,确定国家名称对应的第一国家码。又如,当位置信息为IP地址时,智能终端可以通过IP地址获取该IP地址内对应的国家信息,依据该国家信息从国家码列表中查询出该国家信息对应的国家码。在如,当前位置信息为基站小区信息时,智能终端可以根据基站小区信息确定国际码(MCC)。另如,位置信息为经纬度信息时,依据经纬度信息确定国家信息,依据国家信息查询出国家码。For example, when the location information is the coordinate information, the smart terminal may acquire the current location coordinates through the positioning module (for example, the GPS module or the Beidou module), determine the country name according to the location coordinates, and determine the first country code corresponding to the country name. For example, when the location information is an IP address, the smart terminal can obtain the corresponding country information in the IP address by using the IP address, and query the country code corresponding to the country information from the country code list according to the country information. For example, when the current location information is base station cell information, the smart terminal may determine an international code (MCC) according to the base station cell information. For example, when the location information is latitude and longitude information, the country information is determined according to the latitude and longitude information, and the country code is queried according to the country information.
步骤S103、智能终端判断第一国家码与已保存的第二国家码是否相同。 Step S103: The smart terminal determines whether the first country code is the same as the saved second country code.
步骤S104、如第一国家码与第二国家码不相同,智能终端用第一国家码替换该第二国家码,并将该第一国家码保存。Step S104: If the first country code is different from the second country code, the smart terminal replaces the second country code with the first country code, and saves the first country code.
上述第二国家码可以为智能终端保存的的历史国家码,例如,用户携带智能终端从中国到日本,智能终端在未修改国家码之前的历史国家码即第二国家码为中国对应的国家码,修改后的国家码即第一国家码为日本国家码。The second country code may be a historical country code saved by the smart terminal. For example, the user carries the smart terminal from China to Japan, and the historical country code of the smart terminal before the country code is not modified, that is, the second country code is the country code corresponding to China. The modified country code, that is, the first country code is the Japanese country code.
依据本发明一个方面提供的技术方案,获取当前的位置信息,依据该当前的位置信息提取第一国家码,然后将第一国家码与已保存的第二国家码比对,如果有改变即第一国家码与第二国家码不一致时,将第二国家码更换成第一国家码,这样就避免了保存了第二国家码与当前位置对应的第一国家码不一致进而影响WIFI连接或WIFI热点的使用问题,所以本发明的技术方案不会影响用户使用。According to the technical solution provided by an aspect of the present invention, the current location information is obtained, the first country code is extracted according to the current location information, and then the first country code is compared with the saved second country code, and if there is a change, When the country code is inconsistent with the second country code, the second country code is replaced with the first country code, thereby avoiding the inconsistency of the first country code corresponding to the current location and affecting the WIFI connection or the WIFI hotspot. The problem of use, so the technical solution of the present invention does not affect the user's use.
根据本发明的另一个方面,提供了一种无线保真国家码的应用的方法,该方法由智能终端实现,该智能终端具体可以为:手机、平板电脑、智能手表、智能手环、个人数字助理等等智能设备,该方法如图2所示,包括如下步骤:According to another aspect of the present invention, a method for applying an application of a wireless fidelity country code is provided, which is implemented by an intelligent terminal, which may be specifically: a mobile phone, a tablet computer, a smart watch, a smart bracelet, and a personal number. Assistant and other smart devices, the method shown in Figure 2, including the following steps:
步骤S201、智能终端获取当前的位置信息。Step S201: The smart terminal acquires current location information.
需要说明的是,上述步骤S201中的位置信息包括但不限于:坐标信息,该坐标信息包括但不限制:GPS坐标,该位置信息还可以包括:IP地址,当然上述位置信息还可以包括:基站小区信息,当然上述位置信息还可以为:经纬度信息。It should be noted that the location information in the foregoing step S201 includes but is not limited to: coordinate information, including but not limited to: GPS coordinates, the location information may further include: an IP address, and the location information may further include: a base station. The cell information, of course, the location information may also be: latitude and longitude information.
例如,当位置信息为坐标信息时,智能终端可以通过定位模块(例如GPS模块或北斗模块)获取当前的位置坐标。又如,当位置信息为IP地址时,智能终端可以通过数据包获取该IP地址。在如,当前位置信息为基站小区信息时,智能终端可以根据连接基站获取基站的小区信息。另如,位置信息为经纬度信息时,智能终端可以根据定位模块的位置坐标获取经纬度信息。For example, when the location information is coordinate information, the smart terminal may acquire the current location coordinates through a positioning module (eg, a GPS module or a Beidou module). For another example, when the location information is an IP address, the smart terminal can acquire the IP address through the data packet. For example, when the current location information is the base station cell information, the intelligent terminal may acquire the cell information of the base station according to the connected base station. For example, when the location information is latitude and longitude information, the smart terminal may acquire the latitude and longitude information according to the location coordinates of the positioning module.
步骤S202、智能终端依据该当前的位置信息提取该当前的位置信息对应的第一国家码。Step S202: The intelligent terminal extracts the first country code corresponding to the current location information according to the current location information.
例如,当位置信息为坐标信息时,智能终端可以通过定位模块(例如GPS模块或北斗模块)获取当前的位置坐标,依据位置坐标确定国家名称,确定国家名称对应的第一国家码。又如,当位置信息为IP地址时,智能终端可以通 过IP地址获取该IP地址内对应的国家信息,依据该国家信息从国家码列表中查询出该国家信息对应的国家码。在如,当前位置信息为基站小区信息时,智能终端可以根据基站小区信息确定国际码(MCC)。另如,位置信息为经纬度信息时,依据经纬度信息确定国家信息,依据国家信息查询出国家码。For example, when the location information is the coordinate information, the smart terminal may acquire the current location coordinates through the positioning module (for example, the GPS module or the Beidou module), determine the country name according to the location coordinates, and determine the first country code corresponding to the country name. For another example, when the location information is an IP address, the smart terminal can pass The corresponding country information in the IP address is obtained through the IP address, and the country code corresponding to the country information is queried from the country code list according to the country information. For example, when the current location information is base station cell information, the smart terminal may determine an international code (MCC) according to the base station cell information. For example, when the location information is latitude and longitude information, the country information is determined according to the latitude and longitude information, and the country code is queried according to the country information.
步骤S203、智能终端判断第一国家码与已保存的第二国家码是否相同。Step S203: The smart terminal determines whether the first country code is the same as the saved second country code.
步骤S204、如第一国家码与第二国家码不相同,智能终端用第一国家码替换该第二国家码,并将该第一国家码保存。Step S204: If the first country code is different from the second country code, the smart terminal replaces the second country code with the first country code, and saves the first country code.
步骤S205、智能终端在打开热点时,依据所述第一国家码选择一个可用信道作为热点的信道。Step S205: When the hot spot is turned on, the smart terminal selects an available channel as a hotspot channel according to the first country code.
上述步骤S205的实现方法具体可以为:The implementation method of the foregoing step S205 may specifically be:
例如,在本发明一个具体实施方案中,可以通过在智能终端设置触控显示屏,然后在触控显示屏上显示设置界面,在设置界面中显示WIFI打开或关闭的开关供用户选择,如用户选择了热点打开,则智能终端确定打开热点。For example, in a specific embodiment of the present invention, a touch display screen can be set in a smart terminal, and then a setting interface is displayed on the touch display screen, and a switch for turning on or off the WIFI is displayed in the setting interface for the user to select, such as a user. When the hotspot is selected, the smart terminal determines to open the hotspot.
又如,在本发明另一具体实施方案中,可以通过向智能终端发送一个控制命令来实现打开热点,当智能终端接收到该控制命令后,确定检测到用户打开热点。上述控制命令可以通过无线的方式发送,包括但不限于:3G、4G网络或通过蓝牙等方式,发送命令端可以为与智能终端连接的其他终端,例如,智能手表,智能手环等,当然也可以为其他设备向智能终端发送该控制命令,本发明具体实施方式并不限于上述控制命令的具体发送方式。For another example, in another embodiment of the present invention, the hotspot may be opened by sending a control command to the smart terminal. When the smart terminal receives the control command, it is determined that the user turns on the hotspot. The foregoing control commands may be sent by using a wireless method, including but not limited to: 3G, 4G network, or through Bluetooth, etc., and the sending command terminal may be another terminal connected to the smart terminal, for example, a smart watch, a smart bracelet, etc., of course The control command can be sent to the smart terminal for other devices. The specific implementation manner of the present invention is not limited to the specific sending manner of the foregoing control command.
此技术方案可以增加热点的可用性。This technical solution can increase the availability of hotspots.
依据本发明另一个方面提供的技术方案,获取当前的位置信息,依据该当前的位置信息提取第一国家码,然后将第一国家码与已保存的第二国家码比对,如果有改变即第一国家码与第二国家码不一致时,将第二国家码更换成第一国家码,这样就避免了保存了第二国家码与当前位置对应的第一国家码不一致进而影响WIFI连接或WIFI热点的使用问题,所以本发明的技术方案不会影响用户使用。According to the technical solution provided by another aspect of the present invention, the current location information is obtained, the first country code is extracted according to the current location information, and then the first country code is compared with the saved second country code, and if there is a change, When the first country code is inconsistent with the second country code, the second country code is replaced with the first country code, thereby avoiding the inconsistency of the first country code corresponding to the current location and affecting the WIFI connection or WIFI. The use of hotspots, so the technical solution of the present invention does not affect the user's use.
根据本发明的又一个方面,提供了一种无线保真国家码的应用的方法,该方法由智能终端实现,该智能终端具体可以为:手机、平板电脑、智能手表、智能手环、个人数字助理等等智能设备,该方法如图3所示,包括如下步骤: According to still another aspect of the present invention, a method for applying a wireless fidelity country code is provided, which is implemented by an intelligent terminal, which may be specifically: a mobile phone, a tablet computer, a smart watch, a smart bracelet, and a personal number. Assistant and other smart devices, the method shown in Figure 3, including the following steps:
步骤S301、智能终端获取当前的位置信息。Step S301: The smart terminal acquires current location information.
需要说明的是,上述步骤S301中的位置信息包括但不限于:坐标信息,该坐标信息包括但不限制:GPS坐标,该位置信息还可以包括:IP地址,当然上述位置信息还可以包括:基站小区信息,当然上述位置信息还可以为:经纬度信息。It should be noted that the location information in the foregoing step S301 includes but is not limited to: coordinate information, including but not limited to: GPS coordinates, the location information may further include: an IP address, and the location information may further include: a base station. The cell information, of course, the location information may also be: latitude and longitude information.
例如,当位置信息为坐标信息时,智能终端可以通过定位模块(例如GPS模块或北斗模块)获取当前的位置坐标。又如,当位置信息为IP地址时,智能终端可以通过数据包获取该IP地址。在如,当前位置信息为基站小区信息时,智能终端可以根据连接基站获取基站的小区信息。另如,位置信息为经纬度信息时,智能终端可以根据定位模块的位置坐标获取经纬度信息。For example, when the location information is coordinate information, the smart terminal may acquire the current location coordinates through a positioning module (eg, a GPS module or a Beidou module). For another example, when the location information is an IP address, the smart terminal can acquire the IP address through the data packet. For example, when the current location information is the base station cell information, the intelligent terminal may acquire the cell information of the base station according to the connected base station. For example, when the location information is latitude and longitude information, the smart terminal may acquire the latitude and longitude information according to the location coordinates of the positioning module.
步骤S302、智能终端依据该当前的位置信息提取该当前的位置信息对应的第一国家码。Step S302: The intelligent terminal extracts the first country code corresponding to the current location information according to the current location information.
例如,当位置信息为坐标信息时,智能终端可以通过定位模块(例如GPS模块或北斗模块)获取当前的位置坐标,依据位置坐标确定国家名称,确定国家名称对应的第一国家码。又如,当位置信息为IP地址时,智能终端可以通过IP地址获取该IP地址内对应的国家信息,依据该国家信息从国家码列表中查询出该国家信息对应的国家码。在如,当前位置信息为基站小区信息时,智能终端可以根据基站小区信息确定国际码(MCC)。另如,位置信息为经纬度信息时,依据经纬度信息确定国家信息,依据国家信息查询出国家码。For example, when the location information is the coordinate information, the smart terminal may acquire the current location coordinates through the positioning module (for example, the GPS module or the Beidou module), determine the country name according to the location coordinates, and determine the first country code corresponding to the country name. For example, when the location information is an IP address, the smart terminal can obtain the corresponding country information in the IP address by using the IP address, and query the country code corresponding to the country information from the country code list according to the country information. For example, when the current location information is base station cell information, the smart terminal may determine an international code (MCC) according to the base station cell information. For example, when the location information is latitude and longitude information, the country information is determined according to the latitude and longitude information, and the country code is queried according to the country information.
步骤S303、智能终端判断第一国家码与已保存的第二国家码是否相同。Step S303: The smart terminal determines whether the first country code is the same as the saved second country code.
步骤S304、如第一国家码与第二国家码不相同,智能终端用第一国家码替换该第二国家码,并将该第一国家码保存。Step S304: If the first country code is different from the second country code, the smart terminal replaces the second country code with the first country code, and saves the first country code.
步骤S305、智能终端在打开WIFI时,智能终端提取WIFI扫描操作的扫描结果中的接入点名称,分析该接入点名称确定该接入点名称对应的第一语言种类,判断该第一语言种类是否在历史接入的接入点名称的语言种类中,如该第一语言种类在历史接入的接入点名称的语言种类中,则设置第一国家码为WIFI使用的国家码,如该第一语言种类不在历史接入的接入点名称的语言种类中,获取对应语言种类对应的国家名称,获取国家名称对应的第三国家码,设置第三国家码为WIFI的国家码。 Step S305: When the smart terminal opens the WIFI, the intelligent terminal extracts the name of the access point in the scan result of the WIFI scan operation, analyzes the name of the access point, determines the first language type corresponding to the access point name, and determines the first language. Whether the type is in the language type of the access point name of the historical access, for example, if the first language type is in the language type of the access point name of the historical access, the country code whose first country code is used for WIFI is set, such as The first language type is not in the language category of the access point name accessed by the history, the country name corresponding to the corresponding language type is obtained, the third country code corresponding to the country name is obtained, and the country code whose third country code is WIFI is set.
举例说明,对于AP接入点的名称来说,一般都为母语或英文,例如,在中国,大部分的AP的名称均为中文或中文加英文,在日本,大部分的AP的名称为日语,同理,在一些国家,例如德国或法国,大家更习惯使用母语作为接入点的名称,那么在国家更换时,例如用户在新到一个国家时,对于其进场接入的AP即历史接入AP肯定有其母语和英文,新到一个国家例如日本时,出现扫描结果对应的AP名称出现日语时,其能够判断该与用户到了日本,从而将国家码更换成日本对应的国家码。For example, the name of an AP access point is generally native or English. For example, in China, most APs are in Chinese or Chinese plus English. In Japan, most APs are in Japanese. In the same way, in some countries, such as Germany or France, everyone is more accustomed to using the mother tongue as the name of the access point. Then, when the country is replaced, for example, when the user is new to a country, the AP that accesses the site is the history. The access AP must have its native language and English. When a new country arrives in a country such as Japan, when the name of the AP corresponding to the scan result appears in Japanese, it can judge that the user has arrived in Japan, thereby replacing the country code with the country code corresponding to Japan.
依据本发明又一个方面提供的技术方案,获取当前的位置信息,依据该当前的位置信息提取第一国家码,然后将第一国家码与已保存的第二国家码比对,如果有改变即第一国家码与第二国家码不一致时,将第二国家码更换成第一国家码,这样就避免了保存了第二国家码与当前位置对应的第一国家码不一致进而影响WIFI连接或WIFI热点的使用问题,所以本发明的技术方案不会影响用户使用。According to the technical solution provided by still another aspect of the present invention, the current location information is obtained, the first country code is extracted according to the current location information, and then the first country code is compared with the saved second country code, and if there is a change, When the first country code is inconsistent with the second country code, the second country code is replaced with the first country code, thereby avoiding the inconsistency of the first country code corresponding to the current location and affecting the WIFI connection or WIFI. The use of hotspots, so the technical solution of the present invention does not affect the user's use.
可选的,上述方法在步骤S305之后还可以包括:Optionally, after the step S305, the foregoing method may further include:
依据公式1计算接入参数,选择接入参数最大的AP作为WIFI接入的AP。The access parameter is calculated according to the formula 1, and the AP with the largest access parameter is selected as the AP accessed by the WIFI.
Figure PCTCN2017107532-appb-000001
Figure PCTCN2017107532-appb-000001
其中,Xn为第n个AP的接入参数的值,Sn为第n个AP的信号强度值,
Figure PCTCN2017107532-appb-000002
为所有AP的信号强度值平均值,Yn为第n个AP的接入终端的数量值,
Figure PCTCN2017107532-appb-000003
所有AP接入终端的数量平均值。
Where Xn is the value of the access parameter of the nth AP, and Sn is the signal strength value of the nth AP.
Figure PCTCN2017107532-appb-000002
For the average value of the signal strength values of all APs, Yn is the number of access terminals of the nth AP,
Figure PCTCN2017107532-appb-000003
The average number of all AP access terminals.
此方式能够定量的计算出需要接入的AP,参考了接入终端的数量以及信号的强度,避免了终端接入到AP后需要切换的问题。 This method can quantitatively calculate the AP that needs to be accessed, and refers to the number of access terminals and the strength of the signal, which avoids the problem that the terminal needs to switch after accessing the AP.
参阅图4,图4为本发明提供的一种无线保真国家码的应用装置400,所述装置:Referring to FIG. 4, FIG. 4 is an application device 400 for a wireless fidelity country code according to the present invention.
获取单元401,用于获取当前的位置信息;The obtaining unit 401 is configured to acquire current location information.
提取单元402,用于依据该当前的位置信息提取该当前的位置信息对应的第一国家码;The extracting unit 402 is configured to extract, according to the current location information, a first country code corresponding to the current location information;
判断单元403,用于判断所述第一国家码与已保存的第二国家码是否相同。The determining unit 403 is configured to determine whether the first country code is the same as the saved second country code.
保存单元404,用于如所述第一国家码与所述第二国家码不相同,用所述第一国家码替换所述第二国家码,并将所述第一国家码保存。The saving unit 404 is configured to replace the second country code with the first country code and save the first country code if the first country code is different from the second country code.
可选的,所述位置信息包括:坐标信息、IP地址、基站小区信息或经纬度信息中的一种或任意组合。Optionally, the location information includes one or any combination of coordinate information, IP address, base station cell information, or latitude and longitude information.
可选的,所述装置还包括:选择单元405,用于在打开热点时,依据所述第一国家码选择一个可用信道作为热点的信道。Optionally, the device further includes: a selecting unit 405, configured to select, according to the first country code, an available channel as a hotspot channel when the hotspot is turned on.
可选的,所述装置还包括:设置单元406,用于在打开WIFI时,设置所述第一国家码为所述WIFI的国家码。Optionally, the device further includes: a setting unit 406, configured to set the first country code to be the country code of the WIFI when the WIFI is turned on.
可选的,所述装置还包括:处理单元407,用于在打开WIFI时,提取WIFI扫描操作的扫描结果中的接入点名称,分析所述接入点名称确定所述接入点名称对应的第一语言种类,判断所述第一语言种类是否在历史接入的接入点名称的语言种类中,如所述第一语言种类在历史接入的接入点名称的语言种类中, 则设置所述第一国家码为WIFI使用的国家码,如所述第一语言种类不在历史接入的接入点名称的语言种类中,获取对应语言种类对应的国家名称,获取所述国家名称对应的第三国家码,设置所述第三国家码为WIFI的国家码。Optionally, the device further includes: a processing unit 407, configured to: when the WIFI is turned on, extract an access point name in a scan result of the WIFI scan operation, and analyze the access point name to determine that the access point name corresponds to a first language type, determining whether the first language category is in a language category of an access point name accessed by the history, such as the language type of the access point name of the historical access in the first language category, And setting the country code of the first country code to be used by the WIFI, if the first language type is not in the language type of the access point name of the historical access, acquiring the country name corresponding to the corresponding language type, and acquiring the country name. Corresponding third country code, setting the country code of the third country code to WIFI.
本发明实施例的细节,而且在不背离本发明的精神或基本特征的情况下,能够以其他的具体形式实现本发明。因此,无论从哪一点来看,均应将实施例看作是示范性的,而且是非限制性的,本发明的范围由所附权利要求而不是上述说明限定,因此旨在将落在权利要求的等同要件的含义和范围内的所有变化涵括在本发明内。不应将权利要求中的任何附图标记视为限制所涉及的权利要求。此外,显然“包括”一词不排除其他单元或步骤,单数不排除复数。系统权利要求中陈述的多个单元或装置也可以由一个单元或装置通过软件或者硬件来实现。第一,第二等词语用来表示名称,而并不表示任何特定的顺序。The invention may be embodied in other specific forms without departing from the spirit or essential characteristics of the invention. Therefore, the present embodiments are to be considered as illustrative and not restrictive, and the scope of the invention is defined by the appended claims instead All changes in the meaning and scope of equivalent elements are included in the present invention. Any reference signs in the claims should not be construed as limiting the claim. In addition, it is to be understood that the word "comprising" does not exclude other elements or steps. A plurality of units or devices recited in the system claims can also be implemented by a unit or device by software or hardware. The first, second, etc. words are used to denote names and do not denote any particular order.
附图中的流程图和框图显示了根据本发明的多个实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段或代码的一部分,所述模块、程序段或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个连续的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或动作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。The flowchart and block diagrams in the Figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of the invention. In this regard, each block of the flowchart or block diagram can represent a module, a program segment, or a portion of code that includes one or more of the Executable instructions. It should also be noted that in some alternative implementations, the functions noted in the blocks may also occur in a different order than that illustrated in the drawings. For example, two consecutive blocks may be executed substantially in parallel, and they may sometimes be executed in the reverse order, depending upon the functionality involved. It is also noted that each block of the block diagrams and/or flowcharts, and combinations of blocks in the block diagrams and/or flowcharts, can be implemented in a dedicated hardware-based system that performs the specified function or function. Or it can be implemented by a combination of dedicated hardware and computer instructions.
参见图5,本发明实施例还提供一种智能终端500,该智能终端500包括 但不限于:智能手机、智能手表、平板电脑、个人计算机、笔记本电脑或计算机群组,如图5所示,该智能终端500包括:处理器501、存储器502、收发器503和总线504。收发器503用于与外部设备之间收发数据。终端300中的处理器501的数量可以是一个或多个。本申请的一些实施例中,处理器501、存储器502和收发器503可通过总线系统或其他方式连接。智能终端500可以用于执行图1、图2所示的方法。关于本实施例涉及的术语的含义以及举例,可以参考图1、图2对应的说明。此处不再赘述。Referring to FIG. 5, an embodiment of the present invention further provides an intelligent terminal 500, where the smart terminal 500 includes However, it is not limited to: a smart phone, a smart watch, a tablet computer, a personal computer, a notebook computer, or a computer group. As shown in FIG. 5, the smart terminal 500 includes a processor 501, a memory 502, a transceiver 503, and a bus 504. The transceiver 503 is configured to transmit and receive data with and from an external device. The number of processors 501 in the terminal 300 may be one or more. In some embodiments of the present application, processor 501, memory 502, and transceiver 503 may be connected by a bus system or other means. The smart terminal 500 can be used to perform the methods shown in FIGS. 1 and 2. For the meanings and examples of the terms involved in the embodiment, reference may be made to the corresponding descriptions of FIGS. 1 and 2. I will not repeat them here.
其中,存储器502中存储程序代码。处理器501用于调用存储器502中存储的程序代码,用于执行如图1、图2、图3所示的步骤。The program code is stored in the memory 502. The processor 501 is configured to call program code stored in the memory 502 for performing the steps shown in FIG. 1, FIG. 2, and FIG.
需要说明的是,这里的处理器501可以是一个处理元件,也可以是多个处理元件的统称。例如,该处理元件可以是中央处理器(Central Processing Unit,CPU),也可以是特定集成电路(Application Specific Integrated Circuit,ASIC),或者是被配置成实施本申请实施例的一个或多个集成电路,例如:一个或多个微处理器(digital signal processor,DSP),或,一个或者多个现场可编程门阵列(Field Programmable Gate Array,FPGA)。It should be noted that the processor 501 herein may be a processing component or a general term of multiple processing components. For example, the processing component may be a central processing unit (CPU), an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present application. For example, one or more digital signal processors (DSPs), or one or more Field Programmable Gate Arrays (FPGAs).
存储器502可以是一个存储装置,也可以是多个存储元件的统称,且用于存储可执行程序代码或应用程序运行装置运行所需要参数、数据等。且存储器503可以包括随机存储器(RAM),也可以包括非易失性存储器(non-volatile memory),例如磁盘存储器,闪存(Flash)等。The memory 502 may be a storage device or a collective name of a plurality of storage elements, and is used to store executable program code or parameters, data, and the like required for the application running device to operate. And the memory 503 may include random access memory (RAM), and may also include non-volatile memory such as a magnetic disk memory, a flash memory, or the like.
总线504可以是工业标准体系结构(Industry Standard Architecture,ISA)总线、外部设备互连(Peripheral Component,PCI)总线或扩展工业标准体系结构(Extended Industry Standard Architecture,EISA)总线等。 该总线可以分为地址总线、数据总线、控制总线等。为便于表示,图5中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。The bus 504 may be an Industry Standard Architecture (ISA) bus, a Peripheral Component (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus. The bus can be divided into an address bus, a data bus, a control bus, and the like. For ease of representation, only one thick line is shown in Figure 5, but it does not mean that there is only one bus or one type of bus.
该终端还可以包括输入输出装置,连接于总线504,以通过总线与处理器501等其它部分连接。该输入输出装置可以为操作人员提供一输入界面,以便操作人员通过该输入界面选择布控项,还可以是其它接口,可通过该接口外接其它设备。The terminal may also include input and output means coupled to bus 504 for connection to other portions, such as processor 501, via a bus. The input/output device can provide an input interface for the operator, so that the operator can select the control item through the input interface, and can also be other interfaces through which other devices can be externally connected.
在本发明的另一个实施例中,还公开了一种存储介质,所述存储介质用于存储程序代码;当所述程序代码被运行时,处理单元执行执行以下操作:。In another embodiment of the present invention, a storage medium is also disclosed, the storage medium for storing program code; when the program code is executed, the processing unit performs the following operations:
获取当前的位置信息;Get current location information;
依据该当前的位置信息提取该当前的位置信息对应的第一国家码;Extracting, according to the current location information, a first country code corresponding to the current location information;
判断所述第一国家码与已保存的第二国家码是否相同;Determining whether the first country code is the same as the saved second country code;
如所述第一国家码与所述第二国家码不相同,用所述第一国家码替换所述第二国家码,并将所述第一国家码保存。If the first country code is different from the second country code, the second country code is replaced with the first country code, and the first country code is saved.
可选的,所述位置信息包括:坐标信息、IP地址、基站小区信息或经纬度信息中的一种或任意组合。Optionally, the location information includes one or any combination of coordinate information, IP address, base station cell information, or latitude and longitude information.
可选的,所述处理单元还用于执行以下操作:Optionally, the processing unit is further configured to:
在打开热点时,依据所述第一国家码选择一个可用信道作为热点的信道。When the hotspot is turned on, an available channel is selected as a hotspot channel according to the first country code.
可选的,所述处理单元还执行以下操作:Optionally, the processing unit further performs the following operations:
在打开WIFI时,设置所述第一国家码为所述WIFI的国家码。When the WIFI is turned on, the first country code is set to be the country code of the WIFI.
可选的,所述处理单元还执行以下操作: Optionally, the processing unit further performs the following operations:
在打开WIFI时,提取WIFI扫描操作的扫描结果中的接入点名称,分析所述接入点名称确定所述接入点名称对应的第一语言种类,判断所述第一语言种类是否在历史接入的接入点名称的语言种类中,如所述第一语言种类在历史接入的接入点名称的语言种类中,则设置所述第一国家码为WIFI使用的国家码。When the WIFI is turned on, the access point name in the scan result of the WIFI scan operation is extracted, and the access point name is determined to determine the first language type corresponding to the access point name, and it is determined whether the first language type is in history. In the language category of the accessed access point name, if the first language type is in the language type of the access point name of the history access, the country code in which the first country code is used by the WIFI is set.
可选的,所述处理单元还执行以下操作:Optionally, the processing unit further performs the following operations:
如所述第一语言种类不在历史接入的接入点名称的语言种类中,获取对应语言种类对应的国家名称,获取所述国家名称对应的第三国家码,设置所述第三国家码为WIFI的国家码。If the first language type is not in the language category of the access point name accessed by the history, the country name corresponding to the corresponding language type is obtained, and the third country code corresponding to the country name is obtained, and the third country code is set as WIFI country code.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。A person skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working process of the system, the device and the unit described above can refer to the corresponding process in the foregoing method embodiment, and details are not described herein again.
在本申请所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,又例如,多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些通信接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided by the present application, it should be understood that the disclosed systems, devices, and methods may be implemented in other manners. The device embodiments described above are merely illustrative. For example, the division of the unit is only a logical function division. In actual implementation, there may be another division manner. For example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some communication interface, device or unit, and may be electrical, mechanical or otherwise.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者 也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The unit described as a separate component may or may not be physically separated, and the component displayed as a unit may or may not be a physical unit, that is, may be located in one place, or It can also be distributed to multiple network elements. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。The functions may be stored in a computer readable storage medium if implemented in the form of a software functional unit and sold or used as a standalone product. Based on such understanding, the technical solution of the present invention, which is essential or contributes to the prior art, or a part of the technical solution, may be embodied in the form of a software product, which is stored in a storage medium, including The instructions are used to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention. The foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like. .
最后应说明的是:以上各实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述各实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的范围,其均应涵盖在本发明的权利要求和说明书的范围当中。 Finally, it should be noted that the above embodiments are merely illustrative of the technical solutions of the present invention, and are not intended to be limiting; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art will understand that The technical solutions described in the foregoing embodiments may be modified, or some or all of the technical features may be equivalently replaced; and the modifications or substitutions do not deviate from the technical solutions of the embodiments of the present invention. The scope is intended to be included within the scope of the claims and the description of the invention.

Claims (20)

  1. 一种无线保真国家码的应用方法,其特征在于,所述方法包括如下步骤:A method for applying a wireless fidelity country code, characterized in that the method comprises the following steps:
    智能终端获取当前的位置信息;The smart terminal acquires current location information;
    智能终端依据该当前的位置信息提取该当前的位置信息对应的第一国家码;The smart terminal extracts the first country code corresponding to the current location information according to the current location information;
    智能终端判断所述第一国家码与已保存的第二国家码是否相同;The smart terminal determines whether the first country code is the same as the saved second country code;
    如所述第一国家码与所述第二国家码不相同,智能终端用所述第一国家码替换所述第二国家码,并将所述第一国家码保存。If the first country code is different from the second country code, the smart terminal replaces the second country code with the first country code, and saves the first country code.
  2. 根据权利要求1所述的方法,其特征在于,The method of claim 1 wherein
    所述位置信息包括:坐标信息、IP地址、基站小区信息或经纬度信息中的一种或任意组合。The location information includes one or any combination of coordinate information, IP address, base station cell information, or latitude and longitude information.
  3. 根据权利要求1或2所述的方法,其特征在于,所述方法还包括:The method according to claim 1 or 2, wherein the method further comprises:
    智能终端在打开热点时,依据所述第一国家码选择一个可用信道作为热点的信道。When the hot spot is turned on, the smart terminal selects an available channel as a hotspot channel according to the first country code.
  4. 根据权利要求1或2所述的方法,其特征在于,所述方法还包括:The method according to claim 1 or 2, wherein the method further comprises:
    智能终端在打开WIFI时,设置所述第一国家码为所述WIFI的国家码。When the smart terminal opens the WIFI, the first country code is set to be the country code of the WIFI.
  5. 根据权利要求1或2所述的方法,其特征在于,所述方法还包括:The method according to claim 1 or 2, wherein the method further comprises:
    智能终端在打开WIFI时,智能终端提取WIFI扫描操作的扫描结果中的接入点名称,分析所述接入点名称确定所述接入点名称对应的第一语言种类,判 断所述第一语言种类是否在历史接入的接入点名称的语言种类中,如所述第一语言种类在历史接入的接入点名称的语言种类中,则设置所述第一国家码为WIFI使用的国家码。When the smart terminal is turned on, the smart terminal extracts the name of the access point in the scan result of the WIFI scan operation, analyzes the name of the access point, determines the first language type corresponding to the name of the access point, and determines Determining whether the first language category is in a language category of an access point name accessed by history, if the first language category is in a language category of a history access access point name, setting the first country The code is the country code used by WIFI.
  6. 根据权利要求5所述的方法,其特征在于,所述方法还包括:The method of claim 5, wherein the method further comprises:
    如所述第一语言种类不在历史接入的接入点名称的语言种类中,获取对应语言种类对应的国家名称,获取所述国家名称对应的第三国家码,设置所述第三国家码为WIFI的国家码。If the first language type is not in the language category of the access point name accessed by the history, the country name corresponding to the corresponding language type is obtained, and the third country code corresponding to the country name is obtained, and the third country code is set as WIFI country code.
  7. 一种无线保真国家码的应用装置,其特征在于,所述装置:An application device for a wireless fidelity country code, characterized in that the device:
    获取单元,用于获取当前的位置信息;An obtaining unit, configured to acquire current location information;
    提取单元,用于依据该当前的位置信息提取该当前的位置信息对应的第一国家码;An extracting unit, configured to extract, according to the current location information, a first country code corresponding to the current location information;
    判断单元,用于判断所述第一国家码与已保存的第二国家码是否相同;a determining unit, configured to determine whether the first country code is the same as the saved second country code;
    保存单元,用于如所述第一国家码与所述第二国家码不相同,用所述第一国家码替换所述第二国家码,并将所述第一国家码保存。a saving unit, configured to replace the second country code with the first country code and save the first country code if the first country code is different from the second country code.
  8. 根据权利要求7所述的装置,其特征在于,The device of claim 7 wherein:
    所述位置信息包括:坐标信息、IP地址、基站小区信息或经纬度信息中的一种或任意组合。The location information includes one or any combination of coordinate information, IP address, base station cell information, or latitude and longitude information.
  9. 根据权利要求7或8所述的装置,其特征在于,所述装置还包括: The device according to claim 7 or 8, wherein the device further comprises:
    选择单元,用于在打开热点时,依据所述第一国家码选择一个可用信道作为热点的信道。And a selecting unit, configured to select an available channel as a hotspot channel according to the first country code when the hotspot is turned on.
  10. 根据权利要求7或8所述的装置,其特征在于,所述装置还包括:The device according to claim 7 or 8, wherein the device further comprises:
    设置单元,用于在打开WIFI时,设置所述第一国家码为所述WIFI的国家码。And a setting unit, configured to set the first country code to be the country code of the WIFI when the WIFI is turned on.
  11. 根据权利要求7或8所述的装置,其特征在于,所述装置还包括:The device according to claim 7 or 8, wherein the device further comprises:
    处理单元,用于在打开WIFI时,提取WIFI扫描操作的扫描结果中的接入点名称,分析所述接入点名称确定所述接入点名称对应的第一语言种类,判断所述第一语言种类是否在历史接入的接入点名称的语言种类中,如所述第一语言种类在历史接入的接入点名称的语言种类中,则设置所述第一国家码为WIFI使用的国家码。a processing unit, configured to: when the WIFI is turned on, extract an access point name in a scan result of the WIFI scan operation, analyze the access point name, determine a first language type corresponding to the access point name, and determine the first Whether the language type is in the language category of the access point name accessed by the history, and if the first language type is in the language category of the access point name of the historical access, setting the first country code to be used by the WIFI Country code.
  12. 根据权利要求11所述的装置,其特征在于,The device of claim 11 wherein:
    所述处理单元,还用于如所述第一语言种类不在历史接入的接入点名称的语言种类中,获取对应语言种类对应的国家名称,获取所述国家名称对应的第三国家码,设置所述第三国家码为WIFI的国家码。The processing unit is further configured to: obtain a country name corresponding to the corresponding language category, and obtain a third country code corresponding to the country name, where the first language type is not in the language category of the access point name accessed by the history, Set the country code of the third country code to WIFI.
  13. 一种智能终端,其特征在于,所述智能终端包括:处理器、存储器、收发器和总线;所述处理器、所述存储器、所述收发器通过所述总线连接;An intelligent terminal, comprising: a processor, a memory, a transceiver, and a bus; wherein the processor, the memory, and the transceiver are connected by using the bus;
    所述存储器,用于存储程序代码; The memory is configured to store program code;
    所述处理单元,用于调用所述程序代码执行如下操作:The processing unit is configured to invoke the program code to perform the following operations:
    获取当前的位置信息;Get current location information;
    依据该当前的位置信息提取该当前的位置信息对应的第一国家码;Extracting, according to the current location information, a first country code corresponding to the current location information;
    判断所述第一国家码与已保存的第二国家码是否相同;Determining whether the first country code is the same as the saved second country code;
    如所述第一国家码与所述第二国家码不相同,用所述第一国家码替换所述第二国家码,并将所述第一国家码保存。If the first country code is different from the second country code, the second country code is replaced with the first country code, and the first country code is saved.
  14. 根据权利要求13所述的智能终端,其特征在于,The intelligent terminal according to claim 13, wherein
    所述位置信息包括:坐标信息、IP地址、基站小区信息或经纬度信息中的一种或任意组合。The location information includes one or any combination of coordinate information, IP address, base station cell information, or latitude and longitude information.
  15. 根据权利要求13或14所述的智能终端,其特征在于,所述处理单元还用于执行以下操作:The intelligent terminal according to claim 13 or 14, wherein the processing unit is further configured to:
    在打开热点时,依据所述第一国家码选择一个可用信道作为热点的信道。When the hotspot is turned on, an available channel is selected as a hotspot channel according to the first country code.
  16. 根据权利要求13或14所述的智能终端,其特征在于,所述处理单元还执行以下操作:The intelligent terminal according to claim 13 or 14, wherein the processing unit further performs the following operations:
    在打开WIFI时,设置所述第一国家码为所述WIFI的国家码。When the WIFI is turned on, the first country code is set to be the country code of the WIFI.
  17. 根据权利要求13或14所述的智能终端,其特征在于,所述处理单元还执行以下操作:The intelligent terminal according to claim 13 or 14, wherein the processing unit further performs the following operations:
    在打开WIFI时,提取WIFI扫描操作的扫描结果中的接入点名称,分析所述接入点名称确定所述接入点名称对应的第一语言种类,判断所述第一语言种类是否在历史接入的接入点名称的语言种类中,如所述第一语言种类在历史接 入的接入点名称的语言种类中,则设置所述第一国家码为WIFI使用的国家码。When the WIFI is turned on, the access point name in the scan result of the WIFI scan operation is extracted, and the access point name is determined to determine the first language type corresponding to the access point name, and it is determined whether the first language type is in history. In the language category of the accessed access point name, if the first language type is in the history In the language type of the access point name entered, the country code in which the first country code is used by the WIFI is set.
  18. 根据权利要求17所述的智能终端,其特征在于,所述处理单元还执行以下操作:The intelligent terminal according to claim 17, wherein the processing unit further performs the following operations:
    如所述第一语言种类不在历史接入的接入点名称的语言种类中,获取对应语言种类对应的国家名称,获取所述国家名称对应的第三国家码,设置所述第三国家码为WIFI的国家码。If the first language type is not in the language category of the access point name accessed by the history, the country name corresponding to the corresponding language type is obtained, and the third country code corresponding to the country name is obtained, and the third country code is set as WIFI country code.
  19. 一种存储介质,其特征在于,所述存储介质用于存储程序代码;当所述程序代码被运行时,处理单元执行如下操作:A storage medium, wherein the storage medium is for storing program code; when the program code is executed, the processing unit performs the following operations:
    获取当前的位置信息;Get current location information;
    依据该当前的位置信息提取该当前的位置信息对应的第一国家码;Extracting, according to the current location information, a first country code corresponding to the current location information;
    判断所述第一国家码与已保存的第二国家码是否相同;Determining whether the first country code is the same as the saved second country code;
    如所述第一国家码与所述第二国家码不相同,用所述第一国家码替换所述第二国家码,并将所述第一国家码保存。If the first country code is different from the second country code, the second country code is replaced with the first country code, and the first country code is saved.
  20. 根据权利要求19所述的存储介质,其特征在于,A storage medium according to claim 19, wherein
    所述位置信息包括:坐标信息、IP地址、基站小区信息或经纬度信息中的一种或任意组合。 The location information includes one or any combination of coordinate information, IP address, base station cell information, or latitude and longitude information.
PCT/CN2017/107532 2016-12-07 2017-10-24 Method for applying wireless fidelity country code, apparatus, intelligent terminal and storage medium WO2018103466A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201611117009.6A CN106686545B (en) 2016-12-07 2016-12-07 A kind of application method and device of Wireless Fidelity national code
CN201611117009.6 2016-12-07

Publications (1)

Publication Number Publication Date
WO2018103466A1 true WO2018103466A1 (en) 2018-06-14

Family

ID=58868476

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/107532 WO2018103466A1 (en) 2016-12-07 2017-10-24 Method for applying wireless fidelity country code, apparatus, intelligent terminal and storage medium

Country Status (2)

Country Link
CN (1) CN106686545B (en)
WO (1) WO2018103466A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111405650A (en) * 2020-03-06 2020-07-10 杭州涂鸦信息技术有限公司 Method and system for setting zigbee equipment power

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106686545B (en) * 2016-12-07 2019-04-26 Oppo广东移动通信有限公司 A kind of application method and device of Wireless Fidelity national code
WO2019071537A1 (en) * 2017-10-12 2019-04-18 深圳市大疆创新科技有限公司 Wireless compliance implementation method for unmanned aerial vehicle, unmanned aerial vehicle, terminal device, and system
CN111698340B (en) * 2020-04-23 2023-04-07 新华三技术有限公司 Wireless service providing method, device, electronic equipment and storage medium
CN116918389A (en) * 2021-02-22 2023-10-20 Oppo广东移动通信有限公司 Apparatus and method for wireless communication

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104469779A (en) * 2013-09-16 2015-03-25 中兴通讯股份有限公司 Wireless local area network channel adapting method and device and terminal
CN105933954A (en) * 2016-05-13 2016-09-07 珠海市魅族科技有限公司 Method and device for selecting network
CN105933382A (en) * 2016-04-01 2016-09-07 乐视控股(北京)有限公司 Method and device for pushing information according to roaming destination
CN106686545A (en) * 2016-12-07 2017-05-17 广东欧珀移动通信有限公司 Method and apparatus for applying wireless fidelity country code

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104469779A (en) * 2013-09-16 2015-03-25 中兴通讯股份有限公司 Wireless local area network channel adapting method and device and terminal
CN105933382A (en) * 2016-04-01 2016-09-07 乐视控股(北京)有限公司 Method and device for pushing information according to roaming destination
CN105933954A (en) * 2016-05-13 2016-09-07 珠海市魅族科技有限公司 Method and device for selecting network
CN106686545A (en) * 2016-12-07 2017-05-17 广东欧珀移动通信有限公司 Method and apparatus for applying wireless fidelity country code

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111405650A (en) * 2020-03-06 2020-07-10 杭州涂鸦信息技术有限公司 Method and system for setting zigbee equipment power

Also Published As

Publication number Publication date
CN106686545A (en) 2017-05-17
CN106686545B (en) 2019-04-26

Similar Documents

Publication Publication Date Title
WO2018103466A1 (en) Method for applying wireless fidelity country code, apparatus, intelligent terminal and storage medium
EP2790385B1 (en) Electronic device and method for receiving geo-fence service with low power consumption
EP2990930B1 (en) Scraped information providing method and apparatus
WO2018103451A1 (en) Fast wireless fidelity connection method and apparatus
CN110333836B (en) Information screen projection method and device, storage medium and electronic device
WO2015127834A1 (en) Content displaying method and device
JP6362761B2 (en) Roaming network access method and apparatus
US10282333B2 (en) Electronic device operating method and electronic device for supporting the same
US10165506B2 (en) Method for searching for network and terminal
WO2015101195A1 (en) Status information update method and mobile terminal
WO2017096976A1 (en) Wifi state switching method and apparatus for mobile terminal
WO2014048174A1 (en) A terminal location obtaining method, device, and system
US20170168766A1 (en) Content displaying method and device
US20160057608A1 (en) Method, Device and Terminal for Mobile Terminals to Exchange User Information
CN103916910A (en) Remote upgrading server and applicable load balancing method thereof
US10165611B2 (en) Bluetooth pairing system and operating method thereof
US20150153921A1 (en) Apparatuses and methods for inputting a uniform resource locator
WO2021072775A1 (en) Method and apparatus for terminal payment, terminal device and computer-readable storage medium
RU2609090C2 (en) Systems and methods for image data sharing
KR102471674B1 (en) Method and apparatus of text input for wearable device
WO2018103403A1 (en) Wireless fidelity (wi-fi) scanning method and related product
WO2018049975A1 (en) Data transfer method and related product
US20160247253A1 (en) Method for image processing and electronic device supporting thereof
CN111722892A (en) System language switching method, electronic equipment and storage device
CN107889191B (en) Connection method, device and equipment of wireless local area network and computer readable storage medium

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

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

Country of ref document: EP

Kind code of ref document: A1