Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present application more apparent, the embodiments of the present application will be described in further detail with reference to the accompanying drawings.
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the application. Rather, they are merely examples of apparatus and methods consistent with aspects of the application as detailed in the accompanying claims.
The terminology used in the present disclosure is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. As used in this disclosure and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any or all possible combinations of one or more of the associated listed items.
It should be understood that although the terms first, second, third, etc. may be used in this disclosure to describe various information, these information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the present disclosure. The word "if" as used herein may be interpreted as "at" or "when" or "in response to" depending on the context.
For Access Points (APs) and Stations (STAs) supporting WLAN, WLAN channels used by the APs and stations need to meet the requirements of the country or region for radio management, and the WLAN channels are the basis for normal connection of the APs and stations. CPE can be considered an AP. The CPE generally fixes the WLAN channel used by the CPE when leaving the factory according to WLAN channel regulations of the country or region of shipment, when the CPE is carried by a user to other countries or regions, the local terminal may not be able to automatically connect to the WLAN of the CPE, and the WLAN channel of the CPE needs to be manually modified to connect the terminal, so that the operation is inconvenient, and the efficiency of setting the WLAN channel is low.
The following features exist for WLAN channel setup for CPE:
(1) The WLAN channels used by the CPE must be fixed at the time of CPE production, depending on the country or region of shipment of the customized version. This can make the production process, which must match the corresponding country code or region code, and once any link in the production process is wrong, the customer cannot use the CPE immediately when the customer gets the CPE shipped.
(2) After shipment according to the preset WLAN channel, if the user carries the CPE to other countries or regions, the user needs to log in a maintenance page of the CPE to select the corresponding WLAN channel when providing WLAN service for other terminals. At this time, if the user does not know about the relevant specifications of the WLAN channel, the modification needs to be tried repeatedly, resulting in a poor user experience.
According to the method provided by the embodiment of the application, the CPE can perform primary calibration of the area where the CPE is located according to the SIM card information and by combining the country/region where the local operator network is located, and then perform secondary calibration of the area where the CPE is located by synchronizing the positioning information of the base station, so that accurate WLAN channel self-adaption is realized. The process can be automatically executed without manual participation, and the WLAN channel is not required to be fixed aiming at the country/region of shipment when the CPE is produced, so that the efficiency of setting the WLAN channel can be improved, and the accuracy of setting the WLAN channel is higher.
It should be noted that, in the embodiment of the present application, WLAN may also be understood as wireless fidelity (WIRELESS FIDELITY, wi-Fi) or WIFI.
Fig. 1 shows a schematic diagram of a WLAN system according to an exemplary embodiment of the present application. The WLAN system includes a terminal device and a CPE, or a CPE and a STA, which is not limited in the present application. The present application is described by taking a WLAN system including CPE110 and STA120 as examples.
The CPE supports access to the mobile network through the SIM card and provides WLAN services for the STA based on the access to the mobile network. CPE is understood to be a wireless device that receives mobile network signals and forwards them out as WLAN signals.
In some embodiments, the STAs may include AP STAs and non-AP STAs (non-AP STAs). It should be appreciated that the role of STA in the communication system is not absolute, e.g., in some scenarios when the handset is a non-AP STA when the handset is connected to a route, the handset acts as an AP in the case where the handset is a hotspot for other handsets.
CPE and non-AP STAs may be devices applied in the internet of things, internet of things nodes, sensors, etc. in the internet of things (Internet of Things, ioT), smart cameras in smart homes, smart remote controllers, smart water meter meters, etc., and sensors in smart cities, etc.
In some embodiments, non-AP STAs may support the 802.11be standard. The non-AP STA may also support multiple current and future WLAN standards of the 802.11 family, such as 802.11ax, 802.11ac, 802.11n, 802.11g, 802.11b, and 802.11 a. The non-AP STA may also be applied in a network environment supporting a next generation WLAN system, which is a WLAN system evolving from an 802.11ax system and can satisfy backward compatibility with the 802.11ax system, and the next generation Wi-Fi communication is any new generation Wi-Fi communication after Wi-Fi 7 based on the IEEE 802.11be specification, for example, extremely high throughput (Extremely High Throughput, EHT) communication, ultra high reliability (Ultra High Reliability, UHR) communication. For example, the non-AP STA is an EHT STA and/or a UHR STA.
In some embodiments, the CPE may be a device supporting the 802.11be system. The CPE may also be a device that supports multiple current and future WLAN standards of the 802.11 family, such as 802.11ax, 802.11ac, 802.11n, 802.11g, 802.11b, and 802.11 a. CPE can also be applied in a network environment supporting a next generation WLAN system, which is a WLAN system evolving from an 802.11ax system and can meet backward compatibility with the 802.11ax system, and next generation Wi-Fi communication is any new generation Wi-Fi communication after Wi-Fi 7 based on IEEE 802.11be specifications, for example, EHT communication, UHR communication.
In an embodiment of the present application, the STA may be a Mobile Phone (Mobile Phone), a tablet (Pad), an electronic book reader, a laptop, a desktop computer, a television, a Virtual Reality (VR) device, an augmented Reality (Augmented Reality, AR) device, a mixed Reality (MEDIATED REALITY, MR) device, an augmented Reality (XR) device, a confusing Reality (Baffle Reality, BR) device, an image Reality (CINEMATIC REALITY, CR) device, a shadow Reality (DECEIVE REALITY, DR) device, a wireless device in industrial control (Industrial Control), a set top box, a wireless device in unmanned (SELF DRIVING), a wireless device in Remote Medical (Remote Medical), a wireless device in Smart grid (SMART GRID), a wireless device in transportation security (Transportation Safety), a wireless device in Smart Home (SMART CITY) or a wireless communication Chip in Smart Home (Home), a wireless communication Chip, a System-on-Chip (ASIC), a System-on-Chip (SPECIFIC INTEGRATED, a System-on-Chip, etc. supporting WLAN/wireless fidelity (WIRELESS FIDELITY, wi-Fi) technology.
The WLAN system in the embodiment of the application can support frequency bands including but not limited to low frequency bands (2.4 GHz,5GHz and 6 GHz) and high frequency bands (45 GHz and 60 GHz). There are one or more links between the STA and the CPE. In some embodiments, the STA and CPE support multi-band communications, e.g., simultaneously on the 2.4ghz,5ghz,6ghz, and 45ghz,60ghz bands, or simultaneously on different channels of the same band (or different bands), improving communication throughput and/or reliability between devices. In some embodiments, the CPE and STA both support the IEEE 802.11 standard, but are not limited to the IEEE 802.11 standard.
Fig. 2 is a schematic diagram of a procedure for setting a WLAN channel according to an exemplary embodiment of the present application. As shown in fig. 2, in step S1, the CPE performs an adaptive WLAN channel flow after being started. In step S2, the CPE obtains a current PLMN from a first PLMN corresponding to the SIM card and a second PLMN corresponding to the mobile network accessed through the SIM card, and determines an area where the CPE is located according to the current PLMN, so as to perform first location calibration. The first PLMN is a home PLMN corresponding to the SIM card, and the second PLMN is a visited PLMN corresponding to a mobile network accessed by the wireless device through the SIM card. Optionally, in case the CPE is in a non-roaming mode, the second PLMN is acquired as the current PLMN. And under the condition that the CPE is in the roaming mode, acquiring the first PLMN or the second PLMN as the current PLMN according to the selection of the user.
In step S3, the CPE performs secondary location calibration according to the acquired location information (e.g., acquired through the accessed mobile network) in combination with the result of the primary location calibration, so as to finally determine the area of the CPE, and sets a WLAN channel used by the CPE to provide the WLAN service according to the area of the CPE, so as to start the WLAN service. Optionally, in the case that the area indicated by the positioning information is the same as the area indicated by the current PLMN, the CPE determines the area of the CPE according to the positioning information or the current PLMN. And under the condition that the area indicated by the positioning information is different from the area indicated by the current PLMN, the CPE determines the area of the CPE according to the positioning information.
Optionally, during the execution of the adaptive WLAN channel flow, the CPE correspondingly stores the first PLMN corresponding to the SIM card, the second PLMN corresponding to the accessed mobile network, and/or the positioning information, so as to set a WLAN channel for the CPE when the CPE cannot access the mobile network through the SIM card or the CPE does not insert the SIM card.
And the WLAN channel of the CPE is self-adapted according to the PLMN corresponding to the SIM card of the CPE, the PLMN corresponding to the accessed mobile network and the positioning information. In the process of self-adapting the WLAN channel, the method can be automatically executed without manual participation, so that the efficiency of setting the WLAN channel can be improved, and the accuracy of setting the WLAN channel is higher.
Fig. 3 is a flowchart illustrating a method for setting a wireless channel according to an embodiment of the present application. The method may be used with a wireless device. The method comprises the following steps:
step 302, determining the area of the wireless device according to the PLMN corresponding to the wireless device.
The wireless device has the capability to access a mobile network through an inserted SIM card and provide WLAN services based on the accessed mobile network. In some embodiments, the wireless device is referred to as a CPE.
The wireless device has a SIM card disposed therein (inserted), and the PLMN is acquired by the wireless device based on the SIM card. Optionally, the PLMN corresponding to the wireless device includes at least one of a first PLMN and a second PLMN. The first PLMN is a Home PLMN (HPLMN) corresponding to the SIM card, and the second PLMN is a visited PLMN (VISITED PLMN, VPLMN) corresponding to a mobile network accessed by the wireless device through the SIM card.
Illustratively, the home PLMN is a PLMN to which the SIM card belongs, and the mobile country code (Mobile Country Code, MCC) and mobile network code (Mobile Network Code, MNC) contained in the international mobile subscriber identity (International Mobile Subscriber Identity, IMSI) on the SIM card are consistent with the MCC and MNC on the home PLMN, which only has one for a certain SIM card. The accessing PLMN is a PLMN accessed by the CPE through the SIM card, and MCC and MNC corresponding to the accessing PLMN and MCC and MNC in the IMSI of the SIM card are the same or different. I.e. the country/region indicated by the first PLMN is the same as or different from the country/region indicated by the second PLMN.
In some embodiments, the wireless device is able to obtain the first PLMN by reading information in the SIM card. In some embodiments, the first PLMN can indicate the country/region in which the SIM card was issued. In some embodiments, after the wireless device accesses the mobile network through the SIM card, the wireless device performs information interaction with a network device in the mobile network, so as to obtain the second PLMN. The second PLMN is used to indicate the country/region in which the mobile network to which the wireless device is connected via the SIM card is located. For example, the second PLMN indicates that the mobile network to which the wireless device is connected through the SIM card belongs to country 1.
For the case where the area is determined to be located according to the first PLMN:
in some embodiments, the wireless device acquires the first PLMN, and determines the area indicated by the first PLMN as the area of the wireless device. For example, if the first PLMN corresponding to the SIM card indicates that the SIM card belongs to country 2, the wireless device determines country 2 as the area in which it is located. In some embodiments, the wireless device is also capable of determining the area of the wireless device based on the first PLMN in combination with other information.
For the case where the area is determined from the first PLMN and the second PLMN:
After the SIM card is inserted and started, the wireless device is connected with the mobile network through the SIM card.
In the case that the wireless device cannot access the mobile network through the SIM card, the wireless device determines the area indicated by the first PLMN as the area where the wireless device is located.
In the case that the wireless device accesses the mobile network through the SIM card, the wireless device acquires a current PLMN from the first PLMN and the acquired second PLMN, and determines the area of the wireless device according to the current PLMN.
Optionally, in the case that the wireless device accesses the mobile network through the SIM card and is in the non-roaming mode, the wireless device may acquire the second PLMN as the current PLMN.
In some embodiments, the wireless device determines whether to be in a roaming mode by interacting information with network devices in the mobile network. In some embodiments, the wireless device determines whether to be in roaming mode by comparing the area indicated by the first PLMN with the area indicated by the second PLMN. For example, the wireless device is in a non-roaming mode if the area indicated by the first PLMN is the same as the area indicated by the second PLMN, and in a roaming mode if the area indicated by the first PLMN is different from the area indicated by the second PLMN.
Optionally, in the case that the wireless device accesses the mobile network through the SIM card and is in the roaming mode, the wireless device may acquire the first PLMN as the current PLMN in response to the first indication, and may acquire the second PLMN as the current PLMN in response to the second indication. Wherein the first indication and the second indication are sent by the user. For example, the user issues the first indication or the second indication through a management interface of the wireless device.
The wireless device can also send out prompt information under the condition that the wireless device accesses the mobile network through the SIM card and is in a roaming mode. The prompt information is used for prompting a user to generate a first instruction or a second instruction through selection operation. Optionally, the wireless device can send out the prompt information in its corresponding management interface. Or sending the prompt information to the terminal of the user under the condition that the terminal of the user is connected with the wireless device.
For the case of determining the area according to the first PLMN, the second PLMN and the positioning information:
After determining the area of the wireless device according to the current PLMN in the above manner, the wireless device can further calibrate (determine) the area of the wireless device according to the location information of the wireless device and the current PLMN. The location information can indicate the country/region in which the wireless device is located.
In some embodiments, the location information is obtained by the wireless device over a mobile network, e.g., the location information is long term evolution location protocol (Long Term Evolution Positioning Protocol, LPP) information. In some embodiments, the positioning information is obtained by the wireless device outside of the mobile network, e.g., the positioning information is global positioning system (Global Positioning System, GPS) information obtained by satellite. The embodiment of the application does not limit the mode of acquiring the positioning information.
Optionally, the wireless device redetermines the area of the wireless device according to the positioning information or the current PLMN when the area indicated by the positioning information is the same as the area indicated by the current PLMN, and redetermines the area of the wireless device according to the positioning information when the area indicated by the positioning information is different from the area indicated by the current PLMN.
It should be noted that, the area where the wireless device is located includes a country where the wireless device is located, an area where the wireless device is located, a administrative district where the wireless device is located, and the like. The WLAN channels supported for use are the same or different for different areas, subject to local policy constraints.
Optionally, in addition to determining the area of the wireless device according to the first PLMN, determining the area of the wireless device according to the first PLMN and the second PLMN, and determining the area of the wireless device according to the first PLMN, the second PLMN, and the positioning information, the wireless device may also determine the area of the wireless device according to the second PLMN alone, determine the area of the wireless device according to the positioning information alone, determine the area of the wireless device according to the second PLMN and the positioning information, or determine the area of the wireless device according to the first PLMN and the positioning information.
Step 304, setting WLAN channels of the wireless device according to the area of the wireless device.
The wireless device is internally provided with corresponding relations between different areas and WLAN channels supported by the areas, and the wireless device can determine the WLAN channels which can be used in the area according to the corresponding relations and the determined area, so that the WLAN channels can be used for providing WLAN services.
In some embodiments, the correspondence is established by a developer based on usage specifications for WLAN channels in different countries/regions and integrated in the wireless device. For example, the area where the wireless device determines is country 1, and country 1 specifies that the wireless device can use channel 1-channel 11, in which case the wireless device can determine that the currently available WLAN channels include channel 1-channel 11 according to the correspondence relationship, so that WLAN services can be provided outside using channel 1-channel 11.
Optionally, the wireless device stores information for determining the area in which the wireless device is located in determining the area. For example, the first PLMN may be stored if the first PLMN determines the area in which the first PLMN is located. And determining the area through the second PLMN, and storing the second PLMN. And determining the area by the first PLMN and the positioning information, and storing the first PLMN and the positioning information. And determining the area by the second PLMN and the positioning information, and storing the second PLMN and the positioning information. And determining the area by the positioning information, and storing the positioning information.
And the information stored by the wireless device is used for determining the area of the wireless device according to the stored information under the condition that the wireless device is not inserted with the SIM card. Or in the case that the wireless device inserts the SIM card but cannot access the mobile network, the wireless device determines the area according to the stored information. In determining the area of the wireless device according to the above information, the user may select the information to be used or select the information to be used according to a preset rule.
For example, in the case where the wireless device is not plugged into a SIM card, the wireless device may determine its area based on the stored location information or the first PLMN. Under the condition that the wireless device is inserted with the SIM card but cannot be connected with the mobile network, the wireless device can determine the area according to the stored second PLMN or the PLMN corresponding to the currently inserted SIM card.
In some embodiments, the wireless device performs the above steps after power-up, thereby setting the WLAN channel that it is currently available for use. In some embodiments, the wireless device performs the above steps when it is powered on and receives an instruction from the user to initiate channel adaptation, thereby setting the WLAN channel that it can currently use.
In summary, the method provided in this embodiment adapts to the WLAN channel of the wireless device through the PLMN acquired according to the SIM card of the wireless device. In the process of self-adapting the WLAN channel, the method can be automatically executed without manual participation, so that the efficiency of setting the WLAN channel can be improved, and the accuracy of setting the WLAN channel is higher. And, the process of adapting the WLAN channel may rely solely on the SIM card without relying on the wireless device to access the mobile network.
Fig. 4 is a flowchart illustrating a method for setting a wireless channel according to an embodiment of the present application. The method may be used with a wireless device. The method comprises the following steps:
Step 402, acquiring a current PLMN from a first PLMN and a second PLMN under the condition that the wireless device accesses a mobile network through a SIM card.
The wireless device has the capability to access a mobile network through an inserted SIM card and provide WLAN services based on the accessed mobile network. In some embodiments, the wireless device is referred to as a CPE. The wireless device is provided with a SIM card, and the first PLMN is a home PLMN corresponding to the SIM card. The wireless device can obtain the first PLMN by reading information in the SIM card. In some embodiments, the first PLMN can indicate the country/region in which the SIM card was issued.
After the SIM card is inserted and started, the wireless device is connected with the mobile network through the SIM card. The second PLMN is a visited PLMN corresponding to the mobile network. The second PLMN is used to indicate the country/region in which the mobile network to which the wireless device is connected via the SIM card is located. In some embodiments, after the wireless device accesses the mobile network through the SIM card, the wireless device performs information interaction with a network device in the mobile network, so as to obtain the second PLMN. The second PLMN is used to indicate the country/region in which the mobile network to which the wireless device is connected via the SIM card is located.
In some embodiments, in the case where the wireless device accesses the mobile network through the SIM card and is in the non-roaming mode, the wireless device may acquire the second PLMN as the current PLMN.
In some embodiments, the wireless device determines whether to be in roaming mode by comparing the area indicated by the first PLMN with the area indicated by the second PLMN.
Optionally, in the case of acquiring the second PLMN as the current PLMN, the wireless device may save the second PLMN and clear the saved first PLMN. Wherein the second PLMN is configured to set a WLAN channel if the wireless device is not plugged into the SIM card. I.e. in case the subsequent wireless device does not insert a SIM card for channel adaptation, the wireless device determines its area to set up a WLAN channel according to the stored second PLMN.
In some embodiments, when the wireless device accesses the mobile network through the SIM card and is in the roaming mode, the wireless device may acquire the first PLMN as a current PLMN in response to the first indication, and may acquire the second PLMN as a current PLMN in response to the second indication. Wherein the first indication and the second indication are sent by the user.
Optionally, when the wireless device accesses the mobile network through the SIM card and is in the roaming mode, the wireless device may also send out a prompt message. The prompt information is used for prompting a user to generate a first instruction or a second instruction through selection operation. Optionally, the wireless device can send out the prompt information in its corresponding management interface. Or sending the prompt information to the terminal of the user under the condition that the terminal of the user is connected with the wireless device.
The wireless device stores a second PLMN and clears the stored first PLMN when the second PLMN is obtained as a current PLMN, wherein the second PLMN is used for setting a wireless channel when the wireless device does not insert a SIM card, and the wireless device stores the first PLMN and clears the stored second PLMN when the first PLMN is obtained as a current PLMN, wherein the first PLMN is used for setting a WLAN channel when the wireless device does not insert the SIM card. That is, in the case that the subsequent wireless device does not insert the SIM card for channel adaptation, the wireless device determines the area where the wireless device is located according to the stored first PLMN or second PLMN to set the WLAN channel.
Optionally, the wireless device is further configured to store a fourth PLMN, where the fourth PLMN is a home PLMN corresponding to a historical SIM card of the wireless device. Namely, the fourth PLMN is a home PLMN corresponding to the history SIM card inserted in the wireless device when the wireless device performs the history channel adaptation before performing the channel adaptation. The historical SIM card may be the same as or different from the SIM card currently inserted by the wireless device. The wireless device may store the fourth PLMN corresponding to the historical SIM card during the historical channel adaptation, for example, refer to the above case of storing the first PLMN but not storing the second PLMN. Or the fourth PLMN corresponding to the history SIM card may not be stored, for example, refer to the above case of storing the second PLMN but not storing the first PLMN.
And under the condition that the wireless device does not store the fourth PLMN, the wireless device stores the first PLMN after identifying the first PLMN corresponding to the SIM card. After the wireless device identifies the first PLMN corresponding to the SIM card, the wireless device may keep storing the fourth PLMN or store the first PLMN when determining that the fourth PLMN stored by the wireless device is the same as the first PLMN. After the wireless device identifies the first PLMN corresponding to the SIM card, the wireless device stores the first PLMN to replace the fourth PLMN under the condition that the stored fourth PLMN is different from the first PLMN. It can be seen that the wireless device will at most save the PLMN corresponding to the last inserted SIM card.
Optionally, a third PLMN is stored in the wireless device, where the third PLMN is a visited PLMN corresponding to the historical access mobile network of the wireless device. That is, when the third PLMN is the visited PLMN corresponding to the history access mobile network accessed by the wireless device when the wireless device performs the history channel adaptation performed before the channel adaptation. For example, refer to the case of storing the second PLMN as described above.
And under the condition that the wireless device performs channel self-adaption currently and accesses the mobile network through the SIM card, the wireless device acquires the second PLMN. In the event that the stored third PLMN is determined to be different from the second PLMN, the wireless device clears the stored third PLMN. In the event that the third PLMN is determined to be the same as the second PLMN, the wireless device may remain stored with the third PLMN or with the second PLMN. It can be seen that the wireless device will at most maintain the PLMN corresponding to the last connected mobile network.
Step 404, determining the area of the wireless device according to the current PLMN.
After the wireless device acquires the current PLMN, the country/region indicated by the current PLMN can be determined, so as to determine the area of the wireless device.
Step 406, calibrating the area of the wireless device according to the positioning information of the wireless device.
The location information can indicate the country/region in which the wireless device is located. In some embodiments, the location information is obtained by the wireless device over a mobile network, e.g., the location information is LPP information. In some embodiments, the positioning information is obtained by the wireless device through a means other than a mobile network, for example, the positioning information is GPS information obtained through satellites. The embodiment of the application does not limit the mode of acquiring the positioning information.
And when the area indicated by the positioning information is different from the area indicated by the current PLMN, the wireless device can redetermine the area of the wireless device according to the positioning information.
It should be noted that, the area where the wireless device is located includes a country where the wireless device is located, an area where the wireless device is located, a administrative district where the wireless device is located, and the like. The WLAN channels supported for use are the same or different for different areas.
In step 408, in case the wireless device cannot access the mobile network through the SIM card, the area indicated by the first PLMN is determined as the area of the wireless device.
Optionally, a third PLMN is stored in the wireless device, where the third PLMN is a visited PLMN corresponding to the historical access mobile network of the wireless device. That is, when the third PLMN is the visited PLMN corresponding to the history access mobile network accessed by the wireless device when the wireless device performs the history channel adaptation performed before the channel adaptation. For example, refer to the case of storing the second PLMN as described above. When the wireless device stores the third PLMN and cannot access the mobile network through the SIM card, the wireless device further stores the first PLMN and clears the third PLMN during determining the area according to the first PLMN.
Step 410, setting the WLAN channel of the wireless device according to the area of the wireless device.
The wireless device is internally provided with corresponding relations between different areas and WLAN channels supported by the areas, and the wireless device can determine the WLAN channels which can be used in the area according to the corresponding relations and the determined area, so that the WLAN channels can be used for providing WLAN services. In some embodiments, the correspondence is established by a developer based on usage specifications for WLAN channels in different countries/regions and integrated in the wireless device.
In some embodiments, the wireless device performs the above steps after power-up, thereby setting the WLAN channel that it is currently available for use. In some embodiments, the wireless device performs the above steps when it is powered on and receives an instruction from the user to initiate channel adaptation, thereby setting the WLAN channel that it can currently use.
In summary, the method provided in this embodiment adapts to the WLAN channel of the wireless device through the PLMN acquired according to the SIM card of the wireless device. In the process of self-adapting the WLAN channel, the method can be automatically executed without manual participation, so that the efficiency of setting the WLAN channel can be improved, and the accuracy of setting the WLAN channel is higher. And, the process of adapting the WLAN channel may rely solely on the SIM card without relying on the wireless device to access the mobile network.
In addition, by dynamically comparing the PLMN of the SIM card, the PLMN of the network operator and the base station positioning information, the wireless device can be ensured to always adopt a WLAN channel suitable for a local environment, and the reliability of the production process can be improved. The method and the device can provide the most automatic and optimal WLAN access experience for users, and can also avoid the problem that the produced wireless equipment cannot be put into use due to information transfer in the production process or human factors.
In a specific example, fig. 5 is a schematic diagram illustrating a procedure for setting a WLAN channel according to an exemplary embodiment of the present application. As shown in figure 5 of the drawings,
In step A1, the user inserts the SIM card and starts the adaptive Wi-Fi channel flow after the CPE is powered on, and at this time, the Wi-Fi function is in a turned-off state. Wherein the CPE has built-in configuration items (Wi-Fi channels available in different countries/regions) and supports LPP.
In step A2, the CPE determines whether a PLMN corresponding to the historical SIM card is currently stored.
In step A3, if it is determined that the PLMN corresponding to the history SIM card is not stored, the CPE reads the PLMN in the currently inserted SIM card and stores the PLMN.
In step A4, if the CPE determines that the PLMN corresponding to the historical SIM card is stored currently, it will compare whether the stored PLMN corresponding to the historical SIM card is the same as the PLMN corresponding to the currently inserted SIM card. If so, step A6 is entered.
In step A5, if the PLMN corresponding to the historical SIM card stored in the CPE is not the same as the PLMN corresponding to the currently inserted SIM card, the CPE uses the PLMN corresponding to the currently inserted SIM card to replace the PLMN corresponding to the historical SIM card stored in the CPE.
In step A6, the CPE determines whether the mobile network is successfully accessed. The standard of successful access to the mobile network is that the CPE establishes connection with the base station and the core network in the mobile network, and the dialing success is required to be satisfied, that is, the terminal device hung under the CPE can normally access the network.
In steps A7 and A8, if the CPE access is unsuccessful, setting a Wi-Fi channel according to the PLMN corresponding to the currently inserted SIM card, deleting the stored information (e.g., PLMN acquired through the mobile network with history access) for setting the Wi-Fi channel, and starting Wi-Fi. And then, continuously judging the network state until the network is successfully accessed, and switching Wi-Fi channels according to the information acquired subsequently.
In step A9, after the CPE is successfully accessed, the PLMN corresponding to the mobile network that is currently accessed is read, and the PLMN corresponding to the mobile network that is currently accessed and LPP information issued by the base station are stored.
In step a10, the CPE determines whether the PLMN corresponding to the mobile network accessed at this time is consistent with the PLMN stored in the mobile network based on the history access.
In step a11, if the PLMNs are inconsistent, deleting the PLMNs acquired from the CPE according to the history access mobile network, and storing the PLMNs corresponding to the currently accessed mobile network.
In step a12, if the roaming network judgment is consistent, it is judged whether the CPE is currently in the roaming mode.
In step a13, if the CPE is not currently a roaming network, the PLMN corresponding to the mobile network currently accessed is saved for Wi-Fi channel adaptation at this time, and the PLMN corresponding to the SIM card currently inserted is deleted, so as to ensure that only one PLMN information exists.
In step a14, the CPE completes the first country or region information calibration according to the PLMN corresponding to the mobile network currently accessed, and records the first result.
In step a15, if the CPE is currently a roaming network, the user is prompted whether Wi-Fi channel adaptation is to be turned on.
In step a16, the CPE receives a selection that the user initiates Wi-Fi adaptation for the roaming network. The user selects consent, and the process proceeds to step a13.
In step a17, the CPE saves the PLMN corresponding to the currently inserted SIM card for the current channel adaptation, and clears the PLMN corresponding to the already saved mobile network, so as to ensure that only one PLMN information exists.
In step a18, the CPE completes the first country or region information calibration according to the PLMN corresponding to the currently inserted SIM card, and records the first result.
In some embodiments, after the first calibration of the country or region information is completed, the CPE may start Wi-Fi according to the calibration result and adapt to the corresponding Wi-Fi channel. In some embodiments, after the first calibration of the country or region information is completed, the CPE may continue to perform the second calibration of the country or region information, specifically, refer to steps a19 to a22 described below.
It should be noted that, with continued reference to the above steps a12 to a18, if the CPE is currently a roaming network, if the WiFi channel is set by using the roaming area corresponding to the PLMN corresponding to the mobile network to which the CPE is currently connected, this will enable other terminals in the roaming area to access the WiFi of the CPE, so that the other terminals can consume the network traffic of the SIM card user of the CPE, which may bring economic loss to the SIM card user. Under the condition that the CPE is in the roaming network, the user can freely select to set the WiFi channel according to the PLMN corresponding to the accessed mobile network or set the WiFi channel according to the PLMN corresponding to the SIM card, so that the user can avoid the possible economic loss. In addition, the foregoing selection of the user may affect the PLMN stored in the CPE, so that the CPE may also set its WiFi channel according to the stored PLMN when the SIM card is not inserted in the subsequent CPE.
In step a19, the CPE converts the LPP information into corresponding country or region information through the base station LPP information acquired by the access information, completes the second calibration of the country or region information, and records the result.
In step a20, the CPE compares whether the first and second country or region calibration results are consistent.
In step a21, the two country or region information calibration results are inconsistent, and the CPE deletes the stored PLMN and stores LPP information. And starting Wi-Fi according to the country and region information calibrated by the LPP information, and adapting to the corresponding Wi-Fi channel.
In step a22, the two country or region information calibration results are consistent, and the CPE will save the acquired PLMN and LPP information. And starting Wi-Fi according to the calibrated country and region information, and adapting to the corresponding Wi-Fi channel.
The method provided by the embodiment realizes that the CPE automatically selects the Wi-Fi channel according to the PLMN and the positioning information, and the CPE does not need fixed configuration and always ensures that the Wi-Fi channel is optimally selected. And the limitation of selecting Wi-Fi channels only according to PLMNs corresponding to the mobile network is avoided. And by utilizing the uniqueness of PLMN and the accuracy of base station positioning information in the third generation partnership project (Third Generation Partnership Project,3 GPP), the country or region information of CPE can be rapidly and reliably identified through the three-way constraint of PLMN corresponding to the SIM card, PLMN corresponding to the mobile network and base station positioning information, so that Wi-Fi is automatically checked and configured without fixed configuration, CPE is rapidly connected with a local STA, and user participation is not required.
It should be noted that, the above-mentioned different steps may be split and combined, thereby becoming different embodiments. The sequence of the steps of the method provided by the embodiment of the application can be properly adjusted, the steps can be correspondingly increased or decreased according to the situation, and any method which is easily conceivable to be changed by a person skilled in the art within the technical scope of the disclosure of the application is covered in the protection scope of the application, so that the description is omitted.
Fig. 6 shows a block diagram of a wireless channel setting apparatus according to an embodiment of the present application. As shown in fig. 6, the apparatus includes:
a determining module 601, configured to determine a location area of the wireless device according to a PLMN corresponding to the wireless device;
A setting module 602, configured to set a WLAN channel of the wireless device according to a region where the wireless device is located;
the wireless device is provided with a SIM card, and PLMN corresponding to the wireless device is acquired based on the SIM card.
In an alternative design, the determining module 601 is configured to:
determining the area of the wireless device according to at least one of a first PLMN and a second PLMN corresponding to the wireless device;
The first PLMN is a home PLMN corresponding to the SIM card, and the second PLMN is a visited PLMN corresponding to a mobile network accessed by the wireless device through the SIM card.
In an alternative design, the determining module 601 is configured to:
Acquiring a current PLMN from the first PLMN and the second PLMN under the condition that the wireless device accesses the mobile network through the SIM card;
And determining the area of the wireless equipment according to the current PLMN.
In an alternative design, the determining module 601 is configured to:
And under the condition that the wireless equipment accesses the mobile network through the SIM card and is in a non-roaming mode, acquiring the second PLMN as the current PLMN.
In an alternative design, the determining module 601 is configured to:
In the case where the wireless device accesses the mobile network through the SIM card, and is in a roaming mode,
In response to a first indication, acquiring the first PLMN as the current PLMN;
in response to a second indication, acquiring the second PLMN as the current PLMN;
The first indication and the second indication are generated by a user according to the prompt information for selection operation.
In an alternative design, the apparatus further comprises:
A prompting module 603, configured to send out the prompting message when the wireless device accesses the mobile network through the SIM card and is in the roaming mode;
the prompt information is used for prompting a user to generate the first indication or the second indication through selection operation.
In an alternative design, the apparatus further comprises:
a processing module 604, configured to save the first PLMN and clear the saved second PLMN when the first PLMN is acquired as the current PLMN, where the first PLMN is used for setting the WLAN channel when the wireless device is not inserted into the SIM card, and save the second PLMN and clear the saved first PLMN when the second PLMN is acquired as the current PLMN, where the second PLMN is used for setting the WLAN channel when the wireless device is not inserted into the SIM card.
In an alternative design, the apparatus further comprises:
a calibration module 605, configured to calibrate a location area of the wireless device according to the location information of the wireless device;
wherein the positioning information is LPP information acquired by the wireless device through the mobile network or GPS information acquired through a satellite.
In an alternative design, the calibration module 605 is configured to:
and under the condition that the area indicated by the positioning information is the same as the area indicated by the current PLMN, re-determining the area of the wireless equipment according to the positioning information or the current PLMN.
In an alternative design, the calibration module 605 is configured to:
And re-determining the area of the wireless equipment according to the positioning information under the condition that the area indicated by the positioning information is different from the area indicated by the current PLMN.
In an alternative design, the determining module 601 is configured to:
And determining the area indicated by the first PLMN as the area where the wireless equipment is located under the condition that the wireless equipment cannot access the mobile network through the SIM card.
In an alternative design, the wireless device stores a third PLMN, where the third PLMN is a visited PLMN corresponding to a historical access mobile network of the wireless device. The processing module 604 is further configured to save the first PLMN and clear the third PLMN.
In an alternative design, the processing module 604 is further configured to store the first PLMN if the wireless device does not store the fourth PLMN, where the fourth PLMN is a home PLMN corresponding to a historical SIM card of the wireless device, keep storing the fourth PLMN or store the first PLMN if the fourth PLMN stored by the wireless device is the same as the first PLMN, and store the first PLMN to replace the fourth PLMN if the fourth PLMN stored by the wireless device is different from the first PLMN.
In an alternative design, the wireless device stores a third PLMN, where the third PLMN is a visited PLMN corresponding to a historical access mobile network of the wireless device. The processing module 604 is further configured to clear the third PLMN if the third PLMN is not identical to the second PLMN, and keep storing the third PLMN or store the second PLMN if the third PLMN is identical to the second PLMN.
In an alternative design, the wireless device is a CPE.
It should be noted that, when the apparatus provided in the foregoing embodiment performs the functions thereof, only the division of the respective functional modules is used as an example, in practical application, the foregoing functional allocation may be performed by different functional modules according to actual needs, that is, the content structure of the device is divided into different functional modules, so as to perform all or part of the functions described above.
The specific manner in which the various modules perform the operations in the apparatus of the above embodiments have been described in detail in connection with the embodiments of the method, and will not be described in detail herein.
Fig. 7 shows a schematic structural diagram of a communication device according to an exemplary embodiment of the present application, and the communication device 70 includes a processor 701, a receiver 702, a transmitter 703, a memory 704 and a bus 705.
The processor 701 includes one or more processing cores, and the processor 701 executes various functional applications and information processing by running software programs and modules.
The receiver 702 and the transmitter 703 may be implemented as one communication component, which may be a communication chip.
The memory 704 is connected to the processor 701 through the bus 705.
The memory 704 may be used for storing at least one instruction, and the processor 701 is configured to execute the at least one instruction to implement the steps in the above-described method embodiments.
Furthermore, memory 704 may be implemented by any type or combination of volatile or nonvolatile Memory devices including, but not limited to, magnetic or optical disks, electrically erasable programmable Read-Only Memory (Erasable Programmable Read Only Memory, EEPROM), erasable programmable Read-Only Memory (Erasable Programmable Read Only Memory, EPROM), static random access Memory (Static Random Access Memory, SRAM), read-Only Memory (ROM), magnetic Memory, flash Memory, programmable Read-Only Memory (Programmable Read-Only Memory, PROM).
The processor and the transceiver in the communication device according to the embodiment of the present application may be implemented together as one communication chip, or the transceiver may be separately formed as a communication chip, for example. Wherein the transmitter in the transceiver performs the transmitting step performed by the communication device in any of the above-described methods, the receiver in the transceiver performs the receiving step performed by the communication device in any of the above-described methods, and the processor performs steps other than the transmitting and receiving steps, which are not described herein.
In an exemplary embodiment, there is also provided a computer readable storage medium having stored therein at least one instruction, at least one program, a code set, or an instruction set, which is loaded and executed by the processor to implement the wireless channel setting method provided in the above respective method embodiments.
Those skilled in the art will appreciate that in one or more of the examples described above, the functions described in the embodiments of the present application may be implemented in hardware, software, firmware, or any combination thereof. When implemented in software, these functions may be stored on or transmitted over as one or more instructions or code on a computer-readable medium. Computer-readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another. A storage media may be any available media that can be accessed by a general purpose or special purpose computer.
The foregoing description of the exemplary embodiments of the application is not intended to limit the application to the particular embodiments disclosed, but on the contrary, the intention is to cover all modifications, equivalents, and alternatives falling within the spirit and scope of the application.