The application is denomination of invention the dividing an application for " writing down the existence of WLAN automatically " of the one Chinese patent application No.03826946.5 of submission on August 22nd, 2003.
Embodiment
The present invention is a kind of method and apparatus, is used for automatically detecting and writing down the position of wireless lan (wlan) position (being the WLAN focus).If launch automatic detection and record characteristics, when user movement, mobile device search WLAN focus.The automatic record of WLAN focus of the present invention will be described in the context that scans the WLAN focus that fluctuates through detected energy.Yet, those skilled in the art will recognize that the automatic record that can utilize different WLAN scan methods to realize WLAN focus of the present invention, for example detect unique signature sequence for WLAN and position of orientation system.Therefore, the present invention has the broad applicability that exceeds said WLAN detection method.
The self registering high-level block diagram 1100 of WLAN of the present invention position has been shown in Figure 1A.Preferably, the position that makes mobile device can automatically detect and write down local area network (LAN) is user's option, and is called WLAN Prowler option at this.WLAN prowler option consumes the extra power of battery when device search WLAN focus.The user can determine whether open it.If launch WLAN prowler option one 106, when the user moves device search WLAN focus 1105.Can make ins all sorts of ways scans, and promptly searches for WLAN focus 1104.If mobile device detects the existence 1103 of WLAN, it will open its WLAN transmitter and contact WLAN base station 1102 automatically.Be not that actual connection is set up in the contact base station, mobile device only asks the base station to comprise the message of base station physical address to its transmission.For example, perhaps the base station sends to equipment that similar " Starbucks 731 5
ThAvenue, Manhattan, NY, USA " the address.Then equipment is recorded in the database in its memory 1101 with this address.If mobile device detects the beacon of base station and recognizes that it comes from the base station with the medium access control identification MAC ID (unique hwid) that is in the database, because known its position, mobile device will not inquired the base station.Do not inquire that the base station that has been in the location database will reduce network traffic.
After a while, mobile device user can access database and is located near the WLAN focus it.Alternatively, the user can key in its current address and mobile device and can come search database to nearest focus.Equipment can also be presented at hotspot location on the screen map.In optional embodiment, mobile device user is input information manually.For example, if mobile device user is in certain position in city and obtains good signal, mobile device user can be imported its current position on map, is used for reference in the future.Alternatively, if mobile device has the GPS receiver, user's button or menu option and equipment simply can store its current location automatically.
Figure 1B shows and can help using communication system 100 of the present invention.Communication system 100 comprises cordless communication network 102, (for example the WLAN access point 104 for a plurality of WLAN access point 104
1With 104
2) and a plurality of mobile device 110 (for example mobile device 110
1With 110
2).Cordless communication network 102 is given the mobile device 110 that is positioned at coverage 106, and (for example mobile device 110
1With 110
2) service is provided.For example, cordless communication network 102 can comprise to being in coverage 106 interior mobile devices 110 provides the cellular phone network of voice and/or data, services.WLAN access point 104
1With 104
2Give respectively and be positioned at coverage 108
1With 108
2Interior mobile device 110 provides service (for example to be positioned at coverage 108
1Interior mobile device 110
2).For example, WLAN access point 104 can comprise the IEEE 802.11b WLAN access point that voice and/or data, services are provided to the mobile device that is positioned at coverage 108 110.Demonstration ground shows communication system 100, and it has the WLAN access point 104 corresponding non-crossover coverages 108 of locating with utilization and cordless communication network 102 corresponding coverages 106.Can use other setting for the present invention, for example the crossover coverage 108.
Be described below, the present invention allows each mobile device 110 to detect the existence of WLAN.Likewise, when mobile device 110 is positioned at coverage 108, except communicating with cordless communication network 102, the present invention make mobile device 110 each can with one or more the communicating in the WLAN access point 104.For example, be positioned at coverage 108
1Interior mobile device 110
2Can with WLAN access point 104
1Communicate with wireless communication system 102.Therefore, mobile device 110
2Can be undesirably at WLAN access point 104
1And conversion communication between the wireless communication system 102.Yet, mobile device 110
1To continue to communicate, up to mobile device 110 with wireless communication system 102
1Move in one or more coverages 108 of WLAN access point 104.
Can be made at the decision of the switching between wireless communication system 102 and the WLAN at mobile device 110 places or by the intelligence in the wireless communication system 102 (intelligence).For being made decision by wireless communication system 102, wireless communication system 102 need accurately be known the position of mobile device 110 and the position of WLAN access point 104.For example send to wireless communication system 102, can accurately obtain the position of mobile device 110 through global positioning system (GPS) receiver in the use mobile device 110 and with coordinate.
Fig. 2 shows the high-level block diagram of an embodiment of the part that can use mobile device 110 of the present invention.Mobile device 110 comprise with the cellular front end 202 of antenna 210 coupling, with WLAN front end 204, cellular baseband circuitry 206, WLAN baseband circuit 208, multiplexer 216, network layer 218 and the application layer 220 of antenna 212 couplings.Cellular front end 202 is sent and is received by cellular baseband circuitry 206 handled radio frequency (RF) signals in cellular telephone band.WLAN front end 204 sends and receives by WLAN baseband circuit 208 handled RF signals in the WLAN frequency band.The data output of WLAN baseband circuit 208 and cellular baseband circuitry 206 and network layer 218 couplings.The output of network layer 218 and application layer 220 couplings are used for to user's display video and/or audio frequency.For example, mobile device 110 can comprise cell phone.In another example, mobile device 110 comprises having the PDA(Personal Digital Assistant) that WLAN inserts card (for example PCMCIA (PCMCIA) standard is inserted card).
WLAN front end 204 comprises the WLAN scanner 214 of the existence that is used to detect WLAN.In brief, the present invention starts WLAN and scans the existence of searching for WLAN.Explain below in conjunction with Fig. 9 and 10 and to be used for controllably carrying out the WLAN method for scanning.So far, cellular front end 202 has received and has sent data-signal, and cellular baseband circuitry 206 treated data-signal.When detecting the existing of WLAN, there is WLAN in WLAN scanner 214 informing network layers 218.If expectation then, network layer 218 can activate WLAN baseband circuit 208 through multiplexer 216.That is, WLAN front end 204 receives and sends data-signal now, and WLAN baseband circuit 208 process data signal.
When WLAN baseband circuit 208 is activated, cellular baseband circuitry 206 was lost efficacy.If mobile device 110 moves to outside the scope of WLAN thereafter, network layer 218 can activate cellular baseband circuitry 206 through multiplexer 216, and WLAN baseband circuit 208 was lost efficacy.In one embodiment, response drops to (for example mobile device 110 moves to outside the scope of WLAN) under the predetermined threshold at mobile device 110 place's signal qualitys, and network layer 218 activates cellular baseband circuitry 206.Those skilled in the art will appreciate that the present invention can be used to during other are provided with, only for example be configured to the mobile device (for example laptop computer) that communicates with WLAN.
Fig. 3 shows the block diagram according to the more detailed embodiment of the part of mobile device 110 of the present invention.With identical reference number represent with Fig. 2 in unit among the identical or similar Fig. 3 in unit.Demonstration ground, WLAN front end 204 comprise RF filter 302, low noise amplifier (LNA) 306, blender 310, phase-locked loop (PLL) circuit 314, band pass filter (BPF) 318, automatic gain control (AGC) circuit 322 and homophase and quadrature (I/Q) demodulator 326.Demonstration ground, cellular front end 202 comprises RF filter 304, LNA306, blender 312, PLL circuit 316, BPF 320, agc circuit 324 and demodulator 328.In the illustrated embodiment, WLAN scanner 214 comprises WLAN energy detector 338, controller 330, multiplexer 336 and AGC multiplexer 332.
In operation, the RF signal of in the WLAN frequency band, propagating is coupled to LNA 306 from RF filter 302.RF filter 302 is designed to through the RF signal in the target WLAN frequency band (for example 2.4GHz scope).LNA 306 is amplification RF signal under AGC control, and the RF signal is coupled to blender 310.Blender 310 produces the tuning RF signal with frequency relevant with the specific objective channel with the output multiplication of RF signal and PLL circuit 314.PLL circuit 314 is under the AGC control equally.Tuning RF signal is coupled to BPF 318, so that remove the high order of frequency composition that is produced by blender 310.The output of BPF 318 is coupled to agc circuit 322, is used for gain controlling.Then, the output of agc circuit 322 is coupled to i/q demodulator 326, and i/q demodulator 326 comes the tuning RF signal of demodulation according to known mode.The output of i/q demodulator is base band or nearly baseband signal.
The class of operation of cellular front end 202 is similar to the operation of WLAN front end 204.In brief, the RF signal of in cellular band, propagating is coupled to LNA 308 from RF filter 302.RF filter 302 is designed to through the RF signal in the target cell frequency band (for example 1.9GHz scope).LNA 308 amplification RF signals, and blender 312 produces tuning RF signal under the control of PLL 316.BPF 320 removes by the high order of frequency composition that mixed process produced, and agc circuit 324 provides gain controlling.Demodulator 328 outputs to cellular baseband circuitry 206 with base band or nearly baseband signal.
Base band or nearly baseband signal from i/q demodulator 326 are coupled to WLAN energy detector 338.One or more energy huntings among 338 scannings of WLAN energy detector and the WLAN in the movable corresponding demodulation RF signal of medium access control (MAC) layer.Medium access control (MAC) layer was handled the activity that is produced during discontinuous cycle variation (the for example energy hunting in the RF signal) in the noise like energy was indicated by WLAN.In one embodiment, 338 scannings of WLAN energy controller and the corresponding energy hunting of periodic beacon of in the RF signal, sending.For example, in IEEE 802.11 standards, send beacon periodically with speed able to programme (for example typically 10Hz).The existence that detects these 10Hz energy huntings in the RF signal can provide the indication that has WLAN.
Response detects one or more energy huntings, and WLAN energy detector 338 phase controllers 330 indicate the existence of WLAN.Controller 330 offers network layer 218 with the WLAN detection signal.Network layer 218 is controllably selected the output signal through multiplexer 336 from WLAN baseband circuit 208.Below in conjunction with Fig. 4 the converts communications method from the cellular network to WLAN in mobile device is described.When not activating WLAN baseband circuit 208, controller 330 also provides gain controlling through AGC multiplexer 332 for the unit in the WLAN front end 204.
Fig. 5 shows the block diagram of an embodiment of WLAN energy detector 338.WLAN energy controller 338 comprises analog to digital (A/D) transducer 504, absolute value circuit 506, low pass filter (LPF) 510 and energy change detector 516.Carry out digitlization by 504 pairs of RF signals of A/D converter, and be coupled to absolute value circuit 506 from the demodulation of WLAN front end 204.Absolute value circuit 506 calculates the absolute value of the sampling in the digitized demodulation RF signal.Alternatively, can be with the squared magnitude square circuit of digitized demodulation RF signals sampling is replaced absolute value circuit 506.The output of absolute value circuit 506 is coupled to LPF 510.The output of LPF 510 is coupled to energy change detector 516, and energy change detector 516 detects above-mentioned energy hunting.Although WLAN energy detector 338 is described to have A/D converter, those skilled in the art will recognize that A/D converter can be in the WLAN front end 204 rather than is in the WLAN energy detector 338.As stated, the RF signal of demodulation can be from the base band of I/O demodulation 326 or near the signal of base band.Alternatively, the RF signal of demodulation can be typically in numeric field, to carry out employed Low Medium Frequency (IF) signal in the system of base band demodulating.The pulse energy characteristic of signal can appear in arbitrary method.
In operation, WLAN energy detector 338 calculate from the absolute value of the demodulation RF signal of WLAN front end 204 or square recursive average.In Fig. 7 and 8, show to diagram the result.Particularly, Fig. 7 shows the RF signal that receives with illustrating.In this example, the RF signal that receives is to have-DSSS (DSSS) signal of 3dB signal noise ratio (SNR).For example, in IEEE 802.11b WLAN, adopted sort signal.The amplitude of axle 702 expression RF signals, and the sample number in a plurality of samplings of axle 704 expressions.As shown in the figure, the RF signal is the signal with noise-like energy characteristics.Fig. 8 shows the output of the LPF in WLAN energy detector 338 510 after above-mentioned recursive average computation with illustrating.The amplitude of axle 802 representative output signals, and axle 804 is represented hits (with 1,000,000 units of being sampled as).As shown in Figure 8, the output of LPF 510 is a plurality of periodic energy pulses 806.Energy pulse 806 is examples of one or more energy huntings of being produced by the behavior of MAC layer among the WLAN.Recurrence below LPF 510 in this example carries out is average:
y(n)=x(n)+0.9999y(n-1)
Wherein, y (n) is the current output sampling of LPF 510, and x (n) is the current input sample to LPF 510, and y (n-1) is the previous output sampling of LPF 510.
For detected energy pulse 806, the present invention adopts energy change detector 516.Like the following explanation of carrying out about Fig. 6, energy change detector 516 detected energy pulses 806, and produce the WLAN will send to controller 330 and have signal.Because the present invention only scans the existence of energy hunting in the RF signal, and restore data from the RF signal not, the present invention has advantageously avoided synchronous RF signal and has carried out the needs that carrier wave recovers.The frequency reference accuracy of in wlan standard, stipulating (for example in IEEE 802.11b standard, stipulate ± 25ppm) make PLL circuit 314 operation and the automatic gain control (AGC) that do not need the WLAN baseband circuit to be provided.Likewise, needn't activate the existence that WLAN baseband circuit 208 detects WLAN, therefore practice thrift power and prolonged battery life.
A/D converter 304 is provided for controlling the overload indicator of gain of LNA 306 and the agc circuit 322 (Fig. 3) of WLAN front end 204.Overload indicator is provided for controller 330, the slicing effect of the A/D converter 504 of the input that is used for avoiding leading to errors.Controller 330 can pass through multiplexer 332, adopts overload indicator to carry out gain controlling.When activating WLAN baseband circuit 208, and mobile device is when WLAN receives service, and gain controlling is passed to WLAN baseband circuit 208 through multiplexer 332.
Get back to Fig. 5, in another embodiment of WLAN energy detector 338, sampling circuit (decimation circuit) 508 and 512 is set in the input and output of LPF510.The sample rate that sampling circuit 508 and 512 controls can be adjusted according to the SNR of the RF signal that receives.For example, if SNR is high, can be the RF signal be carried out digitlization than low rate.The noise energy that superposeed, but energy pulse 806 remains detectable.Therefore, under 0dBSNR, 100: 1 sampling of LPF 510 input and output still makes energy change detector 516 can detect energy pulse 806.On the other hand, if SNR is lower, use higher sample rate, so that average among the LPF 510.In another embodiment, can use rim detection 514 to give prominence to the rising and the decline of energy pulse 806, and remove the DC biasing that is produced by LPF 510.
Fig. 6 shows the state diagram of an embodiment of energy change detector 516.In the present embodiment, energy change detector 516 operates in the state machine (for example 1KHz) on the movable twice level frequency of the MAC layer of WLAN.At state 602, start energy change detector 516.If there is not energy pulse 806, energy change detector 516 keeps idle.When detecting one of energy pulse 806, energy change detector 516 advances to state 604.If another energy pulse 806 arrives in the given time, energy change detector 516 advances to state 606.Otherwise energy change detector 516 turns back to state 602.Energy change detector 516 advances to state 606,608 and 610 from state 604 in a comparable manner.The scheduled time may be implemented as the delay of timer, for example 150ms.Therefore, in this example, indicate at energy change detector 516 before the existence of WLAN, must in 150ms, receive four energy pulses 806.Those skilled in the art will recognize that and can use one or more states, corresponding with the detection of one or more energy pulses or fluctuation in the RF signal on preset time.
As stated, when mobile device was positioned at the coverage of WLAN, WLAN energy detector of the present invention can allow mobile device from the cellular network conversion WLAN that communicates by letter.Fig. 4 is used for will communicating by letter at mobile device transforming to the flow chart of an embodiment of the method 400 of WLAN from cellular network.Simultaneously with reference to figure 3 understanding method 400 best.Method 400 starts from step 402, and advances to step 404, in step 404, and the WLAN channel that 204 selections of WLAN front end will be handled.So far, activate cellular front end 202 and cellular baseband circuitry 206, and mobile device and cellular network communicate.In step 406, carry out the gain adjustment by controller 330 as stated.In step 408, WLAN scanner 214 scanning energy fluctuation as described above.If WLAN scanner 214 detects this energy hunting, method 400 advances to step 414 from step 410.Otherwise method 400 advances to step 412.
If WLAN scanner 214 detects the existence of WLAN,, activate the accessibility that WLAN baseband circuit 208 is confirmed WLAN in step 414.If possible connect, method 400 advances to step 422 from step 420, and in step 422, mobile device is from the cellular network conversion WLAN that communicates by letter.If can not connect, method 400 advances to step 412 from step 420.Method 400 finishes in step 424.
In step 412, the next WLAN channel that 204 selections of WLAN front end will be handled.If there are not other channels that will handle, method 400 advances to step 418 from step 416, in step 418, WLAN front end 204 was lost efficacy and after predetermined delay, carries out this method again.If there is the channel that will handle, method 400 advances to step 404, in step 404, and manner of execution 400 again as stated.Can carry out said method 400 by controller 330.
Fig. 9 shows the state diagram that is used for controllably carrying out at mobile device an embodiment of the method for scanning 900 that is directed against WLAN.Method 900 starts from state 902, and at state 902, mobile device is activated and keeps idle.If WLAN scanner 214 detects the data of mobile device and sends, then method 900 advances to state 904.For example, mobile device can begin to communicate with cellular network, for example checks e-mails or starts the network browsing in the mobile device.So far, WLAN scanner 214 is suspended.At state 904, WLAN scanner 214 scans to WLAN as described above.WLAN scanner 214 continues to scan to WLAN, stops data up to mobile device and sends.If do not exist the data of mobile device to send, method 900 turns back to state 902, and at state 902, WLAN scanner 214 suspends.If detect WLAN by WLAN scanner 214, method 900 advances to state 906, and at state 906, as stated, mobile device is brought into use WLAN.Mobile device continues to use WLAN, as long as mobile device is in the coverage of WLAN.When leaving the coverage of WLAN, method 900 turns back to state 902.
Figure 10 shows the state diagram that is used for controllably carrying out at mobile device another exemplary embodiments of the method for scanning 1000 that is directed against WLAN.Method 1000 starts from state 1002, and at state 1002, mobile device is activated and keeps idle.If WLAN scanner 214 detects the request from the beginning WLAN scanning of mobile device, method 1000 advances to state 1004.So far, WLAN scanner 214 is suspended.For example, the user can manually ask WLAN scanning through pushing the button on the mobile device or passing through the choice menus option.This allows the user only to carry out the data transmission, if the user can so do on WLAN.If cellular network is the sole mode that data are sent, the user can select forgo data to send, and is available up to the WLAN service.
In another example, the user can be provided with the frequency of WLAN scanning.That is, WLAN scanner 214 can receive the request that WLAN scans periodically or according to predetermined arrangement.For example, the frequency of WLAN scanning can be the menu option in the mobile device.Reduce WLAN scanning spectrum saving the power of battery in the mobile device, introduced the stand-by period yet detect in handling, because will no longer scan by frequency at WLAN.The frequency that increases WLAN scanning will cause WLAN faster to detect and in battery performance, follow shortcoming.
In another example, can produce the request of WLAN scanning by user activation WLAN scanning characteristics.Particularly, mobile device can have the WLAN scanning characteristics that open or close.If open WLAN scanning characteristics, request is sent to WLAN scanner 214 as manual request or periodic request.In addition, can combine to use among the described embodiment of Fig. 9 WLAN scanning characteristics to select in the above.When carrying out data, the user sends, still know that the user can be forbidden WLAN scanning when in this zone, not having WLAN to cover (for example in the automobile of user on the expressway).The feature conserves of forbidding WLAN scanning the power of battery.
Under any circumstance, at state 1004, as stated, WLAN scanner 214 is to WLAN scanning.If do not detect WLAN, method 1000 turns back to state 1002.If detect WLAN, method 1000 advances to state 1004, and at this, as stated, mobile device is brought into use WLAN.Mobile device continues to use WLAN, as long as mobile device is in the coverage of WLAN.When the coverage of leaving WLAN, method 1000 turns back to state 1002.
Although related to exemplary embodiments of the present invention above, can design other embodiment of the present invention, and not break away from its base region, and its scope is confirmed by accompanying claims.