Wireless channel setting method and device, communication equipment and storage medium
By automatically determining the area of the wireless device and setting the WLAN channel with the PLMN acquired by the SIM card, the problem of users manually modifying the WLAN channel in different regions is solved, and the setting efficiency and accuracy are improved.
Patent Information
- Application Number
- CN202310991158.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-07
- Publication Date
- 2025-02-14
AI Technical Summary
When a user carries a fixed WLAN channel CPE to an area outside the shipping country/region, the terminal cannot automatically connect to the WLAN service provided by the CPE, and the user needs to manually modify the WLAN channel, which has low setting efficiency.
The area it is located by determining the PLMN obtained from the SIM card of the wireless device, and automatically setting the WLAN channel that is suitable for the area.
It realizes the automated setting of the WLAN channel of wireless equipment, improves the setting efficiency and accuracy, and avoids manual intervention.
Smart Images

Figure CN119450485A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of wireless communications, and in particular to a method and apparatus for setting a wireless channel, a communication device, and a storage medium. Background Art
[0002] Customer Premises Equipment (CPE) supports access to mobile networks through Subscriber Identity Module (SIM) cards and provides wireless local area network (WLAN) services based on the accessed mobile networks. CPE can be understood as a wireless device that receives mobile network signals and forwards them as WLAN signals.
[0003] Different countries / regions may have different regulations on the use of WLAN channels. For example, country 1 stipulates that wireless devices can use channels 1 to 11, and country 2 stipulates that wireless devices can use channels 1 to 14. Accordingly, wireless devices that provide WLAN services and support access to WLAN in different countries / regions will also have fixed channels they support. CPE usually fixes the WLAN channels used to provide WLAN services when it leaves the factory based on the regulations on the use of WLAN channels in the country / region where it is shipped.
[0004] When a user carries the above CPE with a fixed WLAN channel to a region outside the country / region where the CPE is shipped, the local terminal may not be able to connect to the WLAN service provided by the CPE based on the WLAN channels it supports. In this case, the user needs to manually modify the WLAN channel of the CPE, which is inefficient in setting the WLAN channel. Summary of the invention
[0005] According to one aspect of the present application, a method for setting a wireless channel is provided, the method being applied to a wireless device, the method comprising:
[0006] Determining a location of the wireless device according to a Public Land Mobile Network (PLMN) corresponding to the wireless device;
[0007] Setting a WLAN channel of the wireless device according to the area where the wireless device is located;
[0008] The wireless device is provided with a SIM card, and the PLMN corresponding to the wireless device is obtained based on the SIM card.
[0009] According to another aspect of the present application, a device for setting a wireless channel is provided, the device comprising:
[0010] A determination module, configured to determine a location of the wireless device according to a PLMN corresponding to the wireless device;
[0011] A setting module, used for setting a WLAN channel of the wireless device according to the area where the wireless device is located;
[0012] The wireless device is provided with a SIM card, and the PLMN corresponding to the wireless device is obtained based on the SIM card.
[0013] According to another aspect of the present application, a communication device is provided, comprising: a processor; a transceiver connected to the processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to load and execute the executable instructions to implement the method for setting a wireless channel as described in the above aspects.
[0014] According to another aspect of the present application, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores executable instructions, and the executable instructions are loaded and executed by a processor to implement the method for setting a wireless channel as described in the above aspects.
[0015] The technical solution provided by this application includes at least the following beneficial effects:
[0016] The WLAN channel of the wireless device is adapted by obtaining the PLMN according to the SIM card of the wireless device. In the process of adapting the WLAN channel, no manual intervention is required and it can be performed automatically, so the efficiency of setting the WLAN channel can be improved, and the accuracy of setting the WLAN channel is high. In addition, the process of adapting the WLAN channel can only rely on the SIM card, and does not need to rely on the wireless device to access the mobile network. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0018] Figure 1 is a schematic diagram of a WLAN system provided by an exemplary embodiment of the present application;
[0019] Figure 2 is a schematic diagram of a process of setting a WLAN channel provided by an exemplary embodiment of the present application;
[0020] Figure 3is a flow chart of a method for setting a wireless channel provided by an exemplary embodiment of the present application;
[0021] Figure 4 is a flow chart of a method for setting a wireless channel provided by an exemplary embodiment of the present application;
[0022] Figure 5 is a schematic diagram of a process of setting a WLAN channel provided by an exemplary embodiment of the present application;
[0023] Figure 6 is a block diagram of a device for setting a wireless channel provided by an exemplary embodiment of the present application;
[0024] Figure 7 It is a structural diagram of a communication device provided by an exemplary embodiment of the present application. DETAILED DESCRIPTION
[0025] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.
[0026] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.
[0027] The terms used in this disclosure are for the purpose of describing specific embodiments only and are not intended to limit the disclosure. The singular forms of "a", "said" and "the" used in this disclosure and the appended claims are also intended to include plural forms unless the context clearly indicates otherwise. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.
[0028] It should be understood that although the terms first, second, third, etc. may be used in the present disclosure to describe various information, such information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of the present disclosure, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to...".
[0029] For access points (AP) and stations (STA) that support WLAN, the WLAN channels they use need to meet the requirements of the country or region for radio management. The WLAN channel is the basis for the normal connection between the two. CPE can be regarded as a kind of AP. CPE usually fixes the WLAN channel it uses at the factory according to the WLAN channel regulations of the country or region of shipment. When users carry CPE to other countries or regions, local terminals may not be able to automatically connect to the CPE's WLAN. It is necessary to manually modify the CPE's WLAN channel to enable the terminal to connect. The operation is inconvenient and the efficiency of setting the WLAN channel is low.
[0030] The WLAN channel settings of CPE have the following characteristics:
[0031] (1) When producing CPE, the WLAN channel used by the CPE must be fixed according to the country or region of shipment of the customized version. This means that the production process must match the corresponding country code or region code. Once any error occurs in any link of the production process, the shipped CPE will not be able to be used immediately by the user.
[0032] (2) After the pre-set WLAN channel is shipped, if the user takes the CPE to other countries or regions and provides WLAN services to other terminals, he needs to log in to the CPE maintenance page and select the corresponding WLAN channel. At this time, if the user himself does not understand the relevant regulations of the WLAN channel, he needs to try to modify it repeatedly, resulting in a very poor user experience.
[0033] According to the method provided in the embodiment of the present application, the CPE can perform the first calibration of the area where the CPE is located according to the SIM card information and the country / region where the local operator network is located, and then perform the second calibration of the area where the CPE is located by synchronizing the positioning information of the base station, thereby realizing accurate WLAN channel adaptation. The above process does not require manual participation and can be automatically executed. In addition, when producing the CPE, there is no need to fix the WLAN channel for the shipping country / region, so the efficiency of setting the WLAN channel can be improved, and the accuracy of setting the WLAN channel is relatively high.
[0034] It should be noted that the WLAN in the embodiment of the present application can also be understood as Wireless Fidelity (Wi-Fi) or WIFI.
[0035] Figure 1The schematic diagram of the WLAN system provided by the exemplary embodiment of the present application is shown. The WLAN system includes a terminal device and a CPE, or a CPE and a STA, which is not limited in the present application. In the present application, the WLAN system includes: CPE110 and STA120 as an example for explanation.
[0036] CPE supports access to mobile networks through SIM cards and provides WLAN services to STAs based on the accessed mobile networks. CPE can be understood as a wireless device that receives mobile network signals and forwards them as WLAN signals.
[0037] In some embodiments, STA may include AP STA and non-AP STA. It should be understood that the role of STA in the communication system is not absolute. For example, in some scenarios, when a mobile phone is connected to a router, the mobile phone is a non-AP STA. When the mobile phone is used as a hotspot for other mobile phones, the mobile phone plays the role of AP.
[0038] CPE and non-AP STA can be devices used in the Internet of Vehicles, IoT nodes and sensors in the Internet of Things (IoT), smart cameras, smart remote controls, smart water and electricity meters in smart homes, and sensors in smart cities.
[0039] In some embodiments, non-AP STA may support 802.11be standard. Non-AP STA may also support various current and future WLAN standards of the 802.11 family, such as 802.11ax, 802.11ac, 802.11n, 802.11g, 802.11b and 802.11a. Non-AP STA may also be applied to a network environment supporting the next generation WLAN system, which is a WLAN system evolved from the 802.11ax system and can meet the backward compatibility with the 802.11ax system. The next generation Wi-Fi communication is for any new generation of Wi-Fi communication after Wi-Fi 7 based on the IEEE 802.11be specification, such as: Extremely High Throughput (EHT) communication, Ultra High Reliability (UHR) communication. For example, non-AP STA is EHT STA and / or UHR STA.
[0040] In some embodiments, the CPE may be a device supporting the 802.11be standard. The CPE may also be a device supporting various current and future 802.11 family WLAN standards such as 802.11ax, 802.11ac, 802.11n, 802.11g, 802.11b and 802.11a. The CPE may also be applied to a network environment supporting the next generation WLAN system, which is a WLAN system evolved from the 802.11ax system and can meet the backward compatibility with the 802.11ax system. The next generation Wi-Fi communication is any new generation Wi-Fi communication after Wi-Fi 7 based on the IEEE 802.11be specification, such as EHT communication and UHR communication.
[0041] In the embodiment of the present application, the STA may be a mobile phone, a tablet computer, an e-book reader, a laptop computer, a desktop computer, a television, a virtual reality (VR) device, an augmented reality (AR) device, a mixed reality (MR) device, an extended reality (XR) device, a baffle reality (BR) device, a cinematic reality (CR) device, a deceived reality (DR) device, a wireless device in industrial control (Industrial Control), a set-top box, a wireless device in self-driving, an in-vehicle communication device, a wireless device in remote medical care (Remote Medical), a wireless device in smart grid (Smart Grid), a wireless device in transportation safety (Transportation Safety), a wireless device in smart city (Smart City) or a wireless device in smart home (Smart Home), a wireless communication chip, an application specific integrated circuit (Application Specific Integrated Circuit) Circuit, ASIC), System on Chip (System on Chip, SoC), etc.
[0042] The WLAN system in the embodiment of the present application may support frequency bands including but not limited to: low frequency bands (2.4GHz, 5GHz, 6GHz), high frequency bands (45GHz, 60GHz). There are one or more links between STA and CPE. In some embodiments, STA and CPE support multi-band communication, for example, communicating on 2.4GHz, 5GHz, 6GHz and 45GHz, 60GHz frequency bands at the same time, or communicating on different channels of the same frequency band (or different frequency bands) at the same time, to improve the communication throughput and / or reliability between devices. In some embodiments, both CPE and STA support the IEEE 802.11 standard, but are not limited to the IEEE 802.11 standard.
[0043] Figure 2 FIG. 1 is a schematic diagram of a process of setting a WLAN channel provided by an exemplary embodiment of the present application. Figure 2 As shown, in step S1, after the CPE is started, it executes the adaptive WLAN channel process. In step S2, the CPE obtains the current PLMN from the first PLMN corresponding to its SIM card and the second PLMN corresponding to the mobile network accessed through the SIM card, and determines the area where the CPE is located based on the current PLMN, thereby performing the first position calibration. Among them, the first PLMN is the home PLMN corresponding to the SIM card, and the second PLMN is the access PLMN corresponding to the mobile network accessed by the wireless device through the SIM card. Optionally, when the CPE is in non-roaming mode, the second PLMN will be obtained as the current PLMN. When the CPE is in roaming mode, the first PLMN or the second PLMN will be obtained as the current PLMN according to the user's choice.
[0044] In step S3, the CPE performs a secondary position calibration based on the acquired positioning information (for example, acquired through the accessed mobile network) and the result of the first position calibration, thereby finally determining the area where the CPE is located, and setting the WLAN channel used by the CPE to provide WLAN services according to the area where the CPE is located, so as to start the WLAN service. Optionally, when the area indicated by the positioning information is the same as the area indicated by the current PLMN, the CPE determines the area where the CPE is located based on the positioning information or the current PLMN. When the area indicated by the positioning information is different from the area indicated by the current PLMN, the CPE determines the area where the CPE is located based on the positioning information.
[0045] Optionally, during the execution of the above-mentioned adaptive WLAN channel process, the CPE will correspondingly save the first PLMN corresponding to the SIM card, the second PLMN corresponding to the accessed mobile network, and / or positioning information, so as to set the WLAN channel for the CPE later when the CPE cannot access the mobile network through the SIM card or the CPE is not inserted with a SIM card.
[0046] The WLAN channel of the CPE is adapted according to the PLMN corresponding to the SIM card of the CPE, the PLMN corresponding to the mobile network connected, and the positioning information. In the process of adapting the WLAN channel, no manual participation is required and it can be performed automatically, thus improving the efficiency of setting the WLAN channel and achieving higher accuracy in setting the WLAN channel.
[0047] Figure 3 A flow chart of a method for setting a wireless channel provided by an embodiment of the present application is shown. The method can be used in a wireless device. The method includes:
[0048] Step 302: Determine the area where the wireless device is located according to the PLMN corresponding to the wireless device.
[0049] The wireless device has the capability of accessing a mobile network through an inserted SIM card and providing WLAN services based on the accessed mobile network. In some embodiments, the wireless device refers to a CPE.
[0050] A SIM card is set (inserted) in the wireless device, and the PLMN is obtained 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 the home PLMN (Home PLMN, HPLMN) corresponding to the SIM card, and the second PLMN is the visited PLMN (Visited PLMN, VPLMN) corresponding to the mobile network accessed by the wireless device through the SIM card.
[0051] Exemplarily, the home PLMN is the PLMN to which the SIM card belongs. The Mobile Country Code (MCC) and Mobile Network Code (MNC) contained in the International Mobile Subscriber Identity (IMSI) on the SIM card are consistent with the MCC and MNC on the home PLMN. For a certain SIM card, there is only one home PLMN. The access PLMN is the PLMN accessed by the CPE through the SIM card. The MCC and MNC corresponding to the access PLMN are the same or different from the MCC and MNC in the IMSI of the SIM card. That is, the country / region indicated by the first PLMN is the same or different from the country / region indicated by the second PLMN.
[0052] In some embodiments, the wireless device can obtain the first PLMN by reading the information in the SIM card. In some embodiments, the first PLMN can indicate the country / region that issued the SIM card. In some embodiments, after the wireless device accesses the mobile network through the SIM card, it can obtain the second PLMN by exchanging information with the network device in the mobile network. The second PLMN is used to indicate the country / region where the mobile network accessed by the wireless device through the SIM card is located. For example, the second PLMN indicates that the mobile network accessed by the wireless device through the SIM card belongs to country 1.
[0053] For the case where the area is determined based on the first PLMN:
[0054] In some embodiments, the wireless device obtains the first PLMN and determines the area indicated by the first PLMN as the area where the wireless device is located. 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 its area. In some embodiments, the wireless device can also determine the area where the wireless device is located based on the first PLMN combined with other information.
[0055] For the case where the area is determined based on the first PLMN and the second PLMN:
[0056] After a wireless device is inserted with a SIM card and turned on, it will connect to the mobile network through the SIM card.
[0057] In the case that the wireless device cannot access the mobile network through the SIM card, the wireless device will determine the area indicated by the first PLMN as the area where the wireless device is located.
[0058] When the wireless device accesses the mobile network through the SIM card, the wireless device acquires the current PLMN from the first PLMN and the acquired second PLMN, and determines the area where the wireless device is located according to the current PLMN.
[0059] Optionally, when the wireless device accesses the mobile network through the SIM card and is in a non-roaming mode, the wireless device acquires the second PLMN as the current PLMN.
[0060] In some embodiments, the wireless device determines whether it is in roaming mode by exchanging information with a network device in a mobile network. In some embodiments, the wireless device determines whether it is in roaming mode by comparing the area indicated by the first PLMN with the area indicated by the second PLMN. For example, if the area indicated by the first PLMN is the same as the area indicated by the second PLMN, the wireless device is in non-roaming mode; if the area indicated by the first PLMN is different from the area indicated by the second PLMN, the wireless device is in roaming mode.
[0061] Optionally, when the wireless device accesses a mobile network through a SIM card and is in roaming mode, in response to a first indication, the wireless device acquires a first PLMN as a current PLMN; in response to a second indication, the wireless device acquires a second PLMN as a current PLMN. The first indication and the second indication are sent by a user. For example, the user sends the first indication or the second indication through a management interface of the wireless device.
[0062] When the wireless device accesses the mobile network through the SIM card and is in roaming mode, the wireless device can also send a prompt message. The prompt message is used to prompt the user to generate the first indication or the second indication by selecting an operation. Optionally, the wireless device can send the prompt message in its corresponding management interface. Or when the user's terminal is connected to the wireless device, the prompt message is sent to the user's terminal.
[0063] For the case where the area is determined based on the first PLMN, the second PLMN, and the positioning information:
[0064] After determining the area where the wireless device is located according to the current PLMN in the above manner, the wireless device can further calibrate (determine) the area where the wireless device is located according to the positioning information of the wireless device and the current PLMN. The positioning information can indicate the country / region where the wireless device is located.
[0065] In some embodiments, the positioning information is obtained by the wireless device through a mobile network, for example, the positioning information is Long Term Evolution Positioning Protocol (LPP) information. In some embodiments, the positioning information is obtained by the wireless device through a method other than a mobile network, for example, the positioning information is Global Positioning System (GPS) information obtained through a satellite. The embodiments of the present application do not limit the method for obtaining the positioning information.
[0066] Optionally, when the area indicated by the positioning information and the area indicated by the current PLMN are the same, the wireless device redetermines the area where the wireless device is located based on the positioning information or the current PLMN; when the area indicated by the positioning information and the area indicated by the current PLMN are different, the wireless device redetermines the area where the wireless device is located based on the positioning information.
[0067] It should be noted that the area where the wireless device is located includes the country where the wireless device is located, the region where the wireless device is located, the administrative area where the wireless device is located, etc., and the embodiment of the present application does not limit the granularity of the area where the wireless device is located. For different areas, the WLAN channels supported for use are the same or different, which is specifically subject to local policy constraints.
[0068] Optionally, in addition to determining the area where the wireless device is located according to the first PLMN, determining the area where the wireless device is located according to the first PLMN and the second PLMN, and determining the area where the wireless device is located according to the first PLMN, the second PLMN and the positioning information, the wireless device can also determine the area where the wireless device is located only according to the second PLMN, determine the area where the wireless device is located only according to the positioning information, determine the area where the wireless device is located according to the second PLMN and the positioning information, or determine the area where the wireless device is located according to the first PLMN and the positioning information, and the embodiments of the present application are not limited to this.
[0069] Step 304: Set the WLAN channel of the wireless device according to the area where the wireless device is located.
[0070] The wireless device has a built-in correspondence between different areas and the WLAN channels supported by each area. Based on the correspondence and the determined area, the wireless device can determine the WLAN channels that can be used in the area, so that the WLAN channels can be used to provide WLAN services.
[0071] In some embodiments, the above correspondence is established by developers based on the regulations for the use of WLAN channels in different countries / regions and integrated into the wireless device. For example, the wireless device determines that the region it is located in is country 1, and country 1 stipulates that the wireless device can use channels 1-11. In this case, the wireless device can determine that the currently available WLAN channels include channels 1-11 based on the correspondence, so that channels 1-11 can be used to provide WLAN services to the outside.
[0072] Optionally, in the process of determining the above-mentioned area, the wireless device will store information used to determine the area. For example, if the area is determined by the first PLMN, the first PLMN will be stored. If the area is determined by the second PLMN, the second PLMN will be stored. If the area is determined by the first PLMN and positioning information, the first PLMN and positioning information will be stored. If the area is determined by the second PLMN and positioning information, the second PLMN and positioning information will be stored. If the area is determined by the positioning information, the positioning information will be stored.
[0073] The above information stored in the wireless device is used to determine the area where the wireless device is located according to the stored information when the wireless device is not inserted with a SIM card. Or when the wireless device is inserted with a SIM card but cannot access the mobile network, the wireless device determines the area according to the stored information. In the process of determining the area where the wireless device is located according to the above information, the information to be used can be selected by the user or according to a preset rule.
[0074] For example, when the wireless device is not inserted with a SIM card, the wireless device can determine its area based on the stored positioning information or the first PLMN. When the wireless device is inserted with a SIM card but cannot connect to the mobile network, the wireless device can determine its area based on the stored second PLMN or the PLMN corresponding to the currently inserted SIM card.
[0075] In some embodiments, the wireless device will perform the above steps after being powered on, thereby setting its currently available WLAN channel. In some embodiments, the wireless device will perform the above steps only when it is powered on and receives a user's instruction to start channel adaptation, thereby setting its currently available WLAN channel.
[0076] In summary, the method provided in this embodiment adapts the WLAN channel of the wireless device by obtaining the PLMN according to the SIM card of the wireless device. In the process of adapting the WLAN channel, no manual participation is required and it can be performed automatically, so the efficiency of setting the WLAN channel can be improved, and the accuracy of setting the WLAN channel is high. In addition, the process of adapting the WLAN channel can only rely on the SIM card, without relying on the wireless device to access the mobile network.
[0077] Figure 4 A flow chart of a method for setting a wireless channel provided by an embodiment of the present application is shown. The method can be used in a wireless device. The method includes:
[0078] Step 402: When the wireless device accesses the mobile network through the SIM card, the current PLMN is obtained from the first PLMN and the second PLMN.
[0079] The wireless device has the ability 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 refers to a CPE. A SIM card is provided in the wireless device, and the first PLMN is the home PLMN corresponding to the SIM card. The wireless device can obtain the first PLMN by reading the information in the SIM card. In some embodiments, the first PLMN can indicate the country / region that issued the SIM card.
[0080] After the wireless device inserts the SIM card and starts, it will connect to the mobile network through the SIM card. The second PLMN is the access PLMN corresponding to the mobile network. The second PLMN is used to indicate the country / region where the mobile network accessed by the wireless device through the SIM card is located. In some embodiments, after the wireless device accesses the mobile network through the SIM card, it can obtain the second PLMN by exchanging information with the network device in the mobile network. The second PLMN is used to indicate the country / region where the mobile network accessed by the wireless device through the SIM card is located.
[0081] In some embodiments, when the wireless device accesses a mobile network through a SIM card and is in a non-roaming mode, the wireless device acquires the second PLMN as the current PLMN.
[0082] In some embodiments, the wireless device determines whether it is in roaming mode by comparing the area indicated by the first PLMN with the area indicated by the second PLMN.
[0083] Optionally, when the second PLMN is obtained as the current PLMN, the wireless device saves the second PLMN and clears the saved first PLMN. The second PLMN is used to set the WLAN channel when the SIM card is not inserted into the wireless device. That is, when the wireless device does not insert the SIM card for channel adaptation later, the wireless device determines the area where it is located according to the stored second PLMN to set the WLAN channel.
[0084] In some embodiments, when the wireless device accesses a mobile network through a SIM card and is in roaming mode, in response to a first indication, the wireless device acquires a first PLMN as a current PLMN; in response to a second indication, the wireless device acquires a second PLMN as a current PLMN, wherein the first indication and the second indication are sent by a user.
[0085] Optionally, when the wireless device accesses the mobile network through the SIM card and is in roaming mode, the wireless device will also send a prompt message. The prompt message is used to prompt the user to generate the first indication or the second indication by selecting an operation. Optionally, the wireless device can send the prompt message in its corresponding management interface. Or, when the user's terminal is connected to the wireless device, the prompt message is sent to the user's terminal.
[0086] In the case of acquiring the second PLMN as the current PLMN, the wireless device will save the second PLMN and clear the saved first PLMN, and the second PLMN is used to set the wireless channel when the wireless device is not inserted with a SIM card; in the case of acquiring the first PLMN as the current PLMN, the wireless device will save the first PLMN and clear the saved second PLMN, and the first PLMN is used to set the WLAN channel when the wireless device is not inserted with a SIM card. That is, in the case of the subsequent wireless device not inserting a SIM card to perform channel adaptation, the wireless device will determine its area according to the stored first PLMN or second PLMN to set the WLAN channel.
[0087] Optionally, the wireless device is further used to store a fourth PLMN, which is the home PLMN corresponding to the historical SIM card of the wireless device. That is, the fourth PLMN is the home PLMN corresponding to the historical SIM card inserted in the wireless device when the wireless device performed historical channel adaptation before the current channel adaptation. The historical SIM card is the same as or different from the SIM card currently inserted in the wireless device. During the process of performing historical channel adaptation, the wireless device may store the fourth PLMN corresponding to the historical SIM card, for example, referring to the above-mentioned case of storing the first PLMN but not storing the second PLMN. Alternatively, the fourth PLMN corresponding to the historical SIM card will not be stored, for example, referring to the above-mentioned case of storing the second PLMN but not storing the first PLMN.
[0088] In the case where the wireless device does not store the fourth PLMN, the wireless device will store 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, if it is determined that the fourth PLMN stored in the wireless device is the same as the first PLMN, the wireless device will keep storing the fourth PLMN or store the first PLMN. After the wireless device identifies the first PLMN corresponding to the SIM card, if it is determined that the stored fourth PLMN is different from the first PLMN, the wireless device will store the first PLMN to replace the fourth PLMN. It can be considered that the wireless device will at most save the PLMN corresponding to the most recently inserted SIM card.
[0089] Optionally, a third PLMN is stored in the wireless device, and the third PLMN is a visited PLMN corresponding to a historically accessed mobile network of the wireless device. That is, the third PLMN is a visited PLMN corresponding to a historically accessed mobile network accessed by the wireless device when the wireless device performs historical channel adaptation before performing channel adaptation this time. For example, refer to the above-mentioned case of storing the second PLMN.
[0090] When the wireless device is currently performing channel adaptation and accessing the mobile network through the SIM card, the wireless device will obtain the second PLMN. When it is determined that the stored third PLMN is different from the second PLMN, the wireless device will clear the stored third PLMN. When it is determined that the third PLMN is the same as the second PLMN, the wireless device will keep storing the third PLMN or the second PLMN. It can be considered that the wireless device will at most save the PLMN corresponding to the mobile network that was most recently connected.
[0091] Step 404: Determine the area where the wireless device is located according to the current PLMN.
[0092] After acquiring the current PLMN, the wireless device can determine the country / region indicated by the current PLMN, thereby determining the area where the wireless device is located.
[0093] Step 406: Calibrate the area where the wireless device is located according to the positioning information of the wireless device.
[0094] The positioning information can indicate the country / region where the wireless device is located. In some embodiments, the positioning information is obtained by the wireless device through a mobile network, for example, the positioning information is LPP information. In some embodiments, the positioning information is obtained by the wireless device through a method other than a mobile network, for example, the positioning information is GPS information obtained through a satellite. The embodiments of the present application do not limit the method for obtaining the positioning information.
[0095] When the area indicated by the positioning information is the same as the area indicated by the current PLMN, the wireless device will redetermine the area where the wireless device is located based on the positioning information or the current PLMN; when the area indicated by the positioning information is different from the area indicated by the current PLMN, the wireless device will redetermine the area where the wireless device is located based on the positioning information.
[0096] It should be noted that the area where the wireless device is located includes the country where the wireless device is located, the region where the wireless device is located, the administrative district where the wireless device is located, etc., and the embodiment of the present application does not limit the granularity of the area where the wireless device is located. For different areas, the WLAN channels supported for use are the same or different.
[0097] Step 408: When the wireless device cannot access the mobile network through the SIM card, the area indicated by the first PLMN is determined as the area where the wireless device is located.
[0098] Optionally, a third PLMN is stored in the wireless device, and the third PLMN is a visited PLMN corresponding to a historically accessed mobile network of the wireless device. That is, the third PLMN is a visited PLMN corresponding to a historically accessed mobile network accessed by the wireless device when the wireless device performed historical channel adaptation before performing channel adaptation this time. For example, refer to the above-mentioned case of storing the second PLMN. In the case where the wireless device stores the third PLMN and cannot access the mobile network through the SIM card, the wireless device will also save the first PLMN and clear the third PLMN in the process of determining the area according to the first PLMN.
[0099] Step 410: Set the WLAN channel of the wireless device according to the area where the wireless device is located.
[0100] The wireless device has a built-in correspondence between different regions and the WLAN channels that each region supports. Based on the correspondence and the determined region, the wireless device can determine the WLAN channels that can be used in the region, so that the WLAN channels can be used to provide WLAN services. In some embodiments, the above correspondence is established by developers based on the regulations for the use of WLAN channels in different countries / regions and integrated into the wireless device.
[0101] In some embodiments, the wireless device will perform the above steps after being powered on, thereby setting its currently available WLAN channel. In some embodiments, the wireless device will perform the above steps only when it is powered on and receives a user's instruction to start channel adaptation, thereby setting its currently available WLAN channel.
[0102] In summary, the method provided in this embodiment adapts the WLAN channel of the wireless device by obtaining the PLMN according to the SIM card of the wireless device. In the process of adapting the WLAN channel, no manual participation is required and it can be performed automatically, so the efficiency of setting the WLAN channel can be improved, and the accuracy of setting the WLAN channel is high. In addition, the process of adapting the WLAN channel can only rely on the SIM card, without relying on the wireless device to access the mobile network.
[0103] In addition, by dynamically comparing the PLMN of the SIM card, the PLMN of the network operator, and the base station positioning information, it can ensure that the wireless device always uses the WLAN channel suitable for the local environment, and can also improve the reliability of the production process. It can not only provide users with the most automated and optimal WLAN access experience, but also avoid the problem of the wireless device being unable to be put into use due to information transmission or human factors in the production process.
[0104] In a specific example, Figure 5FIG. 1 is a schematic diagram of a process of setting a WLAN channel provided by an exemplary embodiment of the present application. Figure 5 As shown,
[0105] In step A1, the user inserts the SIM card and the CPE is powered on to start the adaptive Wi-Fi channel process. At this time, the Wi-Fi function is turned off. Among them, the CPE has built-in configuration items (Wi-Fi channels available in different countries / regions) and supports LPP.
[0106] In step A2, the CPE determines whether the PLMN corresponding to the historical SIM card is currently stored.
[0107] In step A3, if it is determined that the PLMN corresponding to the historical SIM card is not stored, the CPE will read the PLMN in the currently inserted SIM card and save it.
[0108] In step A4, if the CPE determines that the PLMN corresponding to the historical SIM card is currently stored, it will compare whether the PLMN corresponding to the stored historical SIM card is the same as the PLMN corresponding to the currently inserted SIM card. If they are the same, it goes to step A6.
[0109] In step A5, if the PLMN corresponding to the historical SIM card stored in the CPE is different from 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.
[0110] In step A6, the CPE determines whether it has successfully accessed the mobile network. The standard for successfully accessing the mobile network is not only that the CPE establishes a connection with the base station and the core network in the mobile network, but also that the dial-up is successful, that is, the terminal device connected to the CPE can access the Internet normally.
[0111] In steps A7 and A8, if the CPE access is unsuccessful, the Wi-Fi channel is set according to the PLMN corresponding to the currently inserted SIM card, and other saved information for setting the Wi-Fi channel (such as the PLMN obtained through the mobile network accessed in the past) is deleted, and Wi-Fi is started. Then the network status is continuously determined until the access is successful and the Wi-Fi channel is switched according to the subsequently obtained information.
[0112] In step A9, after the CPE accesses successfully, it reads the PLMN corresponding to the currently accessed mobile network, and saves the PLMN corresponding to the currently accessed mobile network and the LPP information sent by the base station.
[0113] In step A10, the CPE determines whether the PLMN corresponding to the mobile network accessed this time is consistent with the PLMN stored based on the historical access to the mobile network.
[0114] In step A11, if there is no inconsistency, the PLMN stored in the CPE and obtained based on the historical access to the mobile network is deleted, and the PLMN corresponding to the currently accessed mobile network is saved.
[0115] In step A12, if the roaming network judgment is consistently performed, it is determined whether the CPE is currently in roaming mode.
[0116] In step A13, if the CPE is not currently in a roaming network, the PLMN corresponding to the currently connected mobile network will be saved for this Wi-Fi channel adaptation, and the PLMN corresponding to the currently inserted SIM card will be deleted to ensure that there is only one PLMN information.
[0117] In step A14, the CPE completes the first calibration of country or region information according to the PLMN corresponding to the currently accessed mobile network, and records the first result.
[0118] In step A15, if the CPE is currently in a roaming network, the user will be prompted whether to enable Wi-Fi channel adaptation.
[0119] In step A16, the CPE receives the user's selection to start Wi-Fi adaptation for the roaming network. If the user selects to agree, the process proceeds to step A13.
[0120] In step A17, if the user chooses not to agree, the CPE will save the PLMN corresponding to the currently inserted SIM card for this channel adaptation, and clear the PLMN corresponding to the saved mobile network to ensure that there is only one PLMN information.
[0121] In step A18, the CPE completes the first calibration of country or region information according to the PLMN corresponding to the currently inserted SIM card, and records the first result.
[0122] In some embodiments, after the CPE completes the first calibration of country or region information, it can start Wi-Fi according to the calibration result and adapt to the corresponding Wi-Fi channel. In some embodiments, after the CPE completes the first calibration of country or region information, it can continue to perform the second calibration of country or region information, which can be specifically referred to in the following steps A19 to A22.
[0123] It should be noted that, referring to the above steps A12 to A18, when the CPE is currently in a roaming network, if the roaming area corresponding to the PLMN corresponding to the mobile network currently accessed by the CPE is used to set the WiFi channel, other terminals in the roaming area can also access the CPE's WiFi, so that other terminals can also consume the network traffic of the CPE's SIM card user, which may cause economic losses to the SIM card user. By allowing the user to freely choose to set the WiFi channel according to the PLMN corresponding to the accessed mobile network or to set the WiFi channel according to the PLMN corresponding to the SIM card when the CPE is in a roaming network, the user can avoid the above possible economic losses. In addition, the user's above choice will affect the PLMN saved by the CPE, so that when the CPE is not inserted with a SIM card in the future, the CPE can also set its WiFi channel according to the saved PLMN.
[0124] In step A19, the CPE obtains the base station LPP information through the access information, converts the LPP information into corresponding country or region information, completes the second country or region information calibration, and records the result.
[0125] In step A20, the CPE compares whether the first and second national or regional calibration results are consistent.
[0126] In step A21, if the two calibration results of country or region information are inconsistent, the CPE will delete the saved PLMN and save the LPP information. And according to the country and region information after the LPP information calibration, start Wi-Fi and adapt to the corresponding Wi-Fi channel.
[0127] In step A22, if the two calibration results of the country or region information are consistent, the CPE will save the acquired PLMN and LPP information, and start Wi-Fi according to the calibrated country and region information, and adapt to the corresponding Wi-Fi channel.
[0128] The method provided in this embodiment enables the CPE to automatically select the Wi-Fi channel according to the PLMN and positioning information. The CPE does not need fixed configuration, and always ensures the optimal Wi-Fi channel selection. In addition, it also avoids the limitation of selecting the Wi-Fi channel only according to the PLMN corresponding to the mobile network. In addition, by utilizing the uniqueness of the PLMN in the Third Generation Partnership Project (3GPP) and the accuracy of the base station positioning information, through the three-way constraints of the PLMN corresponding to the SIM card, the PLMN corresponding to the mobile network, and the base station positioning information, the country or region information where the CPE is located can be quickly and reliably identified, thereby automatically verifying and configuring Wi-Fi without fixed configuration, so that the CPE can quickly connect to the local STA without user participation.
[0129] It should be noted that the above-mentioned different steps can be split and combined to form different embodiments. The order of the method steps provided in the embodiments of the present application can be appropriately adjusted, and the steps can be increased or decreased accordingly according to the situation. Any technician familiar with the technical field can easily think of the changed method within the technical scope disclosed in the present application, which should be included in the protection scope of the present application, so it will not be repeated.
[0130] Figure 6 FIG. 1 is a block diagram of a wireless channel setting device provided by an embodiment of the present application. Figure 6 As shown, the device comprises:
[0131] A determination module 601 is used to determine the area where the wireless device is located according to the PLMN corresponding to the wireless device;
[0132] A setting module 602, configured to set a WLAN channel of the wireless device according to an area where the wireless device is located;
[0133] The wireless device is provided with a SIM card, and the PLMN corresponding to the wireless device is obtained based on the SIM card.
[0134] In an optional design, the determining module 601 is used to:
[0135] Determine a location of the wireless device according to at least one of a first PLMN and a second PLMN corresponding to the wireless device;
[0136] The first PLMN is the home PLMN corresponding to the SIM card, and the second PLMN is the visited PLMN corresponding to the mobile network accessed by the wireless device through the SIM card.
[0137] In an optional design, the determining module 601 is used to:
[0138] When the wireless device accesses the mobile network through the SIM card, acquiring a current PLMN from the first PLMN and the second PLMN;
[0139] The area where the wireless device is located is determined according to the current PLMN.
[0140] In an optional design, the determining module 601 is used to:
[0141] When the wireless device accesses the mobile network through the SIM card and is in a non-roaming mode, the second PLMN is acquired as the current PLMN.
[0142] In an optional design, the determining module 601 is used to:
[0143] When the wireless device accesses the mobile network through the SIM card and is in roaming mode,
[0144] In response to the first indication, acquiring the first PLMN as the current PLMN;
[0145] In response to the second indication, acquiring the second PLMN as the current PLMN;
[0146] The first indication and the second indication are generated by the user performing a selection operation according to the prompt information.
[0147] In an optional design, the device further includes:
[0148] The prompt module 603 is used to send the prompt message when the wireless device accesses the mobile network through the SIM card and is in the roaming mode;
[0149] The prompt information is used to prompt the user to generate the first indication or the second indication through a selection operation.
[0150] In an optional design, the device further includes:
[0151] The processing module 604 is used to save the first PLMN and clear the saved second PLMN when the first PLMN is obtained as the current PLMN, and the first PLMN is used to set the WLAN channel when the SIM card is not inserted into the wireless device; and save the second PLMN and clear the saved first PLMN when the second PLMN is obtained as the current PLMN, and the second PLMN is used to set the WLAN channel when the SIM card is not inserted into the wireless device.
[0152] In an optional design, the device further includes:
[0153] A calibration module 605, configured to calibrate the area where the wireless device is located according to the positioning information of the wireless device;
[0154] The positioning information is LPP information obtained by the wireless device through the mobile network, or GPS information obtained through a satellite.
[0155] In an optional design, the calibration module 605 is used to:
[0156] In a case where the area indicated by the positioning information is the same as the area indicated by the current PLMN, the area where the wireless device is located is re-determined according to the positioning information or the current PLMN.
[0157] In an optional design, the calibration module 605 is used to:
[0158] In a case where the area indicated by the positioning information is different from the area indicated by the current PLMN, the area where the wireless device is located is re-determined according to the positioning information.
[0159] In an optional design, the determining module 601 is used to:
[0160] In a case where the wireless device cannot access the mobile network through the SIM card, the area indicated by the first PLMN is determined as the area where the wireless device is located.
[0161] In an optional design, a third PLMN is stored in the wireless device, and the third PLMN is a visited PLMN corresponding to a historical access mobile network of the wireless device. The processing module 604 is also used to save the first PLMN and clear the third PLMN.
[0162] In an optional design, the processing module 604 is also used to: when the wireless device does not store the fourth PLMN, store the first PLMN, and the fourth PLMN is the home PLMN corresponding to the historical SIM card of the wireless device; when the fourth PLMN stored in the wireless device is the same as the first PLMN, keep storing the fourth PLMN or store the first PLMN; when the fourth PLMN stored in the wireless device is different from the first PLMN, store the first PLMN to replace the fourth PLMN.
[0163] In an optional design, a third PLMN is stored in the wireless device, and the third PLMN is a visited PLMN corresponding to a historical access mobile network of the wireless device. The processing module 604 is also used to: when the third PLMN is different from the second PLMN, clear the third PLMN; when the third PLMN is the same as the second PLMN, keep storing the third PLMN or store the second PLMN.
[0164] In an optional design, the wireless device is a CPE.
[0165] One point that needs to be explained is that the device provided in the above embodiment only uses the division of the above-mentioned functional modules as an example to implement its functions. In actual applications, the above-mentioned functions can be assigned to different functional modules according to actual needs, that is, the content structure of the device can be divided into different functional modules to complete all or part of the functions described above.
[0166] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0167] Figure 7 A schematic diagram of the structure of a communication device provided by an exemplary embodiment of the present application is shown. The communication device 70 includes: a processor 701, a receiver 702, a transmitter 703, a memory 704 and a bus 705.
[0168] The processor 701 includes one or more processing cores. The processor 701 executes various functional applications and information processing by running software programs and modules.
[0169] The receiver 702 and the transmitter 703 may be implemented as a communication component, which may be a communication chip.
[0170] The memory 704 is connected to the processor 701 via a bus 705 .
[0171] The memory 704 may be used to store at least one instruction, and the processor 701 may be used to execute the at least one instruction to implement each step in the above method embodiment.
[0172] In addition, the memory 704 can be implemented by any type of volatile or non-volatile storage device or a combination thereof. The volatile or non-volatile storage device includes but is not limited to: a magnetic disk or an optical disk, an electrically erasable programmable read-only memory (EEPROM), an erasable programmable read-only memory (EPROM), a static random access memory (SRAM), a read-only memory (ROM), a magnetic memory, a flash memory, and a programmable read-only memory (PROM).
[0173] Exemplarily, the processor and transceiver in the communication device involved in the embodiment of the present application can be implemented together as a communication chip, or the transceiver can form a communication chip alone. Among them, the transmitter in the transceiver performs the sending step performed by the communication device in any of the methods shown above, the receiver in the transceiver performs the receiving step performed by the communication device in any of the methods shown above, and the processor performs steps other than the sending and receiving steps, which will not be repeated here.
[0174] In an exemplary embodiment, a computer-readable storage medium is also provided, in which at least one instruction, at least one program, a code set or an instruction set is stored. The at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by the processor to implement the wireless channel setting method provided by the above-mentioned each method embodiment.
[0175] Those skilled in the art should be aware that in one or more of the above examples, the functions described in the embodiments of the present application can be implemented with hardware, software, firmware, or any combination thereof. When implemented using software, these functions can be stored in a computer-readable medium or transmitted as one or more instructions or codes on a computer-readable medium. Computer-readable media include computer storage media and communication media, wherein the communication media include any media that facilitates the transmission of a computer program from one place to another. The storage medium can be any available medium that a general or special-purpose computer can access.
[0176] The above description is only an exemplary embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.
Claims
1. A method for setting a wireless channel, characterized in that: The method is applied to a wireless device, and the method comprises: Determine the area where the wireless device is located according to the public land mobile network PLMN corresponding to the wireless device; According to the area where the wireless device is located, setting a wireless local area network (WLAN) channel of the wireless device; The wireless device is provided with a subscriber identity module SIM card, and the PLMN corresponding to the wireless device is obtained based on the SIM card.
2. The method according to claim 1, characterized in that The determining the area where the wireless device is located according to the PLMN corresponding to the wireless device includes: Determine a location 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 the home PLMN corresponding to the SIM card, and the second PLMN is the visited PLMN corresponding to the mobile network accessed by the wireless device through the SIM card.
3. The method according to claim 2, characterized in that The determining, according to at least one of the first PLMN and the second PLMN corresponding to the wireless device, the area where the wireless device is located includes: When the wireless device accesses the mobile network through the SIM card, acquiring a current PLMN from the first PLMN and the second PLMN; The area where the wireless device is located is determined according to the current PLMN.
4. The method according to claim 3, characterized in that When the wireless device accesses the mobile network through the SIM card, acquiring the current PLMN from the first PLMN and the second PLMN includes: When the wireless device accesses the mobile network through the SIM card and is in a non-roaming mode, the second PLMN is acquired as the current PLMN.
5. The method according to claim 3, characterized in that: When the wireless device accesses the mobile network through the SIM card, acquiring the current PLMN from the first PLMN and the second PLMN includes: When the wireless device accesses the mobile network through the SIM card and is in roaming mode, In response to the first indication, acquiring the first PLMN as the current PLMN; In response to the second indication, acquiring the second PLMN as the current PLMN; The first indication and the second indication are generated by the user performing a selection operation according to the prompt information.
6. The method according to any one of claims 3 to 5, characterized in that: The method further comprises: In the case of acquiring the first PLMN as the current PLMN, saving the first PLMN and clearing the saved second PLMN, wherein the first PLMN is used to set the WLAN channel when the SIM card is not inserted into the wireless device; In the case of acquiring the second PLMN as the current PLMN, the second PLMN is saved and the saved first PLMN is cleared, wherein the second PLMN is used to set the WLAN channel when the SIM card is not inserted into the wireless device.
7. The method according to any one of claims 3 to 5, characterized in that: The method further comprises: Calibrate the area where the wireless device is located according to the positioning information of the wireless device; The positioning information is Long Term Evolution Positioning Protocol (LPP) information obtained by the wireless device through the mobile network, or Global Positioning System (GPS) information obtained through a satellite.
8. The method according to claim 7, characterized in that The step of calibrating the area where the wireless device is located according to the positioning information of the wireless device includes: In a case where the area indicated by the positioning information is the same as the area indicated by the current PLMN, the area where the wireless device is located is re-determined according to the positioning information or the current PLMN.
9. The method according to claim 7, characterized in that: The step of calibrating the area where the wireless device is located according to the positioning information of the wireless device includes: In a case where the area indicated by the positioning information is different from the area indicated by the current PLMN, the area where the wireless device is located is re-determined according to the positioning information.
10. The method according to claim 2, characterized in that The determining, according to at least one of the first PLMN and the second PLMN corresponding to the wireless device, the area where the wireless device is located includes: In a case where the wireless device cannot access the mobile network through the SIM card, the area indicated by the first PLMN is determined as the area where the wireless device is located.
11. The method according to claim 10, characterized in that A third PLMN is stored in the wireless device, and the third PLMN is a visited PLMN corresponding to a historical access mobile network of the wireless device; The method further comprises: The first PLMN is saved and the third PLMN is cleared.
12. The method according to any one of claims 2 to 5, characterized in that: The method further comprises: If the wireless device does not store a fourth PLMN, storing the first PLMN, the fourth PLMN being a home PLMN corresponding to a historical SIM card of the wireless device; When the fourth PLMN stored in the wireless device is the same as the first PLMN, keep storing the fourth PLMN or store the first PLMN; In a case where the fourth PLMN stored in the wireless device is different from the first PLMN, the first PLMN is stored to replace the fourth PLMN.
13. The method according to any one of claims 2 to 5, characterized in that: A third PLMN is stored in the wireless device, and the third PLMN is a visited PLMN corresponding to a historical access mobile network of the wireless device; The method further comprises: If the third PLMN is different from the second PLMN, clearing the third PLMN; In the case that the third PLMN is the same as the second PLMN, the third PLMN is kept stored or the second PLMN is stored.
14. The method according to claim 1, characterized in that The wireless device is a customer premises equipment (CPE).
15. A device for setting a wireless channel, characterized in that: The device comprises: A determination module, configured to determine a location of the wireless device according to a PLMN corresponding to the wireless device; A setting module, used for setting a WLAN channel of the wireless device according to the area where the wireless device is located; The wireless device is provided with a SIM card, and the PLMN corresponding to the wireless device is obtained based on the SIM card.
16. The device according to claim 15, characterized in that The determining module is used to: Determine a location 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 the home PLMN corresponding to the SIM card, and the second PLMN is the visited PLMN corresponding to the mobile network accessed by the wireless device through the SIM card.
17. The device according to claim 16, characterized in that The determining module is used to: In a case where the wireless device cannot access the mobile network through the SIM card, determining the area indicated by the first PLMN as the area where the wireless device is located; When the wireless device accesses the mobile network through the SIM card and is in non-roaming mode, acquiring the second PLMN as the current PLMN; and determining the area where the wireless device is located according to the current PLMN; When the wireless device accesses the mobile network through the SIM card and is in roaming mode, in response to a first indication, acquiring the first PLMN as the current PLMN; and in response to a second indication, acquiring the second PLMN as the current PLMN; wherein the first indication and the second indication are generated by a user performing a selection operation according to prompt information; and determining a location of the wireless device according to the current PLMN.
18. The device according to claim 17, characterized in that The device also includes: A calibration module, configured to calibrate a location of the wireless device according to the positioning information of the wireless device; The positioning information is LPP information obtained by the wireless device through the mobile network, or GPS information obtained through a satellite.
19. The device according to claim 18, characterized in that The calibration module is used for: In a case where the area indicated by the positioning information is the same as the area indicated by the current PLMN, re-determining the area where the wireless device is located according to the positioning information or the current PLMN; In a case where the area indicated by the positioning information is different from the area indicated by the current PLMN, the area where the wireless device is located is re-determined according to the positioning information.
20. A communication device, characterized in that: The communication device comprises: processor; a transceiver connected to the processor; a memory for storing executable instructions for the processor; The processor is configured to load and execute the executable instructions to implement the method for setting a wireless channel as described in any one of claims 1 to 14.
21. A computer-readable storage medium, characterized in that: The readable storage medium stores executable instructions, and the executable instructions are loaded and executed by a processor to implement the method for setting a wireless channel as described in any one of claims 1 to 14.