CN112788531A - Positioning method, positioning device, mobile terminal, server and storage medium - Google Patents

Positioning method, positioning device, mobile terminal, server and storage medium Download PDF

Info

Publication number
CN112788531A
CN112788531A CN202110266534.9A CN202110266534A CN112788531A CN 112788531 A CN112788531 A CN 112788531A CN 202110266534 A CN202110266534 A CN 202110266534A CN 112788531 A CN112788531 A CN 112788531A
Authority
CN
China
Prior art keywords
position information
positioning
mobile terminal
determining
unique identifier
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.)
Pending
Application number
CN202110266534.9A
Other languages
Chinese (zh)
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.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software 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 Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN202110266534.9A priority Critical patent/CN112788531A/en
Publication of CN112788531A publication Critical patent/CN112788531A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/021Services related to particular areas, e.g. point of interest [POI] services, venue services or geofences
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/023Services making use of location information using mutual or relative location information between multiple location based services [LBS] targets or of distance thresholds
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/30Services specially adapted for particular environments, situations or purposes
    • H04W4/33Services specially adapted for particular environments, situations or purposes for indoor environments, e.g. buildings
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W64/00Locating users or terminals or network equipment for network management purposes, e.g. mobility management

Landscapes

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

Abstract

The disclosure relates to a positioning method, a positioning device, a mobile terminal, a server and a storage medium. The positioning method comprises the following steps: based on the control instruction, sending a positioning request to a server, wherein the positioning request comprises a unique identifier of a charging device connected with the mobile terminal; receiving target position information returned from the server, wherein the target position information is determined according to the unique identifier of the charging equipment; and determining the target position information as the positioning information of the mobile terminal. According to the method, when the mobile terminal is connected with the charging equipment (such as a wireless charging seat) (for example, the mobile terminal is electrically connected with the charging equipment, namely, the charging equipment charges the mobile terminal), the mobile terminal is positioned through the position information of the charging equipment, positioning is stable and reliable, the anti-jamming capability is strong, accurate positioning of the mobile terminal is realized, the requirements of users are better met, and the use experience of the users is improved.

Description

Positioning method, positioning device, mobile terminal, server and storage medium
Technical Field
The present disclosure relates to the field of positioning technologies, and in particular, to a positioning method, an apparatus, a mobile terminal, a server, and a storage medium.
Background
With the function of the mobile phone becoming more and more powerful, people rely more and more on the mobile phone for life, trip and positioning. Although some map software based on the GPS in the existing mobile phone can provide positioning and navigation services, the GPS technology cannot complete indoor accurate positioning because the GPS is weak when a positioning signal reaches the ground, cannot penetrate a building, and is limited by the reason that the cost of a locator mobile terminal is high, and the like.
Disclosure of Invention
To overcome the problems in the related art, the present disclosure provides a positioning method, an apparatus, a mobile terminal, a server, and a storage medium.
According to a first aspect of the embodiments of the present disclosure, there is provided a positioning method applied to a mobile terminal, the method including:
sending a positioning request to a server based on a control instruction, wherein the positioning request comprises a unique identifier of a charging device connected with the mobile terminal;
receiving target position information returned from the server, wherein the target position information is determined according to the unique identifier;
and determining the target position information as the positioning information of the mobile terminal.
Optionally, the method further comprises:
establishing electrical connection with the charging equipment based on a preset charging protocol;
sending an acquisition request to the charging device;
and acquiring the unique identifier fed back by the charging equipment.
According to a first aspect of the embodiments of the present disclosure, there is provided a positioning method applied to a server, the method including:
receiving a positioning request sent by a mobile terminal, wherein the positioning request comprises a unique identifier of charging equipment connected with the mobile terminal;
determining target position information according to the positioning request;
and sending the target position information to the mobile terminal.
Optionally, the determining the target location information according to the positioning request includes:
acquiring preset configuration information according to the positioning request, wherein the preset configuration information is used for representing a mapping relation between a unique identifier of the charging equipment and first position information of the charging equipment;
determining first position information corresponding to the unique identification according to the preset configuration information and the unique identification;
and determining the first position information as the target position information.
Optionally, the determining the target location information according to the positioning request includes:
acquiring preset configuration information according to the positioning request, wherein the preset configuration information is used for representing a mapping relation between a unique identifier of the charging equipment and first position information of the charging equipment;
determining first position information corresponding to the unique identification according to the preset configuration information and the unique identification;
determining second position information of the mobile terminal according to a preset positioning algorithm;
performing position correction on the second position information according to the first position information, and determining corrected position information;
determining the corrected position information as the target position information.
Optionally, the performing position correction on the second position information according to the first position information to determine corrected position information includes:
determining midpoint position information according to the first position information and the second position information;
and determining the position information of the midpoint position as the corrected position information.
Optionally, the method further comprises:
acquiring a unique identifier of the charging equipment;
acquiring first position information of the charging equipment;
and establishing a mapping relation between the unique identifier and the first position information as the preset configuration information.
According to a third aspect of the embodiments of the present disclosure, there is provided a positioning apparatus applied to a mobile terminal, the apparatus including:
the first sending module is used for sending a positioning request to a server based on a control instruction, wherein the positioning request comprises a unique identifier of charging equipment connected with the mobile terminal;
the first receiving module is used for receiving target position information returned from the server, wherein the target position information is determined according to the unique identifier;
a first determining module, configured to determine the target location information as location information of the mobile terminal.
Optionally, the apparatus further comprises a connection module, wherein,
the connection module is also used for establishing electric connection with the charging equipment based on a preset charging protocol;
the first sending module sends an acquisition request to the charging equipment;
the first receiving module acquires the unique identifier fed back by the charging equipment.
According to a fourth aspect of the embodiments of the present disclosure, there is provided a positioning apparatus applied to a server, the apparatus including:
the second receiving module is used for receiving a positioning request sent by a mobile terminal, wherein the positioning request comprises a unique identifier of charging equipment connected with the mobile terminal;
the second determining module is used for determining target position information according to the positioning request;
and the second sending module is used for sending the target position information to the mobile terminal.
Optionally, the second determining module is further configured to:
acquiring preset configuration information according to the positioning request, wherein the preset configuration information is used for representing a mapping relation between a unique identifier of the charging equipment and first position information of the charging equipment;
determining first position information corresponding to the unique identification according to the preset configuration information and the unique identification;
and determining the first position information as the target position information.
Optionally, the second determining module is further configured to:
acquiring preset configuration information according to the positioning request, wherein the preset configuration information is used for representing a mapping relation between a unique identifier of the charging equipment and first position information of the charging equipment;
determining first position information corresponding to the unique identification according to the preset configuration information and the unique identification;
determining second position information of the mobile terminal according to a preset positioning algorithm;
performing position correction on the second position information according to the first position information, and determining corrected position information;
determining the corrected position information as the target position information.
Optionally, the second determining module is further configured to:
determining midpoint position information according to the first position information and the second position information;
and determining the position information of the midpoint position as the corrected position information.
Optionally, the apparatus further comprises a setup module, wherein,
the second receiving module is further configured to obtain a unique identifier of the charging device;
the second receiving module is further configured to obtain first position information of the charging device;
the establishing module is configured to establish a mapping relationship between the unique identifier and the first location information, as the preset configuration information.
According to a fifth aspect of the embodiments of the present disclosure, there is provided a mobile terminal, including:
a first processor;
a first memory for storing first processor-executable instructions;
wherein the first processor is configured to perform the positioning method according to the first aspect.
According to a sixth aspect of embodiments of the present disclosure, there is provided a server, including:
a second processor;
a second memory for storing second processor-executable instructions;
wherein the second processor is configured to perform the positioning method according to the second aspect.
According to a seventh aspect of embodiments of the present disclosure, there is provided a non-transitory computer-readable storage medium having instructions which, when executed by a first processor of a mobile terminal, enable the mobile terminal to perform the method according to the first aspect.
According to an eighth aspect of embodiments of the present disclosure, there is provided a non-transitory computer-readable storage medium, wherein instructions of the storage medium, when executed by a second processor of a server, enable the server to perform the positioning method according to the second aspect.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: according to the method, when the mobile terminal is connected with the charging equipment (such as a wireless charging seat) (for example, the mobile terminal is electrically connected with the charging equipment, namely, the charging equipment charges the mobile terminal), the mobile terminal is positioned through the position information of the charging equipment, positioning is stable and reliable, the anti-jamming capability is strong, accurate positioning of the mobile terminal is realized, the requirements of users are better met, and the use experience of the users is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
Fig. 1 is a flowchart illustrating a positioning method (applied to a mobile terminal) according to an exemplary embodiment.
Fig. 2 is a flow chart illustrating a positioning method (applied to a server) according to an exemplary embodiment.
Fig. 3 is a flow chart illustrating a positioning method according to an example embodiment.
Fig. 4 is a schematic diagram illustrating a positioning method according to an exemplary embodiment.
Fig. 5 is a block diagram illustrating a positioning apparatus (applied to a mobile terminal) according to an exemplary embodiment.
Fig. 6 is a block diagram of a positioning apparatus (applied to a server) shown according to an exemplary embodiment.
Fig. 7 is a block diagram of a mobile terminal shown in accordance with an example embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the invention, as detailed in the appended claims.
In the related art, common positioning methods include satellite positioning, base station positioning and the like, but the positioning accuracy is poor, and the positioning can only be performed in a large area range. Especially in indoor scenes, the positioning accuracy is worse due to the blockage of buildings and the like, and the requirements of users cannot be met.
The disclosure provides a positioning method, in the positioning method, when a mobile terminal is connected with a charging device (e.g., a wireless charging seat) (e.g., the mobile terminal is electrically connected with the charging device, that is, the charging device charges the mobile terminal), the mobile terminal is positioned through position information of the charging device, the positioning is stable and reliable, the anti-interference capability is strong, the mobile terminal is accurately positioned, the requirements of a user are better met, and the user experience is improved.
In one exemplary embodiment, a positioning method is provided for a mobile terminal. Referring to fig. 1, the method includes:
and S110, sending a positioning request to a server based on the control instruction, wherein the positioning request comprises the unique identifier of the charging equipment connected with the mobile terminal.
The mobile terminal refers to an electronic device which is provided with a geographic positioning module (such as a GPS, a big dipper, etc.) and can realize a geographic positioning function, such as a mobile phone, a tablet computer, a bracelet, an electronic watch, etc.
The control instruction is according to an operation behavior of the user on the mobile terminal, and may be a virtual button preset in an application program interface preset in the mobile terminal is clicked (single-click or double-click), or a user inputs a preset character based on a virtual keyboard, and the mobile terminal generates a positioning request based on the operation behavior of the user.
The unique identifier refers to an identifier for representing the charging device, wherein each charging device is provided with a unique identifier, and the identifier may be a factory number, a record number, and the like of the charging device.
The mobile terminal is connected with the charging device through electric connection, wherein the electric connection means that the charging device can charge the mobile terminal, and the connection mode can be wired connection or wireless connection, and the wireless connection can adopt a contact wireless charging technology or an empty non-contact wireless charging technology.
In another embodiment, the connection of the mobile terminal and the charging device further includes a communication connection, where the communication connection means that the charging device and the mobile terminal directly perform data interaction, for example, the charging device sends its unique identifier to the mobile terminal.
And S120, receiving target position information returned from the server, wherein the target position information is determined according to the unique identifier of the charging equipment.
The server stores the corresponding relation between the unique identifier of the charging equipment and the position information in advance. When the server receives a positioning request sent by the mobile terminal, the server determines the position information corresponding to the unique identifier as target position information and feeds the target position information back to the mobile terminal based on the corresponding relation between the unique identifier of the charging equipment and the position information. The correspondence between the unique identifier and the location information may be collected in advance by a collector of a geographic positioning service program (e.g., a Baidu map, a Gade map, etc.) and uploaded to the server, or may be uploaded to the server in advance by a user (e.g., a clerk in a certain coffee shop) who owns the charging device.
And S130, determining the target position information as the positioning information of the mobile terminal.
The mobile terminal receives the target position information returned from the server, uses the target position information as positioning information, and then displays the positioning information on a map or performs functions such as distance measurement based on the positioning information.
In this embodiment, because battery charging outfit is the rigidity generally, when mobile terminal is connected with battery charging outfit, thereby can realize the accurate positioning to mobile terminal through the ID sign that prestores among the battery charging outfit, the location is reliable and stable, and the interference killing feature is strong, especially in the building environment of building numerous stereotactic distributions, can realize the accurate positioning to mobile terminal, satisfies user's demand better, promotes user and uses experience.
In a use scene, the mobile terminal is a mobile phone, and A positioning software is installed in the mobile phone. The user charges the mobile phone in the cafe using the wireless charging cradle.
And when the user opens the A positioning software and selects the positioning function of the A positioning software, the mobile phone starts the positioning function of the A positioning software based on the control instruction of the user.
The mobile phone sends a positioning request to a server A corresponding to the positioning software A, the positioning request comprises a unique identifier of the charging equipment in use, the server A positions the mobile phone after receiving the positioning request and determines position information corresponding to the unique identifier, the server A can directly use the position information as target position information, and can also correct the position information determined by a preset positioning algorithm according to the position information and use the corrected position information as the target position information.
The server A sends the target position information to the mobile phone, and the mobile phone receives the target position information returned from the server A and then takes the target position information as the positioning information of the mobile phone, so that accurate positioning is completed.
In addition, the use of wireless charging is more and more common, and the wireless charging base is usually set at a certain position and is not moved, for example, the wireless charging base marked on the table of the coffee shop. Therefore, under the scene of charging by using the wireless charging seat, the mobile phone which is being charged is easily positioned according to the position information of the wireless charging seat, the positioning is stable and reliable, the anti-interference capability is strong, the accurate positioning of the mobile terminal is realized, the requirements of a user are better met, and the user use experience is improved.
In one exemplary embodiment, a positioning method is provided, which is applied to a mobile terminal, and includes:
and S111, establishing electric connection with the charging equipment based on a preset charging protocol.
And S112, sending an acquisition request to the charging equipment.
The obtaining request refers to a request for obtaining a unique identifier of a charging device, and the charging device is a charging device electrically connected with the mobile terminal.
And S113, acquiring the unique identifier fed back by the charging equipment.
In the method, the mobile terminal and the charging device generally realize charging through a standard charging protocol. In the method, the preset charging protocol may be implemented by adding an instruction for acquiring the unique identifier of the charging device to the standard charging protocol. That is, the preset charging protocol includes content for realizing electrical connection and content for acquiring the unique identifier, so that only an instruction for acquiring the unique identifier needs to be added in the standard charging protocol, and charging and acquiring the unique identifier can be realized simultaneously only by setting one preset charging protocol.
In one embodiment, the mobile terminal is a mobile phone and the charging device is a wireless charging cradle.
When a user needs to use the wireless charging seat to charge the mobile phone, the mobile phone and the wireless charging seat negotiate on the basis of a preset charging protocol so as to complete the electric connection of the mobile phone and the wireless charging seat and realize the charging of the wireless charging seat on the mobile phone.
Meanwhile, based on a preset charging protocol, the mobile phone sends an acquisition request for acquiring the unique identifier of the wireless charging seat to the wireless charging seat, after the wireless charging seat receives the acquisition request, the corresponding unique identifier is sent to the mobile phone, and the mobile phone can acquire the unique identifier fed back by the wireless charging seat.
In the positioning method, the mobile terminal and the charging equipment can realize charging and acquire the unique identifier based on a preset charging protocol, namely, when the mobile terminal is connected with the charging equipment (such as a wireless charging seat) (for example, the mobile terminal is electrically connected with the charging equipment, namely, the charging equipment charges the mobile terminal), the unique identifier of the charging equipment can be acquired, then, the position information of the charging equipment can be determined according to the unique identifier, the mobile terminal is positioned through the position information of the charging equipment, the positioning is stable and reliable, the anti-interference capability is strong, the mobile terminal is accurately positioned, the requirements of users are better met, and the use experience of the users is improved.
In one exemplary embodiment, a positioning method is provided for application to a server. Referring to fig. 2, the method includes:
s210, receiving a positioning request sent by a mobile terminal, wherein the positioning request comprises a unique identifier of charging equipment connected with the mobile terminal;
s220, determining target position information according to the positioning request;
and S230, sending the target position information to the mobile terminal.
According to the method, when a user uses a positioning function of a mobile terminal, the mobile terminal sends a positioning request and a unique identifier of charging equipment which is being used to a server, and after receiving the positioning request and the unique identifier sent by the mobile terminal, the server positions the mobile terminal according to the positioning request and the unique identifier to determine target position information. And then the target information is sent to the mobile terminal, and the mobile terminal takes the received target position information as positioning information, so that accurate positioning is realized.
According to the method, the target position information is determined according to the positioning request, and the method comprises two modes.
Mode 1:
s22-1, acquiring preset configuration information according to the positioning request, wherein the preset configuration information is used for representing the mapping relation between the unique identifier of the charging equipment and the first position information of the charging equipment;
s22-2, determining first position information corresponding to the unique identifier according to the preset configuration information and the unique identifier;
s22-3, determining second position information of the mobile terminal according to a preset positioning algorithm;
s22-4, correcting the position of the second position information according to the first position information, and determining corrected position information;
and S22-5, determining the corrected position information as the target position information.
In step S22-1 and step S22-2, preset configuration information is set in advance in the server, and the preset configuration information is used for representing a mapping relationship between the unique identifier of the charging device and the first position information of the charging device. And after receiving the positioning request, the server acquires the preset configuration information and then searches the first position information corresponding to the received unique identifier from the preset configuration information.
In step S22-3, the preset positioning algorithm may adopt a positioning algorithm in the related art, such as a positioning algorithm used in satellite positioning, a positioning algorithm used in base station positioning, and the like, which is not described herein again.
In this way, the first location information is determined not only according to the preset configuration information and the unique identifier, but also according to the preset location algorithm. And then correcting the second position information through the first position information, determining corrected position information, and finally taking the corrected position information as target position information.
Compared with the second position information determined by a positioning algorithm in the related technology, the method corrects the second position information through the first position information of the charging equipment in use, improves the positioning precision, and can improve the use experience of a user to a certain extent.
Mode 2:
s221, acquiring preset configuration information according to the positioning request, wherein the preset configuration information is used for representing the mapping relation between the unique identifier of the charging equipment and the first position information of the charging equipment;
s222, determining first position information corresponding to the unique identifier according to preset configuration information and the unique identifier;
and S223, determining the first position information as the target position information.
In this manner, the preset configuration information may be the same as the preset configuration information in the manner 1, and is not described herein again.
In the method, the searched first position information is directly determined as the target position information and is sent to the mobile terminal as the positioning information. Because the mobile terminal is charging by using the charging equipment, the first position information of the charging equipment electrically connected with the mobile terminal is directly used as the final positioning information, so that the positioning can be accurately finished, and the use experience of a user is improved.
In an exemplary embodiment, a positioning method is provided, which is applied to a server and is a further improvement of the above positioning method in the manner 1. Specifically, the performing position correction on the second position information according to the first position information to determine corrected position information includes:
s22-41, determining midpoint position information according to the first position information and the second position information;
and S22-42, determining the position information of the midpoint position as the corrected position information.
According to the method, the first position represented by the first position information can be obtained based on the first position information, the second position represented by the second position information can be obtained based on the second position information, then the midpoint position of the connecting line of the first position and the second position is determined, and the midpoint position information of the midpoint position is determined as the correction position information, so that the positioning error is reduced, the positioning accuracy is improved, and the user experience is improved.
It should be noted that the correction of the first position information by the second position information is not limited to the above method, and other methods may be used to correct the first position information.
For example, after the first position information and the second position information are determined, circles are drawn with the first position and the second position, respectively, using a preset ratio of the distance between the first position and the second position as a radius, and the position information of any one position in a portion where the two circles overlap is determined as the corrected position information.
Compared with the second position information determined by a positioning algorithm in the related technology, the method corrects the second position information through the first position information of the charging equipment which is being used, reduces the positioning error, improves the positioning precision, and can improve the use experience of a user to a certain extent.
In one exemplary embodiment, a positioning method is provided, which is applied to a server, and includes:
s310, acquiring a unique identifier of the charging equipment;
s320, acquiring first position information of the charging equipment;
s330, establishing a mapping relation between the unique identifier and the first position information as preset configuration information.
In the method, a unique identifier needs to be configured for the charging device, and first position information of the charging device needs to be collected. After the server acquires the unique identifier and the first position information of the charging equipment, a mapping relation is established for the unique identifier and the first position information of the same charging equipment and used as preset configuration information.
It should be noted that, in order to expand the application scenario of the method, a unique identifier may be configured for each charging device, and the first location information of each charging device may be collected, that is, the preset configuration information includes a mapping relationship between the unique identifier of each charging device and the first location information thereof, so that when the mobile terminal is charged by any charging device, the positioning accuracy may be improved according to the first location information of the charging device, and the use experience of the user is improved.
In an exemplary embodiment, there is provided a positioning method applied to a positioning interaction system formed by a mobile terminal and a server, and referring to fig. 3 and 4, the method includes:
s410, based on a preset charging protocol, the mobile terminal is electrically connected with charging equipment;
s420, the mobile terminal sends an acquisition request to the charging equipment;
s430, the charging equipment sends the unique identifier of the charging equipment to the mobile terminal based on the acquisition request;
s440, the mobile terminal obtains a unique identifier fed back by the charging equipment;
s450, the mobile terminal sends a positioning request to the server based on the control instruction, wherein the positioning request comprises a unique identifier of the charging equipment connected with the mobile terminal;
s460, the server receives a positioning request sent by the mobile terminal;
s470, the server acquires preset configuration information according to the positioning request, wherein the preset configuration information is used for representing the mapping relation between the unique identifier of the charging equipment and the first position information of the charging equipment;
s480, the server determines first position information corresponding to the unique identifier according to preset configuration information and the unique identifier;
s490, the server determines that the first position information is target position information and sends the target position information to the mobile terminal;
s4100, the mobile terminal receives the target position information returned from the server, and uses the target position information as the positioning information of the mobile terminal.
Compared with the second position information determined by a positioning algorithm in the related technology, in the method, when the mobile terminal is electrically connected with the charging equipment (such as a wireless charging seat) (namely the charging equipment charges the mobile terminal), the mobile terminal is positioned through the first position information of the charging equipment, the positioning is stable and reliable, the anti-jamming capability is strong, the mobile terminal is accurately positioned, the requirements of a user are better met, and the use experience of the user is improved.
In order to better explain the positioning method provided by the present disclosure, a specific example is described below.
Example (c):
in this example, the mobile terminal is a mobile phone, and the charging device is a wireless charging cradle.
Each wireless charging cradle that is commercially used is assigned an ID (i.e., unique identifier) through software upgrade, and new wireless charging cradles that leave the factory later must also each be assigned an ID, and the following communication commands are added to the standard charging protocol between the existing wireless charging cradle and the device (mobile phone) to be charged: the charged device automatically acquires the communication command of the ID of the wireless charging seat to form a new preset charging protocol.
The data acquisition personnel acquire the position information of each wireless charging seat which is put into use. For example, when the wireless charging cradle is installed on a table in a coffee shop, the location information can be accurate to which table is specified. And then recording the position information as first position information, establishing a mapping relation between the unique identifier of each wireless charging seat and the first position information, forming preset configuration information, and storing the preset configuration information into a server providing a positioning function.
When a user enters a coffee hall and uses a certain wireless charging seat to charge, the electric connection between the mobile phone and the wireless charging seat is realized according to a preset charging protocol, and the mobile phone is wirelessly charged through the wireless charging seat. In the charging process, the wireless charging ID is obtained through the communication command in the preset charging protocol.
If the user uses the positioning function of the mobile phone, for example, when the positioning function of the positioning software A is opened, the mobile phone sends a positioning request and the ID of the wireless charging seat in use to the server A of the positioning software A based on the control information for opening the positioning function.
In one exemplary embodiment, a positioning apparatus is provided, which is applied to a mobile terminal, and is used for implementing the positioning method applied to the mobile terminal. Referring to fig. 5, the apparatus includes a first sending module 102, a first receiving module 103 and a first determining module 104, in the course of implementing the positioning method,
a first sending module 102, configured to send a location request to a server based on the control instruction, where the location request includes a unique identifier of a charging device connected to the mobile terminal;
the first receiving module 103 is configured to receive target location information returned from the server, where the target location information is determined according to the unique identifier of the charging device;
a first determining module 104, configured to determine the target location information as the positioning information of the mobile terminal.
Through this positioner, when mobile terminal and battery charging outfit (for example wireless charging seat) are connected (for example mobile terminal is connected with the battery charging outfit electricity, when battery charging outfit charges for mobile terminal promptly), realize the location to mobile terminal through battery charging outfit's positional information, the location is reliable and stable, and the interference killing feature is strong, realizes the accurate positioning to mobile terminal, satisfies user's demand better, promotes user and uses experience.
In an exemplary embodiment, a positioning apparatus is provided, which is an improvement of the above positioning apparatus, and specifically, the apparatus further comprises a connection module 101, in the process of implementing the above positioning method,
the connection module 101 is further configured to establish an electrical connection with the charging device based on a preset charging protocol;
the first sending module 102 is configured to send an acquisition request to the charging device;
the first receiving module 103 obtains the unique identifier fed back by the charging device.
In an exemplary embodiment, a positioning apparatus is provided, which is applied to a server and is used for implementing the positioning method applied to the server. Referring to fig. 6, the apparatus includes a second receiving module 201, a second determining module 202 and a second sending module 203, in implementing the above-mentioned positioning method,
a second receiving module 201, configured to receive a positioning request sent by a mobile terminal, where the positioning request includes a unique identifier of a charging device connected to the mobile terminal;
a second determining module 202, configured to determine target location information according to the positioning request;
and a second sending module 203, configured to send the target location information to the mobile terminal.
Through the positioning device, when a user uses the positioning function of the mobile terminal, the mobile terminal sends a positioning request and the unique identifier of the charging equipment which is being used to the server, and after receiving the positioning request and the unique identifier sent by the mobile terminal, the server positions the mobile terminal according to the positioning request and the unique identifier to determine the target position information. And then the target information is sent to the mobile terminal, and the mobile terminal takes the received target position information as positioning information, so that accurate positioning is realized.
In an exemplary embodiment, a positioning apparatus is provided, which is an improvement of the above positioning apparatus, and specifically, the second determining module 202 is further configured to:
acquiring preset configuration information according to the positioning request, wherein the preset configuration information is used for representing the mapping relation between the unique identifier of the charging equipment and the first position information of the charging equipment;
determining first position information corresponding to the unique identifier according to preset configuration information and the unique identifier;
and determining the first position information as target position information.
In an exemplary embodiment, a positioning apparatus is provided, which is an improvement of the above positioning apparatus, and specifically, the second determining module 202 is further configured to:
acquiring preset configuration information according to the positioning request, wherein the preset configuration information is used for representing the mapping relation between the unique identifier of the charging equipment and the first position information of the charging equipment;
determining first position information corresponding to the unique identifier according to preset configuration information and the unique identifier;
determining second position information of the mobile terminal according to a preset positioning algorithm;
performing position correction on the second position information according to the first position information, and determining corrected position information;
the corrected position information is determined as the target position information.
In an exemplary embodiment, a positioning apparatus is provided, which is an improvement of the above positioning apparatus, and specifically, the second determining module 202 is further configured to:
determining midpoint position information according to the first position information and the second position information;
the position information for determining the midpoint position is corrected position information.
In an exemplary embodiment, a positioning apparatus is provided, which is an improvement of the above positioning apparatus, and specifically, the apparatus further comprises a building module 204, in the course of implementing the above positioning method,
the second receiving module 201 is further configured to obtain a unique identifier of the charging device;
the second receiving module 201 is further configured to obtain first position information of the charging device;
the establishing module 204 is configured to establish a mapping relationship between the unique identifier and the first location information as preset configuration information.
In one exemplary embodiment, a mobile terminal is provided, for example, the mobile terminal may be a mobile phone, a tablet computer, a notebook computer, or the like.
Referring to fig. 7, the mobile terminal 400 may include one or more of the following components: a processing component 402, a first memory 404, a power component 406, a multimedia component 408, an audio component 410, an interface for input/output (I/O) 412, a sensor component 414, and a communication component 416.
The processing component 402 generally controls overall operation of the mobile terminal 400, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 402 may include one or more first processors 420 to execute instructions to perform all or part of the steps of the method described above. Further, the processing component 402 can include one or more modules that facilitate interaction between the processing component 402 and other components. For example, the processing component 402 can include a multimedia module to facilitate interaction between the multimedia component 408 and the processing component 402.
The first memory 404 is configured to store various types of data to support operations at the mobile terminal 400. Examples of such data include instructions for any application or method operating on the mobile terminal 400, contact data, phonebook data, messages, pictures, videos, and so forth. The first memory 404 may be implemented by any type or combination of volatile or non-volatile memory devices, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The power components 406 provide power to the various components of the mobile terminal 400. The power components 406 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the mobile terminal 400.
The multimedia component 408 includes a screen that provides an output interface between the mobile terminal 400 and the user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 408 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the mobile terminal 400 is in an operation mode, such as a photographing mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 410 is configured to output and/or input audio signals. For example, the audio component 410 may include a Microphone (MIC) configured to receive external audio signals when the mobile terminal 400 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal may further be stored in the first memory 404 or transmitted via the communication component 416. In some embodiments, audio component 410 also includes a speaker for outputting audio signals.
The I/O interface 412 provides an interface between the processing component 402 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor component 414 includes one or more sensors for providing various aspects of state assessment for the mobile terminal 400. For example, the sensor assembly 414 may detect an open/closed state of the mobile terminal 400, the relative positioning of components, such as a display and keypad of the mobile terminal 400, the sensor assembly 414 may detect a change in the position of the mobile terminal 400 or a component of the mobile terminal 400, the presence or absence of user contact with the mobile terminal 400, orientation or acceleration/deceleration of the mobile terminal 400, and a change in the temperature of the mobile terminal 400. The sensor assembly 414 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 414 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 414 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 416 is configured to facilitate communications between the mobile terminal 400 and other devices in a wired or wireless manner. The device 700 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 416 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 416 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the mobile terminal 400 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described positioning method applied to the mobile terminal.
In an exemplary embodiment, a non-transitory computer readable storage medium comprising instructions, such as the first memory 404 comprising instructions, executable by the first processor 420 of the mobile terminal 400 to perform the above-described positioning method applied to the mobile terminal is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like. The instructions in the storage medium, when executed by a processor of the mobile terminal, enable the mobile terminal to perform the positioning method shown in the above-described embodiments.
In an exemplary embodiment, a server (not shown in the figure) is further provided, where the server is a server capable of implementing a positioning function, the server includes a second processor and a second memory, a specific structure of the second processor is similar to a specific structure of the first processor 420, and a specific structure of the second memory is similar to a specific structure of the first memory 404, which are not described herein again.
The second memory is for storing executable instructions of a second processor configured to perform the positioning method as applied to the server as described above.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as a second memory comprising instructions, executable by a second processor of a server to perform the above-described positioning method applied to the server is also provided.
Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.
It will be understood that the invention is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the invention is limited only by the appended claims.

Claims (18)

1. A positioning method is applied to a mobile terminal, and is characterized in that the method comprises the following steps:
sending a positioning request to a server based on a control instruction, wherein the positioning request comprises a unique identifier of a charging device connected with the mobile terminal;
receiving target position information returned from the server, wherein the target position information is determined according to the unique identifier;
and determining the target position information as the positioning information of the mobile terminal.
2. The method of claim 1, further comprising:
establishing electrical connection with the charging equipment based on a preset charging protocol;
sending an acquisition request to the charging device;
and acquiring the unique identifier fed back by the charging equipment.
3. A positioning method applied to a server is characterized by comprising the following steps:
receiving a positioning request sent by a mobile terminal, wherein the positioning request comprises a unique identifier of charging equipment connected with the mobile terminal;
determining target position information according to the positioning request;
and sending the target position information to the mobile terminal.
4. The method according to claim 3, wherein the determining target location information according to the positioning request comprises:
acquiring preset configuration information according to the positioning request, wherein the preset configuration information is used for representing a mapping relation between a unique identifier of the charging equipment and first position information of the charging equipment;
determining first position information corresponding to the unique identification according to the preset configuration information and the unique identification;
and determining the first position information as the target position information.
5. The method according to claim 3, wherein the determining target location information according to the positioning request comprises:
acquiring preset configuration information according to the positioning request, wherein the preset configuration information is used for representing a mapping relation between a unique identifier of the charging equipment and first position information of the charging equipment;
determining first position information corresponding to the unique identification according to the preset configuration information and the unique identification;
determining second position information of the mobile terminal according to a preset positioning algorithm;
performing position correction on the second position information according to the first position information, and determining corrected position information;
determining the corrected position information as the target position information.
6. The method according to claim 5, wherein the performing position correction on the second position information according to the first position information to determine corrected position information comprises:
determining midpoint position information according to the first position information and the second position information;
and determining the position information of the midpoint position as the corrected position information.
7. The method of claim 4 or 5, further comprising:
acquiring a unique identifier of the charging equipment;
acquiring first position information of the charging equipment;
and establishing a mapping relation between the unique identifier and the first position information as the preset configuration information.
8. A positioning device applied to a mobile terminal, the device comprising:
the first sending module is used for sending a positioning request to a server based on a control instruction, wherein the positioning request comprises a unique identifier of charging equipment connected with the mobile terminal;
the first receiving module is used for receiving target position information returned from the server, wherein the target position information is determined according to the unique identifier;
a first determining module, configured to determine the target location information as location information of the mobile terminal.
9. The positioning device of claim 8, further comprising a connection module, wherein,
the connection module is also used for establishing electric connection with the charging equipment based on a preset charging protocol;
the first sending module sends an acquisition request to the charging equipment;
the first receiving module acquires the unique identifier fed back by the charging equipment.
10. A positioning device applied to a server, the device comprising:
the second receiving module is used for receiving a positioning request sent by a mobile terminal, wherein the positioning request comprises a unique identifier of charging equipment connected with the mobile terminal;
the second determining module is used for determining target position information according to the positioning request;
and the second sending module is used for sending the target position information to the mobile terminal.
11. The positioning apparatus of claim 10, wherein the second determining module is further configured to:
acquiring preset configuration information according to the positioning request, wherein the preset configuration information is used for representing a mapping relation between a unique identifier of the charging equipment and first position information of the charging equipment;
determining first position information corresponding to the unique identification according to the preset configuration information and the unique identification;
and determining the first position information as the target position information.
12. The positioning apparatus of claim 10, wherein the second determining module is further configured to:
acquiring preset configuration information according to the positioning request, wherein the preset configuration information is used for representing a mapping relation between a unique identifier of the charging equipment and first position information of the charging equipment;
determining first position information corresponding to the unique identification according to the preset configuration information and the unique identification;
determining second position information of the mobile terminal according to a preset positioning algorithm;
performing position correction on the second position information according to the first position information, and determining corrected position information;
determining the corrected position information as the target position information.
13. The positioning apparatus of claim 12, wherein the second determining module is further configured to:
determining midpoint position information according to the first position information and the second position information;
and determining the position information of the midpoint position as the corrected position information.
14. The positioning device according to claim 11 or 12, wherein the device further comprises a setup module, wherein,
the second receiving module is further configured to obtain a unique identifier of the charging device;
the second receiving module is further configured to obtain first position information of the charging device;
the establishing module is configured to establish a mapping relationship between the unique identifier and the first location information, as the preset configuration information.
15. A mobile terminal, characterized in that the mobile terminal comprises:
a first processor;
a first memory for storing first processor-executable instructions;
wherein the first processor is configured to perform the positioning method of claim 1 or 2.
16. A server, characterized in that the server comprises:
a second processor;
a second memory for storing second processor-executable instructions;
wherein the second processor is configured to perform the positioning method of any one of claims 3-7.
17. A non-transitory computer-readable storage medium, wherein instructions in the storage medium, when executed by a first processor of a mobile terminal, enable the mobile terminal to perform the positioning method of claim 1 or 2.
18. A non-transitory computer-readable storage medium, wherein instructions in the storage medium, when executed by a second processor of a server, enable the server to perform the positioning method of any one of claims 3-7.
CN202110266534.9A 2021-03-08 2021-03-08 Positioning method, positioning device, mobile terminal, server and storage medium Pending CN112788531A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110266534.9A CN112788531A (en) 2021-03-08 2021-03-08 Positioning method, positioning device, mobile terminal, server and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110266534.9A CN112788531A (en) 2021-03-08 2021-03-08 Positioning method, positioning device, mobile terminal, server and storage medium

Publications (1)

Publication Number Publication Date
CN112788531A true CN112788531A (en) 2021-05-11

Family

ID=75762491

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110266534.9A Pending CN112788531A (en) 2021-03-08 2021-03-08 Positioning method, positioning device, mobile terminal, server and storage medium

Country Status (1)

Country Link
CN (1) CN112788531A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080315990A1 (en) * 2004-07-27 2008-12-25 Kenichi Komatsu Presence Informaion Notification System and Method, Computer Program, Charging System and Charging Device and Portable Device
US20120295634A1 (en) * 2011-05-17 2012-11-22 Lg Electronics Inc. Mobile terminal and controlling method thereof
US20130013938A1 (en) * 2011-07-07 2013-01-10 Research In Motion Limited Accessory id recognition by power cycling
CN105530332A (en) * 2015-12-17 2016-04-27 小米科技有限责任公司 Method and device for processing position information
CN108512281A (en) * 2018-05-15 2018-09-07 郑州携能通信技术有限公司 Onboard wireless charging method, system and relevant apparatus

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080315990A1 (en) * 2004-07-27 2008-12-25 Kenichi Komatsu Presence Informaion Notification System and Method, Computer Program, Charging System and Charging Device and Portable Device
US20120295634A1 (en) * 2011-05-17 2012-11-22 Lg Electronics Inc. Mobile terminal and controlling method thereof
US20130013938A1 (en) * 2011-07-07 2013-01-10 Research In Motion Limited Accessory id recognition by power cycling
CN105530332A (en) * 2015-12-17 2016-04-27 小米科技有限责任公司 Method and device for processing position information
CN108512281A (en) * 2018-05-15 2018-09-07 郑州携能通信技术有限公司 Onboard wireless charging method, system and relevant apparatus

Similar Documents

Publication Publication Date Title
US10134269B2 (en) Control switching method and control terminal, and storage medium
EP3096565A1 (en) Method and apparatus for accessing wireless network by terminal device
EP3128774A1 (en) Methods, devices and system for accessing network
EP3829224A1 (en) Network configuration method and apparatus, electronic device and storage medium
CN107027157B (en) Location updating method and device
CN104320774A (en) Updating method, device and facility
CN112013844B (en) Method and device for establishing indoor environment map
CN104837181A (en) Network access method and device
CN105979480A (en) Method and device for updating time of mobile equipment
CN107666660B (en) Interphone configuration method and device
US20210295713A1 (en) Flight path configuration method and device
CN105049763A (en) Method and device for triggering projection
CN111343714A (en) Terminal positioning method and device, electronic equipment and storage medium
CN104811904A (en) Contact setting method and device
CN108718439B (en) Data transmission method and device
US20240125917A1 (en) Ranging method and apparatus, and user equipment and storage medium
KR101638726B1 (en) Method, apparatus, program and recording medium for determining position
CN106506808B (en) Method and device for prompting communication message
CN111541922A (en) Method, device and storage medium for displaying interface input information
CN112752214A (en) Positioning method, positioning device, storage medium and wireless communication system
CN109451832B (en) Wireless communication method, device and computer readable storage medium
CN112788531A (en) Positioning method, positioning device, mobile terminal, server and storage medium
CN105049899A (en) Television projection control method, television projection control device and terminal equipment
CN106161808B (en) Method and device for updating information of telephone number, terminal equipment and server
CN105530594A (en) Communication method and device based remote control

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination