CN106658705B - A kind of network locating method and terminal device - Google Patents

A kind of network locating method and terminal device Download PDF

Info

Publication number
CN106658705B
CN106658705B CN201611119560.4A CN201611119560A CN106658705B CN 106658705 B CN106658705 B CN 106658705B CN 201611119560 A CN201611119560 A CN 201611119560A CN 106658705 B CN106658705 B CN 106658705B
Authority
CN
China
Prior art keywords
terminal device
wifi
mac address
geographical location
time
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
Application number
CN201611119560.4A
Other languages
Chinese (zh)
Other versions
CN106658705A (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 CN201611119560.4A priority Critical patent/CN106658705B/en
Publication of CN106658705A publication Critical patent/CN106658705A/en
Priority to PCT/CN2017/105101 priority patent/WO2018103440A1/en
Application granted granted Critical
Publication of CN106658705B publication Critical patent/CN106658705B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W64/00Locating users or terminals or network equipment for network management purposes, e.g. mobility management
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2101/00Indexing scheme associated with group H04L61/00
    • H04L2101/60Types of network addresses
    • H04L2101/618Details of network addresses
    • H04L2101/622Layer-2 addresses, e.g. medium access control [MAC] addresses
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2101/00Indexing scheme associated with group H04L61/00
    • H04L2101/60Types of network addresses
    • H04L2101/69Types of network addresses using geographic information, e.g. room number

Landscapes

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

Abstract

The invention discloses a kind of network locating methods, recorded in terminal device N number of Wifi MAC Address and N number of geographical location, the MAC Address of N number of Wifi and N number of geographical location correspond, first geographical location is that the total duration that terminal device accesses the first Wifi in the first duration is more than first threshold, and terminal device accessed every time in the second duration the first Wifi access duration be more than second threshold when, terminal device carries out the geographical location for the terminal device that network positions obtain, the MAC Address of the corresponding Wifi in first geographical location is any one in the MAC Address of N number of Wifi, N is positive integer, it include: that terminal device accesses the 2nd Wifi;When record has corresponding second geographical location of MAC Address of the 2nd Wifi in terminal device, terminal device is using the second geographical location as terminal device current geographic position.The embodiment of the invention also provides a kind of terminal devices.Time required for positioning can be shortened using the embodiment of the present invention.

Description

A kind of network locating method and terminal device
Technical field
The present invention relates to electronic technology field more particularly to a kind of network locating methods and terminal device.
Background technique
Mobile-terminal platform (such as ISO platform or Android platform etc.), there is the demand of network positions, and uses It is most common method that Wifi (Wireless Fidelity, Wireless Fidelity), which carries out network positions,.Wifi positioning, which refers to, utilizes shifting Dynamic terminal measures the wireless signal of one or more WiFi on periphery, is then based on the wireless communication of these one or more WiFi Number, calculate the localization method in mobile terminal geographical location.
WiFi positioning is usually that mobile terminal is positioned to server log on, and then server carries out localization process, most Backward mobile terminal restoring to normal position result, it is seen then that entire position fixing process needs the regular hour, therefore how to accelerate needed for positioning The time wanted is this field technical problem urgently to be resolved.
Summary of the invention
The embodiment of the present invention provides a kind of network locating method and terminal device, to shorten position required for the time.
In a first aspect, the embodiment of the present invention provides a kind of network locating method, the MAC of N number of Wifi is recorded in terminal device Address and N number of geographical location, the MAC Address of N number of Wifi and N number of geographical location correspond, the first geographical location The total duration for accessing the first Wifi in the first duration for the terminal device is more than first threshold, and the terminal device is the When accessing the access duration of the first Wifi in two durations every time more than second threshold, the terminal device carries out network positions The geographical location of the obtained terminal device, the MAC Address of the corresponding Wifi in first geographical location are N number of Wifi MAC Address in any one, the N be positive integer, comprising:
The terminal device accesses the 2nd Wifi;
It is described when record has corresponding second geographical location of MAC Address of the 2nd Wifi in the terminal device Terminal device is using second geographical location as the terminal device current geographic position.
Second aspect, the embodiment of the present invention provide a kind of terminal device, the MAC Address of N number of Wifi are recorded in terminal device With N number of geographical location, the MAC Address of N number of Wifi and N number of geographical location are corresponded, and the first geographical location is institute Stating terminal device and accessing the total duration of the first Wifi in the first duration is more than first threshold, and the terminal device is at second When accessing the access duration of the first Wifi in long every time more than second threshold, the terminal device carries out network positions and obtains The terminal device geographical location, the MAC Address of the corresponding Wifi in first geographical location is N number of Wifi's Any one in MAC Address, the N are positive integer, comprising:
Wifi AM access module, for accessing the 2nd Wifi;
Locating module, corresponding second ground of MAC Address for having the 2nd Wifi for working as record in the terminal device When managing position, using second geographical location as the terminal device current geographic position.
The third aspect, the embodiment of the invention provides a kind of terminal devices, comprising:
It is stored with the memory of executable program code;
The processor coupled with the memory;
The processor calls the executable program code stored in the memory, executes such as the embodiment of the present invention Step some or all of described in first aspect.
Fourth aspect, the present invention provide a kind of computer storage medium, for being stored as the third aspect of the embodiment of the present invention Computer software instructions used in the terminal device of offer, it includes for executing program designed by above-mentioned aspect.
Compared to the prior art, terminal device accesses the total of some Wifi in the first duration in scheme provided by the invention Duration is more than first threshold, and it is more than the second threshold that terminal device accesses the access duration of some Wifi every time in the second duration When value, terminal device carries out the geographical location that network positions obtain in advance, and subsequent terminal equipment accesses some Wifi again Afterwards, if detect network positions instruction, terminal device is directly using this geographical location determined before as terminal device Current geographic position is positioned without terminal device to server log on, after then server is positioned, to terminal device Restoring to normal position as a result, shorten the time required for positioning in turn.
The aspects of the invention or other aspects can more straightforwards in the following description.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with It obtains other drawings based on these drawings.
Fig. 1 is a kind of flow diagram for network locating method that first embodiment of the invention provides;
Fig. 2 is a kind of flow diagram for network locating method that second embodiment of the invention provides;
Fig. 3 is a kind of structural schematic diagram for terminal device that first embodiment of the invention provides;
Fig. 4 is a kind of structural schematic diagram for terminal device that second embodiment of the invention provides;
Fig. 5 is a kind of structural schematic diagram for terminal device that third embodiment of the invention provides.
Specific embodiment
In order to enable those skilled in the art to better understand the solution of the present invention, below in conjunction in the embodiment of the present invention Attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is only The embodiment of a part of the invention, instead of all the embodiments.Based on the embodiments of the present invention, ordinary skill people The model that the present invention protects all should belong in member's every other embodiment obtained without making creative work It encloses.
It is described in detail separately below.
Description and claims of this specification and term " first ", " second ", " third " and " in the attached drawing Four " etc. are not use to describe a particular order for distinguishing different objects.In addition, term " includes " and " having " and it Any deformation, it is intended that cover and non-exclusive include.Such as it contains the process, method of a series of steps or units, be System, product or equipment are not limited to listed step or unit, but optionally further comprising the step of not listing or list Member, or optionally further comprising other step or units intrinsic for these process, methods, product or equipment.
Referenced herein " embodiment " is it is meant that a particular feature, structure, or characteristic described can wrap in conjunction with the embodiments Containing at least one embodiment of the present invention.Each position in the description occur the phrase might not each mean it is identical Embodiment, nor the independent or alternative embodiment with other embodiments mutual exclusion.Those skilled in the art explicitly and Implicitly understand, embodiment described herein can be combined with other embodiments.
Hereinafter, the part term in the application is explained, in order to those skilled in the art understand that.
1), terminal device, also referred to as user equipment (User Equipment, UE), are that one kind provides a user voice And/or the equipment of data connectivity, for example, handheld device, mobile unit etc. with wireless connecting function.Common terminal For example, mobile phone, tablet computer, laptop, palm PC, mobile internet device (mobile internet Device, MID), wearable device, such as smartwatch, Intelligent bracelet, pedometer etc..
2), " multiple " refer to two or more."and/or", describes the incidence relation of affiliated partner, and expression can deposit In three kinds of relationships, for example, A and/or B, can indicate: individualism A exists simultaneously A and B, these three situations of individualism B. Character "/" typicallys represent the relationship that forward-backward correlation object is a kind of "or".
Referring to Figure 1, Fig. 1 is a kind of flow diagram of network locating method provided in an embodiment of the present invention, wherein eventually MAC Address and N number of geographical location, the MAC Address of N number of Wifi and the N number of geographical position of N number of Wifi are recorded in end equipment One-to-one correspondence is set, it is more than first that the total duration of the first Wifi is accessed for the terminal device in the first geographical location in the first duration Threshold value, and the terminal device accessed every time in the second duration the first Wifi duration be more than second threshold when, it is described Terminal device carries out the geographical location of the terminal device that network positions obtain, the corresponding Wifi's in first geographical location MAC Address is any one in the MAC Address of N number of Wifi, and the N is positive integer, comprising the following steps:
S101, the terminal device access the 2nd Wifi.
S102, when record has corresponding second geographical location of MAC Address of the 2nd Wifi in the terminal device, The terminal device is using second geographical location as the terminal device current geographic position.
It should be noted that the first duration and the second duration can be it is identical be also possible to it is different.When the first duration It is identical with the second duration, the duration of the duration of the first duration and the second duration be 1 day, 2 days, 3 days, 5 days, 6 days, 1 month or It is other values, when the first duration and the second duration difference, the duration of the first duration for example can be 1 day, 2 days, 3 days, 5 days, 6 It, 1 month or other values, the duration of the second duration can be 1 hour, 2 hours, 3 hours, 5 hours, 6 hours, 1 day or It is other values.
Further, optionally, when the first duration and the second duration difference, second duration/first duration is less than Or it is equal to 2.For example, first when, is 2 days a length of, then the second duration maximum is 1 day.
Wherein, first threshold can be 20 hours, 30 hours, 50 hours, 80 hours or other values.
Wherein, second threshold for example can be 30 minutes, 35 minutes, 47 minutes, 50 minutes, 1 hour or other values.
As an example it is assumed that the first duration is identical with the second duration, the first duration and the second duration are 2 days, the first threshold Value is 30 hours, and second threshold is 30 minutes, usual terminal device access a Wifi have turn-on time, turn-off time, Duration is accessed, terminal device accesses Wifi every time and is intended to record these three parameters of associated record, when terminal device accesses in 2 days The middle total duration of some Wifi is more than 30 hours, and the access duration that terminal device accesses some Wifi every time in 2 surpasses After spending 30 minutes, terminal device voluntarily initiates network positions, obtains a geographical location of terminal device, then by this For the MAC Address associated record of geographical location and some Wifi in terminal device, subsequent terminal equipment is connected to this some After Wifi, network positions are carried out, that geographical location for positioning obtain before can be used directly as terminal device current geographic Position.
Optionally, the method also includes:
When corresponding second geographical location of the MAC Address for not recording the 2nd Wifi in the terminal device, institute Terminal device is stated by Wifi module scans Wifi, to obtain the hot information of M Wifi, the hot information includes Wifi's MAC Address, the M are positive integer;
When record has the corresponding K geographical location of K MAC Address in the terminal device, the terminal device is by institute One of geographical location in K geographical location is stated as the terminal device current geographic position, the M MAC Address Including the K MAC Address, the K is positive integer.
As an example it is assumed that M=3, K=2, the Wifi that usual terminal device can scan also just represents these Wifi from end End equipment is not far, if corresponding second geographical location of the MAC Address for not recording the 2nd Wifi in terminal device, but terminal There are corresponding 2 geographical locations of the MAC Address of 2 Wifi to be recorded in terminal device in 3 Wifi that equipment scans, At this point, terminal device can be current as terminal device using one of geographical location in this 2 geographical locations geographical location.
Optionally, the hot information further includes the signal strength that the terminal device receives Wifi, and the terminal is set For using one of geographical location in the K geographical location as the terminal device current geographic position, comprising:
The terminal device using the corresponding geographical location of destination-mac address as the terminal device current geographic position, The destination-mac address is the signal strength maximum MAC that terminal device described in the K MAC Address receives Wifi Location.
As an example it is assumed that the signal that terminal device receives Wifi can be got when K=2, terminal device scans Wifi Intensity, the signal strength that terminal device receives the corresponding Wifi of the first MAC Address is 50db, and terminal device receives second The signal strength of the corresponding Wifi of MAC Address is 100db, and the stronger GC group connector of signal strength that terminal device receives Wifi is set It is standby closer from the Wifi, in order to keep the current geographic position of the terminal device determined more acurrate, then terminal device chooses the The corresponding geographical location of two MAC Address is as terminal device current geographic position.
Optionally, the terminal device, which also records, N number of turn-on time collection, and N number of turn-on time collection is with N number of Wifi's MAC Address corresponds, and the corresponding turn-on time collection of the 2nd Wifi includes the terminal device in first duration Accessing for the described 2nd Wifi H times corresponding H turn-on time, the H is the integer greater than 1, the method also includes:
The terminal device determines whether present system time is in preset period of time, wherein has in the H turn-on time J turn-on time is in the preset period of time, and the J*2 is greater than or equal to the H;
When the present system time is in the preset period of time, the terminal device makees second geographical location For the terminal device current geographic position.
Wherein, preset period of time such as 8:00am~9:00am, 9:00am~9:30am, 9:30am~9:40am, 8:00pm ~9:00pm or other values.
Optionally, the method also includes:
When the present system time is not at the preset period of time, the terminal device re-starts network positions, To obtain the terminal device current geographic position.
As an example it is assumed that first when is 2 days a length of, H=20 times, J minimum value is 10, and preset period of time is 8:00pm~9: 00pm, usual terminal device access a Wifi and have turn-on time, turn-off time, access duration, and terminal device accesses every time Wifi is intended to record these three parameters of associated record, when terminal device accesses the 2nd Wifi 20 times in 2 days, if this 20 times connect There are at least 10 times turn-on times in 8:00pm~9:00pm in entering, terminal device is by the corresponding second geographical position the 2nd Wifi It sets as terminal device current geographic position.If not having at least 10 times turn-on times in 8:00pm~9 in this 20 times accesses: When 00pm, terminal device re-starts network positions, to obtain terminal device current geographic position.
Wherein, terminal device re-starts network positions, to obtain the specific embodiment party of terminal device current geographic position Formula may is that multiple hot spots around terminal device starting Wifi module scans terminal device, to obtain multiple hot informations (heat For point information than the MAC Address if any hot spot, terminal device receives the signal strength etc. of hot spot), then terminal device will acquire To multiple hot informations feed back to server, server determines terminal device based on multiple hot informations that terminal device is fed back Current geographic position, then determining terminal device current geographic position is fed back to terminal device by server.
Compared to the prior art, terminal device accesses the total of some Wifi in the first duration in scheme provided by the invention Duration is more than first threshold, and it is more than second threshold that terminal device accesses the duration of some Wifi every time in the second duration When, terminal device carries out the geographical location that network positions obtain in advance, after subsequent terminal equipment accesses some Wifi again, If detect network positions instruction, terminal device is directly current as terminal device using this geographical location determined before Geographical location positions to server log on without terminal device, after then server is positioned, returns to terminal device Positioning result, and then shorten the time required for positioning.
The embodiment of the invention also provides another more detailed method flows, as shown in Figure 2, wherein in terminal device MAC Address and N number of geographical location, the MAC Address of N number of Wifi and the N number of geographical location one for recording N number of Wifi are a pair of It answers, the first geographical location is more than first threshold for the total duration that the terminal device accesses the first Wifi in the first duration, and When the duration that the terminal device accesses the first Wifi every time in the second duration is more than second threshold, the terminal device Carry out the geographical location of the terminal device that network positions obtain, the MAC Address of the corresponding Wifi in first geographical location For any one in the MAC Address of N number of Wifi, the N is positive integer, comprising:
S201, the terminal device access the 2nd Wifi.
Whether the MAC Address pair of twoth Wifi is recorded in the really described terminal device of S202, the terminal device The second geographical location answered.
If record has corresponding second geographical location of MAC Address of the 2nd Wifi in the terminal device, execute Step S203.
If not recording corresponding second geographical location of MAC Address of the 2nd Wifi in the terminal device, hold Row step S206-S207.
S203, the terminal device, which also record, N number of turn-on time collection, and N number of turn-on time collection is with N number of Wifi's MAC Address corresponds, and the corresponding turn-on time collection of the 2nd Wifi includes the terminal device in first duration Accessed for the described 2nd Wifi H times corresponding H turn-on time, the H is the integer greater than 1, and the terminal device determines current Whether system time is in preset period of time, wherein and there is J turn-on time to be in the preset period of time in the H turn-on time, The J*2 is greater than or equal to the H.
If the present system time is in the preset period of time, S204 is thened follow the steps.
If the present system time is not at the preset period of time, S205 is thened follow the steps.
S204, the terminal device are using second geographical location as the terminal device current geographic position.
S205, the terminal device re-start network positions, to obtain the terminal device current geographic position.
S206, the terminal device are by Wifi module scans Wifi, to obtain the hot information of M Wifi, the heat Point information includes the MAC Address of Wifi, and the M is positive integer.
S207, the terminal device determine the K MAC Address corresponding K whether have been recorded in the terminal device Geographical location, the M MAC Address include the K MAC Address, and the K is positive integer.
If record has the corresponding K geographical location of the K MAC Address in the terminal device, S208 is thened follow the steps.
If not recorded the corresponding K geographical location of the K MAC Address in the terminal device, then follow the steps S205。
S208, the terminal device set in one of geographical location in the K geographical location as the terminal Standby current geographic position.
It should be noted that the specific implementation process of each step of method shown in Fig. 2 can be found in described in the above method Specific implementation process, no longer describe herein.
The embodiment of the invention also provides a kind of terminal devices 300, as shown in figure 3, recording N number of Wifi's in terminal device MAC Address and N number of geographical location, the MAC Address of N number of Wifi and N number of geographical location correspond, the first geographical position Being set to the terminal device and accessing the total duration of the first Wifi in the first duration is more than first threshold, and the terminal device exists When accessing the access duration of the first Wifi in the second duration every time more than second threshold, it is fixed that the terminal device carries out network The MAC Address in the geographical location of the terminal device that position obtains, the corresponding Wifi in first geographical location is described N number of Any one in the MAC Address of Wifi, the N are positive integer, comprising:
Wifi AM access module 301, for accessing the 2nd Wifi;
Locating module 302, the MAC Address corresponding second for having the 2nd Wifi for working as record in the terminal device When geographical location, using second geographical location as the terminal device current geographic position.
Optionally, the terminal device further include:
Scan module 303, MAC Address for not recording the 2nd Wifi in the terminal device corresponding the When two geographical locations, by Wifi module scans Wifi, to obtain the hot information of M Wifi, the hot information includes The MAC Address of Wifi, the M are positive integer;
The locating module 302 is also used to when record has the corresponding K geographical position of K MAC Address in the terminal device When setting, using one of geographical location in the K geographical location as the terminal device current geographic position, the M A MAC Address includes the K MAC Address, and the K is positive integer.
Optionally, the hot information further includes the signal strength that the terminal device receives Wifi, the positioning mould Block 302 is specifically used for:
Using the corresponding geographical location of destination-mac address as the terminal device current geographic position, the Destination MAC Location is the maximum MAC Address of signal strength that terminal device described in the K MAC Address receives Wifi.
Optionally, the terminal device, which also records, N number of turn-on time collection, and N number of turn-on time collection is with N number of Wifi's MAC Address corresponds, and the corresponding turn-on time collection of the 2nd Wifi includes the terminal device in first duration Accessed for the described 2nd Wifi H times corresponding H turn-on time, the H is the integer greater than 1, the terminal device further include:
Determining module 304, for determining whether present system time is in preset period of time, wherein the H turn-on time In there is J turn-on time to be in the preset period of time, the J*2 is greater than or equal to the H;
The locating module 302 is also used to when the present system time is in the preset period of time, by described second Geographical location is as the terminal device current geographic position.
Optionally, the locating module 302 is also used to when the present system time is not at the preset period of time, Network positions are re-started, to obtain the terminal device current geographic position.
It should be noted that above-mentioned each module (Wifi AM access module 301, locating module 302, scan module 303 and determination Module 304) for executing the correlation step of the above method.
In the present embodiment, terminal device 300 is to present in modular form.Here " module " can refer to specific answer With integrated circuit (application-specific integrated circuit, ASIC), execute one or more softwares or The processor and memory of firmware program, integrated logic circuit and/or other device of above-mentioned function can be provided.In addition, with Upper Wifi AM access module 301, locating module 302, scan module 303 and determining module 304 can pass through terminal device shown in Fig. 4 Processor 401 realize.
As shown in figure 4, terminal device 400 can be realized with the structure in Fig. 4, which includes at least one A processor 401, at least one processor 402 and at least one communication interface 403.The processor 401, the memory 402 are connected by the communication bus with the communication interface 403 and complete mutual communication.
Processor 401 can be general central processor (CPU), microprocessor, application-specific integrated circuit (application-specific integrated circuit, ASIC), or it is one or more for controlling above scheme journey The integrated circuit that sequence executes.
Communication interface 403 is used for and other equipment or communication, such as Ethernet, wireless access network (RAN), nothing Line local area network (Wireless Local Area Networks, WLAN) etc..
Memory 402 can be read-only memory (read-only memory, ROM) or can store static information and instruction Other kinds of static storage device, random access memory (random access memory, RAM) or letter can be stored The other kinds of dynamic memory of breath and instruction, is also possible to Electrically Erasable Programmable Read-Only Memory (Electrically Erasable Programmable Read-Only Memory, EEPROM), CD-ROM (Compact Disc Read- Only Memory, CD-ROM) or other optical disc storages, optical disc storage (including compression optical disc, laser disc, optical disc, digital universal Optical disc, Blu-ray Disc etc.), magnetic disk storage medium or other magnetic storage apparatus or can be used in carrying or store to have referring to Enable or data structure form desired program code and can by any other medium of computer access, but not limited to this. Memory, which can be, to be individually present, and is connected by bus with processor.Memory can also be integrated with processor.
Wherein, the memory 402 be used for store execution above scheme application code, and by processor 401 Control executes.The processor 401 is for executing the application code stored in the memory 402.
The above-mentioned network locating method that terminal device provided above executes can be performed in the code that memory 402 stores, than As recorded in terminal device N number of Wifi MAC Address and N number of geographical location, the MAC Address of N number of Wifi and described N number of It manages position to correspond, the first geographical location is more than for the total duration that the terminal device accesses the first Wifi in the first duration First threshold, and it is more than second threshold that the terminal device accesses the access duration of the first Wifi every time in the second duration When, the terminal device carries out the geographical location for the terminal device that network positions obtain, and first geographical location is corresponding Wifi MAC Address be N number of Wifi MAC Address in any one, the N be positive integer, comprising: access second Wifi;When record has corresponding second geographical location of MAC Address of the 2nd Wifi in the terminal device, by described the Two geographical locations are as the terminal device current geographic position.
In one embodiment, terminal device is mobile phone, is carried out below with reference to each component parts of the Fig. 5 to mobile phone specific Introduction:
RF circuit 510 can be used for receiving and sending messages or communication process in, signal sends and receivees, particularly, by base station After downlink information receives, handled to processor 580;In addition, the data for designing uplink are sent to base station.In general, RF circuit 510 Including but not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier (Low Noise Amplifier, LNA), duplexer etc..In addition, RF circuit 510 can also be communicated with network and other equipment by wireless communication. Any communication standard or agreement, including but not limited to global system for mobile communications (Global can be used in above-mentioned wireless communication System of Mobile communication, GSM), general packet radio service (General Packet Radio Service, GPRS), CDMA (Code Division Multiple Access, 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 520 can be used for storing software program and module, and processor 580 is stored in memory 520 by operation Software program and module, thereby executing the various function application and data processing of mobile phone.Memory 520 can mainly include Storing program area and storage data area, wherein storing program area can application journey needed for storage program area, at least one function Sequence (such as Wifi access function, positioning function) etc.;Storage data area, which can be stored, uses created data (ratio according to mobile phone The MAC Address of such as N number of Wifi, N number of geographical location).In addition, memory 520 may include high-speed random access memory, also It may include nonvolatile memory, a for example, at least disk memory, flush memory device or the storage of other volatile solid-states Device.
Input unit 530 can be used for receiving the number or character information of input, and generate with the user setting of mobile phone with And the related key signals input of function control.Specifically, input unit 530 may include touch panel 531, other input equipments 532.Touch panel 531, also referred to as touch screen, collect user on it or nearby touch operation (such as user use hand The operation of any suitable object or attachment such as finger, stylus on touch panel 531 or near touch panel 531), and according to Preset formula drives corresponding attachment device.Optionally, touch panel 531 may include touch detecting apparatus and touch control Two parts of device processed.Wherein, the touch orientation of touch detecting apparatus detection user, and touch operation bring signal is detected, it will Signal sends touch controller to;Touch controller receives touch information from touch detecting apparatus, and is converted into contact Coordinate, then give processor 580, and order that processor 580 is sent can be received and executed.Furthermore, it is possible to using resistance The multiple types such as formula, condenser type, infrared ray and surface acoustic wave realize touch panel 531.Divided by touch panel 531, input Unit 530 can also include other input equipments 532.Specifically, other input equipments 532 can include but is not limited to secondary or physical bond At least one of disk, function key (such as volume control button, switch key etc.), trace ball, mouse, operating stick etc..
Display unit 540 can be used for showing information input by user or be supplied to user information and mobile phone it is various Menu.Display unit 540 may include display panel 541, optionally, can use liquid crystal display (Liquid Crystal Display, LCD), the forms such as Organic Light Emitting Diode (Organic Light-Emitting Diode, OLED) it is aobvious to configure Show panel 541.Further, touch panel 531 can cover display panel 541, when touch panel 531 detect it is on it or attached After close touch operation, processor 580 is sent to determine the type of touch event, is followed by subsequent processing device 580 according to touch event Type corresponding visual output is provided on display panel 541.Although in Fig. 5, touch panel 531 and display panel 541 It is that the input and input function of mobile phone are realized as two independent components, but in some embodiments it is possible to by touch-control Panel 531 and display panel 541 are integrated and that realizes mobile phone output and input function.
Mobile phone may also include at least one sensor 550, such as optical sensor, motion sensor and other sensors. Specifically, optical sensor may include ambient light sensor and proximity sensor, wherein ambient light sensor can be according to ambient light Light and shade adjust the brightness of display panel 541, proximity sensor can close display panel 541 when mobile phone is moved in one's ear And/or backlight.As a kind of motion sensor, accelerometer sensor can detect (generally three axis) acceleration in all directions Size, can detect that size and the direction of gravity when static, can be used to identify the application of mobile phone posture, (for example horizontal/vertical screen is cut Change, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap) etc.;May be used also as mobile phone The other sensors such as gyroscope, barometer, hygrometer, thermometer, the infrared sensor of configuration, details are not described herein.
Voicefrequency circuit 560, loudspeaker 561, microphone 562 can provide the audio interface between user and mobile phone.Audio-frequency electric Electric signal after the audio data received conversion can be transferred to loudspeaker 561, be converted to sound by loudspeaker 561 by road 560 Signal output;On the other hand, the voice signal of collection is converted to electric signal by microphone 562, is turned after being received by voicefrequency circuit 560 It is changed to audio data, then by after the processing of audio data output processor 580, such as another mobile phone is sent to through RF circuit 510, Or audio data is exported to memory 520 to be further processed.
WiFi belongs to short range wireless transmission technology, and mobile phone can help user's transceiver electronics postal by WiFi module 570 Part, browsing webpage and access streaming video etc., it provides wireless broadband internet access for user.Although Fig. 5 is shown WiFi module 570, but it is understood that, and it is not belonging to must be configured into for mobile phone, it can according to need do not changing completely Become in the range of the essence of invention and omits.
Processor 580 is the control centre of mobile phone, using the various pieces of various interfaces and connection whole mobile phone, is led to It crosses operation or executes the software program and/or module being stored in memory 520, and call and be stored in memory 520 Data execute the various functions and processing data of mobile phone, to carry out integral monitoring to mobile phone.Optionally, processor 580 can wrap Include one or more processing units;Preferably, processor 580 can integrate application processor and modem processor, wherein answer With the main processing operation system of processor, user interface and application program etc., modem processor mainly handles wireless communication. It is understood that above-mentioned modem processor can not also be integrated into processor 580.
Mobile phone further includes the power supply 590 (such as battery) powered to all parts, it is preferred that power supply can pass through power supply pipe Reason system and processor 580 are logically contiguous, to realize management charging, electric discharge and power managed by power-supply management system Etc. functions.
Although being not shown, mobile phone can also include camera, bluetooth module etc., and details are not described herein.
In previous embodiment, each step method process can be realized based on the structure of terminal device shown in fig. 5.
The embodiment of the present invention also provides a kind of computer storage medium, wherein the computer storage medium can be stored with journey Sequence, the program include some or all of any network locating method recorded in above method embodiment step when executing Suddenly.
It should be noted that for the various method embodiments described above, for simple description, therefore, it is stated as a series of Combination of actions, but those skilled in the art should understand that, the present invention is not limited by the sequence of acts described because According to the present invention, some steps may be performed in other sequences or simultaneously.Secondly, those skilled in the art should also know It knows, the embodiments described in the specification are all preferred embodiments, and related actions and modules is not necessarily of the invention It is necessary.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, there is no the portion being described in detail in some embodiment Point, reference can be made to the related descriptions of other embodiments.
In several embodiments provided herein, it should be understood that disclosed device, it can be by another way It realizes.For example, the apparatus embodiments described above are merely exemplary, such as the division of the unit, it is only a kind of Logical function partition, there may be another division manner in actual implementation, such as multiple units or components can combine or can To be integrated into another system, or some features can be ignored or not executed.Another point, shown or discussed is mutual Coupling, direct-coupling or communication connection can be through some interfaces, the indirect coupling or communication connection of device or unit, It can be electrical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product When, it can store in a computer-readable access to memory.Based on this understanding, technical solution of the present invention substantially or Person says that all or part of the part that contributes to existing technology or the technical solution can body in the form of software products Reveal and, which is stored in a memory, including some instructions are used so that a computer equipment (can be personal computer, server or network equipment etc.) executes all or part of each embodiment the method for the present invention Step.And memory above-mentioned includes: USB flash disk, read-only memory (ROM, Read-Only Memory), random access memory The various media that can store program code such as (RAM, Random Access Memory), mobile hard disk, magnetic or disk.
Those of ordinary skill in the art will appreciate that all or part of the steps in the various methods of above-described embodiment is can It is completed with instructing relevant hardware by program, which can store in a computer-readable memory, memory May include: flash disk, read-only memory (English: Read-Only Memory, referred to as: ROM), random access device (English: Random Access Memory, referred to as: RAM), disk or CD etc..
The embodiment of the present invention has been described in detail above, specific case used herein to the principle of the present invention and Embodiment is expounded, and the above description of the embodiment is only used to help understand the method for the present invention and its core ideas; At the same time, for those skilled in the art can in specific embodiments and applications according to the thought of the present invention There is change place, to sum up above-mentioned, the contents of this specification are not to be construed as limiting the invention.

Claims (8)

1. a kind of network locating method, which is characterized in that recorded in terminal device N number of Wifi MAC Address and N number of geographical position It sets, the MAC Address of N number of Wifi and N number of geographical location correspond, and the first geographical location is that the terminal device exists The total duration of the first Wifi of access is more than first threshold in first duration, and the terminal device accesses every time in the second duration When the access duration of first Wifi is more than second threshold, the terminal device carries out the terminal that network positions obtain and sets Standby geographical location, the MAC Address of the corresponding Wifi in first geographical location are appointing in the MAC Address of N number of Wifi Meaning one, the N are positive integer, comprising:
The terminal device accesses the 2nd Wifi;
When record has corresponding second geographical location of MAC Address of the 2nd Wifi in the terminal device, the terminal Equipment is using second geographical location as the terminal device current geographic position;
When corresponding second geographical location of the MAC Address for not recording the 2nd Wifi in the terminal device, the end End equipment is by Wifi module scans Wifi, and to obtain the hot information of M Wifi, the hot information includes the MAC of Wifi Address, the terminal device receive the signal strength of Wifi, and the M is positive integer;
When record has the corresponding K geographical location of K MAC Address in the terminal device, the terminal device is by Destination MAC The corresponding geographical location in address is as the terminal device current geographic position, and the destination-mac address is for the K MAC Terminal device described in location receives the maximum MAC Address of signal strength of Wifi, and the M MAC Address includes the K MAC Address, the K are positive integer.
2. the method according to claim 1, wherein the terminal device, which also records, N number of turn-on time collection, institute The MAC Address for stating N number of turn-on time collection and N number of Wifi corresponds, and the corresponding turn-on time collection of the 2nd Wifi includes institute It states terminal device and accessed for the described 2nd Wifi H times corresponding H turn-on time in first duration, the H is greater than 1 Integer, the method also includes:
The terminal device determines whether present system time is in preset period of time, wherein has J in the H turn-on time Turn-on time is in the preset period of time, and the J*2 is greater than or equal to the H;
When the present system time is in the preset period of time, the terminal device is using second geographical location as institute State terminal device current geographic position.
3. according to the method described in claim 2, it is characterized in that, the method also includes:
When the present system time is not at the preset period of time, the terminal device re-starts network positions, with To the terminal device current geographic position.
4. a kind of terminal device, which is characterized in that recorded in terminal device N number of Wifi MAC Address and N number of geographical location, institute The MAC Address and N number of geographical location for stating N number of Wifi correspond, and the first geographical location is the terminal device first The total duration of the first Wifi of access is more than first threshold in duration, and the terminal device is in the second duration every time described in access When the access duration of first Wifi is more than second threshold, the terminal device carries out the terminal device that network positions obtain Geographical location, the MAC Address of the corresponding Wifi in first geographical location are any one in the MAC Address of N number of Wifi A, the N is positive integer, comprising:
Wifi AM access module, for accessing the 2nd Wifi;
Scan module, for when corresponding second geography of the MAC Address for not recording the 2nd Wifi in the terminal device When position, by Wifi module scans Wifi, to obtain the hot information of M Wifi, the hot information includes the MAC of Wifi Address and the terminal device receive the signal strength of Wifi, and the M is positive integer;
Locating module, the corresponding second geographical position of MAC Address for having the 2nd Wifi for working as record in the terminal device When setting, using second geographical location as the terminal device current geographic position;When record has K in the terminal device When the corresponding K geographical location of MAC Address, using the corresponding geographical location of destination-mac address as the terminal device current position Position is managed, the destination-mac address is the signal strength maximum that terminal device described in the K MAC Address receives Wifi MAC Address, the M MAC Address includes the K MAC Address, and the K is positive integer.
5. terminal device according to claim 4, which is characterized in that the terminal device, which also records, N number of turn-on time The MAC Address of collection, N number of turn-on time collection and N number of Wifi corresponds, the corresponding turn-on time Ji Bao of the 2nd Wifi It includes the terminal device and accessed for the described 2nd Wifi H times corresponding H turn-on time in first duration, the H is big In 1 integer, the terminal device further include:
Determining module, for determining whether present system time is in preset period of time, wherein have J in the H turn-on time Turn-on time is in the preset period of time, and the J*2 is greater than or equal to the H;
The locating module is also used to when the present system time is in the preset period of time, by the described second geographical position It sets as the terminal device current geographic position.
6. terminal device according to claim 5, which is characterized in that
The locating module is also used to when the present system time is not at the preset period of time, and it is fixed to re-start network Position, to obtain the terminal device current geographic position.
7. a kind of terminal device characterized by comprising
It is stored with the memory of executable program code;
The processor coupled with the memory;
The processor calls the executable program code stored in the memory, executes such as 1~right of claim It is required that 3 described in any item network locating methods.
8. a kind of computer readable storage medium, which is characterized in that it stores the computer program for being used for electronic data interchange, In, the computer program makes computer execute the method according to claim 1.
CN201611119560.4A 2016-12-07 2016-12-07 A kind of network locating method and terminal device Active CN106658705B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201611119560.4A CN106658705B (en) 2016-12-07 2016-12-07 A kind of network locating method and terminal device
PCT/CN2017/105101 WO2018103440A1 (en) 2016-12-07 2017-09-30 Network positioning method and terminal device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611119560.4A CN106658705B (en) 2016-12-07 2016-12-07 A kind of network locating method and terminal device

Publications (2)

Publication Number Publication Date
CN106658705A CN106658705A (en) 2017-05-10
CN106658705B true CN106658705B (en) 2019-10-18

Family

ID=58819663

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611119560.4A Active CN106658705B (en) 2016-12-07 2016-12-07 A kind of network locating method and terminal device

Country Status (2)

Country Link
CN (1) CN106658705B (en)
WO (1) WO2018103440A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106658705B (en) * 2016-12-07 2019-10-18 Oppo广东移动通信有限公司 A kind of network locating method and terminal device
CN112115132B (en) * 2019-06-20 2024-02-13 北京百度网讯科技有限公司 Data association method, device, equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103501482A (en) * 2013-09-26 2014-01-08 小米科技有限责任公司 Network access method, network access device and terminal
CN103533635A (en) * 2012-07-03 2014-01-22 希姆通信息技术(上海)有限公司 Mobile terminal positioning method and mobile terminal
CN103974189A (en) * 2013-01-24 2014-08-06 华为终端有限公司 GPS positioning method of mobile terminal and mobile terminal
CN104837215A (en) * 2015-04-14 2015-08-12 广东欧珀移动通信有限公司 Wireless access point connecting method and device
CN105100292A (en) * 2014-05-12 2015-11-25 阿里巴巴集团控股有限公司 Method and apparatus of determining position of terminal
CN105376705A (en) * 2014-08-22 2016-03-02 中兴通讯股份有限公司 WiFi signal-based positioning method, device and system

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103024659B (en) * 2011-09-22 2018-09-11 嘉兴高恒信息科技有限公司 A kind of location method and system
CN105101062A (en) * 2014-04-21 2015-11-25 北京奇虎科技有限公司 Wearable device, and method and system for obtaining attribute information of wireless network
CN106658705B (en) * 2016-12-07 2019-10-18 Oppo广东移动通信有限公司 A kind of network locating method and terminal device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103533635A (en) * 2012-07-03 2014-01-22 希姆通信息技术(上海)有限公司 Mobile terminal positioning method and mobile terminal
CN103974189A (en) * 2013-01-24 2014-08-06 华为终端有限公司 GPS positioning method of mobile terminal and mobile terminal
CN103501482A (en) * 2013-09-26 2014-01-08 小米科技有限责任公司 Network access method, network access device and terminal
CN105100292A (en) * 2014-05-12 2015-11-25 阿里巴巴集团控股有限公司 Method and apparatus of determining position of terminal
CN105376705A (en) * 2014-08-22 2016-03-02 中兴通讯股份有限公司 WiFi signal-based positioning method, device and system
CN104837215A (en) * 2015-04-14 2015-08-12 广东欧珀移动通信有限公司 Wireless access point connecting method and device

Also Published As

Publication number Publication date
CN106658705A (en) 2017-05-10
WO2018103440A1 (en) 2018-06-14

Similar Documents

Publication Publication Date Title
CN106714103B (en) A kind of network locating method and terminal device
CN106507482B (en) A kind of network locating method and terminal device
CN106714207B (en) A kind of information processing method and terminal device
CN106210323B (en) A kind of speech playing method and terminal device
CN104168175A (en) Message group sensing method and terminal in instant messaging
CN104699973A (en) Method and device for controlling logic of questionnaires
CN104426919A (en) Page sharing method, device and system
CN104598476A (en) Message aggregation display method and information display method and relevant device
CN106488391B (en) A kind of data migration method and terminal device
CN108932093A (en) Split screen application switching method, device, storage medium and electronic equipment
CN102833419A (en) Method and terminal for controlling screen state
CN106170034A (en) A kind of sound effect treatment method and mobile terminal
CN103813127A (en) Video call method, terminal and system
CN106507269A (en) A kind of data migration method and terminal device
CN108932094A (en) Split screen application switching method, device, storage medium and electronic equipment
CN106658353A (en) Data migration method and mobile equipment
CN106445739A (en) Data migration method and terminal device
CN106332023A (en) Unread information display method and device, and mobile terminal
CN104836717A (en) Data processing method and apparatus, and terminal equipment
CN106209608A (en) The method and device that the difference of a kind of chat message synchronizes
CN106658705B (en) A kind of network locating method and terminal device
CN106484563A (en) A kind of data migration method and terminal unit
CN108323236A (en) A kind of exchange method and terminal
CN106327342A (en) Emoji package processing method and terminal
CN104092657A (en) Information transmission method, device and system

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: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after: OPPO Guangdong Mobile Communications Co., Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before: Guangdong Opel Mobile Communications Co., Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant