WO2016180303A1 - Wireless fidelity parameter configuration method and device, and storage medium - Google Patents

Wireless fidelity parameter configuration method and device, and storage medium Download PDF

Info

Publication number
WO2016180303A1
WO2016180303A1 PCT/CN2016/081409 CN2016081409W WO2016180303A1 WO 2016180303 A1 WO2016180303 A1 WO 2016180303A1 CN 2016081409 W CN2016081409 W CN 2016081409W WO 2016180303 A1 WO2016180303 A1 WO 2016180303A1
Authority
WO
WIPO (PCT)
Prior art keywords
wifi
country code
wifi device
country
parameter
Prior art date
Application number
PCT/CN2016/081409
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 WO2016180303A1 publication Critical patent/WO2016180303A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/02Arrangements for optimising operational condition

Definitions

  • the present invention relates to the field of communications, and in particular, to a wireless fidelity (WiFi) parameter configuration method, apparatus, and storage medium.
  • WiFi wireless fidelity
  • the Doppler weather radar terminal In order to avoid affecting the Doppler weather radar terminal, it is forbidden to use 120, 124, 128, 116 and 132 channels. Within the 35Km of the Doppler weather radar terminal, the used channels must be separated by more than 30 MHz; Germany also requires DFS and TPC functions for devices using channels in the 5.250–5.350 GHz and 5.470–5.725 GHz bands. It also specifies that 5.150–5.250 GHz is only allowed for indoor use; other countries such as Australia, South Africa, Japan, Brazil, etc. There are self-regulations for channels in the 5 GHz band.
  • the WiFi device usually needs to be preset according to the country of shipment, the country code of the corresponding country, and the relevant parameters such as the supportable frequency band.
  • the user may also need to configure the WiFi parameter for the WiFi device.
  • the WiFi parameter can be configured manually for the WiFi device.
  • the existing WiFi parameter configuration mode although the WiFi parameter can be configured, has the following problems, and requires manual configuration by the user, which is very inconvenient; and if the WiFi device is currently working in the 5.0 GHz band, the WiFi device roams from one country to another. In the case where the two countries have different requirements for the 5.0 GHz band, when the user does not configure the frequency band of the WiFi device, the WiFi device may work in an illegal frequency band, thereby causing unnecessary trouble.
  • embodiments of the present invention are directed to providing a WiFi parameter configuration method, apparatus, and storage medium to implement automatic configuration of WiFi parameters.
  • the invention discloses a WiFi parameter configuration method, and the method comprises:
  • the determining, according to the obtained country code, a WiFi parameter including:
  • the determining, by the obtained country code, the country code of the geographic location where the first WiFi device is located including:
  • the country code of the geographic location where the first WiFi device is located is selected according to the WiFi parameters corresponding to the various country codes.
  • the selecting, according to the WiFi parameter corresponding to the foregoing country code, the country code of the geographic location where the first WiFi device is located including:
  • one country code is randomly selected from the various country codes as the country code of the geographic location where the first WiFi device is located.
  • the determining, according to the country code of the geographic location of the first WiFi device, the WiFi parameter including:
  • the method further includes:
  • the country code of the geographic location where the first WiFi device is located is determined according to the geographic location information of the first WiFi device;
  • the default country code of the first WiFi device is used as the country code of the geographic location where the first WiFi device is located.
  • the method further includes:
  • the invention also discloses a WiFi parameter configuration device, the device comprising:
  • Obtaining a module configured to obtain a packet carrying a country code of a WiFi hotspot in a surrounding environment of the first WiFi device
  • the parsing module is configured to parse the obtained packet to obtain the country code
  • a first determining module configured to determine a WiFi parameter according to the obtained country code
  • the first configuration module is configured to perform WiFi parameter configuration on the first WiFi device according to the WiFi parameter.
  • the first determining module is configured to determine, according to the obtained country code, a country code of a geographic location where the first WiFi device is located; and determine, according to a country code of a geographic location of the first WiFi device Out of WiFi parameters.
  • the first determining module is further configured to calculate a ratio of the proportion of each of the country codes in the obtained country code; determine whether the ratio values of the various country codes are the same; When the ratio of the country codes is different, the country code having the highest ratio is determined as the country code of the geographical location of the first WiFi device; when the ratios of the various country codes are the same, according to various The WiFi parameter corresponding to the country code selects a country code of a geographic location where the first WiFi device is located.
  • the device further includes:
  • a second determining module configured to determine, according to the geographic location information of the first WiFi device, the country where the first WiFi device is located, when the country code of the first WiFi device is not obtained And determining, according to the language setting information of the first WiFi device, a country code of a geographical location where the first WiFi device is located; or When the country code of the geographic location of the first WiFi device is not obtained, the default country code of the first WiFi device is used as the country code of the geographic location of the first WiFi device.
  • the device further includes:
  • a second configuration module configured to enter the first WiFi device according to the obtained country code Line country code configuration.
  • the embodiment of the present invention further provides a computer storage medium, where the computer storage medium stores a computer program configured to execute the WiFi parameter configuration method of the embodiment of the present invention.
  • a WiFi parameter configuration method, device, and storage medium provided by the embodiment of the present invention obtains a packet carrying a country code of a WiFi hotspot in the environment surrounding the first WiFi device, and parses the obtained packet to obtain a country code; The obtained country code determines that the WiFi parameter performs WiFi parameter configuration on the first WiFi device according to the WiFi parameter. In this way, the WiFi parameter can be automatically configured to prevent the WiFi device from working in the illegal frequency band, which is convenient for the user to use and improves the user experience.
  • FIG. 1 is a schematic flowchart 1 of a method for configuring a WiFi parameter according to an embodiment of the present invention
  • FIG. 2 is a schematic diagram of a field table of a Beacon packet based on the 802.11d protocol
  • FIG. 3 is a schematic structural diagram of a WiFi parameter configuration apparatus according to an embodiment of the present disclosure
  • FIG. 4 is a schematic flowchart 2 of a method for configuring a WiFi parameter according to an embodiment of the present invention
  • FIG. 5 is a schematic flowchart of determining a country code of a geographical location of a first WiFi device according to the present invention.
  • the first WiFi device acquires the packet carrying the country code of the WiFi hotspot in the environment surrounding the first WiFi device; the first WiFi device parses the obtained packet to obtain the country code; the first WiFi device Determining a WiFi parameter according to the obtained country code; the first WiFi device performs WiFi parameter configuration on the first WiFi device according to the WiFi parameter.
  • FIG. 1 is a schematic flowchart of a method for configuring a WiFi parameter according to an embodiment of the present invention, such as As shown in Figure 1, the method includes:
  • Step 101 Acquire a packet carrying a country code of a WiFi hotspot in the environment surrounding the first WiFi device.
  • the first WiFi device monitors and receives the message carrying the country code of the WiFi hotspot of the environment surrounding the first WiFi device.
  • the first WiFi device monitors and receives the WiFi hotspot of the environment surrounding the first WiFi device and carries the country code.
  • the first WiFi device monitors and receives the packet carrying the country code of the WiFi hotspot in the environment surrounding the first WiFi device.
  • the preset time period may be set according to actual requirements. For example, if the information of the country code of all WiFi hotspots in the environment surrounding the first WiFi device is obtained in about 1 second, the packet is received. The preset time period is set to 1 second to all the WiFi hotspots in the environment surrounding the first WiFi device, and the start time of the preset time period is the first WiFi device. The time is set to set the WiFi parameter configuration mode of the first WiFi device to the setting command of the configuration mode provided by the embodiment of the present invention. Therefore, the packets carrying the country code of all the WiFi hotspots in the environment surrounding the first WiFi device can be obtained.
  • the packet may be a beacon packet based on the 802.11d protocol
  • the beacon packet is a Beacon packet sent by the WiFi hotspot, so that the WiFi device can detect and select whether to access the WiFi hotspot, 802.11.
  • the protocol requires the device to carry the country code information in the Beacon packet. Therefore, the Beacon packet based on the 802.11d protocol includes the country code field, as shown in Figure 2.
  • Figure 2 is a field diagram of the Beacon packet based on the 802.11d protocol.
  • the Beacon message Including: message ID (Element ID); message length (Length); country code string (Country String (Octets 1, 2)), occupying the first octet and the second octet; Code String (Octets 3), occupying the third octet; First Channel Number; Number of Channels; Maximum Transmit Power Level; If necessary, the Beacon message also includes a padding field (Pad) field.
  • a padding field (Pad) field.
  • the packet may also be a probe response packet based on the 802.11d protocol, and the probe response message is a probe response message sent by the WiFi hotspot unicast, and is used to respond to the probe request message received by the WiFi hotspot, and the 802.11d protocol requires
  • the device carries the country code information in the Probe Response message. Therefore, the Country Code field is included in the Probe Response message based on the 802.11d protocol. It should be noted that the country code refers to an identifier used to indicate each country.
  • the first WiFi device may be a WiFi wireless router, and may also be a WiFi-enabled mobile terminal.
  • Step 102 Parse the obtained packet to obtain a country code.
  • the first WiFi device performs national code parsing on the obtained 802.11d-based packet according to the country code field format defined by the 802.11d protocol, and obtains the country code.
  • the first WiFi device can further parse the SSID (Service Set Identifier) and MAC (Media Access Control) of the WiFi hotspot from the message. Access control) address and other information, the SSID and MAC address are used as the identifier of each message, and the country code obtained by the record is identified.
  • SSID Service Set Identifier
  • MAC Media Access Control
  • Step 103 Determine a WiFi parameter according to the obtained country code.
  • the step of the first WiFi device determines the country code of the geographical location of the first WiFi device from the obtained country code; the first WiFi device determines the WiFi parameter according to the country code of the geographic location of the first WiFi device.
  • the first WiFi device Determining, by the first WiFi device, the country code of the geographic location of the first WiFi device from the obtained country code, the first WiFi device calculating, calculating, The ratio of the code value of the first WiFi device determines whether the ratio values of the various country codes are the same; when the ratios of the various country codes are different, the first WiFi device determines the country code with the highest ratio as the location of the first WiFi device.
  • the country code of the location of the first WiFi device the first WiFi device selects the country code of the geographic location where the first WiFi device is located according to the WiFi parameter corresponding to each country code.
  • the first WiFi device determines, from the obtained country code, the geographical location of the first WiFi device.
  • the country code step may further include: the first WiFi device filters the obtained country code to obtain a country code that meets a preset condition.
  • the first WiFi device calculates the proportion of each country code in the obtained country code, and may be that the first WiFi device calculates the proportion of each country code in the country code that meets the preset condition.
  • the ratio of each country code refers to a ratio of the total number of each country code in the country code that meets the preset condition to the total number of country codes that meet the preset condition.
  • the ratios of the various country codes are the same, for example, the total number of country codes that meet the preset conditions is three, and the codes of the three countries are different, so the calculation of each country code is obtained. The ratio is 33.33%.
  • the preset condition may be a non-empty, legal, country code supported by the first WiFi device.
  • the first WiFi device may filter the obtained country code to remove the country code that does not meet the preset condition, such as removing the empty, illegal, country code that is not supported by the first WiFi device, and obtaining the country code that meets the preset condition.
  • the illegal country code means that the country code is different from the country code of any country.
  • the country code supported by the first WiFi device refers to a country code existing in an optional country code list in the first WiFi device. It should be noted that, when calculating the proportion of each country code in the country code that meets the preset condition, the SSID and the MAC address may be correspondingly, and the total number of country codes that meet the preset condition may be counted.
  • the country code of the geographic location where the first WiFi device is located according to the WiFi parameter corresponding to the country code may be included.
  • the first WiFi device finds the WiFi parameters corresponding to the various country codes; the first WiFi device determines whether the WiFi parameters corresponding to the various country codes are the same; and when determining that the WiFi parameters corresponding to the various country codes are the same, the first WiFi device is from the various A country code is randomly selected in the country code as the country code of the geographic location of the first WiFi device. Otherwise, the first WiFi device determines that it does not obtain the country code of the geographic location where the first WiFi device is located.
  • the determining, by the first WiFi device, the pre-stored parameter mapping table, the parameter mapping table records the WiFi parameter corresponding to the country code; the first WiFi device records the parameter from the parameter.
  • the WiFi parameters corresponding to various country codes are respectively found in the table.
  • the first WiFi device determines the WiFi parameter according to the country code of the geographic location of the first WiFi device, and may include: the first WiFi device reads the pre-stored parameter mapping table, where the parameter mapping table records the WiFi parameter corresponding to the country code; The first WiFi device searches for a WiFi parameter corresponding to the country code of the geographic location where the first WiFi device is located from the parameter mapping table.
  • the WiFi parameters include parameters such as a frequency band, a channel range, and a transmission power.
  • Step 104 Perform WiFi parameter configuration on the first WiFi device according to the WiFi parameter.
  • the first WiFi device performs WiFi parameter configuration on the first WiFi device according to the determined WiFi parameter.
  • the WiFi parameter can be automatically configured to prevent the WiFi device from working in the illegal frequency band, which is convenient for the user to use and improves the user experience.
  • the WiFi parameter configuration is performed on the first WiFi device according to the determined WiFi parameter
  • the country code configuration of the first WiFi device according to the obtained country code may also be performed.
  • the first WiFi device performs the country code configuration on the first WiFi device according to the obtained country code, and may be: the first WiFi device determines, according to the country code of the geographical location of the first WiFi device determined from the obtained country code, The first WiFi device performs country code configuration. Thereby automatic configuration of country code and WiFi parameters.
  • the operations of step 102 and step 103 may be performed by the first WiFi device, and may also be performed by the first WiFi device.
  • the second WiFi device, the other terminal device or the other server device performs the process; that is, the first WiFi device performs step 101, and sends the obtained packet carrying the country code to the second WiFi device, and the like.
  • the operation of the terminal device or other server device, the step 102 and the step 103 are performed by the second WiFi device, the other terminal device or other server device, and the determined WiFi parameter is sent to the operation of the first WiFi device, by the first The WiFi device performs the operations of step 104.
  • the second WiFi device, other terminal devices, and other server devices may be located in the environment surrounding the first WiFi device or may be located at the remote end of the first WiFi device.
  • the first WiFi device may perform the embodiment of the present invention after the WiFi hardware driver is started and before the WiFi application is started. After the steps 101 to 103 are performed, after the WiFi parameter is obtained, the first WiFi device starts its WiFi application to perform WiFi parameter configuration, and then the WiFi function of the first WiFi device can be used. In this way, if the first WiFi device is shipped from the factory, the WiFi parameter configuration mode of the first WiFi device is set to the configuration mode provided by the embodiment of the present invention, or the WiFi application is started before the first WiFi device is used.
  • the user sets the WiFi parameter configuration mode of the first WiFi device to the configuration mode provided by the embodiment of the present invention, so that the first WiFi device obtains its WiFi parameter before the WiFi application is started, and starts in its WiFi application. Then, the WiFi parameter configuration is performed according to the WiFi parameter, thereby further preventing the WiFi device from operating on the illegal frequency band on the basis of automatically configuring the WiFi parameter.
  • the configuration mode provided by the embodiment of the present invention may be used to acquire the WiFi parameter of the first WiFi device, obtain the WiFi parameter, and restart the WiFi application of the first WiFi device.
  • the program performs WiFi parameter configuration according to the WiFi parameter.
  • the first WiFi device may perform the operations of the foregoing steps in the embodiment of the present invention in real time in the background.
  • the WiFi parameter configuration of the first WiFi device according to the WiFi parameter may be: when the determined WiFi parameter is different from the currently configured WiFi parameter of the first WiFi device, the first WiFi device uses the determined WiFi.
  • the parameter configures the WiFi parameter of the first WiFi device. That is, the first WiFi device can obtain the country code in real time in the background, and determine the WiFi parameter corresponding to the country code.
  • the first WiFi device The WiFi parameter of the first WiFi device is configured using the determined WiFi parameter.
  • the WiFi parameter is not determined by the foregoing steps in the embodiment of the present invention, for example, when the first WiFi device does not obtain the packet carrying the country code, or the first WiFi device according to the obtained country. If the WiFi parameter is not determined by the code, for example, after the first WiFi device filters the obtained country code, the country code that meets the preset condition is not obtained, or the first WiFi device obtains the country code that meets the preset condition, but When the ratios of the various country codes are the same, the WiFi parameters corresponding to the various country codes are different, so that the country code of the geographical location of the first WiFi device is not obtained, and when the WiFi parameter is not determined, the first WiFi device can also pass.
  • the auxiliary mode determines the WiFi parameter
  • the first WiFi device determines the country code of the geographic location of the first WiFi device according to the auxiliary mode, and then the first WiFi device in the foregoing embodiment according to the embodiment of the present invention is configured according to the geographic location of the first WiFi device.
  • the country code determines the WiFi parameter step, determines the WiFi parameter, and finally can perform WiFi on the first WiFi device according to the WiFi parameter in the foregoing embodiment of the present invention.
  • the number of configuration steps, automatically configure WiFi parameters, the determined first country code WiFi location of the device in three modes assist mode, as follows.
  • the first WiFi device determines the country code of the geographic location where the first WiFi device is located according to the geographic location information of the first WiFi device.
  • the first WiFi device determines whether the first WiFi device has a GPS (Global Positioning System) function; when the first WiFi device has a GPS function, the first WiFi device Using the GPS function to obtain the geographic location information of the first WiFi device; the first WiFi device determines the country information corresponding to the geographic location information; the first WiFi device searches for the country code corresponding to the country information;
  • the WiFi device uses the country code as the country code of the geographic location where the first WiFi device is located.
  • GPS Global Positioning System
  • the first WiFi device determines the country code of the geographic location where the first WiFi device is located according to the language setting information of the first WiFi device.
  • the first WiFi device acquires language setting information of the first WiFi device; the first WiFi device determines the country information corresponding to the language setting information; and the first WiFi device is configured to search a country code corresponding to the country information; the first WiFi device uses the country code as the country code of the geographic location where the first WiFi device is located.
  • the language setting information of the first WiFi device may be language setting information of the built-in webpage interface of the first WiFi device.
  • the first WiFi device when the language of the first WiFi device built-in webpage interface is set to China, the first WiFi device will be the Chinese country code.
  • the country code determined as the geographic location of the first WiFi device; the language setting information of the first WiFi device may also be language setting information of the application installed by the first WiFi device.
  • the first WiFi device uses the default country code of the first WiFi device as the country code of the geographic location where the first WiFi device is located. That is, when the country code of the geographical location of the first WiFi device is not obtained, the first WiFi device configures the WiFi parameter of the first WiFi device according to the default country code of the factory; or configures the first WiFi device according to the current default country code.
  • the WiFi parameter that is, does not adjust the current WiFi parameter of the first WiFi device, and continues to use the current default WiFi parameter of the first WiFi device.
  • the present invention discloses a WiFi parameter configuration apparatus.
  • FIG. 3 is a schematic structural diagram of a device for configuring a WiFi parameter according to an embodiment of the present invention. As shown in FIG. 3, the device includes:
  • the obtaining module 301 is configured to acquire the carrying of the WiFi hotspot in the environment surrounding the first WiFi device. a message with a country code;
  • the parsing module 302 is configured to parse the obtained packet to obtain the country code.
  • the first determining module 303 is configured to determine a WiFi parameter according to the obtained country code
  • the first configuration module 304 is configured to perform WiFi parameter configuration on the first WiFi device according to the WiFi parameter.
  • the first determining module 303 is configured to determine, according to the obtained country code, a country code of a geographic location where the first WiFi device is located; according to the geographic location of the first WiFi device The country code determines the WiFi parameters.
  • the first determining module 303 is further configured to calculate a percentage value of each of the country codes in the obtained country code, and determine whether the ratio values of the various country codes are the same; When the ratios of the plurality of country codes are different, the country code having the highest ratio is determined as the country code of the geographical location of the first WiFi device; when the ratios of the various country codes are the same, The country code of the geographic location where the first WiFi device is located is selected according to the WiFi parameters corresponding to the various country codes.
  • the first determining module 303 is further configured to: search for WiFi parameters corresponding to the various country codes; and determine that the WiFi parameters corresponding to the various country codes are the same, from various countries.
  • One of the codes is randomly selected as the country code of the geographical location of the first WiFi device.
  • the first determining module 303 is further configured to: read a pre-stored parameter mapping table, where the parameter mapping table records a WiFi parameter corresponding to the country code; and finds out from the parameter mapping table.
  • the apparatus further includes:
  • a second determining module configured to determine, according to the geographic location information of the first WiFi device, the country where the first WiFi device is located, when the country code of the first WiFi device is not obtained Code; or, where the first WiFi device is not obtained.
  • the country code of the geographic location of the first WiFi device is determined according to the language setting information of the first WiFi device; or the country code of the geographic location where the first WiFi device is located is not obtained.
  • the default country code of the first WiFi device is used as the country code of the geographic location where the first WiFi device is located.
  • the apparatus further includes:
  • the second configuration module is configured to perform a country code configuration on the first WiFi device according to the obtained country code.
  • the obtaining module 301, the parsing module 302, the first determining module 303, the first configuration module 304, the second determining module, and the second configuration module may each be a central processor located in the terminal device or the server device.
  • CPU Central Processing Unit
  • MPU Microprocessor Unit
  • DSP Digital Signal Processor
  • FPGA Field Programmable Gate Array
  • FIG. 4 is a schematic flowchart of a method for configuring a WiFi parameter according to an embodiment of the present invention. As shown in FIG. 4, the steps include:
  • Step 401 Set the WiFi parameter configuration mode of the first WiFi device to an automatic configuration mode when the WiFi application of the first WiFi device is not activated.
  • the WiFi parameter configuration mode of the first WiFi device is set to the automatic configuration mode when the first WiFi device is shipped from the factory.
  • the user sets the WiFi parameter configuration mode of the first WiFi device to the automatic configuration mode.
  • Step 402 Monitor and receive the message carrying the country code of the WiFi hotspot in the environment surrounding the first WiFi device in the preset time period.
  • the preset time period may be set according to actual requirements. For example, if the normal situation is about 1 second, all the WiFi hotspots in the environment surrounding the first WiFi device may be obtained with the national code. Text, so in order to get all the environment around the first WiFi device The WiFi hotspot carries the message with the country code, and the preset time period can be set to 1 second.
  • the start time of the preset time period is that the first WiFi device receives the time for setting the WiFi parameter configuration mode of the first WiFi device to the setting command of the automatic configuration mode.
  • the message may be a beacon message based on the 802.11d protocol.
  • the packet may also be a probe response message based on the 802.11d protocol.
  • Step 403 Parse the obtained packet to obtain a country code.
  • the first WiFi device performs national code parsing on the obtained 802.11d-based packet according to the country code field format defined by the 802.11d protocol, and obtains the country code.
  • the first WiFi device can further parse the SSID and MAC address of the WiFi hotspot from the Beacon packet, and use the SSID and the MAC address as each Beacon.
  • the identifier of the message which corresponds to the country code obtained by the record.
  • Step 404 Determine, from the obtained country code, a country code of a geographical location where the first WiFi device is located.
  • the first WiFi device determines, from the obtained country code, a country code of a geographical location where the first WiFi device is located.
  • This step may include, as shown in FIG. 5, step 501: filtering the obtained country code, and removing the empty, illegal, country code that is not supported by the first WiFi device; Step 502: calculating the remaining non-filtered code Empty, legal, and the proportion of each country code in the country code supported by the first WiFi device; step 503: determining whether the proportion of the various country codes is valid; when the ratio is invalid, that is, the account of various country codes When the ratio is zero, step 504: determining that the country code of the geographical location of the first WiFi device is not obtained; step 505: when the ratio of the values of the various country codes is valid, that is, when the ratio of the values of the various country codes is not zero And determining whether the valid ratios are all the same; step 506: when the valid ratios are different, the country code with the highest ratio is used as the country code of the geographic location of the first WiFi device;
  • the WiFi parameters corresponding to the various country codes are different, determining that the country code of the geographical location of the first WiFi device is not obtained; wherein, when calculating the ratio of each country code, the SSID and the MAC address may be corresponding. Count the total number of country codes supported by non-empty, legitimate, and first WiFi devices.
  • Step 405 When the country code of the geographical location of the first WiFi device is not obtained, determine whether the first WiFi device has a GPS function.
  • the country code of the geographical location of the first WiFi device is not obtained, for example, when the first WiFi device does not obtain the message carrying the country code, or the country where the first WiFi device is obtained When the country code of the geographical location of the first WiFi device is not determined in the code.
  • Step 406 When the first WiFi device has the GPS function, the geographic location information obtained by using the GPS function determines the country code of the geographic location where the first WiFi device is located.
  • the first WiFi device When the first WiFi device has a GPS function, the first WiFi device acquires the geographical location information of the first WiFi device by using the GPS function; the first WiFi device determines the country information corresponding to the geographical location information; the first WiFi device Finding a country code corresponding to the country information; the first WiFi device uses the country code as the country code of the geographic location where the first WiFi device is located.
  • Step 407 When the first WiFi device does not have the GPS function, determine the country code of the geographic location where the first WiFi device is located according to the language setting information of the built-in web interface of the first WiFi device.
  • Step 408 When obtaining the country code of the geographic location where the first WiFi device is located, determining the WiFi parameter according to the country code of the geographic location of the first WiFi device.
  • the first WiFi device may determine the WiFi parameter according to the country code of the geographical location of the first WiFi device.
  • the step may include: when obtaining the country code of the geographic location of the first WiFi device, the first WiFi device reads the pre-stored parameter mapping table, where the parameter mapping table records the WiFi parameter corresponding to the country code; the first WiFi device slave parameter The WiFi parameter corresponding to the country code of the geographical location of the first WiFi device is found in the mapping table.
  • the WiFi parameters include parameters such as a frequency band, a channel range, and a transmission power.
  • Step 409 Perform WiFi parameter configuration on the first WiFi device according to the WiFi parameter.
  • the first WiFi device performs WiFi parameter configuration on the first WiFi device according to the determined WiFi parameter.
  • the WiFi parameter can be automatically configured to prevent the WiFi device from working in the illegal frequency band, which is convenient for the user to use and improves the user experience.
  • the WiFi parameter configuration method is implemented in the form of a software function module and is sold or used as a standalone product, it may also be stored in a computer readable storage medium.
  • the technical solution of the embodiments of the present invention may be embodied in the form of a software product in essence or in the form of a software product stored in a storage medium, including a plurality of instructions.
  • a computer device (which may be a personal computer, server, or network device, etc.) is caused to perform all or part of the methods described in various embodiments of the present invention.
  • the foregoing storage medium includes various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read only memory (ROM), a magnetic disk, or an optical disk.
  • program codes such as a USB flash drive, a mobile hard disk, a read only memory (ROM), a magnetic disk, or an optical disk.
  • the embodiment of the present invention further provides a computer storage medium, where the computer storage medium stores a computer program, and the computer program is used to execute the WiFi parameter configuration method of the embodiment of the present invention.
  • the packet carrying the country code of the WiFi hotspot in the environment surrounding the first WiFi device is obtained; the obtained packet is parsed to obtain the country code; and the WiFi parameter is determined according to the obtained country code according to the WiFi parameter.
  • the WiFi parameter configuration is performed on the first WiFi device. In this way, the WiFi parameter can be automatically configured to prevent the WiFi device from working in the illegal frequency band, which is convenient for the user to use and improves the user experience.

Abstract

Disclosed is a WiFi parameter configuration method. The method comprises: acquiring a packet of a WiFi hotspot of a surrounding environment of a first WiFi apparatus, which carries a country code; parsing the acquired packet to obtain the country code; determining a WiFi parameter according to the obtained country code; and conducting WiFi parameter configuration on the first WiFi apparatus according to the WiFi parameter. Also disclosed at the same time are a WiFi parameter configuration device and a storage medium.

Description

一种无线保真参数配置方法、装置及存储介质Wireless fidelity parameter configuration method, device and storage medium 技术领域Technical field
本发明涉及通信领域,尤其涉及一种无线保真(WiFi,WIreless FIdelity)参数配置方法、装置及存储介质。The present invention relates to the field of communications, and in particular, to a wireless fidelity (WiFi) parameter configuration method, apparatus, and storage medium.
背景技术Background technique
目前,802.11协议组规定允许使用的无线频段主要有三个:2.4GHz、3.6GHz和4.9/5.0GHz频段。且这些频段的每个频段都被划分为一系列信道。但每个国家对于本国允许使用的频段内的信道资源、用户和最大功率都有相应的限制,如,美国联邦通讯委员会(FCC,Federal Communications Commission),在2007年开始要求,使用5.250-5.350GHz和5.470-5.725GHz频段的信道的设备必须具有DFS(Dynamic frequency selection,动态频率选择)和TPC(Transmit Power Control,发射功率控制)功能;美国FCC在2010年又进一步声明,使用5.470-5.725GHz频段的信道时,为避免影响到多普勒天气雷达终端,禁止使用120、124、128、116和132信道,在多普勒天气雷达终端35Km以内,被使用的信道之间必须相隔离30MHz以上;德国也要求使用5.250–5.350GHz和5.470–5.725GHz频段的信道的设备必须具有DFS和TPC功能,另外还规定5.150–5.250GHz只允许在室内使用;其它国家如澳大利亚、南非、日本、巴西等都对5GHz频段的信道有自己的规定。Currently, there are three main wireless bands allowed by the 802.11 protocol suite: the 2.4 GHz, 3.6 GHz, and 4.9/5.0 GHz bands. And each frequency band of these bands is divided into a series of channels. However, each country has corresponding restrictions on channel resources, users and maximum power in the frequency bands allowed in the country. For example, the Federal Communications Commission (FCC), which began in 2007, requires 5.250-5.350 GHz. Devices with channels in the 5.470-5.725 GHz band must have DFS (Dynamic Frequency Selection) and TPC (Transmit Power Control) functions; the US FCC further declares in 2010 that the 5.470-5.725 GHz band is used. In order to avoid affecting the Doppler weather radar terminal, it is forbidden to use 120, 124, 128, 116 and 132 channels. Within the 35Km of the Doppler weather radar terminal, the used channels must be separated by more than 30 MHz; Germany also requires DFS and TPC functions for devices using channels in the 5.250–5.350 GHz and 5.470–5.725 GHz bands. It also specifies that 5.150–5.250 GHz is only allowed for indoor use; other countries such as Australia, South Africa, Japan, Brazil, etc. There are self-regulations for channels in the 5 GHz band.
鉴于上述要求,WiFi设备在出厂时通常都需要根据发货国家,预置相应国家的国家码,及可支持频段等相关参数。但在WiFi设备的使用过程中,用户可能还需要对WiFi设备进行WiFi参数配置,如,在WiFi设备漫游到其它国家时,用户可能需要对WiFi设备进行WiFi参数配置,且用户通常 可以通过手动方式对WiFi设备进行WiFi参数配置。现有WiFi参数配置方式,虽然可以配置WiFi参数,但其存在如下问题,需要用户手动进行配置,非常不方便;且如果WiFi设备当前工作在5.0GHz频段,在WiFi设备从一个国家漫游到另外一个国家,两个国家对5.0GHz频段有不同要求的情况下,在用户未对WiFi设备的频段进行配置时,可能会导致WiFi设备工作在非法频段上,从而造成不必要的麻烦。In view of the above requirements, the WiFi device usually needs to be preset according to the country of shipment, the country code of the corresponding country, and the relevant parameters such as the supportable frequency band. However, during the use of the WiFi device, the user may also need to configure the WiFi parameter for the WiFi device. For example, when the WiFi device roams to other countries, the user may need to configure the WiFi parameter for the WiFi device, and the user usually The WiFi parameter can be configured manually for the WiFi device. The existing WiFi parameter configuration mode, although the WiFi parameter can be configured, has the following problems, and requires manual configuration by the user, which is very inconvenient; and if the WiFi device is currently working in the 5.0 GHz band, the WiFi device roams from one country to another. In the case where the two countries have different requirements for the 5.0 GHz band, when the user does not configure the frequency band of the WiFi device, the WiFi device may work in an illegal frequency band, thereby causing unnecessary trouble.
发明内容Summary of the invention
有鉴于此,本发明实施例期望提供一种WiFi参数配置方法、装置及存储介质,以实现自动配置WiFi参数。In view of this, embodiments of the present invention are directed to providing a WiFi parameter configuration method, apparatus, and storage medium to implement automatic configuration of WiFi parameters.
为达到上述目的,本发明的技术方案是这样实现的:In order to achieve the above object, the technical solution of the present invention is achieved as follows:
本发明公开了一种WiFi参数配置方法,所述方法包括:The invention discloses a WiFi parameter configuration method, and the method comprises:
获取第一WiFi设备周围的WiFi热点的携带有国家码的报文;Obtaining a packet carrying a country code of the WiFi hotspot around the first WiFi device;
对获取到的所述报文进行解析获得所述国家码;Parsing the obtained packet to obtain the country code;
根据获得的所述国家码确定出WiFi参数;Determining a WiFi parameter according to the obtained country code;
根据所述WiFi参数对所述第一WiFi设备进行WiFi参数配置。Performing WiFi parameter configuration on the first WiFi device according to the WiFi parameter.
上述方案中,所述根据获得的所述国家码确定出WiFi参数,包括:In the foregoing solution, the determining, according to the obtained country code, a WiFi parameter, including:
从获得的所述国家码中确定出所述第一WiFi设备所在地理位置的国家码;Determining, from the obtained country code, a country code of a geographical location where the first WiFi device is located;
依据所述第一WiFi设备所在地理位置的国家码确定出WiFi参数。Determining a WiFi parameter according to a country code of a geographic location where the first WiFi device is located.
上述方案中,所述从获得的所述国家码中确定出所述第一WiFi设备所在地理位置的国家码,包括:In the foregoing solution, the determining, by the obtained country code, the country code of the geographic location where the first WiFi device is located, including:
计算出获得的所述国家码中每种所述国家码的占比值;Calculating a ratio of each of the country codes in the obtained country code;
判断各种所述国家码的占比值是否相同;Determining whether the proportions of the various country codes are the same;
在各种所述国家码的占比值不相同时,将占比值最高的所述国家码确定为所述第一WiFi设备所在地理位置的国家码; When the ratios of the plurality of country codes are different, determining the country code with the highest ratio as the country code of the geographical location of the first WiFi device;
在各种所述国家码的占比值相同时,根据各种所述国家码对应的WiFi参数选择出所述第一WiFi设备所在地理位置的国家码。When the ratios of the various country codes are the same, the country code of the geographic location where the first WiFi device is located is selected according to the WiFi parameters corresponding to the various country codes.
上述方案中,所述根据各种所述国家码对应的WiFi参数选择出所述第一WiFi设备所在地理位置的国家码,包括:In the foregoing solution, the selecting, according to the WiFi parameter corresponding to the foregoing country code, the country code of the geographic location where the first WiFi device is located, including:
查找出各种所述国家码对应的WiFi参数;Finding the WiFi parameters corresponding to the various country codes;
确定各种所述国家码对应的WiFi参数相同时,从各种所述国家码中随机选择一个所述国家码作为所述第一WiFi设备所在地理位置的国家码。When it is determined that the WiFi parameters corresponding to the various country codes are the same, one country code is randomly selected from the various country codes as the country code of the geographic location where the first WiFi device is located.
上述方案中,所述依据所述第一WiFi设备所在地理位置的国家码确定出WiFi参数,包括:In the above solution, the determining, according to the country code of the geographic location of the first WiFi device, the WiFi parameter, including:
读取预存的参数映射表,所述参数映射表对应所述国家码记录了WiFi参数;Reading a pre-stored parameter mapping table, where the parameter mapping table records a WiFi parameter corresponding to the country code;
从所述参数映射表中查找出与所述第一WiFi设备所在地理位置的国家码相对应的WiFi参数。Finding, from the parameter mapping table, a WiFi parameter corresponding to a country code of a geographic location where the first WiFi device is located.
上述方案中,所述方法还包括:In the above solution, the method further includes:
在未获得所述第一WiFi设备所在地理位置的国家码时,根据所述第一WiFi设备当前所在的地理位置信息确定出所述第一WiFi设备所在地理位置的国家码;或者,When the country code of the geographic location of the first WiFi device is not obtained, the country code of the geographic location where the first WiFi device is located is determined according to the geographic location information of the first WiFi device; or
在未获得所述第一WiFi设备所在地理位置的国家码时,根据所述第一WiFi设备的语言设置信息确定出所述第一WiFi设备所在地理位置的国家码;或者,When the country code of the geographic location of the first WiFi device is not obtained, determining the country code of the geographic location where the first WiFi device is located according to the language setting information of the first WiFi device; or
在未获得所述第一WiFi设备所在地理位置的国家码时,将所述第一WiFi设备的默认国家码作为所述第一WiFi设备所在地理位置的国家码。When the country code of the geographic location of the first WiFi device is not obtained, the default country code of the first WiFi device is used as the country code of the geographic location where the first WiFi device is located.
上述方案中,所述方法还包括:In the above solution, the method further includes:
根据获得的所述国家码对所述第一WiFi设备进行国家码配置。Performing country code configuration on the first WiFi device according to the obtained country code.
本发明还公开了一种WiFi参数配置装置,所述装置包括: The invention also discloses a WiFi parameter configuration device, the device comprising:
获取模块,配置为获取第一WiFi设备周围环境的WiFi热点的携带有国家码的报文;Obtaining a module, configured to obtain a packet carrying a country code of a WiFi hotspot in a surrounding environment of the first WiFi device;
解析模块,配置为对获取到的所述报文进行解析获得所述国家码;The parsing module is configured to parse the obtained packet to obtain the country code;
第一确定模块,配置为根据获得的所述国家码确定出WiFi参数;a first determining module, configured to determine a WiFi parameter according to the obtained country code;
第一配置模块,配置为根据所述WiFi参数对所述第一WiFi设备进行WiFi参数配置。The first configuration module is configured to perform WiFi parameter configuration on the first WiFi device according to the WiFi parameter.
上述方案中,所述第一确定模块,配置为从获得的所述国家码中确定出所述第一WiFi设备所在地理位置的国家码;依据所述第一WiFi设备所在地理位置的国家码确定出WiFi参数。In the foregoing solution, the first determining module is configured to determine, according to the obtained country code, a country code of a geographic location where the first WiFi device is located; and determine, according to a country code of a geographic location of the first WiFi device Out of WiFi parameters.
上述方案中,所述第一确定模块,还配置为计算出获得的所述国家码中每种所述国家码的占比值;判断各种所述国家码的占比值是否相同;在各种所述国家码的占比值不相同时,将占比值最高的所述国家码确定为所述第一WiFi设备所在地理位置的国家码;在各种所述国家码的占比值相同时,根据各种所述国家码对应的WiFi参数选择出所述第一WiFi设备所在地理位置的国家码。In the above solution, the first determining module is further configured to calculate a ratio of the proportion of each of the country codes in the obtained country code; determine whether the ratio values of the various country codes are the same; When the ratio of the country codes is different, the country code having the highest ratio is determined as the country code of the geographical location of the first WiFi device; when the ratios of the various country codes are the same, according to various The WiFi parameter corresponding to the country code selects a country code of a geographic location where the first WiFi device is located.
上述方案中,所述装置还包括:In the above solution, the device further includes:
第二确定模块,配置为在未获得所述第一WiFi设备所在地理位置的国家码时,根据所述第一WiFi设备当前所在的地理位置信息确定出所述第一WiFi设备所在地理位置的国家码;或者,在未获得所述第一WiFi设备所在地理位置的国家码时,根据所述第一WiFi设备的语言设置信息确定出所述第一WiFi设备所在地理位置的国家码;或者,在未获得所述第一WiFi设备所在地理位置的国家码时,将所述第一WiFi设备的默认国家码作为所述第一WiFi设备所在地理位置的国家码。a second determining module, configured to determine, according to the geographic location information of the first WiFi device, the country where the first WiFi device is located, when the country code of the first WiFi device is not obtained And determining, according to the language setting information of the first WiFi device, a country code of a geographical location where the first WiFi device is located; or When the country code of the geographic location of the first WiFi device is not obtained, the default country code of the first WiFi device is used as the country code of the geographic location of the first WiFi device.
上述方案中,所述装置还包括:In the above solution, the device further includes:
第二配置模块,配置为根据获得的所述国家码对所述第一WiFi设备进 行国家码配置。a second configuration module, configured to enter the first WiFi device according to the obtained country code Line country code configuration.
本发明实施例还提供了一种计算机存储介质,所述计算机存储介质存储有计算机程序,该计算机程序配置为执行本发明实施例的上述WiFi参数配置方法。The embodiment of the present invention further provides a computer storage medium, where the computer storage medium stores a computer program configured to execute the WiFi parameter configuration method of the embodiment of the present invention.
本发明实施例提供的一种WiFi参数配置方法、装置及存储介质,获取第一WiFi设备周围环境的WiFi热点的携带有国家码的报文;对获取到的报文进行解析获得国家码;根据获得的所述国家码确定出WiFi参数根据WiFi参数对第一WiFi设备进行WiFi参数配置。如此,能实现自动配置WiFi参数,防止WiFi设备工作在非法频段上,便于用户使用,提高用户体验度。A WiFi parameter configuration method, device, and storage medium provided by the embodiment of the present invention obtains a packet carrying a country code of a WiFi hotspot in the environment surrounding the first WiFi device, and parses the obtained packet to obtain a country code; The obtained country code determines that the WiFi parameter performs WiFi parameter configuration on the first WiFi device according to the WiFi parameter. In this way, the WiFi parameter can be automatically configured to prevent the WiFi device from working in the illegal frequency band, which is convenient for the user to use and improves the user experience.
附图说明DRAWINGS
图1为本发明实施例提供的WiFi参数配置方法的流程示意图一;1 is a schematic flowchart 1 of a method for configuring a WiFi parameter according to an embodiment of the present invention;
图2为基于802.11d协议的Beacon报文的字段表示意图;2 is a schematic diagram of a field table of a Beacon packet based on the 802.11d protocol;
图3为本发明实施例提供的一种WiFi参数配置装置的结构示意图;FIG. 3 is a schematic structural diagram of a WiFi parameter configuration apparatus according to an embodiment of the present disclosure;
图4为本发明实施例提供的WiFi参数配置方法的流程示意图二;4 is a schematic flowchart 2 of a method for configuring a WiFi parameter according to an embodiment of the present invention;
图5为本发明提供的确定出第一WiFi设备所在地理位置的国家码的流程示意图。FIG. 5 is a schematic flowchart of determining a country code of a geographical location of a first WiFi device according to the present invention.
具体实施方式detailed description
在本发明实施例中,第一WiFi设备获取第一WiFi设备周围环境的WiFi热点的携带有国家码的报文;第一WiFi设备对获取到的报文进行解析获得国家码;第一WiFi设备根据获得的国家码确定出WiFi参数;第一WiFi设备根据WiFi参数对第一WiFi设备进行WiFi参数配置。In the embodiment of the present invention, the first WiFi device acquires the packet carrying the country code of the WiFi hotspot in the environment surrounding the first WiFi device; the first WiFi device parses the obtained packet to obtain the country code; the first WiFi device Determining a WiFi parameter according to the obtained country code; the first WiFi device performs WiFi parameter configuration on the first WiFi device according to the WiFi parameter.
下面结合附图和实施例,对本发明进一步详细说明。The present invention will be further described in detail below with reference to the accompanying drawings and embodiments.
图1为本发明实施例提供的一种WiFi参数配置方法的流程示意图,如 图1所示,该方法包括:FIG. 1 is a schematic flowchart of a method for configuring a WiFi parameter according to an embodiment of the present invention, such as As shown in Figure 1, the method includes:
步骤101:获取第一WiFi设备周围环境的WiFi热点的携带有国家码的报文。Step 101: Acquire a packet carrying a country code of a WiFi hotspot in the environment surrounding the first WiFi device.
这里,第一WiFi设备监听并接收第一WiFi设备周围环境的WiFi热点的携带有国家码的报文。Here, the first WiFi device monitors and receives the message carrying the country code of the WiFi hotspot of the environment surrounding the first WiFi device.
需说明的是,本步骤可以为,第一WiFi设备在第一WiFi设备的WiFi硬件驱动程序启动之后、WiFi应用程序启动之前,监听并接收第一WiFi设备周围环境的WiFi热点的携带有国家码的报文;其中,WiFi应用程序可以对第一WiFi设备的WiFi参数进行配置。从而可以在WiFi应用程序启动之前获取到携带有国家码的报文,即在WiFi应用程序对第一WiFi设备的WiFi参数进行配置之前获取到携带有国家码的报文。It should be noted that, in this step, after the WiFi hardware driver of the first WiFi device is started and before the WiFi application is started, the first WiFi device monitors and receives the WiFi hotspot of the environment surrounding the first WiFi device and carries the country code. The message; wherein the WiFi application can configure the WiFi parameter of the first WiFi device. Therefore, the packet carrying the country code can be obtained before the WiFi application is started, that is, the packet carrying the country code is obtained before the WiFi application configures the WiFi parameter of the first WiFi device.
需说明的是,本步骤还可以为,在预设时间段内,第一WiFi设备监听并接收第一WiFi设备周围环境的WiFi热点的携带有国家码的报文。所述预设时间段可以根据实际需求进行设置,如,若在通常情况下,1秒左右即可获取到第一WiFi设备周围环境的所有WiFi热点的携带有国家码的报文,因此为了获取到第一WiFi设备周围环境的所有WiFi热点的携带有国家码的报文,即可将预设时间段设置为1秒;其中,所述预设时间段的起始时间为,第一WiFi设备接收到,用于将第一WiFi设备的WiFi参数配置方式设置为,本发明实施例提供的配置方式的设置指令的时间。从而可以获取到第一WiFi设备周围环境的所有WiFi热点的携带有国家码的报文。It should be noted that, in this step, the first WiFi device monitors and receives the packet carrying the country code of the WiFi hotspot in the environment surrounding the first WiFi device. The preset time period may be set according to actual requirements. For example, if the information of the country code of all WiFi hotspots in the environment surrounding the first WiFi device is obtained in about 1 second, the packet is received. The preset time period is set to 1 second to all the WiFi hotspots in the environment surrounding the first WiFi device, and the start time of the preset time period is the first WiFi device. The time is set to set the WiFi parameter configuration mode of the first WiFi device to the setting command of the configuration mode provided by the embodiment of the present invention. Therefore, the packets carrying the country code of all the WiFi hotspots in the environment surrounding the first WiFi device can be obtained.
需说明的是,所述报文可以为基于802.11d协议的信标报文,信标报文即WiFi热点广播发送的Beacon报文,以便WiFi设备能够检测到并选择是否接入WiFi热点,802.11d协议要求设备在Beacon报文中携带国家码信息,因此基于802.11d协议的Beacon报文中包括国家码字段,如图2所示,图2为基于802.11d协议的Beacon报文的字段表示意图,所述Beacon报文中 包括:报文标识(Element ID);报文长度(Length);国家码字符串(Country String(Octets 1,2)),占用第一个八位字节和第二个八位字节;国家码字符串(Country String(Octets 3)),占用第三个八位字节;第一信道值(First Channel Number);信道数目(Number of Channels);最大发射功率级(Maximum Transmit Power Level);如果需要,所述Beacon报文还包括填空位(Pad)字段。所述报文还可以为基于802.11d协议的探测响应报文,探测响应报文即WiFi热点单播发送的Probe Response报文,用于响应WiFi热点接收到的探测请求报文,802.11d协议要求设备在Probe Response报文中携带国家码信息,因此基于802.11d协议的Probe Response报文中包括国家码字段。需说明的是,所述国家码是指用来表示各个国家的标识。It should be noted that the packet may be a beacon packet based on the 802.11d protocol, and the beacon packet is a Beacon packet sent by the WiFi hotspot, so that the WiFi device can detect and select whether to access the WiFi hotspot, 802.11. The protocol requires the device to carry the country code information in the Beacon packet. Therefore, the Beacon packet based on the 802.11d protocol includes the country code field, as shown in Figure 2. Figure 2 is a field diagram of the Beacon packet based on the 802.11d protocol. In the Beacon message Including: message ID (Element ID); message length (Length); country code string (Country String (Octets 1, 2)), occupying the first octet and the second octet; Code String (Octets 3), occupying the third octet; First Channel Number; Number of Channels; Maximum Transmit Power Level; If necessary, the Beacon message also includes a padding field (Pad) field. The packet may also be a probe response packet based on the 802.11d protocol, and the probe response message is a probe response message sent by the WiFi hotspot unicast, and is used to respond to the probe request message received by the WiFi hotspot, and the 802.11d protocol requires The device carries the country code information in the Probe Response message. Therefore, the Country Code field is included in the Probe Response message based on the 802.11d protocol. It should be noted that the country code refers to an identifier used to indicate each country.
需说明的是,所述第一WiFi设备可以为WiFi无线路由器,还可以为具有WiFi功能的移动终端。It should be noted that the first WiFi device may be a WiFi wireless router, and may also be a WiFi-enabled mobile terminal.
步骤102:对获取到的报文进行解析获得国家码。Step 102: Parse the obtained packet to obtain a country code.
这里,第一WiFi设备按照802.11d协议定义的国家码字段格式,对获取到的基于802.11d协议的报文分别进行国家码解析,获得国家码。Here, the first WiFi device performs national code parsing on the obtained 802.11d-based packet according to the country code field format defined by the 802.11d protocol, and obtains the country code.
需说明的是,在从报文中解析获得国家码后,第一WiFi设备还可以进一步从报文中解析出WiFi热点的SSID(Service Set Identifier,服务集标识)、MAC(Media Access Control,媒体访问控制)地址等信息,将SSID和MAC地址作为每条报文的标识,对应该标识记录获得的国家码。It should be noted that after the country code is obtained from the packet, the first WiFi device can further parse the SSID (Service Set Identifier) and MAC (Media Access Control) of the WiFi hotspot from the message. Access control) address and other information, the SSID and MAC address are used as the identifier of each message, and the country code obtained by the record is identified.
步骤103:根据获得的国家码确定出WiFi参数。Step 103: Determine a WiFi parameter according to the obtained country code.
本步骤可以包括,第一WiFi设备从获得的国家码中确定出第一WiFi设备所在地理位置的国家码;第一WiFi设备依据第一WiFi设备所在地理位置的国家码确定出WiFi参数。The step of the first WiFi device determines the country code of the geographical location of the first WiFi device from the obtained country code; the first WiFi device determines the WiFi parameter according to the country code of the geographic location of the first WiFi device.
所述第一WiFi设备从获得的国家码中确定出第一WiFi设备所在地理位置的国家码,可以包括,第一WiFi设备计算出获得的国家码中每种国家 码的占比值;第一WiFi设备判断各种国家码的占比值是否相同;在各种国家码的占比值不相同时,第一WiFi设备将占比值最高的国家码确定为第一WiFi设备所在地理位置的国家码;在各种国家码的占比值相同时,第一WiFi设备根据各种国家码对应的WiFi参数选择出第一WiFi设备所在地理位置的国家码。Determining, by the first WiFi device, the country code of the geographic location of the first WiFi device from the obtained country code, the first WiFi device calculating, calculating, The ratio of the code value of the first WiFi device determines whether the ratio values of the various country codes are the same; when the ratios of the various country codes are different, the first WiFi device determines the country code with the highest ratio as the location of the first WiFi device. The country code of the location of the first WiFi device, the first WiFi device selects the country code of the geographic location where the first WiFi device is located according to the WiFi parameter corresponding to each country code.
需说明的是,在所述第一WiFi设备计算出获得的国家码中每种国家码的占比值步骤之前,所述第一WiFi设备从获得的国家码中确定出第一WiFi设备所在地理位置的国家码步骤,还可以包括,第一WiFi设备对获得的国家码进行过滤,获得符合预设条件的国家码。相应的,所述第一WiFi设备计算出获得的国家码中每种国家码的占比值,可以为,第一WiFi设备计算出符合预设条件的国家码中每种国家码的占比值。相应的,所述每种国家码的占比值是指,符合预设条件的国家码中每种国家码的总数目,与符合预设条件的国家码的总数目的比值。相应的,各种国家码的占比值相同的情况,如,符合预设条件的国家码的总数目为三个,且这三个国家码均不相同,因此计算获得的每种国家码的占比值均为33.33%。It should be noted that, before the step of calculating, by the first WiFi device, the value of each country code in the obtained country code, the first WiFi device determines, from the obtained country code, the geographical location of the first WiFi device. The country code step may further include: the first WiFi device filters the obtained country code to obtain a country code that meets a preset condition. Correspondingly, the first WiFi device calculates the proportion of each country code in the obtained country code, and may be that the first WiFi device calculates the proportion of each country code in the country code that meets the preset condition. Correspondingly, the ratio of each country code refers to a ratio of the total number of each country code in the country code that meets the preset condition to the total number of country codes that meet the preset condition. Correspondingly, when the ratios of the various country codes are the same, for example, the total number of country codes that meet the preset conditions is three, and the codes of the three countries are different, so the calculation of each country code is obtained. The ratio is 33.33%.
需说明的是,所述预设条件可以为非空的、合法的、第一WiFi设备支持的国家码。第一WiFi设备可以对获得的国家码进行过滤,去除不符合预设条件的国家码,如去掉空的、不合法的、第一WiFi设备不支持的国家码,获得符合预设条件的国家码。所述不合法的国家码是指该国家码与任何国家的国家码都不相同。所述第一WiFi设备支持的国家码是指存在于该第一WiFi设备内的可选国家码列表中的国家码。需说明的是,在计算上述符合预设条件的国家码中每种国家码的占比值时,可以对应SSID和MAC地址,对符合预设条件的国家码的总数目进行计数。It should be noted that the preset condition may be a non-empty, legal, country code supported by the first WiFi device. The first WiFi device may filter the obtained country code to remove the country code that does not meet the preset condition, such as removing the empty, illegal, country code that is not supported by the first WiFi device, and obtaining the country code that meets the preset condition. . The illegal country code means that the country code is different from the country code of any country. The country code supported by the first WiFi device refers to a country code existing in an optional country code list in the first WiFi device. It should be noted that, when calculating the proportion of each country code in the country code that meets the preset condition, the SSID and the MAC address may be correspondingly, and the total number of country codes that meet the preset condition may be counted.
需说明的是,所述在各种国家码的占比值相同时,根据各种国家码对应的WiFi参数选择出第一WiFi设备所在地理位置的国家码,可以包括, 第一WiFi设备查找出各种国家码对应的WiFi参数;第一WiFi设备判断各种国家码对应的WiFi参数是否相同;确定各种国家码对应的WiFi参数相同时,第一WiFi设备从各种国家码中随机选择一个国家码作为第一WiFi设备所在地理位置的国家码,否则,第一WiFi设备判定其未获得第一WiFi设备所在地理位置的国家码。其中,所述查找出各种国家码对应的WiFi参数,可以包括,第一WiFi设备读取预存的参数映射表,所述参数映射表对应国家码记录了WiFi参数;第一WiFi设备从参数映射表中分别查找出与各种国家码相对应的WiFi参数。It should be noted that, when the ratios of the various country codes are the same, the country code of the geographic location where the first WiFi device is located according to the WiFi parameter corresponding to the country code may be included. The first WiFi device finds the WiFi parameters corresponding to the various country codes; the first WiFi device determines whether the WiFi parameters corresponding to the various country codes are the same; and when determining that the WiFi parameters corresponding to the various country codes are the same, the first WiFi device is from the various A country code is randomly selected in the country code as the country code of the geographic location of the first WiFi device. Otherwise, the first WiFi device determines that it does not obtain the country code of the geographic location where the first WiFi device is located. The determining, by the first WiFi device, the pre-stored parameter mapping table, the parameter mapping table records the WiFi parameter corresponding to the country code; the first WiFi device records the parameter from the parameter. The WiFi parameters corresponding to various country codes are respectively found in the table.
所述第一WiFi设备依据第一WiFi设备所在地理位置的国家码确定出WiFi参数,可以包括,第一WiFi设备读取预存的参数映射表,所述参数映射表对应国家码记录了WiFi参数;第一WiFi设备从参数映射表中查找出与第一WiFi设备所在地理位置的国家码相对应的WiFi参数。The first WiFi device determines the WiFi parameter according to the country code of the geographic location of the first WiFi device, and may include: the first WiFi device reads the pre-stored parameter mapping table, where the parameter mapping table records the WiFi parameter corresponding to the country code; The first WiFi device searches for a WiFi parameter corresponding to the country code of the geographic location where the first WiFi device is located from the parameter mapping table.
需说明的是,所述WiFi参数包括频段、信道范围及发射功率等参数。It should be noted that the WiFi parameters include parameters such as a frequency band, a channel range, and a transmission power.
步骤104:根据WiFi参数对第一WiFi设备进行WiFi参数配置。Step 104: Perform WiFi parameter configuration on the first WiFi device according to the WiFi parameter.
这里,第一WiFi设备根据确定出的WiFi参数,对第一WiFi设备进行WiFi参数配置。如此,能实现自动配置WiFi参数,防止WiFi设备工作在非法频段上,便于用户使用,提高用户体验度。Here, the first WiFi device performs WiFi parameter configuration on the first WiFi device according to the determined WiFi parameter. In this way, the WiFi parameter can be automatically configured to prevent the WiFi device from working in the illegal frequency band, which is convenient for the user to use and improves the user experience.
需说明的是,在第一WiFi设备执行完,根据确定出的WiFi参数,对第一WiFi设备进行WiFi参数配置后,还可以执行根据获得的国家码对第一WiFi设备进行国家码配置。所述第一WiFi设备根据获得的国家码对第一WiFi设备进行国家码配置,可以为,第一WiFi设备根据从获得的国家码中确定出的第一WiFi设备所在地理位置的国家码,对第一WiFi设备进行国家码配置。从而实现自动配置国家码及WiFi参数。It should be noted that, after the first WiFi device is executed, the WiFi parameter configuration is performed on the first WiFi device according to the determined WiFi parameter, and the country code configuration of the first WiFi device according to the obtained country code may also be performed. The first WiFi device performs the country code configuration on the first WiFi device according to the obtained country code, and may be: the first WiFi device determines, according to the country code of the geographical location of the first WiFi device determined from the obtained country code, The first WiFi device performs country code configuration. Thereby automatic configuration of country code and WiFi parameters.
需说明的是,本发明实施例提供的WiFi参数配置方法中,步骤102及步骤103的操作可以由第一WiFi设备执行,还可以在第一WiFi设备执行 完步骤101后,由第二WiFi设备、其它终端设备或其它服务端设备执行;即第一WiFi设备执行步骤101,及将获取到的携带有国家码的报文发送给第二WiFi设备、其它终端设备或其它服务端设备的操作,由第二WiFi设备、其它终端设备或其它服务端设备执行步骤102及步骤103,及将确定出的WiFi参数发送给第一WiFi设备的操作,由第一WiFi设备执行步骤104的操作;其中,第二WiFi设备、其它终端设备及其它服务端设备,可以位于第一WiFi设备周围环境中,也可以位于第一WiFi设备的远端。It should be noted that, in the WiFi parameter configuration method provided by the embodiment of the present invention, the operations of step 102 and step 103 may be performed by the first WiFi device, and may also be performed by the first WiFi device. After the step 101 is performed, the second WiFi device, the other terminal device or the other server device performs the process; that is, the first WiFi device performs step 101, and sends the obtained packet carrying the country code to the second WiFi device, and the like. The operation of the terminal device or other server device, the step 102 and the step 103 are performed by the second WiFi device, the other terminal device or other server device, and the determined WiFi parameter is sent to the operation of the first WiFi device, by the first The WiFi device performs the operations of step 104. The second WiFi device, other terminal devices, and other server devices may be located in the environment surrounding the first WiFi device or may be located at the remote end of the first WiFi device.
需说明的是,为了在自动配置WiFi参数的基础上,进一步防止WiFi设备工作在非法频段上,第一WiFi设备可以在其WiFi硬件驱动程序启动之后、WiFi应用程序启动之前,执行本发明实施例的上述步骤101至步骤103的操作,在获取到WiFi参数后,第一WiFi设备启动其WiFi应用程序进行WiFi参数配置,之后即可使用第一WiFi设备的WiFi功能。这样,若在第一WiFi设备出厂时,将第一WiFi设备的WiFi参数配置方式设置为本发明实施例提供的配置方式,或者在第一WiFi设备被使用过程中,其WiFi应用程序被启动之前,用户将第一WiFi设备的WiFi参数配置方式设置为本发明实施例提供的配置方式,即可使得第一WiFi设备在其WiFi应用程序启动之前,获取到其WiFi参数,在其WiFi应用程序启动后根据该WiFi参数进行WiFi参数配置,从而在自动配置WiFi参数的基础上,进一步防止WiFi设备工作在非法频段上。当然,在第一WiFi设备的WiFi应用程序启动之后,也可以使用本发明实施例提供的配置方式,获取第一WiFi设备的WiFi参数,获取其WiFi参数后,重新启动第一WiFi设备的WiFi应用程序根据该WiFi参数进行WiFi参数配置。It should be noted that, in order to further prevent the WiFi device from operating on the illegal frequency band based on the automatic configuration of the WiFi parameter, the first WiFi device may perform the embodiment of the present invention after the WiFi hardware driver is started and before the WiFi application is started. After the steps 101 to 103 are performed, after the WiFi parameter is obtained, the first WiFi device starts its WiFi application to perform WiFi parameter configuration, and then the WiFi function of the first WiFi device can be used. In this way, if the first WiFi device is shipped from the factory, the WiFi parameter configuration mode of the first WiFi device is set to the configuration mode provided by the embodiment of the present invention, or the WiFi application is started before the first WiFi device is used. The user sets the WiFi parameter configuration mode of the first WiFi device to the configuration mode provided by the embodiment of the present invention, so that the first WiFi device obtains its WiFi parameter before the WiFi application is started, and starts in its WiFi application. Then, the WiFi parameter configuration is performed according to the WiFi parameter, thereby further preventing the WiFi device from operating on the illegal frequency band on the basis of automatically configuring the WiFi parameter. Of course, after the WiFi application of the first WiFi device is started, the configuration mode provided by the embodiment of the present invention may be used to acquire the WiFi parameter of the first WiFi device, obtain the WiFi parameter, and restart the WiFi application of the first WiFi device. The program performs WiFi parameter configuration according to the WiFi parameter.
需说明的是,为了在第一WiFi设备漫游到其它国家时,第一WiFi设备可以及时地重新配置WiFi参数,第一WiFi设备可以在后台实时地执行本发明实施例的上述步骤的操作,需说明的是,在此种情况下,上述步骤 中的所述根据WiFi参数对第一WiFi设备进行WiFi参数配置,可以为,在确定出的WiFi参数与第一WiFi设备当前已配置的WiFi参数不同时,第一WiFi设备使用该确定出的WiFi参数配置第一WiFi设备的WiFi参数。即第一WiFi设备可以在后台实时地获得的国家码、确定出该国家码对应的WiFi参数,在该确定出的WiFi参数与第一WiFi设备当前已配置的WiFi参数不同时,第一WiFi设备使用该确定出的WiFi参数配置第一WiFi设备的WiFi参数。It should be noted that, in order to reconfigure the WiFi parameters in the first WiFi device when the first WiFi device roams to other countries, the first WiFi device may perform the operations of the foregoing steps in the embodiment of the present invention in real time in the background. Explain that in this case, the above steps The WiFi parameter configuration of the first WiFi device according to the WiFi parameter may be: when the determined WiFi parameter is different from the currently configured WiFi parameter of the first WiFi device, the first WiFi device uses the determined WiFi. The parameter configures the WiFi parameter of the first WiFi device. That is, the first WiFi device can obtain the country code in real time in the background, and determine the WiFi parameter corresponding to the country code. When the determined WiFi parameter is different from the WiFi parameter currently configured by the first WiFi device, the first WiFi device The WiFi parameter of the first WiFi device is configured using the determined WiFi parameter.
需说明的是,在通过本发明实施例的上述步骤未确定出WiFi参数时,如,在第一WiFi设备未获取到携带有国家码的报文时,或在第一WiFi设备根据获得的国家码未确定出WiFi参数时,如,第一WiFi设备对获得的国家码进行过滤后,未获得符合预设条件的国家码,或第一WiFi设备获得了符合预设条件的国家码,但在各种国家码的占比值相同时,各种国家码对应的WiFi参数不相同,从而未获得第一WiFi设备所在地理位置的国家码,进而未确定出WiFi参数时,第一WiFi设备还可以通过辅助方式确定出WiFi参数,第一WiFi设备是根据辅助方式确定出第一WiFi设备所在地理位置的国家码,接着通过本发明实施例上述中的第一WiFi设备依据第一WiFi设备所在地理位置的国家码确定出WiFi参数步骤,确定出WiFi参数,最后可以通过本发明实施例上述中的根据WiFi参数对第一WiFi设备进行WiFi参数配置步骤,实现自动配置WiFi参数,所述根据辅助方式确定出第一WiFi设备所在地理位置的国家码包括三种方式,如下。It should be noted that, when the WiFi parameter is not determined by the foregoing steps in the embodiment of the present invention, for example, when the first WiFi device does not obtain the packet carrying the country code, or the first WiFi device according to the obtained country. If the WiFi parameter is not determined by the code, for example, after the first WiFi device filters the obtained country code, the country code that meets the preset condition is not obtained, or the first WiFi device obtains the country code that meets the preset condition, but When the ratios of the various country codes are the same, the WiFi parameters corresponding to the various country codes are different, so that the country code of the geographical location of the first WiFi device is not obtained, and when the WiFi parameter is not determined, the first WiFi device can also pass. The auxiliary mode determines the WiFi parameter, and the first WiFi device determines the country code of the geographic location of the first WiFi device according to the auxiliary mode, and then the first WiFi device in the foregoing embodiment according to the embodiment of the present invention is configured according to the geographic location of the first WiFi device. The country code determines the WiFi parameter step, determines the WiFi parameter, and finally can perform WiFi on the first WiFi device according to the WiFi parameter in the foregoing embodiment of the present invention. The number of configuration steps, automatically configure WiFi parameters, the determined first country code WiFi location of the device in three modes assist mode, as follows.
方式一,在未获得第一WiFi设备所在地理位置的国家码时,第一WiFi设备根据第一WiFi设备当前所在的地理位置信息确定出第一WiFi设备所在地理位置的国家码。在未获得第一WiFi设备所在地理位置的国家码时,第一WiFi设备判断第一WiFi设备是否具有GPS(Global Positioning System,全球定位系统)功能;在第一WiFi设备具有GPS功能时,第一WiFi设备 利用GPS功能获取到第一WiFi设备当前所在的地理位置信息;第一WiFi设备判定出该地理位置信息所对应的国家信息;第一WiFi设备查找出与该国家信息对应的的国家码;第一WiFi设备将该国家码作为第一WiFi设备所在地理位置的国家码。In a first mode, the first WiFi device determines the country code of the geographic location where the first WiFi device is located according to the geographic location information of the first WiFi device. When the country code of the geographic location of the first WiFi device is not obtained, the first WiFi device determines whether the first WiFi device has a GPS (Global Positioning System) function; when the first WiFi device has a GPS function, the first WiFi device Using the GPS function to obtain the geographic location information of the first WiFi device; the first WiFi device determines the country information corresponding to the geographic location information; the first WiFi device searches for the country code corresponding to the country information; The WiFi device uses the country code as the country code of the geographic location where the first WiFi device is located.
方式二,在未获得第一WiFi设备所在地理位置的国家码时,第一WiFi设备根据第一WiFi设备的语言设置信息确定出第一WiFi设备所在地理位置的国家码。在未获得第一WiFi设备所在地理位置的国家码时,第一WiFi设备获取第一WiFi设备的语言设置信息;第一WiFi设备判定出该语言设置信息对应的国家信息;第一WiFi设备备查找出与该国家信息对应的国家码;第一WiFi设备将该国家码作为第一WiFi设备所在地理位置的国家码。其中,第一WiFi设备的语言设置信息可以为第一WiFi设备内置网页界面的语言设置信息,如,在第一WiFi设备内置网页界面的语言设置为中国时,第一WiFi设备将中国的国家码确定为第一WiFi设备所在地理位置的国家码;第一WiFi设备的语言设置信息还可以为第一WiFi设备所安装的应用程序的语言设置信息。In the second mode, when the country code of the geographic location of the first WiFi device is not obtained, the first WiFi device determines the country code of the geographic location where the first WiFi device is located according to the language setting information of the first WiFi device. When the country code of the geographic location of the first WiFi device is not obtained, the first WiFi device acquires language setting information of the first WiFi device; the first WiFi device determines the country information corresponding to the language setting information; and the first WiFi device is configured to search a country code corresponding to the country information; the first WiFi device uses the country code as the country code of the geographic location where the first WiFi device is located. The language setting information of the first WiFi device may be language setting information of the built-in webpage interface of the first WiFi device. For example, when the language of the first WiFi device built-in webpage interface is set to China, the first WiFi device will be the Chinese country code. The country code determined as the geographic location of the first WiFi device; the language setting information of the first WiFi device may also be language setting information of the application installed by the first WiFi device.
方式三,在未获得第一WiFi设备所在地理位置的国家码时,第一WiFi设备将第一WiFi设备的默认国家码作为第一WiFi设备所在地理位置的国家码。即在未获得第一WiFi设备所在地理位置的国家码时,第一WiFi设备根据其出厂时默认的国家码配置第一WiFi设备的WiFi参数;或根据其当前默认的国家码配置第一WiFi设备的WiFi参数,即不对第一WiFi设备当前的WiFi参数进行调整,继续使用第一WiFi设备当前默认的WiFi参数。In the third mode, when the country code of the geographic location of the first WiFi device is not obtained, the first WiFi device uses the default country code of the first WiFi device as the country code of the geographic location where the first WiFi device is located. That is, when the country code of the geographical location of the first WiFi device is not obtained, the first WiFi device configures the WiFi parameter of the first WiFi device according to the default country code of the factory; or configures the first WiFi device according to the current default country code. The WiFi parameter, that is, does not adjust the current WiFi parameter of the first WiFi device, and continues to use the current default WiFi parameter of the first WiFi device.
为了实现上述方法,本发明公开了一种WiFi参数配置装置。In order to implement the above method, the present invention discloses a WiFi parameter configuration apparatus.
图3为本发明实施例提供的一种WiFi参数配置装置的结构示意图,如图3所示,所述装置包括:FIG. 3 is a schematic structural diagram of a device for configuring a WiFi parameter according to an embodiment of the present invention. As shown in FIG. 3, the device includes:
获取模块301,配置为获取第一WiFi设备周围环境的WiFi热点的携带 有国家码的报文;The obtaining module 301 is configured to acquire the carrying of the WiFi hotspot in the environment surrounding the first WiFi device. a message with a country code;
解析模块302,配置为对获取到的所述报文进行解析获得所述国家码;The parsing module 302 is configured to parse the obtained packet to obtain the country code.
第一确定模块303,配置为根据获得的所述国家码确定出WiFi参数;The first determining module 303 is configured to determine a WiFi parameter according to the obtained country code;
第一配置模块304,配置为根据所述WiFi参数对所述第一WiFi设备进行WiFi参数配置。The first configuration module 304 is configured to perform WiFi parameter configuration on the first WiFi device according to the WiFi parameter.
在一实施例中,所述第一确定模块303,配置为从获得的所述国家码中确定出所述第一WiFi设备所在地理位置的国家码;依据所述第一WiFi设备所在地理位置的国家码确定出WiFi参数。In an embodiment, the first determining module 303 is configured to determine, according to the obtained country code, a country code of a geographic location where the first WiFi device is located; according to the geographic location of the first WiFi device The country code determines the WiFi parameters.
在一实施例中,所述第一确定模块303,还配置为计算出获得的所述国家码中每种所述国家码的占比值;判断各种所述国家码的占比值是否相同;在各种所述国家码的占比值不相同时,将占比值最高的所述国家码确定为所述第一WiFi设备所在地理位置的国家码;在各种所述国家码的占比值相同时,根据各种所述国家码对应的WiFi参数选择出所述第一WiFi设备所在地理位置的国家码。In an embodiment, the first determining module 303 is further configured to calculate a percentage value of each of the country codes in the obtained country code, and determine whether the ratio values of the various country codes are the same; When the ratios of the plurality of country codes are different, the country code having the highest ratio is determined as the country code of the geographical location of the first WiFi device; when the ratios of the various country codes are the same, The country code of the geographic location where the first WiFi device is located is selected according to the WiFi parameters corresponding to the various country codes.
在一实施例中,所述第一确定模块303,还配置为查找出各种所述国家码对应的WiFi参数;确定各种所述国家码对应的WiFi参数相同时,从各种所述国家码中随机选择一个所述国家码作为所述第一WiFi设备所在地理位置的国家码。In an embodiment, the first determining module 303 is further configured to: search for WiFi parameters corresponding to the various country codes; and determine that the WiFi parameters corresponding to the various country codes are the same, from various countries. One of the codes is randomly selected as the country code of the geographical location of the first WiFi device.
在一实施例中,所述第一确定模块303,还配置为读取预存的参数映射表,所述参数映射表对应所述国家码记录了WiFi参数;从所述参数映射表中查找出与所述第一WiFi设备所在地理位置的国家码相对应的WiFi参数。In an embodiment, the first determining module 303 is further configured to: read a pre-stored parameter mapping table, where the parameter mapping table records a WiFi parameter corresponding to the country code; and finds out from the parameter mapping table. The WiFi parameter corresponding to the country code of the geographic location where the first WiFi device is located.
在一实施例中,所述装置还包括:In an embodiment, the apparatus further includes:
第二确定模块,配置为在未获得所述第一WiFi设备所在地理位置的国家码时,根据所述第一WiFi设备当前所在的地理位置信息确定出所述第一WiFi设备所在地理位置的国家码;或者,在未获得所述第一WiFi设备所在 地理位置的国家码时,根据所述第一WiFi设备的语言设置信息确定出所述第一WiFi设备所在地理位置的国家码;或者,在未获得所述第一WiFi设备所在地理位置的国家码时,将所述第一WiFi设备的默认国家码作为所述第一WiFi设备所在地理位置的国家码。a second determining module, configured to determine, according to the geographic location information of the first WiFi device, the country where the first WiFi device is located, when the country code of the first WiFi device is not obtained Code; or, where the first WiFi device is not obtained The country code of the geographic location of the first WiFi device is determined according to the language setting information of the first WiFi device; or the country code of the geographic location where the first WiFi device is located is not obtained. The default country code of the first WiFi device is used as the country code of the geographic location where the first WiFi device is located.
在一实施例中,所述装置还包括:In an embodiment, the apparatus further includes:
第二配置模块,配置为根据获得的所述国家码对所述第一WiFi设备进行国家码配置。The second configuration module is configured to perform a country code configuration on the first WiFi device according to the obtained country code.
在实际应用中,所述获取模块301、解析模块302、第一确定模块303、第一配置模块304、第二确定模块及第二配置模块均可由位于终端设备或服务端设备中的中央处理器(Central Processing Unit,CPU)、微处理器(Micro Processor Unit,MPU)、数字信号处理器(Digital Signal Processor,DSP)、或现场可编程门阵列(Field Programmable Gate Array,FPGA)等实现。In an actual application, the obtaining module 301, the parsing module 302, the first determining module 303, the first configuration module 304, the second determining module, and the second configuration module may each be a central processor located in the terminal device or the server device. (Central Processing Unit, CPU), Microprocessor Unit (MPU), Digital Signal Processor (DSP), or Field Programmable Gate Array (FPGA).
图4为本发明提供的一种WiFi参数配置方法实施例的流程示意图,如图4所示,步骤包括:4 is a schematic flowchart of a method for configuring a WiFi parameter according to an embodiment of the present invention. As shown in FIG. 4, the steps include:
步骤401:在第一WiFi设备的WiFi应用程序未启动时,将第一WiFi设备的WiFi参数配置方式设置为自动配置方式。Step 401: Set the WiFi parameter configuration mode of the first WiFi device to an automatic configuration mode when the WiFi application of the first WiFi device is not activated.
本步骤可以为,在第一WiFi设备出厂时,将第一WiFi设备的WiFi参数配置方式设置为自动配置方式。或者,在第一WiFi设备被使用过程中,其WiFi应用程序被启动之前,用户将第一WiFi设备的WiFi参数配置方式设置为自动配置方式。In this step, the WiFi parameter configuration mode of the first WiFi device is set to the automatic configuration mode when the first WiFi device is shipped from the factory. Alternatively, before the WiFi application is started, the user sets the WiFi parameter configuration mode of the first WiFi device to the automatic configuration mode.
步骤402:在预设时间段内,监听并接收第一WiFi设备周围环境的WiFi热点的携带有国家码的报文。Step 402: Monitor and receive the message carrying the country code of the WiFi hotspot in the environment surrounding the first WiFi device in the preset time period.
需说明的是,所述预设时间段可以根据实际需求进行设置,如,若在通常情况下,1秒左右即可获取到第一WiFi设备周围环境的所有WiFi热点的携带有国家码的报文,因此为了获取到第一WiFi设备周围环境的所有 WiFi热点的携带有国家码的报文,即可将预设时间段设置为1秒。所述预设时间段的起始时间为,第一WiFi设备接收到用于将第一WiFi设备的WiFi参数配置方式设置为自动配置方式的设置指令的时间。It should be noted that the preset time period may be set according to actual requirements. For example, if the normal situation is about 1 second, all the WiFi hotspots in the environment surrounding the first WiFi device may be obtained with the national code. Text, so in order to get all the environment around the first WiFi device The WiFi hotspot carries the message with the country code, and the preset time period can be set to 1 second. The start time of the preset time period is that the first WiFi device receives the time for setting the WiFi parameter configuration mode of the first WiFi device to the setting command of the automatic configuration mode.
需说明的是,所述报文可以为基于802.11d协议的信标报文。所述报文还可以为基于802.11d协议的探测响应报文。It should be noted that the message may be a beacon message based on the 802.11d protocol. The packet may also be a probe response message based on the 802.11d protocol.
步骤403:对获取到的报文进行解析获得国家码。Step 403: Parse the obtained packet to obtain a country code.
第一WiFi设备按照802.11d协议定义的国家码字段格式,对获取到的基于802.11d协议的报文分别进行国家码解析,获得国家码。The first WiFi device performs national code parsing on the obtained 802.11d-based packet according to the country code field format defined by the 802.11d protocol, and obtains the country code.
需说明的是,在从Beacon报文中解析获得国家码后,第一WiFi设备还可以进一步从Beacon报文中解析出WiFi热点的SSID、MAC地址等信息,将SSID和MAC地址作为每条Beacon报文的标识,对应该标识记录获得的国家码。It should be noted that after the country code is obtained from the Beacon packet, the first WiFi device can further parse the SSID and MAC address of the WiFi hotspot from the Beacon packet, and use the SSID and the MAC address as each Beacon. The identifier of the message, which corresponds to the country code obtained by the record.
步骤404:从获得的国家码中确定出第一WiFi设备所在地理位置的国家码。Step 404: Determine, from the obtained country code, a country code of a geographical location where the first WiFi device is located.
第一WiFi设备从获得的国家码中确定出第一WiFi设备所在地理位置的国家码。本步骤可以包括,如图5所示,步骤501:对获得的国家码进行过滤,去掉空的、不合法的、第一WiFi设备不支持的国家码;步骤502:计算出过滤后剩余的非空的、合法的及第一WiFi设备支持的国家码中每种国家码的占比值;步骤503:判断各种国家码的占比值是否有效;在占比值无效时,即各种国家码的占比值均为零时,步骤504:判定未获得第一WiFi设备所在地理位置的国家码;步骤505:在各种国家码的占比值有效时,即各种国家码的占比值不均为零时,判定有效的占比值是否均相同;步骤506:在有效的占比值不相同时,将占比值最高的国家码作为第一WiFi设备所在地理位置的国家码;步骤507:输出第一WiFi设备所在地理位置的国家码;步骤508:在有效的占比值均相同时,如,过滤后剩余的国家码的总数目为 三个,且这三个国家码均不相同,因此计算获得的每种国家码的占比值均为33.33%,查找出各种国家码对应的WiFi参数,判断各种国家码对应的WiFi参数是否相同;步骤509:确定各种国家码对应的WiFi参数相同时,从各种国家码中随机选择一个国家码作为第一WiFi设备所在地理位置的国家码;输出第一WiFi设备所在地理位置的国家码;在各种国家码对应的WiFi参数不相同时,判定未获得第一WiFi设备所在地理位置的国家码;其中,在计算上述每种国家码的占比值时,可以对应SSID和MAC地址,对非空的、合法的及第一WiFi设备支持的国家码的总数目进行计数。The first WiFi device determines, from the obtained country code, a country code of a geographical location where the first WiFi device is located. This step may include, as shown in FIG. 5, step 501: filtering the obtained country code, and removing the empty, illegal, country code that is not supported by the first WiFi device; Step 502: calculating the remaining non-filtered code Empty, legal, and the proportion of each country code in the country code supported by the first WiFi device; step 503: determining whether the proportion of the various country codes is valid; when the ratio is invalid, that is, the account of various country codes When the ratio is zero, step 504: determining that the country code of the geographical location of the first WiFi device is not obtained; step 505: when the ratio of the values of the various country codes is valid, that is, when the ratio of the values of the various country codes is not zero And determining whether the valid ratios are all the same; step 506: when the valid ratios are different, the country code with the highest ratio is used as the country code of the geographic location of the first WiFi device; Step 507: output the location of the first WiFi device The country code of the location; step 508: when the valid ratios are the same, for example, the total number of country codes remaining after filtering is Three, and the codes of the three countries are different, so the calculated value of each country code is 33.33%, find the WiFi parameters corresponding to various country codes, and determine whether the WiFi parameters corresponding to the various country codes are Step 509: When it is determined that the WiFi parameters corresponding to the various country codes are the same, a country code is randomly selected from the various country codes as the country code of the geographical location of the first WiFi device; and the country where the first WiFi device is located is output. If the WiFi parameters corresponding to the various country codes are different, determining that the country code of the geographical location of the first WiFi device is not obtained; wherein, when calculating the ratio of each country code, the SSID and the MAC address may be corresponding. Count the total number of country codes supported by non-empty, legitimate, and first WiFi devices.
步骤405:在未获得第一WiFi设备所在地理位置的国家码时,判断第一WiFi设备是否具有GPS功能。Step 405: When the country code of the geographical location of the first WiFi device is not obtained, determine whether the first WiFi device has a GPS function.
需说明的是,所述未获得第一WiFi设备所在地理位置的国家码时,如,在第一WiFi设备未获取到携带有国家码的报文时,或在第一WiFi设备从获得的国家码中未确定出第一WiFi设备所在地理位置的国家码时。It should be noted that, when the country code of the geographical location of the first WiFi device is not obtained, for example, when the first WiFi device does not obtain the message carrying the country code, or the country where the first WiFi device is obtained When the country code of the geographical location of the first WiFi device is not determined in the code.
步骤406:在第一WiFi设备具有GPS功能时,利用GPS功能获取到的地理位置信息确定出第一WiFi设备所在地理位置的国家码。Step 406: When the first WiFi device has the GPS function, the geographic location information obtained by using the GPS function determines the country code of the geographic location where the first WiFi device is located.
在第一WiFi设备具有GPS功能时,第一WiFi设备利用GPS功能获取到第一WiFi设备当前所在的地理位置信息;第一WiFi设备判定出该地理位置信息所对应的国家信息;第一WiFi设备查找出与该国家信息对应的国家码;第一WiFi设备将该国家码作为第一WiFi设备所在地理位置的国家码。When the first WiFi device has a GPS function, the first WiFi device acquires the geographical location information of the first WiFi device by using the GPS function; the first WiFi device determines the country information corresponding to the geographical location information; the first WiFi device Finding a country code corresponding to the country information; the first WiFi device uses the country code as the country code of the geographic location where the first WiFi device is located.
步骤407:在第一WiFi设备不具有GPS功能时,根据第一WiFi设备内置网页界面的语言设置信息确定出第一WiFi设备所在地理位置的国家码。Step 407: When the first WiFi device does not have the GPS function, determine the country code of the geographic location where the first WiFi device is located according to the language setting information of the built-in web interface of the first WiFi device.
步骤408:在获得第一WiFi设备所在地理位置的国家码时,依据第一WiFi设备所在地理位置的国家码确定出WiFi参数。 Step 408: When obtaining the country code of the geographic location where the first WiFi device is located, determining the WiFi parameter according to the country code of the geographic location of the first WiFi device.
在第一WiFi设备从获得的国家码中,确定出了第一WiFi设备所在地理位置的国家码时,第一WiFi设备即可依据第一WiFi设备所在地理位置的国家码确定出WiFi参数。本步骤可以包括,在获得第一WiFi设备所在地理位置的国家码时,第一WiFi设备读取预存的参数映射表,所述参数映射表对应国家码记录了WiFi参数;第一WiFi设备从参数映射表中查找出与第一WiFi设备所在地理位置的国家码相对应的WiFi参数。When the first WiFi device determines the country code of the geographical location of the first WiFi device from the obtained country code, the first WiFi device may determine the WiFi parameter according to the country code of the geographical location of the first WiFi device. The step may include: when obtaining the country code of the geographic location of the first WiFi device, the first WiFi device reads the pre-stored parameter mapping table, where the parameter mapping table records the WiFi parameter corresponding to the country code; the first WiFi device slave parameter The WiFi parameter corresponding to the country code of the geographical location of the first WiFi device is found in the mapping table.
需说明的是,所述WiFi参数包括频段、信道范围及发射功率等参数。It should be noted that the WiFi parameters include parameters such as a frequency band, a channel range, and a transmission power.
步骤409:根据WiFi参数对第一WiFi设备进行WiFi参数配置。Step 409: Perform WiFi parameter configuration on the first WiFi device according to the WiFi parameter.
第一WiFi设备根据确定出的WiFi参数,对第一WiFi设备进行WiFi参数配置。如此,能实现自动配置WiFi参数,防止WiFi设备工作在非法频段上,便于用户使用,提高用户体验度。The first WiFi device performs WiFi parameter configuration on the first WiFi device according to the determined WiFi parameter. In this way, the WiFi parameter can be automatically configured to prevent the WiFi device from working in the illegal frequency band, which is convenient for the user to use and improves the user experience.
需要说明的是,本发明实施例中,如果以软件功能模块的形式实现上述WiFi参数配置方法,并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明实施例的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机、服务器、或者网络设备等)执行本发明各个实施例所述方法的全部或部分。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read Only Memory,ROM)、磁碟或者光盘等各种可以存储程序代码的介质。这样,本发明实施例不限制于任何特定的硬件和软件结合。It should be noted that, in the embodiment of the present invention, if the WiFi parameter configuration method is implemented in the form of a software function module and is sold or used as a standalone product, it may also be stored in a computer readable storage medium. Based on such understanding, the technical solution of the embodiments of the present invention may be embodied in the form of a software product in essence or in the form of a software product stored in a storage medium, including a plurality of instructions. A computer device (which may be a personal computer, server, or network device, etc.) is caused to perform all or part of the methods described in various embodiments of the present invention. The foregoing storage medium includes various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read only memory (ROM), a magnetic disk, or an optical disk. Thus, embodiments of the invention are not limited to any specific combination of hardware and software.
相应地,本发明实施例还提供一种计算机存储介质,该计算机存储介质中存储有计算机程序,该计算机程序用于执行本发明实施例的上述WiFi参数配置方法。Correspondingly, the embodiment of the present invention further provides a computer storage medium, where the computer storage medium stores a computer program, and the computer program is used to execute the WiFi parameter configuration method of the embodiment of the present invention.
以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于 本领域的技术人员来说,本发明可以有各种更改和变化,本发明的保护范围以权利要求为准。The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. A person skilled in the art can make various changes and modifications to the invention, and the scope of the invention is defined by the claims.
工业实用性Industrial applicability
本发明实施例中获取第一WiFi设备周围环境的WiFi热点的携带有国家码的报文;对获取到的报文进行解析获得国家码;根据获得的所述国家码确定出WiFi参数根据WiFi参数对第一WiFi设备进行WiFi参数配置。如此,能实现自动配置WiFi参数,防止WiFi设备工作在非法频段上,便于用户使用,提高用户体验度。 In the embodiment of the present invention, the packet carrying the country code of the WiFi hotspot in the environment surrounding the first WiFi device is obtained; the obtained packet is parsed to obtain the country code; and the WiFi parameter is determined according to the obtained country code according to the WiFi parameter. The WiFi parameter configuration is performed on the first WiFi device. In this way, the WiFi parameter can be automatically configured to prevent the WiFi device from working in the illegal frequency band, which is convenient for the user to use and improves the user experience.

Claims (13)

  1. 一种无线保真WiFi参数配置方法,所述方法包括:A method for configuring a wireless fidelity WiFi parameter, the method comprising:
    获取第一WiFi设备周围的WiFi热点的携带有国家码的报文;Obtaining a packet carrying a country code of the WiFi hotspot around the first WiFi device;
    对获取到的所述报文进行解析获得所述国家码;Parsing the obtained packet to obtain the country code;
    根据获得的所述国家码确定出WiFi参数;Determining a WiFi parameter according to the obtained country code;
    根据所述WiFi参数对所述第一WiFi设备进行WiFi参数配置。Performing WiFi parameter configuration on the first WiFi device according to the WiFi parameter.
  2. 根据权利要求1所述的方法,其中,所述根据获得的所述国家码确定出WiFi参数,包括:The method of claim 1, wherein the determining the WiFi parameter according to the obtained country code comprises:
    从获得的所述国家码中确定出所述第一WiFi设备所在地理位置的国家码;Determining, from the obtained country code, a country code of a geographical location where the first WiFi device is located;
    依据所述第一WiFi设备所在地理位置的国家码确定出WiFi参数。Determining a WiFi parameter according to a country code of a geographic location where the first WiFi device is located.
  3. 根据权利要求2所述的方法,其中,所述从获得的所述国家码中确定出所述第一WiFi设备所在地理位置的国家码,包括:The method according to claim 2, wherein the determining the country code of the geographical location of the first WiFi device from the obtained country code comprises:
    计算出获得的所述国家码中每种所述国家码的占比值;Calculating a ratio of each of the country codes in the obtained country code;
    判断各种所述国家码的占比值是否相同;Determining whether the proportions of the various country codes are the same;
    在各种所述国家码的占比值不相同时,将占比值最高的所述国家码确定为所述第一WiFi设备所在地理位置的国家码;When the ratios of the plurality of country codes are different, determining the country code with the highest ratio as the country code of the geographical location of the first WiFi device;
    在各种所述国家码的占比值相同时,根据各种所述国家码对应的WiFi参数选择出所述第一WiFi设备所在地理位置的国家码。When the ratios of the various country codes are the same, the country code of the geographic location where the first WiFi device is located is selected according to the WiFi parameters corresponding to the various country codes.
  4. 根据权利要求3所述的方法,其中,所述根据各种所述国家码对应的WiFi参数选择出所述第一WiFi设备所在地理位置的国家码,包括:The method according to claim 3, wherein the selecting the country code of the geographical location of the first WiFi device according to the WiFi parameter corresponding to each of the country codes comprises:
    查找出各种所述国家码对应的WiFi参数;Finding the WiFi parameters corresponding to the various country codes;
    确定各种所述国家码对应的WiFi参数相同时,从各种所述国家码中随机选择一个所述国家码作为所述第一WiFi设备所在地理位置的国家码。When it is determined that the WiFi parameters corresponding to the various country codes are the same, one country code is randomly selected from the various country codes as the country code of the geographic location where the first WiFi device is located.
  5. 根据权利要求2所述的方法,其中,所述依据所述第一WiFi设备 所在地理位置的国家码确定出WiFi参数,包括:The method of claim 2, wherein said first WiFi device is The country code of the geographic location determines the WiFi parameters, including:
    读取预存的参数映射表,所述参数映射表对应所述国家码记录了WiFi参数;Reading a pre-stored parameter mapping table, where the parameter mapping table records a WiFi parameter corresponding to the country code;
    从所述参数映射表中查找出与所述第一WiFi设备所在地理位置的国家码相对应的WiFi参数。Finding, from the parameter mapping table, a WiFi parameter corresponding to a country code of a geographic location where the first WiFi device is located.
  6. 根据权利要求2所述的方法,其中,所述方法还包括:The method of claim 2, wherein the method further comprises:
    在未获得所述第一WiFi设备所在地理位置的国家码时,根据所述第一WiFi设备当前所在的地理位置信息确定出所述第一WiFi设备所在地理位置的国家码;或者,When the country code of the geographic location of the first WiFi device is not obtained, the country code of the geographic location where the first WiFi device is located is determined according to the geographic location information of the first WiFi device; or
    在未获得所述第一WiFi设备所在地理位置的国家码时,根据所述第一WiFi设备的语言设置信息确定出所述第一WiFi设备所在地理位置的国家码;或者,When the country code of the geographic location of the first WiFi device is not obtained, determining the country code of the geographic location where the first WiFi device is located according to the language setting information of the first WiFi device; or
    在未获得所述第一WiFi设备所在地理位置的国家码时,将所述第一WiFi设备的默认国家码作为所述第一WiFi设备所在地理位置的国家码。When the country code of the geographic location of the first WiFi device is not obtained, the default country code of the first WiFi device is used as the country code of the geographic location where the first WiFi device is located.
  7. 根据权利要求1所述的方法,其中,所述方法还包括:The method of claim 1 wherein the method further comprises:
    根据获得的所述国家码对所述第一WiFi设备进行国家码配置。Performing country code configuration on the first WiFi device according to the obtained country code.
  8. 一种无线保真WiFi参数配置装置,所述装置包括:A wireless fidelity WiFi parameter configuration device, the device comprising:
    获取模块,配置为获取第一WiFi设备周围环境的WiFi热点的携带有国家码的报文;Obtaining a module, configured to obtain a packet carrying a country code of a WiFi hotspot in a surrounding environment of the first WiFi device;
    解析模块,配置为对获取到的所述报文进行解析获得所述国家码;The parsing module is configured to parse the obtained packet to obtain the country code;
    第一确定模块,配置为根据获得的所述国家码确定出WiFi参数;a first determining module, configured to determine a WiFi parameter according to the obtained country code;
    第一配置模块,配置为根据所述WiFi参数对所述第一WiFi设备进行WiFi参数配置。The first configuration module is configured to perform WiFi parameter configuration on the first WiFi device according to the WiFi parameter.
  9. 根据权利要求8所述的装置,其中,所述第一确定模块,配置为从获得的所述国家码中确定出所述第一WiFi设备所在地理位置的国家码;依 据所述第一WiFi设备所在地理位置的国家码确定出WiFi参数。The device according to claim 8, wherein the first determining module is configured to determine, from the obtained country code, a country code of a geographic location where the first WiFi device is located; The WiFi parameter is determined according to the country code of the geographical location of the first WiFi device.
  10. 根据权利要求9所述的装置,其中,所述第一确定模块,还配置为计算出获得的所述国家码中每种所述国家码的占比值;判断各种所述国家码的占比值是否相同;在各种所述国家码的占比值不相同时,将占比值最高的所述国家码确定为所述第一WiFi设备所在地理位置的国家码;在各种所述国家码的占比值相同时,根据各种所述国家码对应的WiFi参数选择出所述第一WiFi设备所在地理位置的国家码。The apparatus according to claim 9, wherein the first determining module is further configured to calculate a percentage value of each of the country codes in the obtained country code; and determine a ratio of each of the country codes Whether the same is true; when the ratios of the various country codes are different, the country code having the highest ratio is determined as the country code of the geographical location of the first WiFi device; When the ratio is the same, the country code of the geographic location where the first WiFi device is located is selected according to the WiFi parameters corresponding to the various country codes.
  11. 根据权利要求9所述的装置,其中,所述装置还包括:The apparatus of claim 9 wherein said apparatus further comprises:
    第二确定模块,配置为在未获得所述第一WiFi设备所在地理位置的国家码时,根据所述第一WiFi设备当前所在的地理位置信息确定出所述第一WiFi设备所在地理位置的国家码;或者,在未获得所述第一WiFi设备所在地理位置的国家码时,根据所述第一WiFi设备的语言设置信息确定出所述第一WiFi设备所在地理位置的国家码;或者,在未获得所述第一WiFi设备所在地理位置的国家码时,将所述第一WiFi设备的默认国家码作为所述第一WiFi设备所在地理位置的国家码。a second determining module, configured to determine, according to the geographic location information of the first WiFi device, the country where the first WiFi device is located, when the country code of the first WiFi device is not obtained And determining, according to the language setting information of the first WiFi device, a country code of a geographical location where the first WiFi device is located; or When the country code of the geographic location of the first WiFi device is not obtained, the default country code of the first WiFi device is used as the country code of the geographic location of the first WiFi device.
  12. 根据权利要求8所述的装置,其中,所述装置还包括:The apparatus of claim 8 wherein said apparatus further comprises:
    第二配置模块,配置为根据获得的所述国家码对所述第一WiFi设备进行国家码配置。The second configuration module is configured to perform a country code configuration on the first WiFi device according to the obtained country code.
  13. 一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,该计算机可执行指令用于执行权利要求1至7任一项所述的WiFi参数配置方法。 A computer storage medium having stored therein computer executable instructions for performing the WiFi parameter configuration method of any one of claims 1 to 7.
PCT/CN2016/081409 2015-09-23 2016-05-09 Wireless fidelity parameter configuration method and device, and storage medium WO2016180303A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510613802.4 2015-09-23
CN201510613802.4A CN106550381A (en) 2015-09-23 2015-09-23 A kind of WiFi method for parameter configuration and device

Publications (1)

Publication Number Publication Date
WO2016180303A1 true WO2016180303A1 (en) 2016-11-17

Family

ID=57247746

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/081409 WO2016180303A1 (en) 2015-09-23 2016-05-09 Wireless fidelity parameter configuration method and device, and storage medium

Country Status (2)

Country Link
CN (1) CN106550381A (en)
WO (1) WO2016180303A1 (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109155667B (en) * 2017-10-12 2021-08-17 深圳市大疆创新科技有限公司 Wireless compliance implementation method of unmanned aerial vehicle, terminal equipment and system
CN109068346B (en) * 2018-08-27 2021-09-14 出门问问信息科技有限公司 Method and device for configuring WiFi parameters
CN109088781B (en) * 2018-10-26 2021-05-25 广东美的制冷设备有限公司 Configuration method and device of wireless radio frequency parameters and intelligent household appliance
CN111082991A (en) * 2019-12-19 2020-04-28 深圳市创维软件有限公司 Automatic adaptation method of set top box WiFi channel, server and storage medium
CN111314900B (en) * 2020-03-23 2022-08-09 Oppo广东移动通信有限公司 Wireless connection method, wireless connection device and mobile terminal
CN111901813A (en) * 2020-08-11 2020-11-06 青岛海信电子产业控股股份有限公司 Network configuration method and equipment for customer premises equipment

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101390344A (en) * 2006-04-07 2009-03-18 高通股份有限公司 Method and apparatus for operating in a wireless local area network based on information from a wireless wide area network
CN102075915A (en) * 2011-01-30 2011-05-25 中兴通讯股份有限公司 Mobile terminal and parameter setting method thereof
CN102685718A (en) * 2012-05-25 2012-09-19 华为技术有限公司 Wi-Fi configuration method and system
CN104412664A (en) * 2014-05-05 2015-03-11 华为终端有限公司 Wi-Fi network connection method, Wi-Fi controller and Wi-Fi device
US20150071268A1 (en) * 2013-09-09 2015-03-12 BlackBerry Regulatory compliance for wireless devices
CN104427507A (en) * 2013-08-29 2015-03-18 华为终端有限公司 Method for self-adaption of Wi-Fi channel range and wireless access equipment controller
CN105101341A (en) * 2014-05-09 2015-11-25 联想移动通信软件(武汉)有限公司 Terminal wireless connection method, apparatus and terminal

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101390344A (en) * 2006-04-07 2009-03-18 高通股份有限公司 Method and apparatus for operating in a wireless local area network based on information from a wireless wide area network
CN102075915A (en) * 2011-01-30 2011-05-25 中兴通讯股份有限公司 Mobile terminal and parameter setting method thereof
CN102685718A (en) * 2012-05-25 2012-09-19 华为技术有限公司 Wi-Fi configuration method and system
CN104427507A (en) * 2013-08-29 2015-03-18 华为终端有限公司 Method for self-adaption of Wi-Fi channel range and wireless access equipment controller
US20150071268A1 (en) * 2013-09-09 2015-03-12 BlackBerry Regulatory compliance for wireless devices
CN104412664A (en) * 2014-05-05 2015-03-11 华为终端有限公司 Wi-Fi network connection method, Wi-Fi controller and Wi-Fi device
CN105101341A (en) * 2014-05-09 2015-11-25 联想移动通信软件(武汉)有限公司 Terminal wireless connection method, apparatus and terminal

Also Published As

Publication number Publication date
CN106550381A (en) 2017-03-29

Similar Documents

Publication Publication Date Title
WO2016180303A1 (en) Wireless fidelity parameter configuration method and device, and storage medium
EP2979478B1 (en) Access point selection in a wireless network
EP3329724B1 (en) Techniques for broadcasting service discovery information
JP4950279B2 (en) Method and apparatus for operating in a wireless local area network based on information from a wireless wide area network
RU2742143C1 (en) Method for configuring measurement interval and corresponding apparatus, device, terminal device and system
US20150351054A1 (en) Methods, apparatus and computer programs for limiting maximum transmit power of devices
US20150264597A1 (en) Communication Method, Base Station, and User Equipment
JP6040466B2 (en) Communication control method, user equipment, network server, and system
EP3364670B1 (en) Signal strength measurement method and device
CN112087788A (en) Access network discovery and selection
US10674433B2 (en) System and method for WiFi authentication and selection
TW201119425A (en) Dynamic reconfiguration of regulation-compliance mode in cognitive radio networks
TWI539841B (en) Mobile communication devices, access networks, and methods for steering data traffic
EP3145225A1 (en) Terminal device, server device, and communication control method
CN106664625B (en) user equipment and network access method
WO2013053327A1 (en) Network selection method, mobile terminal and base station
WO2014075292A1 (en) Method, base station, user equipment and wireless fidelity access point for managing wireless resources
US10492077B2 (en) Spectrum update usage method and system, and white space device
CN108141906B (en) Mobile data sharing method and mobile terminal
CN112055372B (en) Customer premises equipment and working method thereof
US20180332526A1 (en) Optimizing MuLTEfire Network Discovery
CN108684049B (en) Parameter configuration method, device, equipment and storage medium of distributed WiFi network
WO2014086006A1 (en) Method and device for selecting cell with scalable bandwidth, and user equipment
KR101590426B1 (en) Method and a station for performing voice roaming in wireless commnucation system
JP2012235323A (en) Wireless device

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

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

Country of ref document: EP

Kind code of ref document: A1