1. Technical Field
Embodiments of the present disclosure relate to positioning technology, and particularly to a mobile device and method for determining a location of the mobile device.
2. Description of Related Art
Mobile devices (e.g., smart phones) may be equipped with a global positioning system (GPS) chip, so that location-based service (LBS) providers can determine locations of the mobile devices by analyzing GPS information sent from the mobile devices, and returning the determined locations to the mobile devices. However, if a mobile device is not equipped with the GPS chip, the mobile device cannot obtain location information from the LBS providers. Additionally, location information may not be obtained where the mobile device is inside a building due to interference. Therefore, an efficient method for determining the location of the mobile device is desired.
All of the processes described below may be embodied in, and fully automated via, functional code modules executed by one or more general purpose electronic devices or processors. The code modules may be stored in any type of non-transitory computer-readable medium or other storage device. Some or all of the methods may alternatively be embodied in specialized hardware. Depending on the embodiment, the non-transitory computer-readable medium may be a hard disk drive, a compact disc, a digital video disc, a tape drive or other suitable storage medium.
In one embodiment, the signal generator 3 may include, but is not limited to, a signal generation circuit 30, a speaker 31, and a volume control circuit 32. The signal generation circuit 30 is located in a specified position (e.g., an interior room), and is used to obtain an address signal (e.g., a sine wave signal) of the signal generator 3. Then, the signal generator 3 emits the address signal through the speaker 31, so that the mobile device 2 may receive the address signal when the mobile device 2 is located near the signal generator 3. The volume control circuit 32 is used to adjust a volume level (i.e., an amplitude) of the speaker 31, so as to adjust a transmission distance of the address signal. The signal generator 3 may be equipped with a WIFI hotspot which is located in a public space.
In one embodiment, a frequency of the sine wave signal generated by the signal generation circuit 30 is greater than 18 kHz (i.e., a high frequency signal). A frequency response range of the speaker 31 is [18 kHz, 20 kHz], a total harmonic distortion (THD) of the speaker 31 is less than 0.5%. The high frequency signal cannot be heard by a user of the mobile device 2, so normal communications with other people using the mobile device 2 are not affected.
The display device 20 may be a liquid crystal display (LCD), a touch sensitive screen or other display device, and the receiver 22 receives the address signal sent from the signal generator 3.
The positioning system 24 is used to determine a virtual address (e.g., 0-0-0-18000) of the mobile device 2 according to the address signal received from the signal generator 3, send the virtual address to the server 4, and receive location information (e.g., a physical address) of the mobile device 2 sent from the server 4. In one embodiment, the positioning system 24 may include computerized instructions in the form of one or more programs that are executed by the at least one processor 25 and stored in the storage device 23 (or memory). A detailed description of the positioning system 24 will be given in the following paragraphs.
In step S1, the first receiving module 201 receives an address signal from the signal generator 3. In one embodiment, the signal generator 3 generates a plurality of address signals by generating one or more sine wave signals, and broadcasts one of the address signals at a preset time interval (e.g., five seconds). Three methods for generating the address signals are illustrated as follows.
A first method is called as a single frequency mode. In the single frequency mode, one sine wave signal is generated by the signal generator 3, a sampling frequency of the sine wave signal is 44,100 Hz, a sampling length is 16 bits, and a format of the sine wave signal is a pulse coding modulation (PCM) format. The address signals in the first method are obtained by a first formula (1).
In the first formula, “f0” represents a preset frequency of the address signals (e.g., f0=18 kHz), “Amp” represents an amplitude of the sine wave signal, and “n” represents a number of cycles of the sine wave signal. If a frequency interval of the address signals is 100 Hz, twenty-one address signals are obtained by applying the first formula.
A second method is called as a complex frequency mode. In the complex frequency mode, a plurality of sine wave signals are generated by the signal generator 3. For example, if eight sine wave signals are generated, a number of the address signals is determined by a second formula (2).
C
1
21
+C
2
21
+C
3
21
+C
4
21
+ . . . +C
8
21=104446 (2).
If two sine wave signals are used for example, the address signals in the second method are obtained by a third formula (3).
In the third formula, “fk” represents the preset frequency of the address signals (e.g., fk=18 kHz), “Amp” represents an amplitude of the two sine wave signals, “m” represents a first number of cycles of a first sine wave signal, and “n” represents a second number of cycles of a second sine wave signal.
A third method is called enhanced mode which is a combination of the complex frequency mode and an additional signal (e.g., a WIFI signal). For example, a format of the enhanced mode include three complex frequency signals and one WIFI signal.
In step S2, the signal transform module 202 transforms the address signal into a frequency domain signal using a fast Fourier transform (FFT) method. An example of the frequency domain signal which is transformed using the FFT method is shown in
In step S3, the virtual address determining module 203 determines a maximum energy value of the frequency domain signal, determines a virtual address according to a frequency value corresponding to the maximum energy value (hereinafter referred to as “the frequency of the maximum energy value”), and sends the virtual address to the server 4 through the network 5.
In one embodiment, the virtual address includes the frequency value corresponding to the maximum energy value and other preset frequency values. For example, as shown in
An example of determining the maximum energy value of the frequency domain signal is as follows. First, the virtual address determining module 203 obtains energy values that are greater than a preset value (e.g., 60 dB) from the frequency domain signal. Second, the virtual address determining module 203 creates a binary search tree using the obtained energy values. Third, the virtual address determining module 203 searches for a maximum value in the binary search tree using a binary tree traversal method, the maximum value is determined as the maximum energy value of the frequency domain signal.
In other embodiments, the signal transform module 202 may transform the address signal into a plurality of frequency domain signals at different times. Then, the address determining module 203 determines a plurality of maximum energy values of the different frequency domain signals, and determines the virtual address according to a plurality of frequency values corresponding to the maximum energy values.
In step S4, the server 4 determines location information (e.g., the physical address) of the mobile device 2 according to the virtual address, and sends the location information to the mobile device 2 through the network 5. In one embodiment, the server 4 determines the location information of the mobile device 2 according to a preset mapping document 40, the preset mapping document 40 stores a one-to-one mapping relation between a plurality of virtual addresses of the mobile device 2 and physical location information of the mobile device 2.
As shown in
In step S5, the second receiving module 204 receives the location information of the mobile device 2 from the server 4. Then, the displaying module 205 displays the location information on the display device 20 of the mobile device 2.
In some embodiments, the mobile device 2 obtains the location information according to the address signal generated by the signal generator 3 in one specified position, so that a global positioning system (GPS) chip is not needed. Furthermore, the location information can be determined even when the mobile device 2 is in the middle of large “signal-proof” building so long as the signal generator 3 is also located in the interior of the building.
In other embodiments, the server 4 of
It should be emphasized that the above-described embodiments of the present disclosure, particularly, any embodiments, are merely possible examples of implementations, merely set forth for a clear understanding of the principles of the disclosure. Many variations and modifications may be made to the above-described embodiment(s) of the disclosure without departing substantially from the spirit and principles of the disclosure. All such modifications and variations are intended to be included herein within the scope of this disclosure and the present disclosure and protected by the following claims.
Number | Date | Country | Kind |
---|---|---|---|
201110389729.9 | Nov 2011 | CN | national |