CN106993327A - Network locating method, device and computer equipment - Google Patents

Network locating method, device and computer equipment Download PDF

Info

Publication number
CN106993327A
CN106993327A CN201710150922.4A CN201710150922A CN106993327A CN 106993327 A CN106993327 A CN 106993327A CN 201710150922 A CN201710150922 A CN 201710150922A CN 106993327 A CN106993327 A CN 106993327A
Authority
CN
China
Prior art keywords
radio network
network information
information
shared file
positional information
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.)
Granted
Application number
CN201710150922.4A
Other languages
Chinese (zh)
Other versions
CN106993327B (en
Inventor
林华秋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201710150922.4A priority Critical patent/CN106993327B/en
Publication of CN106993327A publication Critical patent/CN106993327A/en
Priority to PCT/CN2017/106764 priority patent/WO2018166202A1/en
Application granted granted Critical
Publication of CN106993327B publication Critical patent/CN106993327B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0225Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0225Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal
    • H04W52/0248Power 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W64/00Locating users or terminals or network equipment for network management purposes, e.g. mobility management
    • YGENERAL 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
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE 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/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Telephone Function (AREA)

Abstract

The present embodiments relate to a kind of network locating method, device and computer equipment.The above method, including: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 that memory mobile terminal is connected;Corresponding positional information is determined according to the radio network information.Above-mentioned network locating method, device and computer equipment, can effectively reduce system power dissipation during network positions, and reduce wireless networking delay.

Description

Network locating method, device and computer equipment
Technical field
The present invention relates to network technique field, more particularly to a kind of network locating method, device and computer equipment.
Background technology
LBS (Location Based Service, based on location-based service) is referred to by 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, CDMA) network etc., or outside positioning method, Such as GPS (Global Positioning System, global positioning system) etc., obtains the positional information of mobile terminal user, Under the support of GIS (Geographic Information System, GIS-Geographic Information System) platform, provide the user corresponding A kind of value-added service of service.
Major network positions providers are in order to promote the LBS service of itself, it will usually announce the SDK (Software of positioning Development Kit, SDK), traditional LBS applications are all integrated with mostly to be provided by third party's network positions The SDK that business provides.Due to SDK independence, each LBS on mobile terminal is applied when carrying out network positions every time, Need scanning to obtain radio network information, network positions could be realized.When the LBS used using it is more when, each LBS application collection Into 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.
The content of the invention
The embodiment of the present invention provides a kind of network locating method, device and computer equipment, can effectively reduce network and determine System power dissipation during position, and reduce wireless networking delay.
A kind of network locating method, including:
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 that memory mobile terminal is connected;
Corresponding positional information is determined according to the radio network information.
A kind of network positions device, including:
Receiving module, for receiving network location request;
Read module, the wireless network letter being newly written for being read according to the network location request from shared file Breath, the shared file is used for the radio network information that memory mobile terminal is connected;
Determining module, for determining corresponding positional 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, realizes network locating method as described above during the computing device 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, corresponding positional information is determined according to radio network information, without Carry out all actively initiating radio network information scanning during network positions every time, it is possible to decrease scanning radio network information frequency, so that System power dissipation during network positions is effectively reduced, and reduces wireless networking delay.
Brief description of the drawings
Fig. 1 is the block diagram of terminal in one embodiment;
Fig. 2 is the schematic flow sheet of network locating method in one embodiment;
Fig. 3 is the schematic flow sheet monitored radio network information in one embodiment;
Fig. 4 be one embodiment in from shared file read radio network information schematic flow sheet;
Fig. 5 is that the schematic flow sheet of corresponding positional information is determined according to radio network information in one embodiment;
Fig. 6 is that the schematic flow sheet of corresponding positional information is determined according to radio network information in another embodiment;
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 one embodiment Computer equipment.
Embodiment
In order to make the purpose , technical scheme and advantage of the present invention be clearer, it is right below in conjunction with drawings and Examples The present invention is further elaborated.It should be appreciated that specific embodiment described herein is only 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 for distinguishing first element and another element.Citing comes Say, without departing from the scope of the invention, the first client can be referred to as the second client, and similarly, can be by Second client is referred to as the first client.First client and the second client both clients, but it is not same visitor Family end.
Fig. 1 is the internal structure schematic diagram of terminal in one embodiment.As shown in figure 1, the terminal is including total by system Processor, non-volatile memory medium, built-in storage and network interface, display screen and input unit that line is connected.Wherein, terminal Non-volatile memory medium be stored with operating system.The processor, which is used to provide, to be calculated and control ability, supports whole terminal 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 service with server, such as sends the position that radio network information, the reception server are returned to server Confidence breath etc..The display screen of terminal can be LCDs or electric ink display screen etc., and input unit can be display Button, trace ball or the Trackpad or external key set on the touch layer or terminal enclosure covered on screen Disk, Trackpad or mouse etc..The terminal can be mobile phone, tablet personal computer or personal digital assistant or Wearable etc..This Art personnel are appreciated that the structure shown in Fig. 1, are only the block diagram of the part-structure related to application scheme, The restriction for the terminal being applied thereon to application scheme is not constituted, specific terminal can include more more than shown in figure Or less part, either combine some parts or arranged with different parts.
As shown in Fig. 2 comprising the following steps in one embodiment there is provided a kind of network locating method:
Step S210, receives network location request.
In embodiments of the present invention, when user applies upper network positions function using LBS on mobile terminals, LBS Using can to mobile terminal operating system send network location request, wherein, mobile terminal may include that mobile phone, individual digital are helped Reason, notebook computer and desktop computer etc., LBS applications may include koinotropic type LBS applications, service for life type LBS applications and swim Play type LBS applications etc..The SDK provided by third party's network positions provider can be provided in each LBS applications, such as Google, The SDK of the offer such as high moral and Baidu.
Step S220, the radio network information being newly written is read according to network location request from shared file.
The operating system of mobile terminal receives the network location request sent by LBS applications, 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 that memory mobile terminal is connected In the line network information, the radio network information write-in shared file that can connect mobile terminal each time.Radio network information can Base station information in hot information and/or mobile communication including WiFi (Wireless Fidelity, Wireless Fidelity) etc., its In, Wi-Fi hotspot refers to WiFi access point (Access Point, AP), can mainly include route switching and access equipment integrating With pure access point apparatus etc., the executable access of route switching access equipment integrating and routing function, pure access device are only responsible for nothing Line is accessed, and mobile terminal can use WiFi network by accessing Wi-Fi hotspot.WiFi hot information may include Wi-Fi hotspot BSSID (Basic Service Set Identifier, basic service set identification), SSID (Service Set Identifier, service set) and signal intensity etc., wherein, BSSID is used to identify a Basic Service Set, may generally be MAC (Media Access Control, medium access control) address of Wi-Fi hotspot, SSID is used to identify Wi-Fi hotspot, 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 intensity etc..
, can be simultaneously in shared file when the radio network information for connecting mobile terminal each time writes shared file Record the write time, operating system can according to the write time priority, write time last wireless is chosen from shared file The network information, the radio network information being as newly written is read out.
In other embodiments, can in prespecified shared file radio network information writing position, for example, every time Radio network information is all write to the least significant end of shared file, wherein, the least significant end of write-in shared file is referred in shared text The end of part raw content writes new radio network information, can not use space or null in the middle of the radio network information of homogeneous write-in Separate.When the operating system of mobile terminal receives network location request, it can be chosen from shared file positioned at file content most Radio network information below, the radio network information being as newly written is read out.
Step S230, corresponding positional information is determined according to radio network information.
The operating system of mobile terminal is read after radio network information from shared file, can be obtained according to radio network information Corresponding positional information is taken, wherein, positional information can be comprising 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 sphere using three-dimensional space to define the sphere in tellurian space Coordinate system, can indicate any one tellurian position.Positional information can be prestored on mobile terminal with nothing The corresponding positional information of the line network information or calculated in real time according to radio network information by location-server Arrive.
The operating system of mobile terminal is obtained after positional information corresponding with radio network information, can be returned to positional information To send network location request LBS application, LBS application can be shown according to positional information, for example, on map displaying with The corresponding point of positional information, or services for life such as cuisines, bank, the supermarket related to the positional information etc. are shown, but do not limit In this, the specific service function that specific displaying content can be provided according to LBS applications 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 newly write, corresponding positional information is determined according to radio network information, and each LBS is realized by shared file Radio network information is shared between, without carrying out all actively initiating radio network information scanning during network positions every time, Scanning radio network information frequency can be reduced, so that system power dissipation when effectively reducing network positions, and reduce wireless networking and prolong Late.
As shown in figure 3, in one embodiment, before step S210 receives network location request, in addition to following step Suddenly:
Step S302, is monitored radio network information.
The process for monitoring network state can be pre-established in mobile terminal, 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 Change, or the base station of mobile terminal connection change, and operating system can broadcast nothing to the process of the monitoring wireless network information Gauze network change message.
Step S304, when detecting radio network information and changing, the radio network information after change is write altogether Enjoy file.
When the process in mobile terminal for the monitoring wireless network information receives wireless network change message, that is, working as When detecting radio network information and changing, the wireless network change message that process parsing is received can be obtained after change Wi-Fi hotspot information or the radio network information such as base station information, and the radio network information write-in after change is pre-created In shared file, wherein, shared file can store other shared in addition to the radio network information that memory mobile terminal is connected, also Different application on data, 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 change is write altogether File being enjoyed, the shared of radio network information between each LBS application being realized by shared file, during without carrying out network positions every time Radio network information scanning is all actively initiated, it is possible to decrease scanning radio network information frequency, so that when effectively reducing network positions 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, comprises the following steps:
Step S402, judges whether include radio network information in shared file, if so, step S404 is then performed, if it is not, Then perform step 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 system 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 that can be write in preset time is to shared file are emptied, for example, every 12 hours, 24 hours etc., can subtract 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 the radio network information being newly written is read in part, can first judge whether include radio network information in shared file, if altogether The radio network information that is stored with file is enjoyed, then operating system can read the wireless network letter being newly written from shared file Breath, and corresponding positional 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 obtain Wireless Communication Equipment Radio network information.
If it is sky not include the radio network information in radio network information, namely shared file in shared file, then 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 intensity that each Wireless Communication Equipment is sent in the actually located region of mobile terminal, if the letter that Wireless Communication Equipment is sent Number intensity is stronger, then preset range is larger, if the signal intensity that Wireless Communication Equipment is sent is weaker, preset range is smaller, example Such as Wireless Communication Equipment in the Wireless Communication Equipment in 300 meters of mobile scanning terminal, or 500 meters of scanning etc., however it is not limited to this. Wireless Communication Equipment can be the equipment as Wi-Fi hotspot, for example route switching access equipment integrating, router and pure access Equipment etc. or base station etc..
In one embodiment, mobile terminal is scanned to the Wireless Communication Equipment in preset range, can be using master The mode such as dynamic scanning or drive sweep.Active scan refers to that mobile terminal sends detection on each channel in an active manner (Probe Request) frame is asked, when the Wireless Communication Equipment in preset range receives probe request, detection can be transmitted Response (Probe Request) frame is responded., can be further if mobile terminal receives probe response frame on certain channel Obtain the radio network information for the Wireless Communication Equipment for sending the probe response frame.Drive sweep refers to the nothing in preset range The line network equipment sends Beacon (beacon) frame in the way of fixed time broadcast, and mobile terminal can switch in each channel, receives Beacon frames are simultaneously recorded, so as to further obtain the wireless network information for the Wireless Communication Equipment for sending Beacon frames.It is mobile Terminal can be scanned by the way of drive sweep to the Wireless Communication Equipment in preset range, and obtain wireless network letter Number, because any signal need not be transmitted in scanning process, the power consumption of mobile terminal can be saved.
In the present embodiment, when LBS applications carry out network positions, it can read what is be newly written directly from shared file Radio network information, without carrying out all actively initiating radio network information scanning during network positions every time, it is possible to decrease scanning is wireless Network information frequency, so that system power dissipation when effectively reducing network positions, and reduce wireless networking delay.
As shown in figure 5, in one embodiment, step S230 determines corresponding positional information according to radio network information, Also include:
Step S502, obtains the flag bit that the radio network information with being newly written is matched.
In one embodiment, mobile terminal can work as nothing by the monitor process monitoring wireless network information that pre-establishes When the line network information sends change, monitor process can write the radio network information after change in shared file, 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 mark wireless network letter Breath whether be once used for calculating location information, that is, flag bit can be used for represent whether be stored with shared file with wirelessly The corresponding positional information of the network information.In the present embodiment, when the flag bit of radio network information is the first flag bit, represent The radio network information once be used to being stored with calculating location information, namely shared file corresponding with the radio network information Positional information;When the flag bit of radio network information is the second flag bit, represent that the radio network information is never used for meter Calculate in positional information, namely shared file without storage positional information corresponding with the radio network information.First flag bit, Two flag bits can set different representations according to the actual requirements, and 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 perform step Rapid S506, if the second flag bit, then performs step S508.
When including radio network information in shared file, the operating system of mobile terminal can be read most from shared file The radio network information newly write, 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 positional information corresponding with the radio network information being newly written, and root from shared file It is shown according to positional 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 positional information of information, operating system directly can read corresponding with the radio network information being newly written from shared file Positional information, and by the positional information return to initiate network location request LBS apply.LBS applications can be believed according to position Breath is shown, for example, point corresponding with positional information is shown on map, or displaying U.S. related to the positional information Services for life such as food, bank, supermarket etc., but not limited to this, the specific service that specific displaying content can be provided according to LBS applications Function is determined.
Step S508, the radio network information being newly written is sent to location-server so that location-server according to Radio network information calculates corresponding positional 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 positional 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 the CID of base station etc. Information, inquiry calculates positional information corresponding with the radio network information received in database.
Step S510, receives the positional information that location-server is returned.
Step S512, shared file is write by positional information, and is the first flag bit by mark position.
Mobile terminal is received after the positional information corresponding with radio network information returned by location-server, can be by position In information write-in shared file, the corresponding relation of the positional information and radio network information is set up 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 positional information.
The operating system of mobile terminal can return to the positional information LBS applications for sending network location request, and LBS should With that can be shown according to positional information, for example, showing point corresponding with positional information on map, or show and the position Services for life such as information related cuisines, bank, supermarket etc., but not limited to this, specific displaying content can be carried according to LBS applications The specific service function of confession is determined.
In the present embodiment, when LBS applications carry out network positions, except can directly read newest write from shared file Outside the radio network information entered, corresponding positional information can be also read from shared file, during without carrying out network positions every time Radio network information scanning is all actively initiated, all location-server is conducted interviews during without each progress network positions, can Reduction scanning radio network information and the frequency for accessing location-server, in the same of the effectively system power dissipation of reduction network positions When, also can quick response network location request.
As shown in fig. 6, in one embodiment, step S230 determines corresponding positional information according to radio network information, Comprise the following steps:
Step S602, when not including radio network information in shared file, the radio network information for scanning acquisition is sent out Location-server is delivered to, so that location-server calculates corresponding positional information according to radio network information.
When not including radio network information in shared file, the wireless network that mobile terminal can be scanned in preset range is set It is standby, and obtain radio network information.In one embodiment, the radio network information that mobile scanning terminal is obtained can be a Or many parts, the radio network information that mobile terminal can therefrom choose signal intensity most strong Wireless Communication Equipment is sent to positioning clothes Business device, can also generate radio network information list, and radio network information is arranged according to many parts of radio network informations of acquisition Table is sent to location-server, so as to improve the degree of accuracy of positional information.Location-server can be believed according to the wireless network of reception Breath or radio network information list, inquiry calculates corresponding positional information in database.
Step S604, receives the positional information that location-server is returned.
Step S606, the radio network information that positional information and scanning are obtained writes shared file, and scanning is obtained Radio network information mark position be the first flag bit.
Mobile terminal is received after the positional information returned by location-server, by positional information and can be sent to positioning service The radio network information of device or radio network information list are write in shared file together, set up the positional information of write-in with it is wireless The network information or the corresponding relation 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 Connect and radio network information and corresponding positional information are read from shared file.
Step S608, is shown according to positional information.
The operating system of mobile terminal can return to the positional information LBS applications for sending network location request, and LBS should With that can be shown according to positional information, for example, showing point corresponding with positional information on map, or show and the position Services for life such as information related cuisines, bank, supermarket etc., but not limited to this, specific displaying content can be carried according to LBS applications The specific service function of confession is determined.
It is to be appreciated that radio network information is write in shared file, except wireless network is believed between realizing each LBS application What is ceased is shared outer, and other non-LBS are applied when needing to obtain radio network information, can also be read directly from shared file, and It is not limited only to LBS applications and network positions function.
In the present embodiment, it can will scan the radio network information obtained and the position calculated is inquired about by location-server and believe In breath write-in shared file, the shared of radio network information and positional information between each LBS application is realized, it is possible to decrease scanning wireless network Network information and access location-server frequency, effectively reduction network positions when system power dissipation while, also can quickly ring Answer network location request.
As shown in fig. 7, there is provided a kind of network positions device 700, including receiving module 710, reading in one embodiment Module 720 and determining module 730.
Receiving module 710, for receiving network location request.
Read module 720, the wireless network letter being newly written for being read according to network location request from shared file Breath, the shared file is used for the radio network information that memory mobile terminal is connected.
Determining module 730, for determining corresponding positional 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 newly write, corresponding positional information is determined according to radio network information, without carrying out network positions every time When all actively initiate radio network information scanning, it is possible to decrease scanning radio network information frequency, so as to effectively reduce network positions When system power dissipation, and reduce wireless networking delay.
As shown in figure 8, in one embodiment, above-mentioned network positions device 700, except including receiving module 710, reading Module 720 and determining module 730, in addition to monitor module 740 and writing module 750.
Module 740 is monitored, for monitoring radio network information.
Writing module 750, for when detecting radio network information and changing, by the radio network information after change Write shared file.
In the present embodiment, radio network information can be monitored, and the radio network information after change is write altogether File being enjoyed, the shared of radio network information between each LBS application being realized by shared file, during without carrying out network positions every time Radio network information scanning is all actively initiated, it is possible to decrease scanning radio network information frequency, so that when effectively reducing network positions 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 judging whether include radio network information in shared file.
Reading unit 724, if for including radio network information in shared file, newest write is read from shared file The radio network information entered.
Scanning element 726, if for not including radio network information in shared file, scanning and presetting 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 applications carry out network positions, it can read what is be newly written directly from shared file Radio network information, without carrying out all actively initiating radio network information scanning during network positions every time, it is possible to decrease scanning is wireless Network information frequency, so that system power dissipation when effectively reducing network positions, and reduce wireless networking delay.
As shown in Figure 10, in one embodiment, determining module 730 includes flag bit acquiring unit 1002, positional information Reading unit 1004, the first display unit 1006, the first transmitting element 1008, the first receiving unit 1010 and the first writing unit 1012。
Flag bit acquiring unit 1002, the flag bit that the radio network information for obtaining with being newly written is matched.
Positional information reading unit 1004, if for flag bit be the first flag bit, from shared file read with most The corresponding positional information of radio network information newly write.
First display unit 1006, is shown for the positional information according to reading.
First transmitting element 1008, if being the second flag bit for flag bit, by the radio network information being newly written Send to location-server, so that location-server calculates corresponding positional information according to radio network information.
First receiving unit 1010, the positional information for receiving location-server return.
First writing unit 1012, for positional information to be write into shared file, and is the first flag bit by mark position.
First display unit 1006, is additionally operable to be shown according to the positional information of reception.
In the present embodiment, when LBS applications carry out network positions, except can directly read newest write from shared file Outside the radio network information entered, corresponding positional information can be also read from shared file, during without carrying out network positions every time Radio network information scanning is all actively initiated, all location-server is conducted interviews during without each progress network positions, can Reduction scanning radio network information and the frequency for accessing location-server, in the same of the effectively system power dissipation of reduction network positions When, also can quick response network location request.
As shown in figure 11, in one embodiment, determining module 730 includes the second transmitting element 1102, second reception list First 1104, second writing unit 1106 and the second display unit 1108.
Second transmitting element 1102, for when not including radio network information in shared file, the nothing of acquisition will to be scanned The line network information is sent to location-server, so that location-server calculates corresponding positional information according to radio network information.
Second receiving unit 1104, the positional information for receiving location-server return.
Second writing unit 1106, the radio network information for positional information and scanning to be obtained writes shared file, And be the first flag bit by the mark position for scanning the radio network information obtained.
Second display unit 1108, for being shown according to positional information.
In the present embodiment, it can will scan the radio network information obtained and the position calculated is inquired about by location-server and believe In breath write-in shared file, the shared of radio network information and positional information between each LBS application is realized, it is possible to decrease scanning wireless network Network information and access location-server frequency, effectively reduction network positions when system power dissipation while, also can quickly ring Answer network location request.
The embodiment of the present invention additionally provides a kind of computer equipment.As shown in figure 12, for convenience of description, illustrate only with The related part of the embodiment of the present invention, particular technique details is not disclosed, refer to present invention method part.The calculating Machine equipment can be include mobile phone, tablet personal computer, PDA (Personal Digital Assistant, personal digital assistant), Any terminal device such as POS (Point of Sales, point-of-sale terminal), vehicle-mounted computer, Wearable, using computer equipment as Exemplified by mobile phone:
Figure 12 is the block diagram of the part-structure of the mobile phone related 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 block 1230, display unit 1240th, the part such as sensor 1250, voicefrequency circuit 1260, WiFi module 1270, processor 1280 and power supply 1290.Ability Field technique personnel are appreciated that the handset structure shown in Figure 12 does not constitute the restriction to mobile phone, can include more more than illustrating Or less part, either combine some parts or different parts arrangement.
Wherein, RF circuits 1210 can be used for receive and send messages or communication process in, the reception and transmission of signal can be by base stations After downlink information is received, handled to processor 1280;Up data can also be sent to base station.Generally, RF circuits include But be not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier (Low Noise Amplifier, LNA), duplexer etc..In addition, RF circuits 1210 can also be communicated by radio communication with network and other equipment.It is above-mentioned wireless Communication can use any communication standard or agreement, including but not limited to GSM, general packet radio service (General Packet Radio Service, GPRS), CDMA, WCDMA (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 storage software program and module, and processor 1280 is stored in memory by operation 1220 software program and module, so as to perform various function application and the data processing of mobile phone.Memory 1220 can be led 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 (application program of such as sound-playing function, application program of image player function etc.) etc.;Data storage area can Storage uses created data (such as voice data, address list etc.) etc. according to mobile phone.In addition, memory 1220 can be wrapped High-speed random access memory is included, nonvolatile memory, for example, at least one disk memory, flash memories can also be included Part or other volatile solid-state parts.
Input block 1230 can be used for the numeral or character information for receiving input, and generation and the user of mobile phone 1200 to set Put and the input of key signals that function control is relevant.Specifically, input block 1230 may include contact panel 1232 and other Input equipment 1234.Contact panel 1232, alternatively referred to as touch-screen, collect touch operation (ratio of the user on or near it Such as user is using finger, any suitable object of stylus or annex on contact panel 1232 or near contact panel 1232 Operation), and corresponding attachment means are driven according to formula set in advance.In one embodiment, contact panel 1232 can Including both touch detecting apparatus and touch controller.Wherein, touch detecting apparatus detects the touch orientation of user, and examines The signal that touch operation is brought is surveyed, touch controller is transmitted a signal to;Touch controller is received from touch detecting apparatus to be touched Touch information, and be converted into contact coordinate, then give processor 1280, and the order sent of reception processing device 1280 and can add To perform.Furthermore, it is possible to realize contact panel using polytypes such as resistance-type, condenser type, infrared ray and surface acoustic waves 1232.Except contact panel 1232, input block 1230 can also include other input equipments 1234.Specifically, other are inputted Equipment 1234 can include but is not limited in physical keyboard, function key (such as volume control button, switch key etc.) etc. one Plant or a variety of.
Display unit 1240 can be used for each of the information that is inputted by user of display or the information for being supplied to user and mobile phone Plant 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 form configures display panel 1242.In one embodiment, contact panel 1232 can cover display panel 1242, After contact panel 1232 detects the touch operation on or near it, send processor 1280 to determine touch event Type, corresponding visual output is provided with preprocessor 1280 according to the type of touch event on display panel 1242.Although In fig. 12, contact panel 1232 and display panel 1242 are the input and input that mobile phone is realized as two independent parts Function, but in some embodiments it is possible to by contact panel 1232 and the input that is integrated and realizing mobile phone of display panel 1242 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 transducer, wherein, ambient light sensor can be according to ring The light and shade of environmental light adjusts the brightness of display panel 1242, and proximity transducer can close display when mobile phone is moved in one's ear Panel 1242 and/or backlight.Motion sensor may include acceleration transducer, and all directions are can detect by acceleration transducer The size of upper acceleration, can detect that size and the direction of gravity when static, the application available for identification mobile phone posture is (such as horizontal Portrait layout switches), 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 ray sensor etc..
Voicefrequency circuit 1260, loudspeaker 1262 and microphone 1264 can provide the COBBAIF between user and mobile phone.Sound Frequency circuit 1260 voice data received can be changed after electric signal, loudspeaker 1262 is transferred to, by 1262 turns of loudspeaker 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 1260 receive after be converted to voice data, then after voice data output processor 1280 is handled, can be sent out through RF circuits 1210 Another mobile phone is given, or voice data is exported to memory 1220 so as to subsequent treatment.
WiFi belongs to short range wireless transmission technology, and mobile phone can help user's transceiver electronicses postal by WiFi module 1270 Part, browse webpage and access streaming video etc., it has provided the user wireless broadband internet and accessed.
Processor 1280 is the control centre of mobile phone, using various interfaces and the various pieces of connection whole mobile phone, By operation or perform and be stored in software program and/or module in memory 1220, and call and be stored in memory 1220 Interior data, perform the various functions and processing data of mobile phone, so as 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 integrated application processor And modem processor, wherein, application processor mainly handles operating system, user interface and application program etc.;Modulatedemodulate Processor is adjusted mainly to handle radio communication.It is understood that above-mentioned modem processor can not also be integrated into processor In 1280.
Mobile phone 1200 also 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 function such as power managed.
In one embodiment, mobile phone 1200 can also include camera, bluetooth module etc..
In embodiments of the present invention, the processor 1280 included by the mobile terminal performs the calculating of storage on a memory Following steps are realized during 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 positional information is determined according to the radio network information.
Each technical characteristic of embodiment described above can be combined arbitrarily, to make description succinct, not to above-mentioned reality Apply 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, the scope of this specification record is all considered to be.
Embodiment described above only expresses the several embodiments of the present invention, and it describes more specific and detailed, but simultaneously Can not therefore it be construed as limiting the scope of the patent.It should be pointed out that coming for one of ordinary skill in the art Say, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to the protection of the present invention Scope.Therefore, the protection domain of patent of the present invention should be determined by the appended claims.

Claims (13)

1. a kind of network locating method, it is characterised in that including:
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 The radio network information connected in memory mobile terminal;
Corresponding positional information is determined according to the radio network information.
2. according to the method described in claim 1, it is characterised in that before the step of the reception network location request, also Including:
Radio network information is monitored;
When detecting the radio network information and changing, the radio network information after change is write into shared file.
3. according to the method described in claim 1, it is characterised in that described that corresponding position is determined according to the radio network information Confidence ceases, including:
Obtain the flag bit matched with the radio network information being newly written;
If the flag bit is the first flag bit, reads and believe with the wireless network being newly written from the shared file Corresponding positional information is ceased, and is shown according to the positional information.
4. method according to claim 3, it is characterised in that described that corresponding position is determined according to the radio network information Confidence ceases, in addition to:
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 positional information according to the radio network information;
Receive the positional information that the location-server is returned;
The positional information is write into the shared file, and is the first flag bit by the mark position;
It is shown according to the positional information.
5. according to any described method of Claims 1-4, it is characterised in that it is described according to the network location request from altogether The radio network information for reading and being newly written in file is enjoyed, including:
Judge whether include radio network information in shared file;
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.
6. method according to claim 5, it is characterised in that described that corresponding position is determined according to the radio network information Confidence ceases, including:
When not including radio network information in the shared file, the radio network information for scanning acquisition is sent to positioning and taken Business device, so that the location-server calculates corresponding positional information according to the radio network information;
Receive the positional information that the location-server is returned;
The radio network information that the positional information and the scanning are obtained writes the shared file, 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.
7. a kind of network positions device, it is characterised in that including:
Receiving module, for receiving network location request;
Read module, for reading the radio network information being newly written from shared file according to the network location request, The shared file is used for the radio network information that memory mobile terminal is connected;
Determining module, for determining corresponding positional information according to the radio network information.
8. device according to claim 7, it is characterised in that described device also includes:
Module is monitored, for monitoring radio network information;
Writing module, for when detecting the radio network information and changing, the radio network information after change to be write Enter shared file.
9. device according to claim 7, it is characterised in that the determining module, including:
Flag bit acquiring unit, for obtaining the flag bit matched with the radio network information being newly written;
Positional information reading unit, if being the first flag bit for the flag bit, reads and institute from the shared file State the corresponding positional information of the radio network information being newly written;
First display unit, is shown for the positional information according to reading.
10. device according to claim 9, it is characterised in that the determining module, in addition to:
First transmitting element, if being the second flag bit for the flag bit, by the radio network information being newly written Send to location-server, so that the location-server calculates corresponding positional information according to the radio network information;
First receiving unit, for receiving the positional information that the location-server is returned;
First writing unit, for the positional information to be write into the shared file, and is the first mark by the mark position Will position;
First display unit, is additionally operable to be shown according to the positional information of reception.
11. according to any described device of claim 7 to 10, it is characterised in that the read module, including:
Judging unit, for judging whether include radio network information in shared file;
Reading unit, if for including radio network information in the shared file, being read from the shared file newest The radio network information of write-in;
Scanning element, if for not including radio network information in the shared file, scanning default in the mobile terminal In the range of Wireless Communication Equipment, and obtain the radio network information of the Wireless Communication Equipment.
12. device according to claim 11, it is characterised in that the determining module, including:
Second transmitting element, for when not including radio network information in the shared file, the wireless network of acquisition will to be scanned Network information is sent to location-server, is believed so that the location-server calculates corresponding position according to the radio network information Breath;
Second receiving unit, for receiving the positional information that the location-server is returned;
Second writing unit, for the radio network information of the positional information and scanning acquisition to be write into the shared text Part, and the mark position for the radio network information that the scanning is obtained is the first flag bit;
Second display unit, for being shown according to the positional information.
13. 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, realizes the method as described in claim 1 to 6 is any during the computing device described program.
CN201710150922.4A 2017-03-14 2017-03-14 Network locating method, device and computer equipment Active CN106993327B (en)

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 true CN106993327A (en) 2017-07-28
CN106993327B 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)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018166202A1 (en) * 2017-03-14 2018-09-20 广东欧珀移动通信有限公司 Network positioning method, computer equipment and non-volatile readable storage medium
CN109104261A (en) * 2018-09-28 2018-12-28 深圳高新兴物联科技有限公司 Local zone time acquisition methods, terminal and storage medium based on LBS
CN109788535A (en) * 2017-11-13 2019-05-21 芯光飞株式会社 The power-saving method and device of internet of things equipment
CN110430559A (en) * 2019-07-08 2019-11-08 深圳市优博讯科技股份有限公司 The localization method of intelligent terminal, system and communication equipment under private network environment
CN112367613A (en) * 2020-11-20 2021-02-12 惠州Tcl移动通信有限公司 Positioning method, positioning device, storage medium and terminal

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040002343A1 (en) * 2002-06-28 2004-01-01 Compaq Information Technologies Group, L.P. Location determination in a wireless communication network
CN101971680A (en) * 2008-02-20 2011-02-09 高通股份有限公司 Executing location dependent application in mobile handset
CN103906235A (en) * 2014-04-04 2014-07-02 小米科技有限责任公司 Terminal positioning method and terminal
CN105163275A (en) * 2015-07-31 2015-12-16 腾讯科技(深圳)有限公司 Data sending method, related device and system

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9641978B2 (en) * 2011-08-18 2017-05-02 Rivada Research, Llc Method and system for providing enhanced location based information for wireless handsets
CN106993327B (en) * 2017-03-14 2019-07-23 Oppo广东移动通信有限公司 Network locating method, device and computer equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040002343A1 (en) * 2002-06-28 2004-01-01 Compaq Information Technologies Group, L.P. Location determination in a wireless communication network
CN101971680A (en) * 2008-02-20 2011-02-09 高通股份有限公司 Executing location dependent application in mobile handset
CN103906235A (en) * 2014-04-04 2014-07-02 小米科技有限责任公司 Terminal positioning method and terminal
CN105163275A (en) * 2015-07-31 2015-12-16 腾讯科技(深圳)有限公司 Data sending method, related device and system

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018166202A1 (en) * 2017-03-14 2018-09-20 广东欧珀移动通信有限公司 Network positioning method, computer equipment and non-volatile readable storage medium
CN109788535A (en) * 2017-11-13 2019-05-21 芯光飞株式会社 The power-saving method and device of internet of things equipment
CN109788535B (en) * 2017-11-13 2022-02-11 戴乐格半导体韩国株式会社 Power saving method and device for Internet of things equipment
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
CN112367613A (en) * 2020-11-20 2021-02-12 惠州Tcl移动通信有限公司 Positioning method, positioning device, storage medium and terminal
CN112367613B (en) * 2020-11-20 2023-07-18 惠州Tcl移动通信有限公司 Positioning method, positioning device, storage medium and terminal

Also Published As

Publication number Publication date
WO2018166202A1 (en) 2018-09-20
CN106993327B (en) 2019-07-23

Similar Documents

Publication Publication Date Title
CN104468679B (en) Share the method, terminal and system in geographical position
CN104035948B (en) Geographic position display packing and device
CN103874018B (en) Access-in point information sharing method and device
CN105005457B (en) Geographical location methods of exhibiting and device
CN106993327B (en) Network locating method, device and computer equipment
CN103853819B (en) A kind of method of acquisition of information, terminal and system
CN104426963B (en) The method and terminal of associated terminal
CN104035951B (en) Show the method for map, device and terminal
CN107872875A (en) The method and device of network positions
CN104253740A (en) Picture registration method, device and system
WO2018014745A1 (en) Network search method and device after roaming ends
CN104457767A (en) Position service realization method and apparatus thereof
CN107818465A (en) Method, equipment, mobile terminal and the computer-readable storage medium of payment
CN104618854A (en) Method, terminal and server for sharing location information
CN108702661A (en) A kind of method and apparatus of adjustment mobile phone network selection parameter
CN106973330A (en) A kind of screen live broadcasting method, device and system
US20200259994A1 (en) Photo taking control method and system based on mobile terminal, and storage medium
CN108112028B (en) Network searching method and equipment for international roaming
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
WO2018145477A1 (en) Network access method and terminal
CN107820302A (en) Mobile terminal wireless local area network scan method and apparatus, computer equipment
CN105282692A (en) Speed measurement information display method and device
CN107896385B (en) Mobile terminal wireless local area network scan method and apparatus, computer equipment
CN104391629B (en) The method of directive sending message, the method for display message, server and terminal

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
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.

GR01 Patent grant
GR01 Patent grant