CN106993327B - Network locating method, device and computer equipment - Google Patents
Network locating method, device and computer equipment Download PDFInfo
- Publication number
- CN106993327B CN106993327B CN201710150922.4A CN201710150922A CN106993327B CN 106993327 B CN106993327 B CN 106993327B CN 201710150922 A CN201710150922 A CN 201710150922A CN 106993327 B CN106993327 B CN 106993327B
- Authority
- CN
- China
- Prior art keywords
- radio network
- network information
- information
- location
- shared file
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W52/00—Power management, e.g. TPC [Transmission Power Control], power saving or power classes
- H04W52/02—Power saving arrangements
- H04W52/0209—Power saving arrangements in terminal devices
- H04W52/0225—Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W52/00—Power management, e.g. TPC [Transmission Power Control], power saving or power classes
- H04W52/02—Power saving arrangements
- H04W52/0209—Power saving arrangements in terminal devices
- H04W52/0225—Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal
- H04W52/0248—Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal dependent on the time of the day, e.g. according to expected transmission activity
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W64/00—Locating users or terminals or network equipment for network management purposes, e.g. mobility management
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Abstract
The present embodiments relate to a kind of network locating method, device and computer equipments.The above method, comprising: receive network location request;The radio network information being newly written is read from shared file according to the network location request, the shared file is used for the radio network information of memory mobile terminal connection;Corresponding location information is determined according to the radio network information.System power dissipation when network positions can be effectively reduced in above-mentioned network locating method, device and computer equipment, and reduces wireless networking delay.
Description
Technical field
The present invention relates to network technique fields, more particularly to a kind of network locating method, device and computer equipment.
Background technique
LBS (Location Based Service is based on location-based service) is referred to through operators such as telecommunications or movements
Radio communication network, such as GSM (Global System for Mobile Communication, global mobile communication
System) network, CDMA (Code Division Multiple Access, code multiple address) network etc., or external positioning method,
Such as GPS (Global Positioning System, global positioning system) etc., the location information of mobile terminal user is obtained,
Under the support of GIS (Geographic Information System, GIS-Geographic Information System) platform, provided accordingly for user
A kind of value-added service of service.
Major network positions provider is in order to promote itself LBS service, it will usually announce the SDK (Software of positioning
Development Kit, Software Development Kit), traditional LBS application is all integrated with mostly to be provided by third party's network positions
The SDK that quotient provides.Due to the independence of SDK, each LBS on mobile terminal is applied when carrying out network positions every time,
It needs to scan acquisition radio network information, is just able to achieve network positions.When the LBS used using it is more when, each LBS application collection
At SDK continually can actively initiate radio network information scanning, cause the system power dissipation on mobile terminal to increase, and cause nothing
The problems such as line online delay.
Summary of the invention
The embodiment of the present invention provides a kind of network locating method, device and computer equipment, and it is fixed that network can be effectively reduced
System power dissipation when position, and reduce wireless networking delay.
A kind of network locating method, comprising:
Receive network location request;
The radio network information being newly written, the shared text are read from shared file according to the network location request
Part is used for the radio network information of memory mobile terminal connection;
Corresponding location information is determined according to the radio network information.
A kind of network positions device, comprising:
Receiving module, for receiving network location request;
Read module, for reading the wireless network being newly written letter from shared file according to the network location request
Breath, the shared file are used for the radio network information of memory mobile terminal connection;
Determining module, for determining corresponding location information according to the radio network information.
A kind of computer equipment, including memory, processor and storage can be run on a memory and on a processor
Computer program, the processor realize network locating method as described above when executing described program.
Above-mentioned network locating method, device and computer equipment, receive network location request, according to network location request from
The radio network information being newly written is read in shared file, and corresponding location information is determined according to radio network information, is not necessarily to
It carries out all actively initiating radio network information scanning when network positions every time, scanning radio network information frequency can be reduced, thus
System power dissipation when network positions is effectively reduced, and reduces wireless networking delay.
Detailed description of the invention
Fig. 1 is the block diagram of terminal in one embodiment;
Fig. 2 is the flow diagram of network locating method in one embodiment;
Fig. 3 is the flow diagram monitored in one embodiment radio network information;
Fig. 4 is the flow diagram for reading radio network information in one embodiment from shared file;
Fig. 5 is the flow diagram for determining corresponding location information in one embodiment according to radio network information;
Fig. 6 is the flow diagram for determining corresponding location information in another embodiment according to radio network information;
Fig. 7 is the block diagram of network positions device in one embodiment;
Fig. 8 is the block diagram of network positions device in another embodiment;
Fig. 9 is the block diagram of read module in one embodiment;
Figure 10 is the block diagram of determining module in one embodiment;
Figure 11 is the block diagram of determining module in another embodiment;
Figure 12 is the block diagram of computer equipment in one embodiment.
Specific embodiment
In order to make the objectives, technical solutions, and advantages of the present invention clearer, with reference to the accompanying drawings and embodiments, right
The present invention is further elaborated.It should be appreciated that described herein, specific examples are only used to explain the present invention, not
For limiting the present invention.
It is appreciated that term " first " used in the present invention, " second " etc. can be used to describe various elements herein,
But these elements should not be limited by these terms.These terms are only used to distinguish the first element from the other element.Citing comes
It says, without departing from the scope of the invention, the first client can be known as the second client, and similarly, can incite somebody to action
Second client is known as the first client.The first client and the second client both client, but it is not same visitor
Family end.
Fig. 1 is the schematic diagram of internal structure of terminal in one embodiment.As shown in Figure 1, the terminal includes total by system
Processor, non-volatile memory medium, built-in storage and network interface, display screen and the input unit that line connects.Wherein, terminal
Non-volatile memory medium be stored with operating system.The processor supports entire terminal for providing calculating and control ability
Operation.Built-in storage in terminal provides environment for the operation of the computer-readable instruction in non-volatile memory medium.Net
Network interface is used to carry out network communication, the position for such as sending radio network information to server, receiving server return with server
Confidence breath etc..The display screen of terminal can be liquid crystal display or electric ink display screen etc., and input unit can be display
The touch layer covered on screen is also possible to the key being arranged in terminal enclosure, trace ball or Trackpad, is also possible to external key
Disk, Trackpad or mouse etc..The terminal can be mobile phone, tablet computer or personal digital assistant or wearable device etc..This
Field technical staff is appreciated that structure shown in Fig. 1, only the block diagram of part-structure relevant to application scheme,
The restriction for the terminal being applied thereon to application scheme is not constituted, specific terminal may include more than as shown in the figure
Or less component, perhaps combine certain components or with different component layouts.
As shown in Fig. 2, in one embodiment, providing a kind of network locating method, comprising the following steps:
Step S210 receives network location request.
In embodiments of the present invention, when user uses LBS using upper network positions function on mobile terminals, LBS
Using network location request can be sent to the operating system of mobile terminal, wherein mobile terminal may include that mobile phone, individual digital help
Reason, laptop and desktop computer etc., LBS application may include koinotropic type LBS application, service for life type LBS application and trip
Play type LBS application etc..The SDK provided by third party's network positions provider can be provided in each LBS application, such as Google,
The SDK of the offers such as Gao De and Baidu.
Step S220 reads the radio network information being newly written according to network location request from shared file.
The operating system of mobile terminal receives the network location request sent by LBS application, can be according to network location request
The radio network information being newly written is read from shared file, wherein shared file is used for the nothing of memory mobile terminal connection
The radio network information that mobile terminal connects each time can be written in shared file for the line network information.Radio network information can
Base station information etc. in hot information and/or mobile communication including WiFi (Wireless Fidelity, Wireless Fidelity),
In, Wi-Fi hotspot refers to the access point (Access Point, AP) of WiFi, can mainly include that route switching accesses integrated equipment
With pure access point apparatus etc., route switching accesses the executable access of integrated equipment and routing function, pure access device are only responsible for nothing
Line access, mobile terminal can use WiFi network by access Wi-Fi hotspot.The hot information of WiFi may include Wi-Fi hotspot
BSSID (Basic Service Set Identifier, basic service set identification), SSID (Service Set
Identifier, service set) and signal strength etc., wherein BSSID may generally be for identifying a basic service set
MAC (Media Access Control, medium access control) address of Wi-Fi hotspot, SSID is for identifying Wi-Fi hotspot, and one
As can be Wi-Fi hotspot title.Base station information may include CID (Cell Identity, base station number), the LAC of base station
(Location Area Code, location area code) and signal strength etc..
It, can be simultaneously in shared file when shared file is written in the radio network information for connecting mobile terminal each time
The write time is recorded, operating system can be successive according to the write time, and write time last wireless is chosen from shared file
The network information, the radio network information being as newly written are read out.
In other embodiments, can in prespecified shared file radio network information writing position, for example, every time
All by the least significant end of radio network information write-in shared file, wherein the least significant end that shared file is written is referred in shared text
New radio network information is written in the end of part raw content, can not use space or null among the radio network information of homogeneous write-in
It separates.When the operating system of mobile terminal receives network location request, it can be chosen from shared file and be located at file content most
Subsequent radio network information, the radio network information being as newly written are read out.
Step S230 determines corresponding location information according to radio network information.
The operating system of mobile terminal can obtain after reading radio network information in shared file according to radio network information
Take corresponding location information, wherein location information may include latitude and longitude information etc., and longitude and latitude is one of longitude and latitude composition
Coordinate system, referred to as geographical co-ordinate system, it is a kind of spherical surface using three-dimensional space to define the spherical surface in tellurian space
Coordinate system can indicate any one tellurian position.Location information can be pre-stored on mobile terminal and nothing
The corresponding location information of the line network information is also possible to be calculated by location-server according to radio network information real-time perfoming
It arrives.
After the operating system of mobile terminal obtains location information corresponding with radio network information, location information can be returned
To send network location request LBS application, LBS application can be shown according to location information, for example, on map show with
The corresponding point of location information, or show the services for life such as cuisines relevant to the location information, bank, supermarket etc., but it is unlimited
In this, the specific specific service function of showing that content can be provided according to LBS application is determined.
Above-mentioned network locating method receives network location request, is read most from shared file according to network location request
The radio network information being newly written, determines corresponding location information according to radio network information, realizes each LBS by shared file
Radio network information is shared between, and radio network information scanning is all actively initiated when without carrying out network positions every time,
Scanning radio network information frequency can be reduced, thus system power dissipation when network positions are effectively reduced, and reduce wireless networking and prolong
Late.
As shown in figure 3, further including following step before step S210 receives network location request in one embodiment
It is rapid:
Step S302, monitors radio network information.
The process for monitoring network state can be pre-established in mobile terminal, and radio network information is monitored, when
Radio network information in the operating system of mobile terminal is changed, for example, the Wi-Fi hotspot of mobile terminal connection occurs
The base station of variation or mobile terminal connection changes, and operating system can broadcast nothing to the process of the monitoring wireless network information
Gauze network change message.
The radio network information after variation is written altogether when detecting that radio network information changes by step S304
Enjoy file.
When the process for being used for the monitoring wireless network information in mobile terminal receives wireless network change message, that is, working as
When detecting that radio network information changes, which parses the wireless network change message received, after can obtaining variation
Wi-Fi hotspot information or the radio network informations such as base station information, and the radio network information write-in after variation is pre-created
In shared file, wherein shared file can also store other shared other than the radio network information that memory mobile terminal connects
Data, the different application on mobile terminal can realize data sharing by shared file.
In the present embodiment, radio network information can be monitored, and the radio network information after variation is written altogether
File being enjoyed, the shared of radio network information between each LBS application being realized by shared file, when without carrying out network positions every time
Radio network information scanning is all actively initiated, scanning radio network information frequency can be reduced, thus when network positions are effectively reduced
System power dissipation, and reduce wireless networking delay.
As shown in figure 4, in one embodiment, step S220 reads from shared file newest according to network location request
The radio network information of write-in, comprising the following steps:
Whether step S402 judges comprising radio network information in shared file, if so, S404 is thened follow the steps, if it is not,
Then follow the steps S406.
In embodiments of the present invention, LBS is applied to the operating system of mobile terminal and is sent network location request, when operation is
When system receives network location request, the radio network information being newly written can be read from shared file.In one embodiment
In, the data being written in shared file can be emptied every preset time, for example, can subtract every 12 hours, 24 hours etc.
Few operating system reads the time of data from shared file, improves the speed of network positions.When operating system will be from shared text
When reading the radio network information being newly written in part, can first it judge whether comprising radio network information in shared file, if altogether
It enjoys and is stored with radio network information in file, then operating system can read the wireless network letter being newly written from shared file
Breath, and corresponding location information is determined according to the radio network information of reading.
Step S404 reads the radio network information being newly written from shared file.
Step S406 scans the Wireless Communication Equipment in mobile terminal preset range, and obtains Wireless Communication Equipment
Radio network information.
If the radio network information not included in radio network information namely shared file in shared file is sky, move
The operating system of dynamic terminal can scan the Wireless Communication Equipment in mobile terminal preset range, wherein preset range can basis
Depending on the signal strength that each Wireless Communication Equipment issues in the actually located region of mobile terminal, if the letter that Wireless Communication Equipment issues
Number intensity is stronger, then preset range is larger, if the signal strength that Wireless Communication Equipment issues is weaker, preset range is smaller, example
Such as the Wireless Communication Equipment etc. in the Wireless Communication Equipment in 300 meters of mobile scanning terminal, or 500 meters of scanning, however it is not limited to this.
Wireless Communication Equipment can be the equipment as Wi-Fi hotspot, such as route switching access integrated equipment, router and pure access
Equipment etc. is also possible to base station etc..
In one embodiment, mobile terminal is scanned the Wireless Communication Equipment in preset range, can be using master
The modes such as dynamic scanning or drive sweep.Active scan refers to that mobile terminal issues detection on each channel in an active manner
(Probe Request) frame is requested, when the Wireless Communication Equipment in preset range receives probe request, detection can be transmitted
Response (Probe Request) frame is responded.It, can be further if mobile terminal receives probe response frame on certain channel
Obtain the radio network information for issuing the Wireless Communication Equipment of the probe response frame.Drive sweep refers to the nothing in preset range
The line network equipment sends Beacon (beacon) frame in a manner of fixed time broadcast, and mobile terminal can switch in each channel, receives
Beacon frame is simultaneously recorded, to further obtain the wireless network information for sending the Wireless Communication Equipment of Beacon frame.It is mobile
The mode that drive sweep can be used in terminal is scanned the Wireless Communication Equipment in preset range, and obtains wireless network letter
Number, because not needing to transmit any signal during the scanning process, the power consumption of mobile terminal can be saved.
In the present embodiment, when LBS application carries out network positions, it can read and to be newly written directly from shared file
Radio network information all actively initiating radio network information scanning, it is wireless can to reduce scanning when without carrying out network positions every time
Network information frequency, thus system power dissipation when network positions are effectively reduced, and reduce wireless networking delay.
As shown in figure 5, in one embodiment, step S230 determines corresponding location information according to radio network information,
Further include:
Step S502, the matched flag bit of the radio network information for obtaining and being newly written.
In one embodiment, mobile terminal can work as nothing by the monitor process monitoring wireless network information pre-established
When the line network information sends variation, the radio network information after variation can be written in shared file for monitor process, and will write-in
Radio network information mark position be the second flag bit.The flag bit of radio network information can be used for indicating that wireless network is believed
Breath whether be once used for calculating location information, that is, flag bit can be used for indicate whether be stored in shared file with wirelessly
The corresponding location information of the network information.In the present embodiment, it when the flag bit of radio network information is the first flag bit, indicates
The radio network information once be used to be stored in calculating location information namely shared file corresponding with the radio network information
Location information;When the flag bit of radio network information is the second flag bit, indicate that the radio network information never be used to count
It calculates in location information namely shared file without storing location information corresponding with the radio network information.First flag bit,
Two flag bits can set different representations according to actual needs, such as the first flag bit is false, and the second flag bit is
True or the first flag bit are 0, and the second flag bit is 1 etc., however it is not limited to this.
Step S504, judgement symbol position is the first flag bit or the second flag bit, if the first flag bit, then execute step
Rapid S506, if the second flag bit, thens follow the steps S508.
When in shared file including radio network information, the operating system of mobile terminal can be read most from shared file
The radio network information being newly written, while the flag bit of the radio network information can be obtained, and judgement symbol position is the first mark
Position or the second flag bit.
Step S506 reads location information corresponding with the radio network information being newly written, and root from shared file
It is shown according to location information.
If the flag bit obtained is the first flag bit, illustrate the wireless network for being stored with and being newly written in shared file
The corresponding location information of information, operating system can directly read from shared file corresponding with the radio network information being newly written
Location information, and by the location information return to initiate network location request LBS apply.LBS application can be believed according to position
Breath is shown, for example, showing point corresponding with location information on map, or shows beauty relevant to the location information
Services for life such as food, bank, supermarket etc., but not limited to this, the specific specific service that shows content and can be provided according to LBS application
Function determines.
The radio network information being newly written is sent to location-server by step S508 so that location-server according to
Radio network information calculates corresponding location information.
If the flag bit obtained is the second flag bit, illustrate the wireless network for not having storage in shared file with being newly written
The corresponding location information of network information, mobile terminal can send the radio network information being newly written read from shared file
To location-server.Location-server can be according to BSSID, SSID of Wi-Fi hotspot in radio network information or CID of base station etc.
Information, inquiry calculates location information corresponding with received radio network information in the database.
Step S510 receives the location information that location-server returns.
Location information is written shared file, and is the first flag bit by mark position by step S512.
It, can be by position after mobile terminal receives the location information corresponding with radio network information returned by location-server
Information is written in shared file, establishes the corresponding relationship of the location information and radio network information in shared file, and by nothing
The mark position of the line network information is the first flag bit.
Step S514, is shown according to location information.
The location information can be returned to the LBS application for sending network location request by the operating system of mobile terminal, and LBS is answered
With that can be shown according to location information, for example, showing point corresponding with location information on map, or show and the position
Services for life such as the relevant cuisines of information, bank, supermarket etc., but not limited to this, it is specific to show that content be mentioned according to LBS application
The specific service function of confession determines.
In the present embodiment, when LBS application carries out network positions, in addition to can directly read newest write from shared file
Outside the radio network information entered, corresponding location information can also be read from shared file, when without carrying out network positions every time
Radio network information scanning is all actively initiated, is all accessed to location-server when without each progress network positions, it can
It reduces scanning radio network information and accesses the frequency of location-server, in the same of the system power dissipation that network positions are effectively reduced
When, it can also quick response network location request.
As shown in fig. 6, in one embodiment, step S230 determines corresponding location information according to radio network information,
The following steps are included:
Step S602, when not including radio network information in shared file, the radio network information that scanning is obtained is sent out
It send to location-server, so that location-server calculates corresponding location information according to radio network information.
When not including radio network information in shared file, the wireless network that mobile terminal can scan in preset range is set
It is standby, and obtain radio network information.In one embodiment, the radio network information that mobile scanning terminal obtains can be portion
Or more parts, the radio network information that mobile terminal can therefrom choose the strongest Wireless Communication Equipment of signal strength is sent to positioning clothes
Business device can also generate radio network information list according to more parts of radio network informations of acquisition, and radio network information is arranged
Table is sent to location-server, to improve the accuracy of location information.Location-server can be believed wireless network based on the received
Breath or radio network information list, inquiry calculates corresponding location information in the database.
Step S604 receives the location information that location-server returns.
The radio network information that location information and scanning obtain is written shared file, and scanning is obtained by step S606
Radio network information mark position be the first flag bit.
After mobile terminal receives the location information returned by location-server, by location information and positioning service can be sent to
The radio network information of device or radio network information list are written in shared file together, establish the location information of write-in and wireless
The network information or the corresponding relationship of radio network information list, and by the radio network information of write-in or radio network information list
Mark position be the first flag bit, when next LBS application initiate network location request when, the operating system of mobile terminal can be straight
It connects and reads radio network information and corresponding location information from shared file.
Step S608, is shown according to location information.
The location information can be returned to the LBS application for sending network location request by the operating system of mobile terminal, and LBS is answered
With that can be shown according to location information, for example, showing point corresponding with location information on map, or show and the position
Services for life such as the relevant cuisines of information, bank, supermarket etc., but not limited to this, it is specific to show that content be mentioned according to LBS application
The specific service function of confession determines.
It is to be appreciated that radio network information is written in shared file, in addition to wireless network is believed between each LBS application of realization
What is ceased is shared outer, and other non-LBS are applied when needing to obtain radio network information, can also directly read from shared file, and
It is not limited only to LBS application and network positions function.
In the present embodiment, the radio network information that scanning can be obtained and the position letter calculated by location-server inquiry
In breath write-in shared file, realizes the shared of radio network information and location information between each LBS application, scanning wireless network can be reduced
Network information and the frequency for accessing location-server while system power dissipation when network positions are effectively reduced, can also quickly be rung
Answer network location request.
As shown in fig. 7, in one embodiment, providing a kind of network positions device 700, including receiving module 710, reading
Module 720 and determining module 730.
Receiving module 710, for receiving network location request.
Read module 720, for reading the wireless network being newly written letter from shared file according to network location request
Breath, the shared file are used for the radio network information of memory mobile terminal connection.
Determining module 730, for determining corresponding location information according to radio network information.
Above-mentioned network positions device receives network location request, is read most from shared file according to network location request
The radio network information being newly written determines corresponding location information according to radio network information, without carrying out network positions every time
When all actively initiate radio network information scanning, can reduce scanning radio network information frequency, so that network positions be effectively reduced
When system power dissipation, and reduce wireless networking delay.
As shown in figure 8, in one embodiment, above-mentioned network positions device 700, in addition to including receiving module 710, reading
Module 720 and determining module 730 further include monitoring module 740 and writing module 750.
Module 740 is monitored, for monitoring radio network information.
Writing module 750, for when detecting that radio network information changes, by the radio network information after variation
Shared file is written.
In the present embodiment, radio network information can be monitored, and the radio network information after variation is written altogether
File being enjoyed, the shared of radio network information between each LBS application being realized by shared file, when without carrying out network positions every time
Radio network information scanning is all actively initiated, scanning radio network information frequency can be reduced, thus when network positions are effectively reduced
System power dissipation, and reduce wireless networking delay.
As shown in figure 9, in one embodiment, read module 720 includes judging unit 722, reading unit 724 and scanning
Unit 726.
Judging unit 722, for whether judging in shared file comprising radio network information.
Reading unit 724, if reading newest write from shared file for including radio network information in shared file
The radio network information entered.
Scanning element 726, if for not including radio network information in shared file, scanning presets model in mobile terminal
Interior Wireless Communication Equipment is enclosed, and obtains the radio network information of Wireless Communication Equipment.
In the present embodiment, when LBS application carries out network positions, it can read and to be newly written directly from shared file
Radio network information all actively initiating radio network information scanning, it is wireless can to reduce scanning when without carrying out network positions every time
Network information frequency, thus system power dissipation when network positions are effectively reduced, and reduce wireless networking delay.
As shown in Figure 10, in one embodiment, determining module 730 includes flag bit acquiring unit 1002, location information
Reading unit 1004, the first display unit 1006, the first transmission unit 1008, the first receiving unit 1010 and the first writing unit
1012。
Flag bit acquiring unit 1002, the matched flag bit of radio network information for obtaining and being newly written.
Location information reading unit 1004, if for flag bit be the first flag bit, from shared file read with most
The corresponding location information of the radio network information being newly written.
First display unit 1006, for being shown according to the location information of reading.
First transmission unit 1008, if being the second flag bit, the radio network information that will be newly written for flag bit
It is sent to location-server, so that location-server calculates corresponding location information according to radio network information.
First receiving unit 1010, for receiving the location information of location-server return.
Mark position for shared file to be written in location information, and is the first flag bit by the first writing unit 1012.
First display unit 1006 is also used to location information based on the received and is shown.
In the present embodiment, when LBS application carries out network positions, in addition to can directly read newest write from shared file
Outside the radio network information entered, corresponding location information can also be read from shared file, when without carrying out network positions every time
Radio network information scanning is all actively initiated, is all accessed to location-server when without each progress network positions, it can
It reduces scanning radio network information and accesses the frequency of location-server, in the same of the system power dissipation that network positions are effectively reduced
When, it can also quick response network location request.
As shown in figure 11, in one embodiment, determining module 730 includes that the second transmission unit 1102, second receives list
First 1104, second writing unit 1106 and the second display unit 1108.
Second transmission unit 1102, the nothing for when not including radio network information in shared file, scanning to be obtained
The line network information is sent to location-server, so that location-server calculates corresponding location information according to radio network information.
Second receiving unit 1104, for receiving the location information of location-server return.
Shared file is written in second writing unit 1106, the radio network information for obtaining location information and scanning,
And the mark position for the radio network information for obtaining scanning is the first flag bit.
Second display unit 1108, for being shown according to location information.
In the present embodiment, the radio network information that scanning can be obtained and the position letter calculated by location-server inquiry
In breath write-in shared file, realizes the shared of radio network information and location information between each LBS application, scanning wireless network can be reduced
Network information and the frequency for accessing location-server while system power dissipation when network positions are effectively reduced, can also quickly be rung
Answer network location request.
The embodiment of the invention also provides a kind of computer equipments.As shown in figure 12, for ease of description, illustrate only with
The relevant part of the embodiment of the present invention, it is disclosed by specific technical details, please refer to present invention method part.The calculating
Machine equipment can be include mobile phone, tablet computer, PDA (Personal Digital Assistant, personal digital assistant),
Any terminal devices such as POS (Point of Sales, point-of-sale terminal), vehicle-mounted computer, wearable device are with computer equipment
For mobile phone:
Figure 12 is the block diagram of the part-structure of mobile phone relevant to computer equipment provided in an embodiment of the present invention.With reference to figure
12, mobile phone includes: radio frequency (Radio Frequency, RF) circuit 1210, memory 1220, input unit 1230, display unit
1240, the components such as sensor 1250, voicefrequency circuit 1260, WiFi module 1270, processor 1280 and power supply 1290.Ability
Field technique personnel are appreciated that handset structure shown in Figure 12 does not constitute the restriction to mobile phone, may include more than illustrating
Or less component, perhaps combine certain components or different component layouts.
Wherein, RF circuit 1210 can be used for receiving and sending messages or communication process in, signal sends and receivees, can be by base station
After downlink information receives, handled to processor 1280;The data of uplink can also be sent to base station.In general, RF circuit includes
But be not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier (Low Noise Amplifier,
LNA), duplexer etc..In addition, RF circuit 1210 can also be communicated with network and other equipment by wireless communication.It is above-mentioned wireless
Any communication standard or agreement, including but not limited to GSM, general packet radio service (General can be used in communication
Packet Radio Service, GPRS), CDMA, wideband code division multiple access (Wideband Code Division Multiple
Access, WCDMA), long term evolution (Long Term Evolution, LTE)), Email, short message service (Short
Messaging Service, SMS) etc..
Memory 1220 can be used for storing software program and module, and processor 1280 is stored in memory by operation
1220 software program and module, thereby executing the various function application and data processing of mobile phone.Memory 1220 can be led
It to include program storage area and data storage area, wherein program storage area can be needed for storage program area, at least one function
Application program (such as application program, application program of image player function of sound-playing function etc.) etc.;It data storage area can
Storage uses created data (such as audio data, address list etc.) etc. according to mobile phone.In addition, memory 1220 can wrap
High-speed random access memory is included, can also include nonvolatile memory, for example, at least disk memory, a flash memories
Part or other volatile solid-state parts.
Input unit 1230 can be used for receiving the number or character information of input, and generates and set with the user of mobile phone 1200
It sets and the related key signals of function control inputs.Specifically, input unit 1230 may include touch panel 1232 and other
Input equipment 1234.Touch panel 1232, alternatively referred to as touch screen collect the touch operation (ratio of user on it or nearby
Such as user is using finger, stylus any suitable object or attachment on touch panel 1232 or near touch panel 1232
Operation), and corresponding attachment device is driven according to preset formula.In one embodiment, touch panel 1232 can
Including both touch detecting apparatus and touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and examine
Touch operation bring signal is surveyed, touch controller is transmitted a signal to;Touch controller receives touching from touch detecting apparatus
Information is touched, and is converted into contact coordinate, then gives processor 1280, and order that processor 1280 is sent can be received and added
To execute.Furthermore, it is possible to realize touch panel using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves
1232.In addition to touch panel 1232, input unit 1230 can also include other input equipments 1234.Specifically, other are inputted
Equipment 1234 can include but is not limited to one in physical keyboard, function key (such as volume control button, switch key etc.) etc.
Kind is a variety of.
Display unit 1240 can be used for showing information input by user or be supplied to user information and mobile phone it is each
Kind menu.Display unit 1240 may include display panel 1242.In one embodiment, liquid crystal display can be used
(Liquid Crystal Display, LCD), Organic Light Emitting Diode (Organic Light-Emitting Diode,
) etc. OLED forms configure display panel 1242.In one embodiment, touch panel 1232 can cover display panel 1242,
After touch panel 1232 detects touch operation on it or nearby, processor 1280 is sent to determine touch event
Type is followed by subsequent processing device 1280 according to the type of touch event and provides corresponding visual output on display panel 1242.Although
In Figure 12, touch panel 1232 and display panel 1242 are the input and input for realizing mobile phone as two independent components
Function, but in some embodiments it is possible to touch panel 1232 and display panel 1242 are integrated and are realized the input of mobile phone
And output function.
Mobile phone 1200 may also include at least one sensor 1250, such as optical sensor, motion sensor and other biographies
Sensor.Specifically, optical sensor may include ambient light sensor and proximity sensor, wherein ambient light sensor can be according to ring
The light and shade of border light adjusts the brightness of display panel 1242, and proximity sensor can close display when mobile phone is moved in one's ear
Panel 1242 and/or backlight.Motion sensor may include acceleration transducer, can detect all directions by acceleration transducer
The size of upper acceleration can detect that size and the direction of gravity when static, the application that can be used to identify mobile phone posture is (such as horizontal
Vertical screen switching), Vibration identification correlation function (such as pedometer, tap) etc.;In addition, mobile phone can also configure gyroscope, barometer,
Other sensors such as hygrometer, thermometer, infrared sensor etc..
Voicefrequency circuit 1260, loudspeaker 1262 and microphone 1264 can provide the audio interface between user and mobile phone.Sound
Electric signal after the audio data received conversion can be transferred to loudspeaker 1262, by 1262 turns of loudspeaker by frequency circuit 1260
It is changed to voice signal output;On the other hand, the voice signal of collection is converted to electric signal by microphone 1264, by voicefrequency circuit
Audio data is converted to after 1260 receptions, then by after the processing of audio data output processor 1280, can be sent out through RF circuit 1210
Another mobile phone is given, or audio data is exported to memory 1220 so as to subsequent processing.
WiFi belongs to short range wireless transmission technology, and mobile phone can help user's transceiver electronics postal by WiFi module 1270
Part, browsing webpage and access streaming video etc., it provides wireless broadband internet access for user.
Processor 1280 is the control centre of mobile phone, using the various pieces of various interfaces and connection whole mobile phone,
By running or execute the software program and/or module that are stored in memory 1220, and calls and be stored in memory 1220
Interior data execute the various functions and processing data of mobile phone, to carry out integral monitoring to mobile phone.In one embodiment,
Processor 1280 may include one or more processing units.In one embodiment, processor 1280 can integrate application processor
And modem processor, wherein the main processing operation system of application processor, user interface and application program etc.;Modulatedemodulate
Processor is adjusted mainly to handle wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor
In 1280.
Mobile phone 1200 further includes the power supply 1290 (such as battery) powered to all parts, it is preferred that power supply 1290 can be with
It is logically contiguous by power-supply management system and processor 1280, thus by power-supply management system realize management charging, electric discharge, with
And the functions such as power managed.
In one embodiment, mobile phone 1200 can also include camera, bluetooth module etc..
In embodiments of the present invention, processor 1280 included by the mobile terminal executes the calculating of storage on a memory
It is performed the steps of when machine program
Receive network location request;
The radio network information being newly written is read from shared file according to the network location request;
Corresponding location information is determined according to the radio network information.
Each technical characteristic of embodiment described above can be combined arbitrarily, for simplicity of description, not to above-mentioned reality
It applies all possible combination of each technical characteristic in example to be all described, as long as however, the combination of these technical characteristics is not deposited
In contradiction, all should be considered as described in this specification.
The embodiments described above only express several embodiments of the present invention, and the description thereof is more specific and detailed, but simultaneously
It cannot therefore be construed as limiting the scope of the patent.It should be pointed out that coming for those of ordinary skill in the art
It says, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to protection of the invention
Range.Therefore, the scope of protection of the patent of the invention shall be subject to the appended claims.
Claims (9)
1. a kind of network locating method characterized by comprising
Receive network location request;
According to the network location request read from shared file the radio network information being newly written and obtain with it is described most
The matched flag bit of the radio network information being newly written, wireless network letter of the shared file for memory mobile terminal connection
Breath;
If the flag bit is the first flag bit, the radio network information pair for reading and being newly written from the shared file
The location information answered;
If the flag bit is the second flag bit, the radio network information being newly written is sent to location-server,
So that the location-server calculates corresponding location information according to the radio network information, institute is written into the location information
Shared file is stated, and is the first flag bit by the mark position;
It is described to read the radio network information being newly written from shared file according to the network location request, comprising:
Whether judge in shared file comprising radio network information;
If comprising reading the radio network information being newly written from the shared file;
If not including, the Wireless Communication Equipment in the mobile terminal preset range is scanned, and obtain the wireless network
The radio network information of equipment.
2. the method according to claim 1, wherein before the reception network location request the step of, also
Include:
Radio network information is monitored;
When detecting that the radio network information changes, shared file is written into the radio network information after variation.
3. the method according to claim 1, wherein further include:
It is shown according to the positional information.
4. the method according to claim 1, wherein described determine corresponding position according to the radio network information
Confidence breath, comprising:
When not including radio network information in the shared file, the radio network information that scanning obtains is sent to positioning clothes
Business device, so that the location-server calculates corresponding location information according to the radio network information;
Receive the location information that the location-server returns;
The shared file is written into the radio network information that the location information and the scanning obtain, and the scanning is obtained
The mark position of the radio network information taken is the first flag bit;
It is shown according to the positional information.
5. a kind of network positions device characterized by comprising
Receiving module, for receiving network location request;
Read module, for reading the radio network information being newly written from shared file simultaneously according to the network location request
It obtains and is connected with the matched flag bit of radio network information being newly written, the shared file for memory mobile terminal
Radio network information;
Determining module reads and is newly written from the shared file if being the first flag bit for the flag bit
The corresponding location information of radio network information;
If the flag bit is the second flag bit, the radio network information being newly written is sent to location-server,
So that the location-server calculates corresponding location information according to the radio network information, institute is written into the location information
Shared file is stated, and is the first flag bit by the mark position;
The read module, comprising:
Judging unit, for whether judging in shared file comprising radio network information;
Reading unit, if being read from the shared file newest for including radio network information in the shared file
The radio network information of write-in;
Scanning element, if for not including radio network information in the shared file, scanning is default in the mobile terminal
Wireless Communication Equipment in range, and obtain the radio network information of the Wireless Communication Equipment.
6. device according to claim 5, which is characterized in that described device further include:
Module is monitored, for monitoring radio network information;
Writing module, for when detecting that the radio network information changes, the radio network information after variation to be write
Enter shared file.
7. device according to claim 5, which is characterized in that the determining module, further includes:
First display unit is also used to location information based on the received and is shown.
8. device according to claim 5, which is characterized in that the determining module, comprising:
Second transmission unit, the wireless network for when not including radio network information in the shared file, scanning to be obtained
Network information is sent to location-server, believes so that the location-server calculates corresponding position according to the radio network information
Breath;
Second receiving unit, the location information returned for receiving the location-server;
The shared text is written in second writing unit, the radio network information for obtaining the location information and the scanning
Part, and be the first flag bit by the mark position for the radio network information that the scanning obtains;
Second display unit, for being shown according to the positional information.
9. a kind of computer equipment, including memory, processor and storage are on a memory and the meter that can run on a processor
Calculation machine program, the processor realize the method as described in Claims 1-4 is any when executing described program.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710150922.4A CN106993327B (en) | 2017-03-14 | 2017-03-14 | Network locating method, device and computer equipment |
PCT/CN2017/106764 WO2018166202A1 (en) | 2017-03-14 | 2017-10-18 | Network positioning method, computer equipment and non-volatile readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710150922.4A CN106993327B (en) | 2017-03-14 | 2017-03-14 | Network locating method, device and computer equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106993327A CN106993327A (en) | 2017-07-28 |
CN106993327B true CN106993327B (en) | 2019-07-23 |
Family
ID=59411586
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710150922.4A Active CN106993327B (en) | 2017-03-14 | 2017-03-14 | Network locating method, device and computer equipment |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN106993327B (en) |
WO (1) | WO2018166202A1 (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106993327B (en) * | 2017-03-14 | 2019-07-23 | Oppo广东移动通信有限公司 | Network locating method, device and computer equipment |
KR101986634B1 (en) * | 2017-11-13 | 2019-09-30 | (주)에프씨아이 | Method for power saving of internet of things devices and apparatus therefor |
CN109104261A (en) * | 2018-09-28 | 2018-12-28 | 深圳高新兴物联科技有限公司 | Local zone time acquisition methods, terminal and storage medium based on LBS |
CN110430559A (en) * | 2019-07-08 | 2019-11-08 | 深圳市优博讯科技股份有限公司 | The localization method of intelligent terminal, system and communication equipment under private network environment |
CN112367613B (en) * | 2020-11-20 | 2023-07-18 | 惠州Tcl移动通信有限公司 | Positioning method, positioning device, storage medium and terminal |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7996021B2 (en) * | 2002-06-28 | 2011-08-09 | Hewlett-Packard Development Company, L.P. | Location determination in a wireless communication network |
US8744478B2 (en) * | 2008-02-20 | 2014-06-03 | Qualcomm Incorporated | Method and apparatus for executing location dependent application in a mobile handset |
US9641978B2 (en) * | 2011-08-18 | 2017-05-02 | Rivada Research, Llc | Method and system for providing enhanced location based information for wireless handsets |
CN103906235A (en) * | 2014-04-04 | 2014-07-02 | 小米科技有限责任公司 | Terminal positioning method and terminal |
CN105163275B (en) * | 2015-07-31 | 2019-08-27 | 腾讯科技(深圳)有限公司 | A kind of data transmission method for uplink, relevant apparatus and system |
CN106993327B (en) * | 2017-03-14 | 2019-07-23 | Oppo广东移动通信有限公司 | Network locating method, device and computer equipment |
-
2017
- 2017-03-14 CN CN201710150922.4A patent/CN106993327B/en active Active
- 2017-10-18 WO PCT/CN2017/106764 patent/WO2018166202A1/en active Application Filing
Also Published As
Publication number | Publication date |
---|---|
WO2018166202A1 (en) | 2018-09-20 |
CN106993327A (en) | 2017-07-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106993327B (en) | Network locating method, device and computer equipment | |
CN104468679B (en) | Share the method, terminal and system in geographical position | |
CN104035948B (en) | Geographic position display packing and device | |
CN103475996B (en) | Method for connecting network, network share method and device | |
CN105005457B (en) | Geographical location methods of exhibiting and device | |
CN103874018B (en) | Access-in point information sharing method and device | |
CN106101736A (en) | The methods of exhibiting of a kind of virtual present and system | |
CN104426963B (en) | The method and terminal of associated terminal | |
CN104618873B (en) | Access-in point information sharing method and device | |
CN103473092B (en) | A kind of download the processing method of application, device and terminal unit | |
CN103853819B (en) | A kind of method of acquisition of information, terminal and system | |
CN108702661A (en) | A kind of method and apparatus of adjustment mobile phone network selection parameter | |
WO2018014745A1 (en) | Network search method and device after roaming ends | |
CN107818465A (en) | Method, equipment, mobile terminal and the computer-readable storage medium of payment | |
CN107872875A (en) | The method and device of network positions | |
CN104618854A (en) | Method, terminal and server for sharing location information | |
WO2018145477A1 (en) | Network access method and terminal | |
CN106034114A (en) | Multimedia information sharing method and device | |
CN107820302A (en) | Mobile terminal wireless local area network scan method and apparatus, computer equipment | |
WO2015070769A1 (en) | Data transfer method and apparatus | |
CN104346368A (en) | Indoor scene switch displaying method and device and mobile terminal | |
CN105303591B (en) | Method, terminal and server for superimposing location information on jigsaw puzzle | |
CN106793010A (en) | A kind of method for network access and equipment | |
CN107969025A (en) | Mobile terminal wireless local area network scan method and apparatus, computer equipment | |
CN105897917B (en) | Multi-medium data sharing method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information |
Address after: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong Applicant after: OPPO Guangdong Mobile Communications Co., Ltd. Address before: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong Applicant before: Guangdong OPPO Mobile Communications Co., Ltd. |
|
CB02 | Change of applicant information | ||
GR01 | Patent grant | ||
GR01 | Patent grant |