CN106357758A - Positioning method, positioning system and terminal - Google Patents

Positioning method, positioning system and terminal Download PDF

Info

Publication number
CN106357758A
CN106357758A CN201610814932.9A CN201610814932A CN106357758A CN 106357758 A CN106357758 A CN 106357758A CN 201610814932 A CN201610814932 A CN 201610814932A CN 106357758 A CN106357758 A CN 106357758A
Authority
CN
China
Prior art keywords
terminal
information
outlet
primary importance
current
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
CN201610814932.9A
Other languages
Chinese (zh)
Other versions
CN106357758B (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201610814932.9A priority Critical patent/CN106357758B/en
Publication of CN106357758A publication Critical patent/CN106357758A/en
Application granted granted Critical
Publication of CN106357758B publication Critical patent/CN106357758B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/52Network services specially adapted for the location of the user terminal
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information

Landscapes

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

Abstract

An embodiment of the invention discloses a positioning method, a positioning system and a terminal. The positioning method includes: acquiring a location acquisition demand, according to the location acquisition demand, detecting whether first location information is stored or not, wherein the location acquisition demand are used for demanding location information of the first terminal; if storage of the first location information is detected, judging effectiveness of the first location information; if invalidity of the first location information is detected, sending a location update request instruction to the second terminal, wherein both the first terminal and the second terminal belong to the same local network; receiving a position response instruction corresponding to the location update instruction, wherein the second location information is carried in the location response instruction, and the second location information is the location information acquired by the second terminal itself; updating the second location information into current location information of the first terminal.

Description

A kind of localization method, system and terminal
Technical field
The present invention relates to the information processing technology in the communications field, more particularly, to a kind of localization method, system and terminal.
Background technology
Development with communication technology and the needs of users ' individualized requirement, television set has tended to networking design, That is the fusion of television set and the Internet has had become as the trend of certainty, and due to for TV, user (tv, Television individualized content) is recommended and operation becomes more and more important, and therefore, intelligent television arises at the historic moment.
In prior art, user carries out some on intelligent television to be needed to answer hard by what the position of intelligent television was realized Can, for example, weather application, call a taxi application, map application etc., at this moment, intelligent television can by based on location-based service (lbs, Location based service) realize the positioning of intelligent television, and then this intelligent television can be according to the position getting Information completes the function of each application.Specifically, the position of the mode positioning intelligent TV based on outlet ip for the intelligent television, according to Between the egress network of intelligent television, the agreement (ip, internet protocol) of interconnection is corresponding with position with default ip Relation is mated, and finds the corresponding position of outlet ip of this intelligent television, the position of the intelligent television so matching is Effectively, otherwise for invalid position.
However, present default ip is some data being collected in advance with the corresponding relation of position, and due to fortune Battalion business is the outlet ip of the intelligent television distribution of each user is unfixed, therefore, the corresponding relation of default ip and position In position be one positioning a region substantially, typically can only navigate to the scope of prefecture-level city, therefore, by above-mentioned The degree of accuracy of the position of the intelligent television that mode obtains is not high, consequently, it is possible to leading to carry out using the position of intelligent television to answer With or function effect inaccurate or undesirable.
Content of the invention
For solving above-mentioned technical problem, embodiment of the present invention expectation provides a kind of localization method, system and terminal, Neng Gouti High setting accuracy, and then ensure that the accuracy of the functional effect realizing application by positional information.
The technical scheme is that and be achieved in that:
Embodiments provide a kind of localization method, be applied in first terminal, comprising:
Obtain position acquisition instruction, instructed according to described position acquisition, detect the primary importance information that itself whether is stored with, Wherein, described position acquisition instructs the positional information for asking described first terminal to be located;
If the described primary importance information that is stored with is detected, judge the effectiveness of described primary importance information;
If judging, described primary importance information is invalid, sends position updating request and instructs to second terminal, described First terminal and described second terminal belong to same LAN;
Receive the corresponding position response instruction of described position updating request instruction, wherein, take in described position response instruction Band second position information, described second position information is the positional information of itself that described second terminal gets;
The current location information that described second position information updating is described first terminal.
The embodiment of the present invention also provides a kind of localization method, is applied in second terminal, comprising:
Receiving position updates request instruction, and wherein, described position updating request instructs for asking described second terminal Current location information, carries the association of interconnection between the current first outlet network of first terminal in described position updating request instruction View ip, described first terminal and described second terminal belong to same LAN;
Detect whether to be stored with threeth positional information corresponding with described current first outlet ip;
There is not described 3rd positional information if detecting, obtaining the current location information of itself;
The described current location information of itself is sent to described first terminal as second position information.
The embodiment of the present invention provides a kind of first terminal, comprising:
First acquisition unit, for obtaining position acquisition instruction;
First detector unit, for the described position acquisition instruction obtaining according to described first acquisition unit, detects itself The primary importance that whether is stored with information, wherein, described position acquisition instructs the position letter for asking described first terminal to be located Breath;
Judging unit, if detecting, for described first detector unit, the described primary importance information that is stored with, judges institute State the effectiveness of primary importance information;
First transmitting element, if judging that described primary importance information is invalid for described judging unit, sends position Put renewal request instruction to second terminal, described first terminal and described second terminal belong to same LAN;
First receiving unit, instructs corresponding position for receiving the position updating request that described first transmitting element sends Response instruction, wherein, carries second position information in described position response instruction, described second position information is for described second eventually Hold the positional information of itself getting;
Positioning unit, the described second position information updating for receiving described first receiving unit is whole for described first The current location information at end.
The embodiment of the present invention provides a kind of second terminal, comprising:
Second receiving unit, updates request instruction for receiving position, and wherein, described position updating request instructs for asking Seek the current location information of described second terminal, in described position updating request instruction, carry the current first outlet of first terminal Agreement ip of interconnection between network, described first terminal and described second terminal belong to same LAN;
Second detector unit, for detecting whether described current first being received with described second receiving unit that be stored with is gone out Mouth corresponding 3rd positional information of ip;
Second acquisition unit, if detecting there is not described 3rd positional information for described second detector unit, obtains Take from the current location information of body;
Second transmitting element, for the current location information of itself described in obtaining described second acquisition unit as the Two positional informationes send to described first terminal.
The embodiment of the present invention additionally provides a kind of alignment system, comprising:
First terminal, belongs to the second terminal of same LAN with described first terminal;
Described first terminal, for sending position updating request instruction to described second terminal, to obtain second confidence Breath, and using described second position information as the current location information of itself;
Described second terminal, for according to the described position updating request instruction receiving, sending described second position information To described first terminal.
Embodiments provide a kind of localization method, system and terminal, by obtaining position acquisition instruction, according to this Position acquisition instructs, and detects the primary importance information that itself whether is stored with, and wherein, this position acquisition instructs for request first eventually The positional information that end is located;If the primary importance information that is stored with is detected, judge the effectiveness of primary importance information;If judging It is invalid for going out primary importance information, then send position updating request and instruct to second terminal, first terminal and described second terminal Belong to same LAN;Receiving position updates the instruction of request instruction corresponding position response, wherein, in the instruction of this position response Carry second position information, the positional information of itself that this second position information gets for second terminal;By second confidence Breath is updated to the current location information of first terminal.Using above-mentioned technic relization scheme, because first terminal can not find currently Positional information when, can be by obtaining the more accurate positional information obtaining with its second terminal in same LAN As the current positional information of first terminal, realize the positioning of first terminal, therefore, such scheme improves setting accuracy, And then ensure that the accuracy of the functional effect realizing application by the positional information of first terminal (intelligent television).
Brief description
Fig. 1 is a kind of Organization Chart of alignment system provided in an embodiment of the present invention;
Fig. 2 is a kind of exemplary alignment system schematic diagram provided in an embodiment of the present invention;
Fig. 3 is a kind of flow chart one of localization method provided in an embodiment of the present invention;
Fig. 4 is a kind of flowchart 2 of localization method provided in an embodiment of the present invention;
A kind of flow chart one of localization method for the embodiment of the present invention also offer for the Fig. 5;
A kind of flowchart 2 of localization method for the embodiment of the present invention also offer for the Fig. 6;
Fig. 7 is a kind of interaction figure one of localization method provided in an embodiment of the present invention;
Fig. 8 is a kind of interaction figure two of localization method provided in an embodiment of the present invention;
Fig. 9 is a kind of schematic diagram of a scenario of exemplary first terminal provided in an embodiment of the present invention;
Figure 10 is the interaction scenarios signal of a kind of exemplary first terminal provided in an embodiment of the present invention and second terminal Figure;
Figure 11 is a kind of structural representation one of first terminal provided in an embodiment of the present invention;
Figure 12 is a kind of structural representation two of first terminal provided in an embodiment of the present invention;
Figure 13 is a kind of structural representation one of second terminal provided in an embodiment of the present invention;
Figure 14 is a kind of structural representation two of second terminal provided in an embodiment of the present invention;
Figure 15 is a kind of structural representation three of second terminal provided in an embodiment of the present invention.
Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation describes.
Lbs, location Based service, is obtained by the radio communication network or outside positioning mode of telecommunications mobile operator Take the positional information (geographical coordinate, or geodetic coordinates) of mobile phone users, (foreign language is abridged: gis, outer in GIS-Geographic Information System Language full name: geographic information system) platform support under, provide the user a kind of increasing of respective service Value business.Such as show weather forecast on TV, need first to obtain the position of user, the position getting is more accurate, advance notice Effect better.
The agreement (ip, internet protocol) of interconnection between egress network, because the machine ip is LAN (Intranet) In ip, therefore, the machine ip can only use in a local network;And when outer net and Internet bar will access the ip of the machine, by outlet Ip goes to access, and port mapping to be done could access in terminal on the router, therefore, the public affairs that outlet ip is known as Net ip.
Fig. 1 is a kind of Organization Chart of alignment system in the embodiment of the present invention, and Fig. 1 includes: one or more servers 4, Terminal unit 51-55 and network 31, network 31 includes router, gateway etc. network entity, and in figure does not embody.Terminal sets Standby 51-55 carries out information exchange by cable network or wireless network with server, to collect correlation from terminal 51-55 Data information transfer to server.The type of terminal unit is as shown in figure 1, include mobile phone (terminal 53), panel computer or pda The type such as (terminal 55), desktop computer (terminal 52), pc machine (terminal 54), intelligent tv (terminal 51).Wherein, install in terminal unit Have the application needed for various users, such as possess amusement function application (such as Video Applications, audio frequency play application, game application, Ocr software), and for example possess the application (as digital map navigation application, purchasing by group application, camera application etc.) of service function.
Based on the framework of Fig. 1, as shown in Fig. 2 between terminal unit 51-55 can also shared data information, realize terminal The data interaction of equipment room.Specifically, a kind of alignment system may include that first terminal, belongs to same with this first terminal The second terminal of LAN.
First terminal, for sending position updating request instruction to second terminal, to obtain second position information, and by the Two positional informationes are as the current location information of itself;
Second terminal, for according to the position updating request instruction receiving, sending second position information to first terminal.
It should be noted that as shown in Fig. 2 in alignment system, for first terminal (intelligent television) upper service or When application needs to obtain position, need to obtain position to the location management system on intelligent television, this location management system can lead to The position crossing second terminal (smart mobile phone) provides system to obtain positional information, and this position provides system home position to intelligent electricity Depending on.
Embodiment one
Embodiments provide a kind of localization method, apply in first terminal, as shown in figure 3, the method is permissible Including:
S101, acquisition position acquisition instruction, instruct according to this position acquisition, detect the primary importance letter that itself whether is stored with Breath, wherein, this position acquisition instructs the positional information for asking first terminal to be located.
The application scenarios of the embodiment of the present invention are: using the application based on positioning function on first terminal or service when, This first terminal needs first to be positioned, and obtains the situation of the current location information of itself.
It should be noted that the first terminal in the embodiment of the present invention is can be with other using intelligent television etc. of application Intelligent terminal's (second terminal) carries out data interaction, but can not carry out pinpoint terminal.
Preferably, the first terminal in the embodiment of the present invention can be the intelligent television with application function.
In embodiments of the present invention, when user carries out the first application by first terminal (intelligent television), and this first should With realize need again the current location information of this first terminal assist realize application function when, this first terminal proceeds by Position fixing process, user, by the button of first terminal or touch operation, opening positioning function or determining that positioning starts, generates position Put acquisition instruction (obtaining position acquisition instruction), with positional information (the i.e. present bit confidence asking first terminal to be currently located Breath), when this first terminal gets the instruction of this position acquisition, stored certainly due to before this first terminal oneself possibility Oneself positional information, therefore, at this moment, first terminal can instruct according to this position acquisition, first detects itself whether to be stored with the One positional information.
Optionally, the first application in the embodiment of the present invention can need for weather application, navigation application, map application etc. Assisting the application realizing application function, the embodiment of the present invention is not restricted more accurate positional information.
Exemplary, user, when using navigation application, is to be generated as position acquisition instruction clicking on " my position ", This intelligent television just can detect to oneself according to this position acquisition instruction generating in itself, sees the whether storage of oneself Region has been stored with primary importance information.
It should be noted that the primary importance information in the embodiment of the present invention can be for first terminal according to the outlet of oneself Ip defined location information in the corresponding relation with position for the default outlet ip.
It is understood that primary importance information can also be first terminal prelocalization positional information it is also possible to The positional information given tacit consent to for first terminal oneself, or user manually arranges the positional information of the first terminal of setting, always It, primary importance information characterizes the positional information of first terminal.The embodiment of the present invention does not limit primary importance information Source mode.
If s102 detects the primary importance information that is stored with, judge the effectiveness of primary importance information.
It itself is all to be stored with after primary importance information that first terminal detects, the testing result of this first terminal can have Two kinds, a kind of is the primary importance information that is stored with that detects, and another kind of is to detect as the primary importance information that is stored with.When first Terminal detects when being stored with primary importance information, because this first terminal does not know this primary importance information whether with now The position consistency of first terminal is that is to say, that first terminal is it cannot be guaranteed that whether still effective primary importance information here is Positional information, whether correct positional information, therefore, at this moment, this first terminal needs to judge this primary importance information Effectiveness.
In embodiments of the present invention, due to when carrying out network service, the outlet ip that operator distributes to first terminal is Different, and be not that fixed allocation uniquely exports ip to first terminal, therefore, the current outlet ip of this first terminal may Outlet ip corresponding with primary importance information is different, and like this, this primary importance information may just fail, in It is by current first outlet ip that first terminal can be by first terminal, first terminal can judge that primary importance is believed The effectiveness of breath.
Specifically, first terminal obtains current first outlet ip, and by current first outlet ip and primary importance information pair Second outlet ip answered is mated, and when current first outlet ip is mismatched with second outlet ip, this first terminal judges Primary importance information is invalid, and when current first outlet ip is mated with second outlet ip, this first terminal judges first Confidence ceases for effective.
It should be noted that the embodiment of the present invention is can going out according to oneself by first terminal with primary importance information Mouth ip defined location information in the corresponding relation with position for the default outlet ip, therefore, primary importance information can correspond to one Individual second outlet ip.
Further, in embodiments of the present invention, if first terminal detects the primary importance information that is not stored with, this One terminal just can directly transmit position updating request and instruct to second terminal the acquisition process carrying out current location information (i.e. The process of s103).
If s103 judges that primary importance information is invalid, send position updating request and instruct to second terminal, this One terminal and second terminal belong to same LAN.
First terminal can judge the effectiveness of primary importance information by current first outlet ip, therefore, when first Terminal judges go out current first outlet ip when mating with second outlet ip, when that is, primary importance information is invalid, this first terminal It is accomplished by re-starting obtaining of current location information.In embodiments of the present invention, first terminal reacquires present bit Confidence breath is got by second terminal, and therefore, when it is invalid that first terminal judges primary importance information, this first Terminal sends position updating request and instructs to second terminal, so that this second terminal can obtain the positional information of oneself, and handle The positional information of oneself is sent to first terminal as the current location information of this first terminal.
It should be noted that in embodiments of the present invention, first terminal and second terminal are two in same LAN Individual terminal.
It is understood that first terminal in embodiments of the present invention and second terminal are to be in communication with each other, Carry out two terminals of data interaction, and first terminal and second terminal will in a LAN because when first terminal and When same LAN, the position of this first terminal and the position of this second terminal are close to second terminal, at this moment, The position of second terminal be may be considered the current location of first terminal, deviation will not be very big.
It should be noted that the second terminal in the embodiment of the present invention can be smart mobile phone, panel computer etc. can enter The pinpoint terminal of row.
It is understood that due to present some first terminals (intelligent television) existing, obtaining and position less than accurate Or positional information, therefore, in the embodiment of the present invention, can obtain by pinpoint second terminal (smart mobile phone) can be carried out To the positional information being closer to as first terminal position, such technic relization scheme can improve first terminal positioning Precision.
S104, receiving position update the instruction of request instruction corresponding position response, wherein, carry in the instruction of this position response Second position information, the positional information of itself that this second position information gets for second terminal.
After first terminal requests position updating request instruction to second terminal, because this second terminal can be according to this Position updating request instruction gets second position information, and therefore, this second terminal just can respond the position of first terminal more New request instruction, sends position response and instructs to first terminal, update request instruction to respond to primary importance, i.e. this first end End have received position updating request instruction corresponding position response instruction.Specifically, it is to carry the in the instruction of this position response The second position information that two terminals get, because the purpose that first terminal sends position updating request instruction is exactly to obtain Take current positional information, therefore, when this second terminal responds the instruction of this position updating request, be can be second position information Carry and be sent to first terminal in position response instruction.
It should be noted that the content of the second position information of first terminal reception can be very abundant, this second confidence Breath may include that the information such as the precision of longitude, dimension, height and position, and the content present invention of specific second position information is real Apply example not to be restricted.
It is understood that in embodiments of the present invention, due to abundant in content, the high precision of second position information, and the One terminal and second terminal belong to same LAN, therefore, first terminal using the second position information obtaining as oneself Degree of deviation during current location information also will not be very big, improves the accuracy of first terminal positioning from side.
S105, by second position information updating be first terminal current location information.
After first terminal receives second position information, due to second position information and the current location of first terminal Deviation is less, and therefore, this first terminal can be using second position information as the current location information of oneself, and that is, first terminal will Second position information updating is the current location information of first terminal, and so far, this first terminal just completes this of first terminal The process of secondary positioning.
Further, when first terminal completes position fixing process, that is, this first terminal gets current location information (second Confidence cease) after, this first terminal first application or service just can adopt carry out corresponding function to second position information Or business, due to first terminal positioning precision raising, then first terminal carry out with this second position information phase The service closed or the accuracy of business are just higher, and that is, a kind of localization method provided in an embodiment of the present invention improves registration Degree, and then ensure that the accuracy of the functional effect realizing application by the positional information of first terminal (intelligent television).
Further, as shown in figure 4, after s102, a kind of localization method provided in an embodiment of the present invention also includes: s106.Specific as follows:
If s106 judges that primary importance information is effective, this primary importance information updating it is working as of first terminal Front position information.
When judging the effectiveness of primary importance information, the testing result of this first terminal can have two to first terminal Kind, a kind of is the primary importance information that is stored with that detects, and another kind of is to detect as the primary importance information that is stored with.And work as first Terminal judges go out primary importance information be effective when, the primary importance information characterizing the existing storage of this first terminal is probably it Front just updated correct current location information, therefore, this primary importance information updating can be directly by this first terminal The current location information of first terminal, completes this time to located.
It should be noted that first terminal is after getting second position information, this first terminal can will give second Positional information is corresponding with current first outlet ip to be stored, and when first terminal needs to be positioned next time again, can adopt Carry out the position fixing process of a new round with the second position information and current first outlet ip of storage as basis for estimation.
Embodiment two
Embodiments provide a kind of localization method, apply in second terminal, as shown in figure 5, the method is permissible Including:
S201, receiving position update request instruction, and wherein, this position updating request instructs for asking working as of second terminal Front position information, carries current first outlet ip of first terminal, first terminal and second is eventually in the instruction of this position updating request End belongs to same LAN.
Based on the description of embodiment one, first terminal in the current location information needing to obtain oneself, this first terminal Can remove to ask the current location information of this second terminal to second terminal, using the positional information of this second terminal as first The process of the current location information of terminal.
Specifically, second terminal receiving position updates request instruction, and this position updating request instructs for request second eventually The current location information at end, carries current first outlet ip of first terminal in the instruction of this position updating request.
It should be noted that wanting the premise realizing the positioning of said process to be: the second terminal in the embodiment of the present invention Less with the position difference of first terminal, therefore, the implementation in the embodiment of the present invention can be second terminal and first Terminal can belong to same LAN.
Further, the first terminal in the embodiment of the present invention and second terminal can also be terminal close together, example As two terminals of the short-range communications such as bluetooth can be passed through.Therefore, first terminal and second terminal can be for carrying out low coverage Terminal from communication or local area network communication.
S202, detect whether to be stored with threeth positional information corresponding with current first outlet ip.
After second terminal have received the position updating request instruction of first terminal transmission, because first terminal may be with Carry out the process of the interaction of positional information before second terminal, therefore, receive this first terminal in this second terminal After the position updating request instruction sending, this second terminal first can detect whether be transmitted across certainly to first terminal before Oneself positional information, that is, second terminal detect whether to be stored with threeth positional information corresponding with current first outlet ip.
It should be noted that current first outlet ip here is the current outlet ip of first terminal, second terminal is logical Cross the acquisition of information carrying in position updating request instruction to current first outlet ip.
The 3rd positional information in the embodiment of the present invention be before the position that has been transmitted across for first terminal of second terminal Information.
If s203 detects there is not the 3rd positional information, obtain the current location information of itself.
Second terminal detects whether to be stored with after the 3rd positional information, and the testing result of this second terminal can be detection To the 3rd positional information or detect as the 3rd positional information that is stored with, and work as second terminal and detect and do not deposit In the 3rd positional information, then this second terminal is about to begin the acquisition current location information of itself.
Specifically, second terminal obtain the current location information of itself mode can by global positioning system (gps, Global positioning system), it is also possible to be positioned by base station, the concrete implementation mode present invention is real for positioning Apply example not to be restricted.
Further, second terminal obtain the current location information of itself after, this second terminal by itself work as Front position information is stored as a pair of mapping relations with current first outlet ip getting, in case next first terminal enters Use when row position updating request.
S204, the current location information of itself is sent to first terminal as second position information.
, after obtaining the current location information of itself, the location updating in order to send to first terminal please for second terminal Instruction is asked to be responded, the current location information of itself is sent to first terminal by this second terminal as second position information, To complete the response to location updating request instruction.
Specifically, when second terminal sends second position information, it is to carry this second position information to refer in position response In order by network or with near-field communication by way of be sent to first terminal, this first terminal receives second position information Afterwards it is possible to realize the first application function or service.
Further, as shown in fig. 6, after s202, embodiments providing a kind of localization method and also include: s205.Specific as follows:
If s205 detect presence the 3rd positional information, using the 3rd positional information as second position information send to First terminal.
Second terminal detects whether to be stored with after the 3rd positional information, and the testing result of this second terminal can be detection To the 3rd positional information or detect as the 3rd positional information that is stored with, and work as second terminal and detect the presence of 3rd positional information, had obtained the current location information of itself before sign second terminal is possible, therefore, now, only This second terminal is needed to send to first terminal the 3rd positional information as second position information.
Embodiment three
Embodiments provide a kind of localization method, as shown in fig. 7, the method may include that
S301, first terminal obtain position acquisition instruction, and this position acquisition instructs the position for asking first terminal to be located Confidence ceases.
In embodiments of the present invention, when user carries out the first application by first terminal (intelligent television), and this first should With realize need again the current location information of this first terminal assist realize application function when, this first terminal proceeds by Position fixing process, user, by the button of first terminal or touch operation, opening positioning function or determining that positioning starts, generates position Put acquisition instruction, with the positional information (i.e. current location information) asking first terminal to be currently located, that is, first terminal obtains Position acquisition instructs, and this position acquisition instructs the positional information for asking first terminal to be located.
S302, first terminal instruct according to this position acquisition, detect the primary importance information that itself whether is stored with.
It should be noted that in the embodiment of the present invention " first terminal according to this position acquisition instruct, whether detect itself The description of the primary importance that is stored with information " is consistent with the description of the s101 in embodiment one, and here is omitted.
If s303 detects the primary importance information that is stored with, first terminal then obtains current first outlet ip.
It should be noted that in the embodiment of the present invention " if the primary importance information that is stored with is detected, first terminal then obtains Take current first outlet ip " description consistent with the description of the s102 in embodiment one, here is omitted.
Corresponding with primary importance information for current first outlet ip second outlet ip is mated by s304, first terminal, If current first outlet ip and second outlet ip mismatch, this first terminal then judges that this primary importance information is invalid.
If current first outlet ip of s305 is mated with second outlet ip, first terminal then judges primary importance information for having Effect.
If s306 first terminal judges that primary importance information is invalid, this first terminal then sends position updating request Instruct to second terminal, in the instruction of this position updating request, carry current first outlet ip of first terminal, this first terminal with This second terminal belongs to same LAN.
It should be noted that the description of the description of s304-s306 in the embodiment of the present invention and the s103 in embodiment one Unanimously, here is omitted.
S307, second terminal detect whether to be stored with threeth positional information corresponding with current first outlet ip.
It should be noted that in the embodiment of the present invention " second terminal detects whether to be stored with and current first outlet ip The description of corresponding 3rd positional information " is consistent with the description of the s202 in embodiment two, and here is omitted.
If s308 detects there is not the 3rd positional information, second terminal then obtains the current location information of itself.
It should be noted that " there is not the 3rd positional information if detecting, second terminal then obtains in the embodiment of the present invention Take from the current location information of body " description consistent with the description of the s203 in embodiment two, here is omitted.
It should be noted that second terminal obtain the current location information of itself after, this second terminal by itself Current location information stored as a pair of mapping relations with current first outlet ip getting, in case next time first is eventually End carries out use when position updating request.
The current location information of itself is sent to first terminal by s309, second terminal as second position information.
It should be noted that in the embodiment of the present invention " second terminal is using the current location information of itself as second Confidence breath send to first terminal " description consistent with the description of the s204 in embodiment two, here is omitted.
If s310 detect presence the 3rd positional information, second terminal then using the 3rd positional information as the second position Information sends to first terminal.
It should be noted that in the embodiment of the present invention " if detecting presence the 3rd positional information, second terminal then should 3rd positional information sends to first terminal as second position information " description and embodiment two in s205 description one Cause, here is omitted.
As shown in figure 8, a kind of localization method provided in an embodiment of the present invention, after s305, this localization method also includes s311.Specific as follows:
If s311 judges that primary importance information is effective, first terminal is then by primary importance information updating for first eventually The current location information at end.
It should be noted that in the embodiment of the present invention " when it is effective for judging primary importance information, first terminal general Primary importance information updating is the current location information of first terminal, completes this time to position " description and embodiment one in s1 Description consistent, here is omitted.
It is intelligent television for first terminal below, as a example second terminal is smart mobile phone, real on intelligent television to user As a example existing shopping application, localization method provided in an embodiment of the present invention is described.
As shown in figure 9, when user clicks on " shopping application ", intelligent television shows the word of " whether obtaining current location " Sample, when user clicks on " determination ", intelligent television obtains position acquisition instruction, and then, intelligent television starts to ask intelligent television The positional information being located, " is obtaining position as shown in Figure 10......" process;Intelligent television leads to as first terminal Cross the detection process of s302-s305, learn oneself originally as the effective positional information having storage, therefore, this intelligent television is just Send position updating request instruction to smart mobile phone as shown in Figure 10;Smart mobile phone, after receiving position updating request, is pressed Process according to s307-s308 is detected, sees whether preserve the positional information issuing intelligent television before, if not having, leads to The "Yes" button crossing click smart mobile phone just obtains the positional information of oneself: " Haidian District, Beijing City xx road xx cell x x Building......", and by " Haidian District, Beijing City xx road xx cell x x building......" etc. second position information be sent to intelligent television; If having, smart mobile phone is just directly by " the Haidian District, Beijing City xx road xx cell x x building of storage......" etc. second position information It is sent to intelligent television.
Example IV
As shown in figure 11, embodiments provide a kind of first terminal 1, this first terminal 1 may include that
First acquisition unit 11, for obtaining position acquisition instruction;
First detector unit 10, for the described position acquisition instruction being obtained according to described first acquisition unit 11, detection Whether primary importance information, wherein, described position acquisition instructs the position for asking described first terminal to be located if itself being stored with Confidence ceases.
Judging unit 12, if detecting, for described first detector unit 10, the described primary importance information that is stored with, sentences The effectiveness of described primary importance information of breaking.
First transmitting element 13, if judging that described primary importance information is invalid for described judging unit 12, sends out Position updating request is sent to instruct to second terminal, described first terminal and described second terminal belong to same LAN.
First receiving unit 14, the position updating request instruction for receiving described first transmitting element 13 transmission is corresponding Position response instructs, and wherein, carries second position information in the instruction of described position response, and described second position information is described the The positional information of itself that two terminals get.
Positioning unit 15, is described for the described second position information updating that receives described first receiving unit 14 The current location information of one terminal.
Optionally, described judging unit 12, specifically for judging described primary importance letter by current first outlet ip The effectiveness of breath.
Optionally, described first acquisition unit 11, is additionally operable to obtain described current first outlet ip.
Described judging unit 12, also particularly useful for described current first outlet ip obtaining described first acquisition unit 11 Second outlet ip corresponding with described primary importance information is mated, if described current first outlet ip and described second outlet Ip mismatches, then judge that described primary importance information is invalid;If described current first outlet ip and described second outlet ip Join, then judge that described primary importance information is effective.
Optionally, described positioning unit 15, is additionally operable to described judging unit 12 and judges the effective of described primary importance information After property, if described judging unit 12 judges that described primary importance information is effective, by described primary importance information updating Current location information for described first terminal.
As shown in figure 12, in actual applications, above-mentioned first detector unit 10, first acquisition unit 11, judging unit 12, Positioning unit 15 can be realized by the processor 16 on first terminal, specially central processing unit (cpu), microprocessor (mpu), digital signal processor (dsp) or field programmable gate array (fpga) etc. are realized, and the first receiving unit 14 is by receiving Device 17 is realized, and the first transmitting element 13 can be realized by transmitter 18, and above-mentioned first terminal also includes: storage medium 19, this storage Medium 19, transmitter 18, receptor 17 can be connected with processor 16 by system bus 110, and wherein, storage medium 19 is used for Storage executable program code, this program code includes computer-managed instruction, and storage medium 19 may comprise the storage of high speed ram Device it is also possible to also include nonvolatile memory, for example, at least one disk memory.
Optionally, the first terminal in the embodiment of the present invention can be that intelligent television etc. can be with other intelligent terminal (second Terminal) carry out data interaction, but pinpoint terminal can not be carried out.
It should be noted that first terminal 1 can be the terminal unit 51-55 in Fig. 1.
Embodiment five
As shown in figure 13, embodiments provide a kind of second terminal 2, this second terminal 2 may include that
Second receiving unit 20, updates request instruction for receiving position, wherein, described position updating request instructs and is used for Ask the current location information of described second terminal, carry current the first of first terminal in described position updating request instruction and go out Mouth ip, described first terminal and described second terminal belong to same LAN.
Second detector unit 21, for detecting whether described current the receiving with described second receiving unit 20 that be stored with One outlet corresponding 3rd positional information of ip.
Second acquisition unit 22, if detecting there is not described 3rd positional information for described second detector unit 21, Then obtain the current location information of itself.
Second transmitting element 23, makees for the current location information of itself described in obtaining described second acquisition unit 22 Send to described first terminal for second position information.
Optionally, based on Figure 13, as shown in figure 14, described second terminal 2 also includes: memory element 24.
Described memory element 24, after obtaining the described current location information of itself for described second acquisition unit 22, Using the current location information of itself described in described second acquisition unit 22 obtains with described current first outlet ip as a pair Mapping relations are stored.
Optionally, described second transmitting element 23, is additionally operable to described second detector unit 21 and detects whether to be stored with and institute After stating corresponding 3rd positional information of current first outlet ip, if described second detector unit 21 detects there is the described 3rd Positional information, then send described 3rd positional information to described first terminal as described second position information.
As shown in figure 15, in actual applications, above-mentioned second detector unit 21, second acquisition unit 22 can be by positioned at second Processor 25 in terminal is realized, specially central processing unit (cpu), microprocessor (mpu), digital signal processor (dsp) Or field programmable gate array (fpga) etc. realizes, the second receiving unit 20 is realized by receptor 26, and the second transmitting element 23 can Realized by transmitter 27, memory element 24 can be realized by storage medium 28, this storage medium 28, transmitter 27, receptor 26 can To be connected with processor 25 by system bus 29, wherein, storage medium 28 is used for storing executable program code, this program generation Code includes computer-managed instruction, and storage medium 28 may comprise high speed ram memorizer it is also possible to also include non-volatile memories Device, for example, at least one disk memory.
Optionally, the second terminal in the embodiment of the present invention can be with intelligent television for smart mobile phone, panel computer etc. (the first interruption) carries out data interaction, and can carry out pinpoint terminal.
It should be noted that second terminal 2 can be the terminal unit 51-55 in Fig. 1.
Those skilled in the art are it should be appreciated that embodiments of the invention can be provided as method, system or computer program Product.Therefore, the present invention can be using the shape of hardware embodiment, software implementation or the embodiment combining software and hardware aspect Formula.And, the present invention can use storage using in one or more computers wherein including computer usable program code The form of the upper computer program implemented of medium (including but not limited to disk memory and optical memory etc.).
The present invention is the flow process with reference to method according to embodiments of the present invention, equipment (system) and computer program Figure and/or block diagram are describing.It should be understood that can be by each stream in computer program instructions flowchart and/or block diagram Flow process in journey and/or square frame and flow chart and/or block diagram and/or the combination of square frame.These computer programs can be provided The processor instructing general purpose computer, special-purpose computer, Embedded Processor or other programmable data processing device is to produce A raw machine is so that produced for reality by the instruction of computer or the computing device of other programmable data processing device The device of the function of specifying in present one flow process of flow chart or multiple flow process and/or one square frame of block diagram or multiple square frame.
These computer program instructions may be alternatively stored in and can guide computer or other programmable data processing device with spy Determine in the computer-readable memory that mode works so that the instruction generation inclusion being stored in this computer-readable memory refers to Make the manufacture of device, this command device realize in one flow process of flow chart or multiple flow process and/or one square frame of block diagram or The function of specifying in multiple square frames.
These computer program instructions also can be loaded in computer or other programmable data processing device so that counting On calculation machine or other programmable devices, execution series of operation steps to be to produce computer implemented process, thus in computer or On other programmable devices, the instruction of execution is provided for realizing in one flow process of flow chart or multiple flow process and/or block diagram one The step of the function of specifying in individual square frame or multiple square frame.
The above, only presently preferred embodiments of the present invention, it is not intended to limit protection scope of the present invention.

Claims (15)

1. a kind of localization method, is applied in first terminal it is characterised in that including:
Obtain position acquisition instruction, instructed according to described position acquisition, detect the primary importance information that itself whether is stored with, its In, described position acquisition instructs the positional information for asking described first terminal to be located;
If the described primary importance information that is stored with is detected, judge the effectiveness of described primary importance information;
If judging, described primary importance information is invalid, sends position updating request and instructs to second terminal, described first Terminal and described second terminal belong to same LAN;
Receive described position updating request instruction corresponding position response instruction, wherein, in described position response instruction, carry the Two positional informationes, described second position information is the positional information of itself that described second terminal gets;
The current location information that described second position information updating is described first terminal.
2. method according to claim 1, it is characterised in that the effectiveness of described judgement described primary importance information, is wrapped Include:
Judge the effectiveness of described primary importance information by agreement ip of interconnection between current first outlet network.
3. method according to claim 2 it is characterised in that described by between current first outlet network interconnection association Discuss ip to judge the effectiveness of described primary importance information, comprising:
Obtain described current first outlet ip;
Corresponding with described primary importance information for described current first outlet ip second outlet ip is mated, if described current First outlet ip is mismatched with described second outlet ip, then judge that described primary importance information is invalid;
If described current first outlet ip is mated with described second outlet ip, judge that described primary importance information is effective.
4. method according to claim 1 it is characterised in that described judgement described primary importance information effectiveness it Afterwards, methods described also includes:
If judging, described primary importance information is effective, and described primary importance information updating is working as of described first terminal Front position information.
5. a kind of localization method, is applied in second terminal it is characterised in that including:
Receiving position updates request instruction, and wherein, described position updating request instructs for asking the current of described second terminal Positional information, carries the agreement of interconnection between the current first outlet network of first terminal in described position updating request instruction Ip, described first terminal and described second terminal belong to same LAN;
Detect whether to be stored with threeth positional information corresponding with described current first outlet ip;
There is not described 3rd positional information if detecting, obtaining the current location information of itself;
The described current location information of itself is sent to described first terminal as second position information.
6. method according to claim 5 is it is characterised in that after the described acquisition current location information of itself, described Method also includes:
The current location information of itself is stored as a pair of mapping relations with described current first outlet ip.
7. method according to claim 5 is it is characterised in that described detect whether to be stored with and described current first outlet After corresponding 3rd positional information of ip, methods described also includes:
There is described 3rd positional information if detecting, described 3rd positional information is sent as described second position information To described first terminal.
8. a kind of first terminal is it is characterised in that include:
First acquisition unit, for obtaining position acquisition instruction;
Whether first detector unit, for the described position acquisition instruction obtaining according to described first acquisition unit, detect itself The primary importance that is stored with information, wherein, described position acquisition instructs the positional information for asking described first terminal to be located;
Judging unit, if detecting, for described first detector unit, the described primary importance information that is stored with, judges described The effectiveness of one positional information;
First transmitting element, if judging that described primary importance information is invalid for described judging unit, sends position more To second terminal, described first terminal and described second terminal belong to same LAN to new request instruction;
First receiving unit, instructs corresponding position response for receiving the position updating request that described first transmitting element sends Instruction, wherein, carries second position information in described position response instruction, described second position information obtains for described second terminal The positional information of itself got;
Positioning unit, the described second position information updating for receiving described first receiving unit is described first terminal Current location information.
9. first terminal according to claim 8 it is characterised in that
Described judging unit, specifically for judging described first by agreement ip of interconnection between current first outlet network The effectiveness of confidence breath.
10. first terminal according to claim 9 it is characterised in that
Described first acquisition unit, is additionally operable to obtain described current first outlet ip;
Described judging unit, also particularly useful for described current first outlet ip obtaining described first acquisition unit and described the Corresponding second outlet ip of one positional information is mated, if described current first outlet ip and described second outlet ip are not Join, then judge that described primary importance information is invalid;If described current first outlet ip is mated with described second outlet ip, sentence Described primary importance information of breaking is effective.
11. first terminals according to claim 8 it is characterised in that
Described positioning unit, after being additionally operable to the effectiveness that described judging unit judges described primary importance information, if described sentence Disconnected unit judges go out described primary importance information when being effective, then be described first terminal by described primary importance information updating Current location information.
A kind of 12. second terminals are it is characterised in that include:
Second receiving unit, updates request instruction for receiving position, wherein, described position updating request instructs for asking State the current location information of second terminal, in described position updating request instruction, carry the current first outlet network of first terminal Between interconnection agreement ip, described first terminal and described second terminal belong to same LAN;
Second detector unit, for detecting whether described current first outlet ip receiving with described second receiving unit that is stored with Corresponding 3rd positional information;
Second acquisition unit, if detecting there is not described 3rd positional information for described second detector unit, is obtained from The current location information of body;
Second transmitting element, for using described second acquisition unit obtain described in the current location information of itself as second Confidence breath sends to described first terminal.
13. second terminals according to claim 12 are it is characterised in that described second terminal also includes: memory element;
Described memory element, after obtaining the described current location information of itself for described second acquisition unit, by described the The described current location information of itself that two acquiring units obtain is entered as a pair of mapping relations with described current first outlet ip Row storage.
14. second terminals according to claim 12 it is characterised in that
Described second transmitting element, is additionally operable to described second detector unit and detects whether to be stored with and described current first outlet ip After corresponding 3rd positional information, if described second detector unit detects there is described 3rd positional information, will be described 3rd positional information sends to described first terminal as described second position information.
A kind of 15. alignment systems are it is characterised in that include:
First terminal, belongs to the second terminal of same LAN with described first terminal;
Described first terminal, for sending position updating request instruction to described second terminal, to obtain second position information, and Using described second position information as the current location information of itself;
Described second terminal, for according to the described position updating request instruction receiving, sending described second position information to institute State first terminal.
CN201610814932.9A 2016-09-09 2016-09-09 A kind of localization method, system and terminal Active CN106357758B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610814932.9A CN106357758B (en) 2016-09-09 2016-09-09 A kind of localization method, system and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610814932.9A CN106357758B (en) 2016-09-09 2016-09-09 A kind of localization method, system and terminal

Publications (2)

Publication Number Publication Date
CN106357758A true CN106357758A (en) 2017-01-25
CN106357758B CN106357758B (en) 2019-07-16

Family

ID=57859005

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610814932.9A Active CN106357758B (en) 2016-09-09 2016-09-09 A kind of localization method, system and terminal

Country Status (1)

Country Link
CN (1) CN106357758B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106851583A (en) * 2017-04-07 2017-06-13 广东欧珀移动通信有限公司 The location information acquisition method of mobile terminal, device and mobile terminal
CN107395691A (en) * 2017-06-30 2017-11-24 北京小米移动软件有限公司 Information acquisition method and device
CN109040321A (en) * 2018-10-08 2018-12-18 北京小米移动软件有限公司 Method of determining position information and device
CN109547924A (en) * 2018-11-26 2019-03-29 苏州达家迎信息技术有限公司 Location information sharing method, device, equipment and storage medium
CN110572466A (en) * 2019-09-16 2019-12-13 天津五八到家科技有限公司 position acquisition method, device and equipment
CN110677504A (en) * 2018-07-03 2020-01-10 百度在线网络技术(北京)有限公司 Method and apparatus for determining location information
CN113223223A (en) * 2021-04-27 2021-08-06 上海创米科技有限公司 Position information acquisition system and position information acquisition method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102325300A (en) * 2011-07-20 2012-01-18 中兴通讯股份有限公司 Positioning method and system
CN102904974A (en) * 2012-09-28 2013-01-30 腾讯科技(深圳)有限公司 Method for obtaining location of terminal, related device and system
CN103906235A (en) * 2014-04-04 2014-07-02 小米科技有限责任公司 Terminal positioning method and terminal
CN105516392A (en) * 2015-12-30 2016-04-20 小米科技有限责任公司 Method and device for updating IP address information base

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102325300A (en) * 2011-07-20 2012-01-18 中兴通讯股份有限公司 Positioning method and system
CN102904974A (en) * 2012-09-28 2013-01-30 腾讯科技(深圳)有限公司 Method for obtaining location of terminal, related device and system
CN103906235A (en) * 2014-04-04 2014-07-02 小米科技有限责任公司 Terminal positioning method and terminal
CN105516392A (en) * 2015-12-30 2016-04-20 小米科技有限责任公司 Method and device for updating IP address information base

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106851583A (en) * 2017-04-07 2017-06-13 广东欧珀移动通信有限公司 The location information acquisition method of mobile terminal, device and mobile terminal
CN107395691A (en) * 2017-06-30 2017-11-24 北京小米移动软件有限公司 Information acquisition method and device
CN110677504A (en) * 2018-07-03 2020-01-10 百度在线网络技术(北京)有限公司 Method and apparatus for determining location information
CN110677504B (en) * 2018-07-03 2021-10-19 百度在线网络技术(北京)有限公司 Method and apparatus for determining location information
CN109040321A (en) * 2018-10-08 2018-12-18 北京小米移动软件有限公司 Method of determining position information and device
CN109547924A (en) * 2018-11-26 2019-03-29 苏州达家迎信息技术有限公司 Location information sharing method, device, equipment and storage medium
CN109547924B (en) * 2018-11-26 2021-06-01 苏州达家迎信息技术有限公司 Position information sharing method, device, equipment and storage medium
CN110572466A (en) * 2019-09-16 2019-12-13 天津五八到家科技有限公司 position acquisition method, device and equipment
CN113223223A (en) * 2021-04-27 2021-08-06 上海创米科技有限公司 Position information acquisition system and position information acquisition method

Also Published As

Publication number Publication date
CN106357758B (en) 2019-07-16

Similar Documents

Publication Publication Date Title
CN106357758B (en) A kind of localization method, system and terminal
US20230366692A1 (en) System and method for providing user controlled directional feedback
JP6694952B2 (en) Generate and publish verified location information
WO2018036297A1 (en) Indoor positioning technique and information pushing system, method and device based thereon, and terminal
CN105139641B (en) A kind of vehicle dispatching method and system based on WiFi relay stations
WO2016134625A1 (en) Wifi access system
JP5860968B2 (en) Position-based group generation method, apparatus and system
CN103379165B (en) A kind of method, terminal, server and system for showing microblog topic
CN102742182A (en) Distributed database access for spectrum access
JP5577318B2 (en) POSITION INFORMATION PROVIDING METHOD AND POSITION INFORMATION PROVIDING SYSTEM
WO2023279891A1 (en) Screen mirroring device discovery method and apparatus, electronic device, and storage medium
KR20140139629A (en) Creating and sharing private location databases
WO2020259718A1 (en) Federated learning-based indoor positioning method, apparatus, and terminal device, and storage medium
CN109936816A (en) Localization method and communication equipment
CN103873822A (en) Method, equipment and system for monitoring system to select camera to browse in real time
EP1940124A2 (en) Mobile communication terminal, and communication method for communication of location based message content
CN103220566B (en) The localization method of Intelligent television terminal, intelligent television and system
CN113365207B (en) Method and device for acquiring installation information of network access equipment
CN105516241A (en) Device and method for obtaining user geographical position information
CN105657825A (en) Positioning method, mobile terminal, cloud server and positioning system
WO2015154379A1 (en) Remote help method, controlling mobile intelligent terminal and controlled mobile intelligent terminal
CN104125605B (en) A kind of implementation method and device for asking to set up WIFI connections
CN105050048B (en) A kind of network access point location information prompt method, terminal and server
WO2023109950A1 (en) Tracking area boundary information processing method and apparatus, electronic device, and readable medium
CN104427575A (en) Access system and method for providing location-based service information

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant