CN104754732B - Localization method, server and terminal - Google Patents
Localization method, server and terminal Download PDFInfo
- Publication number
- CN104754732B CN104754732B CN201310750636.3A CN201310750636A CN104754732B CN 104754732 B CN104754732 B CN 104754732B CN 201310750636 A CN201310750636 A CN 201310750636A CN 104754732 B CN104754732 B CN 104754732B
- Authority
- CN
- China
- Prior art keywords
- router
- exit
- terminal
- access
- server
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 42
- 230000004807 localization Effects 0.000 title abstract 2
- 230000005540 biological transmission Effects 0.000 claims abstract description 13
- 230000003247 decreasing effect Effects 0.000 claims description 7
- 230000006870 function Effects 0.000 description 29
- 101100059544 Arabidopsis thaliana CDC5 gene Proteins 0.000 description 6
- 101100244969 Arabidopsis thaliana PRL1 gene Proteins 0.000 description 6
- 102100039558 Galectin-3 Human genes 0.000 description 6
- 101100454448 Homo sapiens LGALS3 gene Proteins 0.000 description 6
- 101150115300 MAC1 gene Proteins 0.000 description 6
- 101150051246 MAC2 gene Proteins 0.000 description 6
- 238000010586 diagram Methods 0.000 description 6
- 230000004044 response Effects 0.000 description 6
- 230000002708 enhancing effect Effects 0.000 description 4
- 230000008569 process Effects 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
Landscapes
- Mobile Radio Communication Systems (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention discloses a kind of localization method, server and terminals, belong to the communications field.The described method includes: establishing the corresponding relationship of egress router with the couple in router being connect;Reception has the location information that the terminal of stationkeeping ability reports;Transmission path according to the positional information determines that the terminal accesses internet by the egress router;It searches the corresponding relationship and obtains couple in router corresponding with the egress router;The terminal that the couple in router obtained to lookup is connected sends the location information.The server includes: to establish module, receiving module, determining module, searching module and sending module.The terminal includes: sending module and receiving module.The present invention realizes the terminal for not having positioning function and obtains itself location information, enhances the function of location-based service.
Description
Technical Field
The present invention relates to the field of communications, and in particular, to a positioning method, a server, and a terminal.
Background
In the internet era, more and more mobile phones have a positioning function. The mobile phone positioning refers to a technology or a service for acquiring position information of a mobile phone, such as longitude and latitude coordinates, by a specific positioning technology, so that the position of a positioned object can be marked on an electronic map. Meanwhile, the demand of a mobile phone user for searching for a friend location in various applications such as IM (Instant Messenger) is also more and more prominent.
However, many terminals do not have a positioning capability, such as a PC (Personal Computer), a notebook Computer, etc., and the terminals cannot acquire their own position information, so that they cannot position themselves.
Disclosure of Invention
In view of this, embodiments of the present invention provide a positioning method, a server, and a terminal, so as to enable a terminal without a positioning function to obtain its own location information. The technical scheme is as follows:
in a first aspect, a positioning method is provided, including:
establishing a corresponding relation between an exit router and a connected access router;
receiving position information reported by a terminal with positioning capability;
determining that the terminal accesses the Internet through the exit router according to the transmission path of the position information;
searching the corresponding relation to obtain an access router corresponding to the exit router;
and sending the position information to the terminal connected with the access router obtained by searching.
Wherein, the establishing of the corresponding relationship between the exit router and the connected access router includes:
receiving a login request message sent by a first terminal through the exit router, wherein the login request message carries a Media Access Control (MAC) address of an access router connected with the first terminal;
acquiring the IP address of the exit router according to the login request message;
establishing a corresponding relation between the IP address of the exit router and the MAC address of the access router;
the searching the corresponding relation to obtain the access router corresponding to the exit router includes:
and searching the corresponding relation to obtain the MAC address of the corresponding access router according to the IP address of the exit router.
Wherein the method further comprises:
and when the number of the access routers connected with the exit router is increased or decreased, updating the corresponding relation according to the current access router connected with the exit router.
In a second aspect, a positioning method is provided, including:
sending a login request message to a server through the connected access router and the connected exit router, wherein the login request message carries information of the access router, so that the server establishes a corresponding relation between the exit router and the access router;
and receiving the position information sent by the server through the exit router, wherein the position information is reported to the server by the terminal with the positioning capability through the exit router.
The sending a login request message to a server through the connected access router and the connected egress router, where the login request message carries information of the access router, so that the server establishes a correspondence between the egress router and the access router, including:
acquiring a Media Access Control (MAC) address of a connected access router;
and sending a login request message to a server through the access router and the exit router, wherein the login request message carries the MAC address of the access router, so that the server establishes the corresponding relation between the IP address of the exit router and the MAC address of the access router.
In a third aspect, a server is provided, including:
the establishing module is used for establishing the corresponding relation between the exit router and the connected access router;
the receiving module is used for receiving the position information reported by the terminal with the positioning capability;
the determining module is used for determining that the terminal accesses the internet through the exit router according to the transmission path of the position information;
the searching module is used for searching the corresponding relation to obtain an access router corresponding to the exit router;
and the sending module is used for sending the position information to the terminal connected with the searched access router.
Wherein the receiving module is further configured to:
receiving a login request message sent by a first terminal through the exit router, wherein the login request message carries a Media Access Control (MAC) address of an access router connected with the first terminal;
the establishing module is used for acquiring the internet protocol IP address of the exit router according to the login request message received by the receiving module and establishing the corresponding relation between the IP address of the exit router and the MAC address of the access router;
the searching module comprises:
and the searching unit is used for searching the corresponding relation according to the IP address of the exit router to obtain the MAC address of the corresponding access router.
Wherein the server further comprises:
and the updating module is used for updating the corresponding relation according to the current access router connected with the exit router when the number of the access routers connected with the exit router is increased or decreased.
In a fourth aspect, a terminal is provided, including:
a sending module, configured to send a login request message to a server through a connected access router and an exit router, where the login request message carries information of the access router, so that the server establishes a correspondence between the exit router and the access router;
and the receiving module is used for receiving the position information sent by the server through the outlet router, wherein the position information is reported to the server by the terminal with the positioning capability through the outlet router.
Wherein the receiving module further comprises:
an obtaining unit, configured to obtain a media access control MAC address of a connected access router;
the sending module is used for: and sending a login request message to a server through the access router and the exit router, wherein the login request message carries the MAC address of the access router, so that the server establishes the corresponding relation between the IP address of the exit router and the MAC address of the access router.
The technical scheme provided by the embodiment of the invention has the following beneficial effects: the method comprises the steps of establishing a corresponding relation between an exit router and a connected access router, receiving position information reported by a terminal with positioning capability, determining that the terminal accesses the Internet through the exit router according to a transmission path of the position information, searching the corresponding relation to obtain the access router corresponding to the exit router, and sending the position information to the terminal connected with the searched access router, so that the terminal without the positioning function can obtain the position information of the terminal, all terminals connected under the same exit router can share the position information reported by the terminal with the positioning function through the exit router, and the function of position service is enhanced.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a schematic diagram of a network architecture provided by an embodiment of the present invention;
fig. 2 is a flowchart of a positioning method provided in embodiment 1 of the present invention;
fig. 3 is a flowchart of a positioning method provided in embodiment 2 of the present invention;
fig. 4 is a flowchart of a positioning method provided in embodiment 3 of the present invention;
fig. 5 is a structural diagram of a server provided in embodiment 4 of the present invention;
fig. 6 is another structural diagram of a server provided in embodiment 4 of the present invention;
fig. 7 is a diagram of a terminal structure provided in embodiment 5 of the present invention;
fig. 8 is a diagram showing a configuration of a positioning system according to embodiment 6 of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail with reference to the accompanying drawings.
The embodiment of the invention relates to a positioning method, a server and a terminal, which are used for positioning the terminal without the positioning function and can be applied to a positioning system. The location system may include an egress router, an access router, and a terminal. The terminal refers to a device on the user side, including but not limited to: computers, laptops, cell phones, tablets, and the like. The egress router refers to a device in which a terminal accesses the Internet, and an IP (Internet Protocol) address of the egress router is an IP address that can be identified in the Internet. The access router is a device directly connected with the terminal, and the terminal can be connected with the egress router through one or more stages of access routers. The IP address of an access router is typically an IP address identified inside the local area network. A plurality of access routers can be connected below one egress router, and a plurality of terminals can be connected below one access router. For example, referring to fig. 1, a schematic diagram of a network architecture of the positioning system is shown. Wherein, this positioning system includes: an exit router GW0, an access router GW1, GW2 and GW3, each having a plurality of terminals connected thereunder, wherein mobile terminal M is wirelessly connected to GW1, and terminal P is wire-connected to GW 2. The system also relates to a server, which is an application server and provides services for the user when the terminal user uses a certain application on the terminal.
The positioning method, the server and the terminal will be specifically described below with reference to the network architecture shown in fig. 1.
Example 1
Referring to fig. 2, the present embodiment provides a positioning method, including:
201: establishing a corresponding relation between an exit router and a connected access router;
202: receiving position information reported by a terminal with positioning capability;
203: determining that the terminal accesses the internet through the exit router according to the transmission path of the position information;
204: searching the corresponding relation to obtain an access router corresponding to the exit router;
205: and sending the position information to the terminal connected with the access router obtained by searching.
In this embodiment, the establishing a corresponding relationship between the egress router and the connected access router may include:
receiving a login request message sent by a first terminal through the exit router, wherein the login request message carries a Media Access Control (MAC) address of an access router connected with the first terminal; acquiring the IP address of the exit router according to the login request message; and establishing a corresponding relation between the IP address of the exit router and the MAC address of the access router.
Further, the finding the corresponding relationship to obtain the access router corresponding to the egress router may include:
and searching the corresponding relation to obtain the MAC address of the corresponding access router according to the IP address of the exit router.
In this embodiment, the method may further include:
and when the number of the access routers connected with the exit router is increased or decreased, updating the corresponding relation according to the current access router connected with the exit router.
In the method provided by this embodiment, the corresponding relationship between the egress router and the connected access router is established, the location information reported by the terminal with the location capability is received, it is determined that the terminal accesses the internet through the egress router according to the transmission path of the location information, the corresponding relationship is searched to obtain the access router corresponding to the egress router, and the location information is sent to the terminal connected to the access router, which is obtained by searching, so that the terminal without the location function obtains its own location information, and all terminals connected to the same egress router can share the location information reported by the terminal with the location function through the egress router, thereby enhancing the location service function.
Example 2
Referring to fig. 3, the present embodiment provides a positioning method, including:
301: sending a login request message to a server through the connected access router and the connected exit router, wherein the login request message carries the information of the access router, so that the server establishes the corresponding relation between the exit router and the access router;
302: and receiving the position information sent by the server through the exit router, wherein the position information is reported to the server by the terminal with the positioning capability through the exit router.
In this embodiment, the sending a login request message to a server through the connected access router and the connected egress router, where the login request message carries information of the access router, so that the server establishes a corresponding relationship between the egress router and the access router, may include:
acquiring a Media Access Control (MAC) address of a connected access router; sending a login request message to a server through the access router and the exit router, wherein the login request message carries the MAC address of the access router, so that the server establishes the corresponding relation between the IP address of the exit router and the MAC address of the access router.
Further, the acquiring the MAC address of the connected access router may include:
sending an address resolution protocol request message containing the IP address of the connected access router; and receiving a response message returned by the access router, and acquiring the MAC address of the access router from the response message.
In this embodiment, the receiving the location information sent by the server through the egress router may include:
sending a request for acquiring self position information to the server, and receiving the position information sent by the server through the exit router; or,
and receiving the position information actively pushed by the server through the exit router after receiving the position information.
In the method provided by this embodiment, a login request message is sent to a server through an access router and an egress router that are connected, where the login request message carries information of the access router, so that the server establishes a correspondence between the egress router and the access router, and receives location information sent by the server through the egress router, where the location information is reported to the server through the egress router by a terminal with a location capability, thereby implementing that a terminal without a location function obtains its own location information, and all terminals connected under the same egress router can share the location information reported by the terminal with a location function through the egress router, thereby enhancing the location service function.
Example 3
Referring to fig. 4, the present embodiment provides a positioning method, including:
401: the terminal sends a login request message to the server through the connected access router and the exit router, wherein the login request message carries the information of the access router;
here, the terminal that transmits the registration request message may be a terminal having a positioning function, or may be a terminal that does not have a positioning function. When the terminal uses a certain application, the terminal executes registration operation and establishes connection with the server by sending a login request message.
Specifically, the step may include:
a terminal acquires an MAC address of a connected access router;
sending a login request message to a server through the access router and the exit router, wherein the login request message carries the MAC address of the access router, so that the server establishes the corresponding relation between the IP address of the exit router and the MAC address of the access router.
The acquiring, by the terminal, the address of the connected access router may include:
the terminal sends an Address Resolution Protocol (ARP) request message containing the IP Address of the connected access router, receives a response message returned by the access router, and acquires the MAC Address of the access router from the response message.
402: the server receives the login request message and establishes a corresponding relation between the exit router and the access router;
the step may specifically include:
the server receives the login request message, wherein the login request message carries the MAC address of the access router connected with the terminal;
acquiring the IP address of the exit router according to the login request message;
and establishing a corresponding relation between the IP address of the exit router and the MAC address of the access router.
Taking fig. 1 as an example, the correspondence relationship established by the server may include: the IP address of the egress router is associated with the MAC addresses of the corresponding 3 access routers. For example, the IP address of GW0 is IP0, and the MAC addresses of GW1, GW2 and GW3 are MAC1, MAC2 and MAC3, respectively. The corresponding relationship established by the server includes: IP0, MAC1, MAC2, and MAC3, and the IP0 corresponds to MAC1, MAC2, and MAC3, respectively. The correspondence here is a one-to-many correspondence.
In practical applications, a plurality of terminals usually send login request messages to the server, so that the server can establish a corresponding relationship according to the received login request messages and update the corresponding relationship at any time.
403: the server receives the position information reported by the terminal with the positioning capability;
specifically, the location information may be longitude and latitude information, which is not limited herein. The terminal that reports the location information can realize its own location by using functions such as a GPS (Global Positioning System).
404: the server determines that the terminal accesses the Internet through the exit router according to the transmission path of the position information;
405: the server searches the established corresponding relation to obtain an access router corresponding to the exit router;
the step may specifically include:
and the server searches the established corresponding relation according to the IP address of the exit router to obtain the MAC address of the corresponding access router.
406: the server sends the position information to the terminal connected with the access router obtained by searching;
407: the terminal connected to the access router receives the location information.
In this embodiment, the server may directly push the location information, or may send the location information when the terminal requests it, which is specifically as follows:
a terminal without a positioning function sends a request for acquiring self position information to a server and receives the position information sent by the server through the exit router; or,
and the terminal without the positioning function receives the position information which is actively pushed by the exit router after the server receives the position information.
In this embodiment, the method may further include:
and when the number of the access routers connected with the exit router is increased or decreased, the server updates the corresponding relation according to the current access router connected with the exit router.
Specifically, if there is an access router removed, the server may delete all the relevant information related to the removed access router in the correspondence relationship. If a new access router accesses, the server may add the relevant information of the newly accessed access router in the corresponding relationship, which is not described herein too much.
For example, in conjunction with the network architecture shown in fig. 1, the correspondence relationship established by the server includes: IP0, MAC1, MAC2, and MAC3, and the IP0 corresponds to MAC1, MAC2, and MAC3, respectively. When GW2 moves from beijing to shanghai and no longer connects to GW0, the server deletes the MAC2 address in the correspondence, and therefore the correspondence is updated to IP0 and corresponding MAC1 and MAC 3.
In the method provided by this embodiment, a terminal sends a login request message to a server through an access router and an egress router connected to the terminal, where the login request message carries information of the access router, the server receives the login request message, establishes a correspondence between the egress router and the access router connected to the terminal, receives location information reported by a terminal with a positioning capability, determines that the terminal accesses the internet through the egress router according to a transmission path of the location information, searches the correspondence to obtain an access router corresponding to the egress router, and sends the location information to the terminal connected to the access router, so that the terminal without a positioning function can obtain its own location information, and all terminals connected to the same egress router can share the location information reported by the terminal with a positioning function through the egress router, the functionality of location services is enhanced.
Example 4
Referring to fig. 5, the present embodiment provides a server including:
an establishing module 501, configured to establish a corresponding relationship between an egress router and a connected access router;
a receiving module 502, configured to receive location information reported by a terminal with positioning capability;
a determining module 503, configured to determine, according to the transmission path of the location information, that the terminal accesses the internet through the egress router;
a searching module 504, configured to search the correspondence to obtain an access router corresponding to the egress router;
a sending module 505, configured to send the location information to the terminal connected to the access router obtained by searching.
In this embodiment, the receiving module 502 is further configured to:
receiving a login request message sent by a first terminal through the exit router, wherein the login request message carries a Media Access Control (MAC) address of an access router connected with the first terminal;
an establishing module 501, configured to obtain the IP address of the egress router according to the login request message received by the receiving module 502, and establish a corresponding relationship between the IP address of the egress router and the MAC address of the access router.
In this embodiment, the searching module 504 may further include:
and the searching unit is used for searching the corresponding relation according to the IP address of the exit router to obtain the MAC address of the corresponding access router.
Referring to fig. 6, the server may further include:
an updating module 506, configured to update the corresponding relationship according to the current access router connected to the egress router when there is an increase or a decrease of the access router connected to the egress router.
The server provided in this embodiment may execute the method provided in any of the above method embodiments, and details of the process are described in the method embodiments and are not described herein again.
The server provided in this embodiment receives, by establishing a corresponding relationship between an egress router and a connected access router, location information reported by a terminal with a location capability, determines, according to a transmission path of the location information, that the terminal accesses the internet through the egress router, searches the corresponding relationship to obtain an access router corresponding to the egress router, and sends the location information to a terminal connected to the access router that is obtained by searching, so that the terminal without the location function obtains its own location information, and all terminals connected to the same egress router can share the location information reported by the terminal with the location function through the egress router, thereby enhancing a location service function.
Example 5
Referring to fig. 7, the present embodiment provides a terminal including:
a sending module 701, configured to send a login request message to a server through a connected access router and an exit router, where the login request message carries information of the access router, so that the server establishes a correspondence between the exit router and the access router;
a receiving module 702, configured to receive location information sent by the server through the egress router, where the location information is reported to the server by a terminal with a positioning capability through the egress router.
In this embodiment, the receiving module 702 may further include:
an obtaining unit, configured to obtain a media access control MAC address of a connected access router;
the sending module is used for: sending a login request message to a server through the access router and the exit router, wherein the login request message carries the MAC address of the access router, so that the server establishes the corresponding relation between the IP address of the exit router and the MAC address of the access router.
Further, the sending module 701 is further configured to:
sending an address resolution protocol request message containing the IP address of the connected access router;
the obtaining unit is configured to receive a response packet returned by the access router, and obtain the MAC address of the access router from the response packet.
In this embodiment, the sending module may be further configured to: sending a request for acquiring self position information to the server; accordingly, the receiving module 702 may be configured to: and receiving the position information sent by the server through the exit router.
In this embodiment, the receiving module 702 may be configured to:
and receiving the position information actively pushed by the server through the exit router after receiving the position information.
The terminal provided in this embodiment may execute the method provided in any of the above method embodiments, and details of the process are described in the method embodiments and are not described herein again.
In the terminal provided in this embodiment, a login request message is sent to a server through an access router and an egress router that are connected to the terminal, where the login request message carries information of the access router, so that the server establishes a correspondence between the egress router and the access router, and receives location information sent by the server through the egress router, where the location information is reported to the server through the egress router by a terminal with a positioning capability, thereby achieving that a terminal without a positioning function obtains its own location information, and all terminals connected under the same egress router can share the location information reported by the terminal with a positioning function through the egress router, thereby enhancing a location service function.
Example 6
Referring to fig. 8, the present embodiment provides a positioning system including: a server 801 and a terminal 802.
The server 801 may be the server provided in the foregoing embodiment 4, and has the same function, and the terminal 802 may be the terminal provided in the foregoing embodiment 5, and the specific same function is omitted here for brevity.
The system provided by this embodiment may perform the method provided by any of the above method embodiments, and details of the process are described in the method embodiments and are not described herein again.
In the system provided by this embodiment, a terminal sends a login request message to a server through an access router and an egress router connected to the terminal, where the login request message carries information of the access router, the server receives the login request message, establishes a correspondence between the egress router and the access router connected to the terminal, receives location information reported by the terminal with a location capability, determines that the terminal accesses the internet through the egress router according to a transmission path of the location information, searches the correspondence to obtain the access router corresponding to the egress router, and sends the location information to the terminal connected to the access router obtained by the search, so that the terminal without a location function can obtain its own location information, and all terminals connected to the same egress router can share the location information reported by the terminal with a location function through the egress router, the functionality of location services is enhanced.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.
Claims (8)
1. A method of positioning, the method comprising:
establishing a corresponding relation between an exit router and a connected access router;
receiving position information reported by a terminal with positioning capability;
determining that the terminal accesses the Internet through the exit router according to the transmission path of the position information;
searching the corresponding relation to obtain an access router corresponding to the exit router;
sending the position information to the terminal connected with the access router obtained by searching;
the method further comprises the following steps:
and when the number of the access routers connected with the exit router is increased or decreased, updating the corresponding relation according to the current access router connected with the exit router.
2. The method of claim 1, wherein the establishing the corresponding relationship between the egress router and the connected access router comprises:
receiving a login request message sent by a first terminal through the exit router, wherein the login request message carries a Media Access Control (MAC) address of an access router connected with the first terminal;
acquiring the IP address of the exit router according to the login request message;
establishing a corresponding relation between the IP address of the exit router and the MAC address of the access router;
the searching the corresponding relation to obtain the access router corresponding to the exit router includes:
and searching the corresponding relation to obtain the MAC address of the corresponding access router according to the IP address of the exit router.
3. A method of positioning, the method comprising:
sending a login request message to a server through a connected access router and an exit router, wherein the login request message carries information of the access router, so that the server establishes a corresponding relation between the exit router and the access router, and when the number of the access routers connected with the exit router is increased or decreased, the corresponding relation is updated according to the current access router connected with the exit router;
and receiving the position information sent by the server through the exit router, wherein the position information is reported to the server by the terminal with the positioning capability through the exit router.
4. The method according to claim 3, wherein the sending a login request message to a server through the connected access router and egress router, where the login request message carries information of the access router, so that the server establishes a correspondence between the egress router and the access router, includes:
acquiring a Media Access Control (MAC) address of a connected access router;
and sending a login request message to a server through the access router and the exit router, wherein the login request message carries the MAC address of the access router, so that the server establishes the corresponding relation between the IP address of the exit router and the MAC address of the access router.
5. A server, characterized in that the server comprises:
the establishing module is used for establishing the corresponding relation between the exit router and the connected access router;
the receiving module is used for receiving the position information reported by the terminal with the positioning capability;
the determining module is used for determining that the terminal accesses the internet through the exit router according to the transmission path of the position information;
the searching module is used for searching the corresponding relation to obtain an access router corresponding to the exit router;
a sending module, configured to send the location information to the terminal connected to the access router obtained by searching;
the server further comprises:
and the updating module is used for updating the corresponding relation according to the current access router connected with the exit router when the number of the access routers connected with the exit router is increased or decreased.
6. The server according to claim 5, wherein the receiving module is further configured to:
receiving a login request message sent by a first terminal through the exit router, wherein the login request message carries a Media Access Control (MAC) address of an access router connected with the first terminal;
the establishing module is used for acquiring the internet protocol IP address of the exit router according to the login request message received by the receiving module and establishing the corresponding relation between the IP address of the exit router and the MAC address of the access router;
the searching module comprises:
and the searching unit is used for searching the corresponding relation according to the IP address of the exit router to obtain the MAC address of the corresponding access router.
7. A terminal, characterized in that the terminal comprises:
a sending module, configured to send a login request message to a server through a connected access router and an exit router, where the login request message carries information of the access router, so that the server establishes a correspondence between the exit router and the access router, and updates the correspondence according to an access router currently connected to the exit router when there is an increase or a decrease in access routers connected to the exit router;
and the receiving module is used for receiving the position information sent by the server through the outlet router, wherein the position information is reported to the server by the terminal with the positioning capability through the outlet router.
8. The terminal of claim 7, wherein the receiving module further comprises:
an obtaining unit, configured to obtain a media access control MAC address of a connected access router;
the sending module is used for: and sending a login request message to a server through the access router and the exit router, wherein the login request message carries the MAC address of the access router, so that the server establishes the corresponding relation between the IP address of the exit router and the MAC address of the access router.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310750636.3A CN104754732B (en) | 2013-12-31 | 2013-12-31 | Localization method, server and terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310750636.3A CN104754732B (en) | 2013-12-31 | 2013-12-31 | Localization method, server and terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104754732A CN104754732A (en) | 2015-07-01 |
CN104754732B true CN104754732B (en) | 2018-12-07 |
Family
ID=53593667
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310750636.3A Active CN104754732B (en) | 2013-12-31 | 2013-12-31 | Localization method, server and terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104754732B (en) |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101557414A (en) * | 2008-04-10 | 2009-10-14 | 中国移动通信集团公司 | Positioning method, equipment and system based on WLAN |
CN102958152A (en) * | 2011-08-24 | 2013-03-06 | 中国电信股份有限公司 | WLAN (wireless local area network) positioning method and positioning server for positioning third part |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7929535B2 (en) * | 2006-07-07 | 2011-04-19 | Qualcomm Incorporated | Geolocation-based addressing method for IPv6 addresses |
CN103297915A (en) * | 2012-02-29 | 2013-09-11 | 腾讯科技(深圳)有限公司 | Method and system for collecting position information |
-
2013
- 2013-12-31 CN CN201310750636.3A patent/CN104754732B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101557414A (en) * | 2008-04-10 | 2009-10-14 | 中国移动通信集团公司 | Positioning method, equipment and system based on WLAN |
CN102958152A (en) * | 2011-08-24 | 2013-03-06 | 中国电信股份有限公司 | WLAN (wireless local area network) positioning method and positioning server for positioning third part |
Also Published As
Publication number | Publication date |
---|---|
CN104754732A (en) | 2015-07-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107852430B (en) | Apparatus for forming gateway in local area network and computer-readable storage medium | |
EP4167625A1 (en) | Communication method and apparatus | |
EP3993347A1 (en) | Method and device for application migration | |
CN103339522B (en) | Peer-to-peer location service | |
KR102046700B1 (en) | Message bus service directory | |
CN105379312B (en) | Device triggering | |
US20240291898A1 (en) | Screen mirroring device discovery method and apparatus, electronic device, and storage medium | |
US8509753B2 (en) | Transfer of data-intensive content between portable devices | |
CN109964495B (en) | Service layer mobility management of applications | |
US10154003B2 (en) | Method for acquiring identifier of terminal in network, management network element and storage medium | |
US20120179737A1 (en) | System and method for searching for mobile devices, and for establishing connections and data exchange between the mobile devices | |
CN106789526B (en) | method and device for connecting multiple system networks | |
US20100311401A1 (en) | Communication session transfer from one communication device to another based on location correlated to time | |
KR20100126433A (en) | Techniques for discovering services provided in a wireless network | |
WO2019095837A1 (en) | Data processing method, apparatus and device | |
KR20150013860A (en) | Clientless cloud computing | |
US10021512B2 (en) | Switching to advertising locator after connection establishment | |
US11533275B2 (en) | Method and apparatus for allocating server in wireless communication system | |
US11856471B2 (en) | Method and apparatus for edge computing service | |
CN111194098B (en) | Link establishment method, device, communication system and computer readable medium | |
WO2014176891A1 (en) | Method, device and system for voice communication | |
CN109478153B (en) | Message redirection in machine-to-machine service layer communications | |
CN106028311B (en) | A kind of terminal registration method and device | |
CN104754732B (en) | Localization method, server and terminal | |
EP3422674A1 (en) | A method of resolving a domain name by a dns server to a plurality of ip addresses based on location information of the user equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CP02 | Change in the address of a patent holder | ||
CP02 | Change in the address of a patent holder |
Address after: Room 810, 8 / F, 34 Haidian Street, Haidian District, Beijing 100080 Patentee after: BEIJING D-MEDIA COMMUNICATION TECHNOLOGY Co.,Ltd. Address before: 100089 Beijing city Haidian District wanquanzhuang Road No. 28 Wanliu new building block A room 602 Patentee before: BEIJING D-MEDIA COMMUNICATION TECHNOLOGY Co.,Ltd. |