Summary of the invention
The invention provides a kind of adaptive WLAN channel and Poewr control method and equipment, make wireless device obtain self residing country information automatically, and then adjust self WLAN channel and power parameter automatically.
The invention provides a kind of adaptive wireless lan channel and Poewr control method, comprising:
The message that wireless device received communication carrier network sends is obtained the coded message of described common carrier network;
Described wireless device obtains the channel corresponding with described coded message and the power parameter of local storage according to the coded message of described common carrier network;
Channel and power parameter that channel that described wireless device basis is corresponding with the coded message of described common carrier network and power parameter dispose local wireless local area network automatically.
The message that described wireless device received communication carrier network sends, the coded message of obtaining described common carrier network comprises:
Described wireless device obtains the coded message of described common carrier network by built-in mobile communication modulator-demodulator Modem interface or external mobile communication Modem interface access communications carrier network according to the message of described common carrier network transmission; Perhaps
The described wireless device access communications public telephone network PSTN of operator, the off-hook detection signal tone that sends by described common carrier network obtains the coded message of described common carrier network.
Channel corresponding with described coded message and power parameter that described wireless device obtains local storage according to the coded message of described common carrier network comprise:
Described wireless device is searched the coded message of storage and the corresponding relation of channel and power parameter according to the coded message of described common carrier network, obtains channel corresponding with the coded message of described common carrier network and power parameter; Perhaps
Described wireless device is searched the coded message of storage and the corresponding relation of national code according to the coded message of described common carrier network, obtain the national code corresponding with the coded message of described common carrier network, and then search the national code of storage and the corresponding relation of channel and power parameter according to the national code that obtains, obtain channel and the power parameter corresponding with the described national code that obtains.
After the channel and power parameter that channel that described wireless device basis is corresponding with the coded message of described common carrier network and power parameter dispose local wireless local area network automatically, also comprise:
Described wireless device automatic disconnection is connected with described common carrier network.
A kind of wireless device is applied to WLAN (wireless local area network) WLAN, comprising:
Receiving element is used for the message that the received communication carrier network sends;
The coding acquiring unit is connected with described receiving element, is used for obtaining according to the message that described receiving element receives the coded message of described common carrier network;
Parameter acquiring unit is connected with described coding acquiring unit, is used for obtaining according to the coded message of described common carrier network the channel corresponding with described coded message and the power parameter of local storage;
Dispensing unit is connected with described parameter acquiring unit, and the channel and the power parameter that are used for obtaining according to described parameter acquiring unit dispose local wireless local area network channel and power parameter automatically.
Described receiving element also is used for: by built-in mobile communication modulator-demodulator Modem interface or external mobile communication Modem interface access communications carrier network, receive the message that described common carrier network sends; Perhaps receive the off-hook detection signal tone that described common carrier network sends by common carrier public telephone network PSTN;
Described coding acquiring unit also is used for: when described receiving element during by built-in mobile communication modulator-demodulator Modem interface or external mobile communication Modem interface access communications carrier network, resolve the message that described common carrier network sends and obtain national code; When described receiving element receives the off-hook detection signal tone of described common carrier network transmission by common carrier public telephone network PSTN, detect the coded message that obtains described common carrier network according to described off-hook detection signal tone.
Described parameter acquiring unit comprises:
Storing sub-units, the coded message that is used for the storing communication carrier network with the corresponding relation of channel and power parameter, perhaps the coded message of storing communication carrier network with the corresponding relation of national code and the corresponding relation of national code and channel and power parameter;
Search subelement, be used for searching the coded message of storage and the corresponding relation of channel and power parameter, obtain channel corresponding and power parameter with the coded message of described common carrier network according to the coded message of described common carrier network; Perhaps search the coded message of storage and the corresponding relation of national code according to the coded message of described common carrier network, obtain the national code corresponding with the coded message of described common carrier network, and then search the national code of storage and the corresponding relation of channel and power parameter according to the national code that obtains, obtain channel and the power parameter corresponding with the described national code that obtains.
Also comprise:
Disconnect linkage unit, is connected with described dispensing unit, after being used for described dispensing unit and finishing the automatic configuration of local channel and power parameter, disconnection is connected with described common carrier network.
Compared with prior art, the present invention has the following advantages at least:
Among the present invention, wireless device is according to the coded message of the message obtaining communication carrier network of common carrier network transmission, and then obtain corresponding channel and power parameter and the channel and the power parameter of configuration local wireless local area network automatically according to this coded message, thereby the wireless device that can make different regions uses same set of software, do not need software to be changed according to the country difference, the drawback of avoiding software arbitrarily to be changed has reduced equipment supplier's development and maintenance cost simultaneously.
Embodiment
Core concept of the present invention is: wireless device access carrier network, obtain the coded message of operator, search channel and the power parameter that obtains correspondence according to this coded message, according to searching channel and automatic configurating channel of power parameter and the power parameter that obtains, wireless channel and the maximum transmission power that self uses limited.
The invention provides a kind of adaptive wireless local area network (WLAN) channel and Poewr control method, as shown in Figure 1, comprising:
The message that step 101, wireless device received communication carrier network send is obtained the coded message of described common carrier network;
Step 102, described wireless device are obtained the channel corresponding with described coded message and the power parameter of local storage according to the coded message of described common carrier network;
Step 103, channel and power parameter that channel that described wireless device basis is corresponding with the coded message of described common carrier network and power parameter dispose local wireless local area network automatically.
Introduce adaptive wireless local area network (WLAN) channel provided by the invention and Poewr control method in detail below in conjunction with concrete application scenarios.
As shown in Figure 2, wireless device configuration has WLAN interface and fixing mobile communication Modem interface, is connected with wireless terminal by the WLAN interface, is connected with the mobile communication carrier network by the Modem interface.Concrete, at application scenarios shown in Figure 2, adaptive wireless local area network (WLAN) channel provided by the invention and Poewr control method may further comprise the steps as shown in Figure 3:
Step 301, wireless device powers on, and enables the WLAN function.Enable success and enter step 302, enable the failure of WLAN function and enter step 309;
Whether step 302, wireless device detect mobile communication Modem (modulator-demodulator) automatically on the throne; If testing result is on the throne then execution in step 303; Otherwise execution in step 308.
Step 303, wireless device is from being dynamically connected mobile communication carrier's network, and connection failure enters step 308, and successful connection enters step 304;
This mobile communication carrier's network comprises equipment such as base station, wireless device be specially being connected of mobile communication carrier network and being connected of equipment such as base station.
Step 304, wireless device are obtained the national code of mobile communication carrier's network.
Concrete, wireless device receives the message that mobile communication carrier's network sends by Modem, carry the coded message of mobile communication carrier's network in this message, this coded message is a whole world unified distribution coding, i.e. each mobile communication carrier of coding unique identification.In the application scenarios of the present invention, Modem receives and resolves the message that mobile communication carrier's network sends, and obtains the coded message of mobile communication carrier's network.Store the coded message of at least one mobile communication carrier's network and the corresponding relation of national code in the wireless device in advance, after obtaining the coded message of mobile communication carrier's network by Modem, wireless device is further searched the coded message of mobile communication carrier's network of storage and the corresponding relation of national code according to this coded message that obtains, and obtains the national code corresponding with this coded message that obtains.
Step 305, wireless device is provided with channel and the maximum power that WLAN uses according to national code.
Concrete, also store the corresponding relation of national code and channel and maximum power in the wireless device, be 14 etc. for example with the corresponding channel number of Japanese corresponding national code.After wireless device obtains the national code of mobile communication carrier's network, further search the national code of above-mentioned storage and the corresponding relation of channel and maximum power, according to lookup result channel and power control table are set, comprising the channel and the maximum power of wireless device support.This maximum power is specially maximum transmit power.
Step 306, wireless device automatic disconnection Modem is connected with the network of mobile communications network.
Need to prove, this step is not the essential technological means among the present invention, and the residing order of this step can be adjusted according to actual needs, for example can adjust to after the step 304, promptly after wireless device obtains the national code of mobile communications network, promptly disconnect Modem and be connected with the network of mobile communications network.
It is upstate that step 307, wireless device are provided with WLAN, enters step 309;
It is down state that step 308, wireless device are provided with WLAN, enters step 309;
Step 309, the wireless device adaptive configuration is finished.
Above-mentioned wireless device is specifically as follows the routing device among the WLAN, for example AP or AC etc.
The wireless device that is provided in the above-mentioned steps 304 and 305 is searched corresponding national code, is searched the process that obtains corresponding channel and power parameter according to national code then and can use the other technologies means to replace according to coded message, for example:
Wireless device Modem receives and resolves the message that mobile communication carrier's network sends, and obtains the coded message of mobile communication carrier's network.Store the coded message of at least one mobile communication carrier's network and the corresponding relation of channel and power parameter in the wireless device in advance, after obtaining the coded message of mobile communication carrier's network by Modem, wireless device is further searched the coded message of mobile communication carrier's network of storage and the corresponding relation of channel and power parameter according to this coded message that obtains, and obtains channel and the power parameter corresponding with this coded message that obtains.Wireless device and then channel and power control table are set according to the channel and the power parameter that obtain, channel and the maximum power supported comprising wireless device.
Need to prove, it only is a kind of specific implementation in order to realize that goal of the invention adopts among the present invention that above-mentioned wireless device connects mobile communication carrier's network by built-in mobile communication Modem interface, and the mode that wireless device connects mobile communication carrier's network can also adopt other modes according to actual needs.For example shown in Figure 4, wireless device can also connect mobile communication carrier's network by external mobile communication Modem interface, and at this moment, mobile communication Modem interface receives the message that mobile communication carrier's network sends.Wireless device sends the coded message that message request is obtained mobile communication carrier's network to mobile communication Modem, and mobile communication Modem searches the corresponding codes information that obtains according to this message, and this coded message is sent to wireless device.Wireless device further is provided with WLAN channel and maximum power according to the coded message that receives, specifically can search the national code corresponding, search with corresponding channel and the power parameter of national code WLAN channel and maximum power are set again according to the described mode of step 304-305 with coded message, perhaps search the coded message of storage and the corresponding relation of channel and power parameter, and then WLAN channel and maximum power are set.
The mode that wireless device connects the common carrier network can also adopt other modes, for example shown in Figure 5, wireless device is by the speech interface access communications PSTN of operator such as FXO/E1/T1 (PublicSwitched Telephone Network, PSTN).Wireless device receives the message (off-hook detection signal tone) that PSTN sends by speech interfaces such as FXO/E1/T1, obtain the coded message of wherein carrying, and then WLAN channel and maximum power are set according to the coded message that obtains, specifically can search the national code corresponding, search with corresponding channel and the power parameter of national code WLAN channel and maximum power are set again according to the described mode of step 304-305 with coded message, perhaps search the coded message of storage and the corresponding relation of channel and power parameter, and then WLAN channel and maximum power are set.Method shown in Figure 5 can be applied to not have the area of mobile communications network covering, can certainly be applied to the area that mobile communications network covers.
By adopting method provided by the invention, wireless device is according to the coded message of the message obtaining communication carrier network of common carrier network transmission, and then obtain corresponding channel and power parameter and the channel and the power parameter of configuration local wireless local area network automatically according to this coded message, thereby the wireless device that can make different regions uses same set of software, do not need software to be changed according to the country difference, the drawback of avoiding software arbitrarily to be changed has reduced equipment supplier's development and maintenance cost simultaneously.
The invention provides a kind of wireless device, be applied to WLAN (wireless local area network) WLAN, as shown in Figure 6, comprising:
Receiving element 11 is used for the message that the received communication carrier network sends;
Coding acquiring unit 12 is connected with described receiving element 11, is used for obtaining according to the message that described receiving element 11 receives the coded message of described common carrier network;
Parameter acquiring unit 13 is connected with described coding acquiring unit 12, is used for obtaining according to the coded message of described common carrier network the channel corresponding with described coded message and the power parameter of local storage;
Dispensing unit 14 is connected with described parameter acquiring unit 13, and the channel and the power parameter that are used for obtaining according to described parameter acquiring unit 13 dispose local wireless local area network channel and power parameter automatically.
Concrete, described receiving element 11 also is used for: by built-in mobile communication modulator-demodulator Modem interface or external mobile communication Modem interface access communications carrier network, receive the message that described common carrier network sends; Perhaps receive the off-hook detection signal tone that described common carrier network sends by common carrier public telephone network PSTN; Accordingly, described coding acquiring unit 12 also is used for: when described receiving element during by built-in mobile communication modulator-demodulator Modem interface or external mobile communication Modem interface access communications carrier network, resolve the message that described common carrier network sends and obtain national code; When described receiving element receives the off-hook detection signal tone of described common carrier network transmission by common carrier public telephone network PSTN, detect the coded message that obtains described common carrier network according to described off-hook detection signal tone.
Described parameter acquiring unit 13 comprises:
Storing sub-units 131, the coded message that is used for the storing communication carrier network with the corresponding relation of channel and power parameter, perhaps the coded message of storing communication carrier network with the corresponding relation of national code and the corresponding relation of national code and channel and power parameter;
Search subelement 132, be used for searching the coded message of storage and the corresponding relation of channel and power parameter, obtain channel corresponding and power parameter with the coded message of described common carrier network according to the coded message of described common carrier network; Perhaps search the coded message of storage and the corresponding relation of national code according to the coded message of described common carrier network, obtain the national code corresponding with the coded message of described common carrier network, and then search the national code of storage and the corresponding relation of channel and power parameter according to the national code that obtains, obtain channel and the power parameter corresponding with the described national code that obtains.
Wireless device provided by the invention also comprises:
Disconnect linkage unit 15, is connected with described dispensing unit 14, after being used for described dispensing unit 14 and finishing the automatic configuration of local channel and power parameter, disconnection is connected with described common carrier network.
By adopting equipment provided by the invention, wireless device is according to the coded message of the message obtaining communication carrier network of common carrier network transmission, and then obtain corresponding channel and power parameter and the channel and the power parameter of configuration local wireless local area network automatically according to this coded message, thereby the wireless device that can make different regions uses same set of software, do not need software to be changed according to the country difference, the drawback of avoiding software arbitrarily to be changed has reduced equipment supplier's development and maintenance cost simultaneously.
Through the above description of the embodiments, those skilled in the art can be well understood to the present invention and can realize by the mode that software adds essential general hardware platform, can certainly pass through hardware, but the former is better execution mode under a lot of situation.Based on such understanding, the part that technical scheme of the present invention contributes to prior art in essence in other words can embody with the form of software product, this computer software product is stored in the storage medium, comprise that some instructions are with so that a computer equipment (can be a personal computer, server, the perhaps network equipment etc.) carry out the described method of each embodiment of the present invention.
It will be appreciated by those skilled in the art that accompanying drawing is the schematic diagram of a preferred embodiment, module in the accompanying drawing or flow process might not be that enforcement the present invention is necessary.
It will be appreciated by those skilled in the art that the module in the device among the embodiment can be distributed in the device of embodiment according to the embodiment description, also can carry out respective change and be arranged in the one or more devices that are different from present embodiment.The module of the foregoing description can be merged into a module, also can further split into a plurality of submodules.
The invention described above embodiment sequence number is not represented the quality of embodiment just to description.
More than disclosed only be several specific embodiment of the present invention, still, the present invention is not limited thereto, any those skilled in the art can think variation all should fall into protection scope of the present invention.