Summary of the invention
The invention provides a kind of adaptive WLAN channel and Poewr control method and equipment, make wireless device automatic acquisition self residing country information, and then automatically adjust self WLAN channel and maximum power.
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 maximum power of local storage according to the coded message of described common carrier network;
Channel and maximum power that the channel that described wireless device basis is corresponding with the coded message of described common carrier network and maximum power configure 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.
The channel corresponding with described coded message and maximum power that described wireless device obtains local storage according to the coded message of described common carrier network comprise:
Described wireless device is searched the corresponding relation of coded message and channel and the maximum power of storage according to the coded message of described common carrier network, obtain the channel corresponding with the coded message of described common carrier network and maximum power; 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 maximum power according to the national code that obtains, obtain channel and the maximum power corresponding with the described national code that obtains.
After channel and maximum power that the channel that described wireless device basis is corresponding with the coded message of described common carrier network and maximum power configure 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 maximum power of local storage;
Dispensing unit is connected with described parameter acquiring unit, and the channel and the maximum power that are used for obtaining according to described parameter acquiring unit configure local wireless local area network channel and maximum power 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 by common carrier public telephone network PSTN the off-hook detection signal tone that described common carrier network sends;
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 maximum power, 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 maximum power;
Search subelement, be used for searching the corresponding relation of coded message and channel and the maximum power of storage according to the coded message of described common carrier network, obtain the channel corresponding with the coded message of described common carrier network and maximum power; 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 maximum power according to the national code that obtains, obtain channel and the maximum power corresponding with the described national code that obtains.
Also comprise:
Disconnect the unit, be connected with described dispensing unit, after completing the automatic configuration of local channel and maximum power for described dispensing unit, disconnection is connected with described common carrier network.
Compared with prior art, the present invention has the following advantages at least:
In 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 automatic channel and the power parameter that configures local wireless local area network according to this coded message, thereby can make the wireless device of different regions use same set of software, do not need according to the country difference, software to be changed, 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 according to this coded message and obtain corresponding channel and power parameter, according to searching channel and the 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 the channel that described wireless device basis is corresponding with the coded message of described common carrier network and power parameter configure local wireless local area network automatically.
Introduce in detail adaptive wireless local area network (WLAN) channel provided by the invention and Poewr control method 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, for application scenarios shown in Figure 2, adaptive wireless local area network (WLAN) channel provided by the invention and Poewr control method comprise the following steps as shown in Figure 3:
Step 301, wireless device powers on, and enables the WLAN function.Enable successfully to enter step 302, enable the WLAN function and unsuccessfully enter step 309;
Whether step 302, wireless device detect mobile communication Modem (modulator-demodulator) automatically in place; If testing result is in place 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 the equipment such as base station, wireless device be specially being connected of mobile communication carrier network and being connected of the equipment such as base station.
Step 304, wireless device are obtained the national code of mobile communication carrier's network.
Concrete, wireless device receives by Modem the message that mobile communication carrier's network sends, carry the coded message of mobile communication carrier's network in this message, this coded message is whole world unified distribution coding, i.e. each coding unique identification mobile communication carrier.In 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.The corresponding relation of the coded message of pre-stored at least one mobile communication carrier's network and national code in wireless device, 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 arranges according to national code channel and the maximum power that WLAN uses.
Concrete, also store the corresponding relation of national code and channel and maximum power in wireless device, such as being 14 etc. with channel number corresponding to 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 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 in the present invention, and the residing order of this step can be adjusted according to actual needs, after for example can adjusting to step 304, namely namely disconnect Modem after wireless device obtains the national code of mobile communications network and be connected with the network of mobile communications network.
It is upstate that step 307, wireless device arrange WLAN, enters step 309;
It is down state that step 308, wireless device arrange WLAN, enters step 309;
Step 309, the wireless device adaptive configuration is completed.
Above-mentioned wireless device is specifically as follows the routing device in WLAN, such as AP or AC etc.
The wireless device that provides in above-mentioned steps 304 and 305 is searched corresponding national code, is then searched according to national code the process that obtains corresponding channel and power parameter 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.The corresponding relation of the coded message of pre-stored at least one mobile communication carrier's network and channel and power parameter in wireless device, 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 is only a kind of specific implementation in order to realize that goal of the invention adopts in 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 to mobile communication Modem the coded message that message request is obtained mobile communication carrier's network, and mobile communication Modem searches according to this message and obtains corresponding coded message, and this coded message is sent to wireless device.Wireless device further arranges WLAN channel and maximum power according to the coded message that receives, specifically can mode described according to step 304-305 search the national code corresponding with coded message, search with corresponding channel and the power parameter of national code WLAN channel and maximum power are set again, 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 by speech interfaces such as FXO/E1/T1 the message (off-hook detection signal tone) that PSTN sends, obtain the coded message of wherein carrying, and then according to the coded message that obtains, WLAN channel and maximum power are set, specifically can mode described according to step 304-305 search the national code corresponding with coded message, search with corresponding channel and the power parameter of national code WLAN channel and maximum power are set again, 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 automatic channel and the power parameter that configures local wireless local area network according to this coded message, thereby can make the wireless device of different regions use same set of software, do not need according to the country difference, software to be changed, 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 configure 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 by common carrier public telephone network PSTN the off-hook detection signal tone that described common carrier network sends; 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 according to the coded message of described common carrier network, obtain the channel corresponding with the coded message of described common carrier network and power parameter; 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 unit 15, be connected with described dispensing unit 14, after completing the automatic configuration of local channel and power parameter for described dispensing unit 14, 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 automatic channel and the power parameter that configures local wireless local area network according to this coded message, thereby can make the wireless device of different regions use same set of software, do not need according to the country difference, software to be changed, 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 in a lot of situation, the former is better execution mode.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 a storage medium, comprise that some instructions are with so that a computer equipment (can be 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, the module in 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 in 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 the present embodiment.The module of above-described embodiment can be merged into a module, also can further split into a plurality of submodules.
The invention described above embodiment sequence number does not represent the quality of embodiment just to description.
Above disclosed be only several specific embodiment of the present invention, still, the present invention is not limited thereto, the changes that any person skilled in the art can think of all should fall into protection scope of the present invention.