patents.google.com

CN103926612A - Electronic equipment and positioning method - Google Patents

  • ️Wed Jul 16 2014

Detailed Description

So that the manner in which the features and aspects of the present invention can be understood in detail, a more particular description of the invention, briefly summarized above, may be had by reference to embodiments, some of which are illustrated in the appended drawings.

The positioning method provided by the embodiment of the invention is applied to first electronic equipment, the first electronic equipment can communicate with second electronic equipment in an NFC mode, and the second electronic equipment has a positioning function.

As shown in fig. 1, in a preferred embodiment of the present invention, the positioning method mainly includes the following steps:

step 101: and after the first electronic device and the second electronic device establish an NFC communication link, obtaining a first control instruction.

Since the method is applied to the first electronic device, and thus the execution subject of step 101 is the first electronic device, then step 101 can also be described as: and the first electronic equipment acquires a first control instruction after establishing an NFC communication link with the second electronic equipment.

The first control instruction is used for instructing to acquire a first positioning parameter from a second electronic device.

It should be noted that the first control instruction may be issued by a user, or may be automatically issued based on some preset setting.

Preferably, the first positioning parameter includes at least position information of the second electronic device.

Of course, the first positioning parameters may also include first GPS ephemeris data, first time, etc.

Preferably, the second electronic device is an NFC device or a device supporting an NFC function and having a positioning function.

Preferably, the first electronic device is a mobile terminal, such as a mobile phone, a small tablet computer, and the like.

Here, the establishing, by the first electronic device, an NFC communication link with the second electronic device may include:

judging whether the distance between the first electronic equipment and the second electronic equipment is smaller than or equal to a set threshold value or not;

when the distance between the first electronic device and the second electronic device is smaller than or equal to a set threshold, the first electronic device generates a first instruction;

and responding to the first instruction, and controlling the first electronic equipment to establish NFC communication with the second electronic equipment.

Here, before determining whether the distance between the first electronic device and the second electronic device is less than or equal to a set threshold, the method may further include:

the first electronic equipment detects whether a second electronic equipment supporting an NFC function exists in a preset range; and if so, judging whether the distance between the first electronic equipment and the second electronic equipment is smaller than or equal to a set threshold value.

Step 102: obtaining a first positioning parameter from the second electronic device based on the NFC communication link.

Since the method is applied to the first electronic device, and thus the execution subject of step 102 is the first electronic device, then step 102 can also be described as: the first electronic device obtains a first positioning parameter from the second electronic device based on the NFC communication link.

Preferably, the acquiring the first positioning parameter from the second electronic device based on the NFC communication link may include:

constructing an inquiry request, and sending the inquiry request to the second electronic equipment through the NFC communication link;

and receiving first positioning parameter information returned by the second electronic equipment through the NFC communication link.

Here, after receiving the inquiry request, the second electronic device performs a positioning operation on the second electronic device, and sends positioning information related to the second electronic device to the first electronic device through the NFC communication link; or after receiving the query request, the second electronic device sends the positioning information, stored by the second electronic device and related to the second electronic device, to the first electronic device through the NFC communication link.

Wherein the second electronic device is capable of periodically updating positioning information associated with the second electronic device, including the first GPS ephemeris data.

Step 103: and calculating the position information of the first electronic equipment based on the first positioning parameter.

Since the method is applied to the first electronic device, and thus the execution subject of step 103 is the first electronic device, then step 103 can also be described as: the first electronic equipment calculates the position information of the first electronic equipment based on the first positioning parameters.

In the foregoing solution, when the first positioning parameter may include at least location information of the second electronic device, preferably, the calculating location information of the first electronic device based on the first positioning parameter may include:

and determining the position information of the second electronic equipment in the first positioning parameters as the position information of the first electronic equipment so as to position.

Here, the calculating of the location information of the first electronic device only refers to rough positioning, that is, positioning an initial location of the current electronic device.

In the foregoing solution, when the first positioning parameter may include at least location information of the second electronic device, preferably, the calculating location information of the first electronic device based on the first positioning parameter may include:

determining the position information of the second electronic equipment in the first positioning parameters as initial position information of the first electronic equipment;

when the initial position information of the first electronic equipment is determined, acquiring first GPS ephemeris data and first time related to the position information of the second electronic equipment;

and calculating the position information of the first electronic equipment according to the first GPS ephemeris data, the first time and the position information of the second electronic equipment, and taking the calculated position information as the actual position information of the first electronic equipment.

Here, the calculating of the location information of the first electronic device includes pre-positioning and secondary positioning; the preset position is initial position information for determining the first electronic equipment and is rough positioning; the secondary positioning is to determine the actual position information of the first electronic device, and is accurate positioning performed on the basis of the pre-positioning.

In the foregoing solution, when the first positioning parameter at least includes first GPS ephemeris data, a first time, and location information of the second electronic device, preferably, the calculating the location information of the first electronic device based on the first positioning parameter may include:

and calculating the position information of the first electronic equipment according to the first GPS ephemeris data, the first time and the position information of the second electronic equipment, and taking the calculated position information as the position information of the first electronic equipment.

Here, the calculating of the position information of the first electronic device is precise positioning.

Preferably, after the calculating the location information of the first electronic device, the method further comprises:

and displaying the position information of the electronic equipment to a user.

In the prior art, when a first electronic device (e.g., a mobile phone) performs positioning, a first positioning parameter needs to be provided through a network or the like, but an error of the first positioning parameter provided by the network, especially position information, is large.

In the technical solution of the embodiment of the present invention, the first positioning parameter is acquired from the second electronic device based on the NFC communication link, and because NFC is near field communication, that is, the second electronic device is close to the first electronic device, the first positioning parameter provided by the second electronic device to the first electronic device is more accurate, and the time required for the first electronic device to acquire the first positioning parameter is shorter.

Therefore, the positioning method in the embodiment can realize the quick positioning of the electronic equipment by utilizing the NFC technology, and improve the experience of a user.

The following describes a positioning method provided by the embodiment of the present invention with reference to a specific application example.

As shown in fig. 2, in a preferred embodiment of the present invention, the positioning method mainly includes the following steps:

step 201: and after the first electronic device and the second electronic device establish an NFC communication link, obtaining a first control instruction.

Here, the first control instruction is used for instructing to acquire the first positioning parameter from the second electronic device.

The first control instruction may be issued by a user or may be automatically issued based on a predetermined setting.

Here, the first positioning parameter includes position information of the second electronic device.

Preferably, the second electronic device is an NFC device or a device supporting an NFC function and having a positioning function.

Step 202: obtaining a first positioning parameter from the second electronic device based on the NFC communication link.

Preferably, the acquiring the first positioning parameter from the second electronic device based on the NFC communication link includes:

constructing an inquiry request, and sending the inquiry request to the second electronic equipment through the NFC communication link;

and receiving first positioning parameter information returned by the second electronic equipment through the NFC communication link.

Here, after receiving the inquiry request, the second electronic device performs a positioning operation on the second electronic device, and sends positioning information related to the second electronic device to the first electronic device through the NFC communication link; or after receiving the query request, the second electronic device sends the positioning information, stored by the second electronic device and related to the second electronic device, to the first electronic device through the NFC communication link.

Wherein the second electronic device is capable of periodically updating positioning information associated with the second electronic device, including the first GPS ephemeris data.

Step 203: and determining the position information of the second electronic equipment in the first positioning parameters as the position information of the first electronic equipment.

Here, the positioning only refers to rough positioning, that is, positioning the initial position of the current electronic device.

Preferably, after determining the location information of the second electronic device in the first positioning parameter as the location information of the first electronic device, the method further includes:

and displaying the position information of the electronic equipment to a user.

Since the method is applied to the first electronic device, the executing subjects of the steps 201, 202, and 203 may be the first electronic device.

For example, when a user walks into a store provided with an NFC device, if the user wants to locate the current location of the user, a mobile terminal (e.g., a mobile phone) of the user may be close to the NFC device in the store, so that the mobile phone can acquire first location parameters from the NFC device, and when the first location parameters transmitted by the NFC device through an NFC communication link are received, location information of the mobile phone is determined based on the first location parameters.

Therefore, in the positioning method in this embodiment, the position information of the second electronic device is determined as the position information of the first electronic device, so that the first electronic device can perform rough positioning quickly, that is, the first electronic device can obtain a rough position where the first electronic device is located, so that a user can know about the current approximate position of the first electronic device quickly, and user experience is improved.

The following describes a positioning method provided by an embodiment of the present invention with reference to another specific application example.

As shown in fig. 3, in a preferred embodiment of the present invention, the positioning method mainly includes the following steps:

step 301: and after the first electronic device and the second electronic device establish an NFC communication link, obtaining a first control instruction.

Here, the first control instruction is used for instructing to acquire the first positioning parameter from the second electronic device.

The first control instruction may be issued by a user or may be automatically issued based on a predetermined setting.

Here, the first positioning parameter includes position information of the second electronic device.

Preferably, the second electronic device is an NFC device or a device supporting an NFC function and having a positioning function.

Step 302: obtaining a first positioning parameter from the second electronic device based on the NFC communication link.

Preferably, the acquiring the first positioning parameter from the second electronic device based on the NFC communication link includes:

constructing an inquiry request, and sending the inquiry request to the second electronic equipment through the NFC communication link;

and receiving first positioning parameter information returned by the second electronic equipment through the NFC communication link.

Here, after receiving the inquiry request, the second electronic device performs a positioning operation on the second electronic device, and sends positioning information related to the second electronic device to the first electronic device through the NFC communication link; or after receiving the query request, the second electronic device sends the positioning information, stored by the second electronic device and related to the second electronic device, to the first electronic device through the NFC communication link.

In step 302, the acquired first positioning parameters include the position information of the second electronic device, but do not include the first GPS ephemeris data and the first time.

Step 303: determining the position information of the second electronic device in the first positioning parameters as initial position information of the first electronic device.

Here, the initial location information of the first electronic device is determined to be a predetermined location, the predetermined location is only a rough location, and since the first electronic device and the second electronic device communicate through the NFC communication link, the first electronic device and the second electronic device are closer to each other. And the position information of the second electronic equipment is determined as the initial position information of the first electronic equipment, so that the user can quickly know the approximate position of the second electronic equipment.

Step 304: when determining the initial position information, acquiring first GPS ephemeris data and first time related to the position information of the second electronic device.

Here, the first GPS ephemeris data, the first time, relating to the location information of the second electronic device may be acquired by:

constructing a second query request; the second query request is used for requesting to query first GPS ephemeris data and first time related to the position information of the second electronic equipment;

sending the second query request to the second electronic device through the NFC communication link;

receiving second positioning parameter information returned by the second electronic equipment through the NFC communication link; the second positioning parameter information comprises first GPS ephemeris data and first time.

Step 305: and calculating the position information of the first electronic equipment according to the first GPS ephemeris data, the first time and the position information of the second electronic equipment, and taking the calculated position information as the actual position information of the first electronic equipment.

Here, the actual position information of the first electronic device is determined as a secondary positioning, which is an accurate positioning.

Those skilled in the art can understand how to calculate the location information of the first electronic device according to the first GPS ephemeris data, the first time, and the location information of the second electronic device, which is the prior art and is not described herein again.

Preferably, after the pre-positioning and/or the secondary positioning is completed, the method further comprises:

and displaying the pre-positioning position information and/or the secondary positioning position information of the electronic equipment to a user.

Since the method is applied to the first electronic device, the executing bodies of the steps 301, 302, 303, 304, 305 may all be the first electronic device.

For example: when a user takes a bus with an NFC device, if the user wants to locate the current position of the bus, the mobile phone can be close to the NFC device in the bus, so that the mobile phone can obtain a first locating parameter from the NFC device, when the first locating parameter transmitted by the NFC device through an NFC communication link is received, pre-locating is carried out based on the first locating parameter, the approximate position of the bus is obtained, and then accurate locating is carried out on the basis of the pre-locating; because the accurate positioning is taken as the basis, the user can still continue to carry out real-time positioning on the basis of the existing accurate positioning after getting off the vehicle.

Thus, the positioning method in this embodiment includes pre-positioning and secondary positioning; wherein the pre-positioning is a rough positioning, and the secondary positioning is a precise positioning based on the pre-positioning. The positioning method can not only enable the first electronic device to perform rough positioning quickly, so that the user can know the approximate position of the first electronic device quickly, the safety of the user is improved, but also the user can obtain the accurate position of the first electronic device, and the user experience is improved.

The following describes a positioning method provided by an embodiment of the present invention with reference to another specific application example.

As shown in fig. 4, in a preferred embodiment of the present invention, the positioning method mainly includes the following steps:

step 401: and after the first electronic device and the second electronic device establish an NFC communication link, obtaining a first control instruction.

Here, the first control instruction is used for instructing to acquire the first positioning parameter from the second electronic device.

The first control instruction may be issued by a user or may be automatically issued based on a predetermined setting.

Here, the first positioning parameters include first GPS ephemeris data, a first time, and location information of the second electronic device.

Preferably, the second electronic device is an NFC device or a device supporting an NFC function and having a positioning function.

Step 402: obtaining a first positioning parameter from the second electronic device based on the NFC communication link.

Here, the first positioning parameters include first GPS ephemeris data, a first time, and location information of the second electronic device.

Preferably, the acquiring the first positioning parameter from the second electronic device based on the NFC communication link may include:

constructing an inquiry request, and sending the inquiry request to the second electronic equipment through the NFC communication link;

and receiving first positioning parameter information returned by the second electronic equipment through the NFC communication link.

Here, after receiving the inquiry request, the second electronic device performs a positioning operation on the second electronic device, and sends positioning information related to the second electronic device to the first electronic device through the NFC communication link; or after receiving the query request, the second electronic device sends the positioning information, stored by the second electronic device and related to the second electronic device, to the first electronic device through the NFC communication link.

Wherein the second electronic device is capable of periodically updating positioning information associated with the second electronic device, including the first GPS ephemeris data.

Step 403: and calculating the position information of the first electronic equipment according to the first GPS ephemeris data, the first time and the position information of the second electronic equipment, and taking the calculated position information as the actual position information of the first electronic equipment.

Wherein the positioning is a precise positioning.

Those skilled in the art can understand how to calculate the location information of the first electronic device according to the first GPS ephemeris data, the first time, and the location information of the second electronic device, which is the prior art and is not described herein again.

Preferably, after the positioning, the method further comprises:

and displaying the position information of the electronic equipment to a user.

Since the method is applied to the first electronic device, the execution subjects of the steps 401, 402, and 403 may all be the first electronic device.

In this embodiment, the positioning method obtains the first positioning parameter from the second electronic device based on the NFC communication link, and because NFC is near field communication, that is, the second electronic device is close to the first electronic device, the first positioning parameter provided by the second electronic device to the first electronic device is more accurate, and the time required for the first electronic device to obtain the first positioning parameter is shorter. Therefore, the first electronic equipment can be quickly and accurately positioned according to the first positioning parameter transmitted by the second electronic equipment, and the user experience is improved.

Corresponding to the above positioning method, an embodiment of the present invention provides an electronic device, where the electronic device can communicate with a second electronic device in an NFC manner, and the second electronic device has a positioning function; as shown in fig. 5, the electronic device includes: a first acquisition unit 51, a second acquisition unit 52, and a positioning unit 53; wherein,

the first obtaining unit 51 is configured to obtain a first control instruction after the first electronic device and the second electronic device establish an NFC communication link; the first control instruction is used for indicating that a first positioning parameter is acquired from second electronic equipment;

the second obtaining unit 52 is configured to obtain a first positioning parameter from the second electronic device based on the NFC communication link;

the positioning unit 53 is configured to calculate the position information of the first electronic device based on the first positioning parameter.

Preferably, the second obtaining unit 52 includes a constructing subunit 521, a sending subunit 522, and a receiving subunit 523; wherein,

the constructing subunit 521 is configured to construct a query request;

the sending subunit 522 is configured to send the inquiry request to the second electronic device through the NFC communication link;

the receiving subunit 523 is configured to receive the first positioning parameter information returned by the second electronic device through the NFC communication link.

Specifically, when the first positioning parameter includes the position information of the second electronic device, the positioning unit 53 is specifically configured to:

and determining the position information of the second electronic equipment in the first positioning parameters as the position information of the first electronic equipment.

Specifically, when the first positioning parameter includes the position information of the second electronic device, the positioning unit 53 is further configured to:

determining the position information of the second electronic equipment in the first positioning parameters as initial position information of the first electronic equipment;

when determining initial position information, acquiring first GPS ephemeris data and first time related to the position information of the second electronic equipment;

and calculating the position information of the first electronic equipment according to the first GPS ephemeris data, the first time and the position information of the second electronic equipment, and taking the calculated position information as the actual position information of the first electronic equipment.

Specifically, when the first positioning parameter at least includes first GPS ephemeris data, a first time, and location information of the second electronic device, the positioning unit 53 is specifically configured to:

and calculating the position information of the first electronic equipment according to the first GPS ephemeris data, the first time and the position information of the second electronic equipment, and taking the calculated position information as the position information of the first electronic equipment.

Preferably, the electronic device further comprises a display unit 54 for presenting the position information of the electronic device to a user.

An embodiment of the present invention further provides an electronic device, as shown in fig. 6, the electronic device mainly includes a first obtaining unit 51, a second obtaining unit 52, and a positioning unit 53, where the positioning unit 53 includes a first positioning subunit 531; wherein,

the first obtaining unit 51 is configured to obtain a first control instruction after the first electronic device and the second electronic device establish an NFC communication link; the first control instruction is used for indicating that a first positioning parameter is acquired from second electronic equipment;

the second obtaining unit 52 is configured to obtain a first positioning parameter from the second electronic device based on the NFC communication link;

the positioning unit 53 is configured to calculate location information of the first electronic device based on the first positioning parameter;

the first positioning subunit 531 is configured to determine, as the location information of the first electronic device, the location information of the second electronic device in the first positioning parameter.

Preferably, the first positioning parameter includes at least position information of the second electronic device.

Here, the first positioning parameters may further include first GPS ephemeris data, first time, and the like.

Preferably, the second obtaining unit 52 includes a constructing subunit 521, a sending subunit 522, and a receiving subunit 523; wherein,

the constructing subunit 521 is configured to construct a query request;

the sending subunit 522 is configured to send the inquiry request to the second electronic device through the NFC communication link;

the receiving subunit 523 is configured to receive the first positioning parameter information returned by the second electronic device through the NFC communication link.

Preferably, the electronic device further comprises a display unit 54 for presenting the position information of the electronic device to a user.

An embodiment of the present invention further provides an electronic device, as shown in fig. 7, the electronic device mainly includes a first obtaining unit 51, a second obtaining unit 52, and a positioning unit 53, where the positioning unit 53 includes a first positioning subunit 531 and a second positioning subunit 532; wherein,

the first obtaining unit 51 is configured to obtain a first control instruction after the first electronic device and the second electronic device establish an NFC communication link; the first control instruction is used for indicating that a first positioning parameter is acquired from second electronic equipment;

the second obtaining unit 52 is configured to obtain a first positioning parameter from the second electronic device based on the NFC communication link;

the positioning unit 53 is configured to calculate location information of the first electronic device based on the first positioning parameter;

the first positioning subunit 531 is configured to determine, as initial position information of the first electronic device, position information of the second electronic device in the first positioning parameter;

the second positioning subunit 532 is configured to, when the first positioning parameter does not include the first GPS ephemeris data and the first time, obtain the first GPS ephemeris data and the first time related to the position information of the second electronic device when the first positioning subunit 531 determines the initial position information; and calculating the position information of the first electronic equipment according to the first GPS ephemeris data, the first time and the position information of the second electronic equipment, and taking the calculated position information as the actual position information of the first electronic equipment.

Preferably, the second obtaining unit 52 includes a constructing subunit 521, a sending subunit 522, and a receiving subunit 523; wherein,

the constructing subunit 521 is configured to construct a query request;

the sending subunit 522 is configured to send the inquiry request to the second electronic device through the NFC communication link;

the receiving subunit 523 is configured to receive the first positioning parameter information returned by the second electronic device through the NFC communication link.

Here, the second positioning subunit 532 may acquire the first GPS ephemeris data, the first time, related to the position information of the second electronic device through the second acquiring unit 52.

Preferably, the constructing subunit 521 is further configured to construct a second query request; the second query request is used for requesting to query first GPS ephemeris data and first time related to the position information of the second electronic equipment;

the sending subunit 522 is further configured to send the second query request to the second electronic device through the NFC communication link;

the receiving subunit 523 is further configured to receive second positioning parameter information returned by the second electronic device through the NFC communication link; the second positioning parameter information comprises first GPS ephemeris data and first time.

Preferably, the electronic device further comprises a display unit 54 for presenting the position information of the electronic device to a user.

An embodiment of the present invention further provides an electronic device, as shown in fig. 8, the electronic device mainly includes a first obtaining unit 51, a second obtaining unit 52, and a positioning unit 53, where the positioning unit 53 includes a second positioning subunit 532; wherein,

the first obtaining unit 51 is configured to obtain a first control instruction after the first electronic device and the second electronic device establish an NFC communication link; the first control instruction is used for instructing to acquire a first positioning parameter from a second electronic device

The second obtaining unit 52 is configured to obtain a first positioning parameter from the second electronic device based on the NFC communication link;

the positioning unit 53 is configured to calculate location information of the first electronic device based on the first positioning parameter;

the second positioning subunit 532 is configured to calculate location information of the first electronic device according to the first GPS ephemeris data, the first time, and the location information of the second electronic device, and use the calculated location information as actual location information of the first electronic device.

Here, the first positioning parameters include at least: the first GPS ephemeris data, the first time, and location information of the second electronic device.

Preferably, the second obtaining unit 52 includes a constructing subunit 521, a sending subunit 522, and a receiving subunit 523; wherein,

the constructing subunit 521 is configured to construct a query request;

the sending subunit 522 is configured to send the inquiry request to the second electronic device through the NFC communication link;

the receiving subunit 523 is configured to receive the first positioning parameter information returned by the second electronic device through the NFC communication link.

Preferably, the electronic device further comprises a display unit 54 for presenting the position information of the electronic device to a user.

It should be noted that the first obtaining Unit 51, the second obtaining Unit 52, the positioning Unit 53 and the display Unit 54 according to the embodiment of the present invention can be implemented by a Central Processing Unit (CPU), a Micro Processing Unit (MPU) or a Digital Signal Processing (DSP) chip in the electronic device.

In summary, the embodiment of the present invention provides a positioning method for acquiring a first positioning parameter by using an NFC technology and calculating position information of a first electronic device based on the first positioning parameter, so that fast positioning of the electronic device can be achieved, and user experience can be improved.

In the embodiments provided in the present invention, it should be understood that the disclosed method, apparatus and electronic device may be implemented in other ways. The above-described device embodiments are merely illustrative, for example, the division of the unit is only a logical functional division, and there may be other division ways in actual implementation, such as: multiple units or components may be combined, or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the coupling, direct coupling or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection between the devices or units may be electrical, mechanical or other forms.

The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed on a plurality of network units; some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.

In addition, all the functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may be separately regarded as one unit, or two or more units may be integrated into one unit; the integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.

Those of ordinary skill in the art will understand that: all or part of the steps for implementing the method embodiments may be implemented by hardware related to program instructions, and the program may be stored in a computer readable storage medium, and when executed, the program performs the steps including the method embodiments; and the aforementioned storage medium includes: a mobile storage device, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.

Alternatively, the integrated unit according to the embodiment of the present invention may be stored in a computer-readable storage medium if it is implemented in the form of a software functional module and sold or used as a separate product. Based on such understanding, the technical solutions of the embodiments of the present invention may be essentially implemented or a part contributing to the prior art may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the methods described in the embodiments of the present invention. And the aforementioned storage medium includes: a removable storage device, a ROM, a RAM, a magnetic or optical disk, or various other media that can store program code.

The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.