CN109041212B - Positioning method and wearable device - Google Patents

Positioning method and wearable device Download PDF

Info

Publication number
CN109041212B
CN109041212B CN201810925426.6A CN201810925426A CN109041212B CN 109041212 B CN109041212 B CN 109041212B CN 201810925426 A CN201810925426 A CN 201810925426A CN 109041212 B CN109041212 B CN 109041212B
Authority
CN
China
Prior art keywords
wearable device
target
address
preset
wearer
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810925426.6A
Other languages
Chinese (zh)
Other versions
CN109041212A (en
Inventor
王忠海
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Genius Technology Co Ltd
Original Assignee
Guangdong Genius Technology 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 Guangdong Genius Technology Co Ltd filed Critical Guangdong Genius Technology Co Ltd
Priority to CN201810925426.6A priority Critical patent/CN109041212B/en
Publication of CN109041212A publication Critical patent/CN109041212A/en
Application granted granted Critical
Publication of CN109041212B publication Critical patent/CN109041212B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W64/00Locating users or terminals or network equipment for network management purposes, e.g. mobility management
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01SRADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
    • G01S19/00Satellite radio beacon positioning systems; Determining position, velocity or attitude using signals transmitted by such systems
    • G01S19/38Determining a navigation solution using signals transmitted by a satellite radio beacon positioning system
    • G01S19/39Determining a navigation solution using signals transmitted by a satellite radio beacon positioning system the satellite radio beacon positioning system transmitting time-stamped messages, e.g. GPS [Global Positioning System], GLONASS [Global Orbiting Navigation Satellite System] or GALILEO
    • G01S19/42Determining position
    • G01S19/48Determining position by combining or switching between position solutions derived from the satellite radio beacon positioning system and position solutions derived from a further system

Landscapes

  • Engineering & Computer Science (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)
  • Position Fixing By Use Of Radio Waves (AREA)

Abstract

A positioning method and a wearable device comprise the following steps: determining a preset address corresponding to each Wi-Fi in at least one Wi-Fi detected by the wearable device; determining a target address corresponding to the current time from the behavior record of the wearer; the wearable device at least comprises a wearable device, wherein the wearable device records the addresses of the wearable device corresponding to the wearable device at different times; determining the matching degree of the target address and each preset address; and determining a target preset address with the highest matching degree with the target address from all the preset addresses, and taking the target preset address as the current position of the wearer. In the method, the wearable device can determine the general geographic position of the wearer at the current time according to the daily behavior record of the wearer, and then determine the current position of the wearer according to the geographic position and the searched Wi-Fi. By implementing the embodiment of the invention, the positioning accuracy of the wearable equipment can be improved.

Description

Positioning method and wearable device
Technical Field
The invention relates to the technical field of wearable equipment, in particular to a positioning method and wearable equipment.
Background
The smart watch generally has a positioning function, and is used for acquiring the current position of a wearer when the wearer is detected to have a positioning requirement. Wherein, the mode that the current position of the person of wearing is obtained to smart watch is: the smart watch receives position data sent by a Global Positioning System (GPS) or a base station, or detects a physical address (Media Access Control address, MAC address) of Wi-Fi, and then sends the position data or the MAC address to a map manufacturer, so that the map manufacturer marks the current position of the wearer in an electronic map according to the position data or the MAC address, and then returns the electronic map with the marked current position to the wearer.
However, if a cell is created in a certain place, a map manufacturer may synchronize the location information of the cell to an electronic map first, and then synchronize a plurality of specific location information in the cell to the electronic map, then before the plurality of specific location information in the cell are not synchronized to the electronic map, if a wearer is in the cell and has a positioning requirement, the map manufacturer may only calibrate the location information of the cell for the wearer and may not calibrate the specific location (for example, the cell a seat) where the wearer is located, which may cause a problem of low accuracy of positioning the current location of the wearer.
Disclosure of Invention
The embodiment of the invention discloses a positioning method and wearable equipment, which can improve the positioning accuracy of the wearable equipment.
The first aspect of the embodiment of the invention discloses a positioning method, which comprises the following steps:
determining a preset address corresponding to each Wi-Fi in at least one Wi-Fi detected by a wearable device;
determining a target address corresponding to the current time from the behavior record of the wearer; wherein the wearer behavior record at least comprises addresses respectively corresponding to the wearer at different times, which are recorded by the wearable device;
determining the matching degree of the target address and each preset address;
and determining a target preset address with the highest matching degree with the target address from all the preset addresses, and taking the target preset address as the current position of the wearer.
As an optional implementation manner, in the first aspect of the embodiment of the present invention, the determining a target address corresponding to a current time from a wearer behavior record includes:
determining the current time; wherein the current time at least comprises a current date and a current time;
determining a target wearer behavior record corresponding to the current date from the wearer behavior records, and determining a time period corresponding to the current time from the target wearer behavior record;
and judging whether an address corresponding to the time period exists in the target wearer behavior record, and if so, taking the address corresponding to the time period as a target address corresponding to the current time.
As an optional implementation manner, in the first aspect of the embodiment of the present invention, before determining a preset address corresponding to each of at least one Wi-Fi detected by the wearable device, the method further includes:
detecting whether starting operation for triggering the wearable equipment to start a positioning function occurs;
if the starting operation is detected to occur, detecting whether at least one Wi-Fi exists;
if at least one Wi-Fi exists, executing the determination of a preset address corresponding to each Wi-Fi in the at least one Wi-Fi detected by the wearable device;
if at least one Wi-Fi does not exist, positioning information of the wearable equipment is determined through a GPS, and the current position of the wearer is determined according to the positioning information; wherein the positioning information comprises at least a longitude and a latitude.
As an optional implementation manner, in the first aspect of this embodiment of the present invention, after detecting that at least one of the Wi-Fi exists, and before determining that each of the at least one Wi-Fi detected by the wearable device corresponds to the preset address, the method further includes:
judging whether Wi-Fi which has not established connection exists in at least one detected Wi-Fi; the Wi-Fi which is not connected is not provided with the corresponding preset address;
if the Wi-Fi which is not connected is not established, executing the determination of the preset address corresponding to each Wi-Fi in at least one Wi-Fi detected by the wearable device;
if the Wi-Fi which is not connected is available, outputting prompt information for prompting the wearer to set an address for the Wi-Fi which is not connected;
detecting whether address setting operation occurs within a preset time length; wherein, the starting timing time of the preset duration is the time of outputting the prompt message;
and if the address setting operation occurs, taking a certain address corresponding to the address setting operation as a preset address of the Wi-Fi which is not connected, and executing the determination of the preset address corresponding to each Wi-Fi in at least one Wi-Fi detected by the wearable device.
As an optional implementation manner, in the first aspect of the embodiment of the present invention, after detecting that the address setting operation does not occur within the preset time period, the method further includes:
determining the MAC address corresponding to the Wi-Fi which is not connected, and sending a position acquisition request to a server; the position obtaining request is used for obtaining a geographic position corresponding to the MAC address;
and taking the geographic position returned by the server to the wearable device as a preset address of the Wi-Fi which is not connected, and executing the determination of the preset address corresponding to each Wi-Fi in at least one Wi-Fi detected by the wearable device.
A second aspect of an embodiment of the present invention discloses a wearable device, including:
the first determining unit is used for determining a preset address corresponding to each Wi-Fi in at least one Wi-Fi detected by the wearable device;
the second determining unit is used for determining a target address corresponding to the current time from the behavior record of the wearer; wherein the wearer behavior record at least comprises addresses respectively corresponding to the wearer at different times, which are recorded by the wearable device;
a third determining unit, configured to determine a matching degree between the target address and each of the preset addresses;
and the fourth determining unit is used for determining a target preset address with the highest matching degree with the target address from all the preset addresses and taking the target preset address as the current position of the wearer.
As an optional implementation manner, in a second aspect of the embodiment of the present invention, a manner that the second determining unit is configured to determine the target address corresponding to the current time from the wearer behavior record is specifically:
the second determining unit is used for determining the current time; wherein the current time at least comprises a current date and a current time; determining a target wearer behavior record corresponding to the current date from the wearer behavior records, and determining a time period corresponding to the current time from the target wearer behavior record; and judging whether an address corresponding to the time period exists in the target wearer behavior record, and if so, taking the address corresponding to the time period as a target address corresponding to the current time.
As an optional implementation manner, in a second aspect of the embodiment of the present invention, the wearable device further includes:
the detection unit is used for detecting whether starting operation for triggering the wearable device to start a positioning function occurs or not before the first determination unit determines that the preset address corresponding to each Wi-Fi in at least one Wi-Fi detected by the wearable device is a preset address;
the detection unit is further used for detecting whether at least one Wi-Fi exists after the starting operation is detected to occur;
the first determining unit is specifically configured to determine, after the detecting unit detects that at least one Wi-Fi exists, a preset address corresponding to each of the at least one Wi-Fi detected by the wearable device;
a fifth determining unit, configured to determine, by using a GPS, positioning information of the wearable device after the detecting unit detects that at least one Wi-Fi does not exist, and determine, according to the positioning information, a current location of the wearer; wherein the positioning information comprises at least a longitude and a latitude.
As an optional implementation manner, in a second aspect of the embodiment of the present invention, the wearable device further includes:
a determining unit, configured to determine, after the detecting unit detects that at least one Wi-Fi exists and before the first determining unit determines that a preset address corresponding to each Wi-Fi in the at least one Wi-Fi detected by the wearable device, whether a Wi-Fi to which a connection has not been established exists in the at least one detected Wi-Fi; the Wi-Fi which is not connected is not provided with the corresponding preset address;
the first determining unit is specifically configured to determine, after the detecting unit detects that at least one Wi-Fi exists and the judging unit judges that there is no Wi-Fi for which a connection is not established, a preset address corresponding to each Wi-Fi in the at least one Wi-Fi detected by the wearable device;
the output unit is used for outputting prompt information for prompting a wearer to set an address for the Wi-Fi which is not connected after the judgment unit judges that the Wi-Fi which is not connected is present;
the detection unit is also used for detecting whether the address setting operation occurs within the preset time length; wherein, the starting timing time of the preset duration is the time of outputting the prompt message;
a sixth determining unit, configured to, after the detecting unit detects that the address setting operation occurs, take a certain address corresponding to the address setting operation as a preset address of the Wi-Fi to which connection has not been established, and determine a preset address corresponding to each of the at least one Wi-Fi detected by the wearable device.
As an optional implementation manner, in a second aspect of the embodiment of the present invention, the wearable device further includes:
a seventh determining unit, configured to determine, after the detecting unit detects that the address setting operation does not occur within the preset time period, an MAC address corresponding to the Wi-Fi to which the connection has not been established, and send a position acquisition request to a server; the position obtaining request is used for obtaining a geographic position corresponding to the MAC address;
the seventh determining unit is further configured to use the geographic location returned by the server to the wearable device as a preset address of the Wi-Fi to which a connection has not been established, and determine a preset address corresponding to each of at least one Wi-Fi detected by the wearable device.
A third aspect of an embodiment of the present invention discloses a wearable device, including:
a memory storing executable program code;
a processor coupled with the memory;
the processor calls the executable program code stored in the memory to execute the positioning method disclosed by the first aspect of the embodiment of the invention.
A fourth aspect of the embodiments of the present invention discloses a computer-readable storage medium, which stores a computer program, wherein the computer program enables a computer to execute the positioning method disclosed in the first aspect of the embodiments of the present invention.
A fifth aspect of an embodiment of the present invention discloses a computer program product, which, when running on a computer, causes the computer to execute the positioning method disclosed in the first aspect.
Compared with the prior art, the embodiment of the invention has the following beneficial effects:
in the embodiment of the present invention, the wearable device may determine a preset address corresponding to each of the at least one detected Wi-Fi, and then determine a target address (e.g., a teaching building 101 room of a certain school) corresponding to a current time (e.g., ten am on monday) from the behavior record of the wearer; the wearable device records the addresses of the wearable device corresponding to the different times of the wearable device. Furthermore, the wearable device may determine a matching degree between the target address and each preset address, determine a target preset address (for example, a 101 room of a teaching building in a certain school) from all the preset addresses, and use the target preset address as the current position of the wearer; and the target preset address is a preset address with the highest matching degree with the address corresponding to the current time. In the method, the wearable device can determine the general geographic position of the wearer at the current time according to the daily behavior record of the wearer, and then determine the current position of the wearer according to the geographic position and the searched Wi-Fi. In conclusion, the positioning accuracy of the wearable device can be improved by implementing the embodiment of the invention.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a schematic flow chart of a positioning method according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart of another positioning method disclosed in the embodiments of the present invention;
FIG. 3 is a schematic flow chart illustrating another positioning method according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a wearable device disclosed in the embodiment of the invention;
FIG. 5 is a schematic structural diagram of another wearable device disclosed in the embodiments of the present invention;
FIG. 6 is a schematic structural diagram of another wearable device disclosed in the embodiments of the present invention;
fig. 7 is a schematic structural diagram of another wearable device disclosed in the embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It is to be noted that the terms "comprises" and "comprising" and any variations thereof in the embodiments and drawings of the present invention are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
The embodiment of the invention discloses a positioning method and wearable equipment, which can improve the positioning accuracy of the wearable equipment. In the first to seventh embodiments of the present invention, the wearer of the wearable device is the user. The following are detailed below.
Example one
Referring to fig. 1, fig. 1 is a schematic flow chart of a positioning method according to an embodiment of the present invention. The positioning method as shown in fig. 1 may include the steps of:
101. the wearable device determines a preset address corresponding to each Wi-Fi in at least one Wi-Fi detected by the wearable device.
In the embodiment of the invention, the preset address corresponding to each Wi-Fi can be preset by a user. For example, if the wearable device detects 3 Wi-Fi and determines the preset addresses of the 3 Wi-Fi, the preset addresses of the 3 Wi-Fi can be 1001, 1003, and 1 canteens of a school, respectively.
102. The wearable device determines a target address corresponding to the current time from the behavior record of the wearer; the wearable device records the addresses of the wearable device corresponding to the different times of the wearable device.
In the embodiment of the present invention, the addresses corresponding to the wearer at different times are recorded in the wearer behavior record, for example, if the address corresponding to the monday morning nine points is recorded in the wearer behavior record as the a school basic teaching building 1001 room, that is, the wearer will usually be in the a school basic teaching building 1001 room every monday morning nine points. In addition, the addresses corresponding to different times recorded in the behavior record of the wearer may be set by the user at the wearable device, may also be set by the mobile terminal establishing connection with the wearable device through remote control, and may also be determined by the wearable device by acquiring the location of the user in real time and analyzing the multiple locations acquired in real time, which is not limited in the embodiment of the present invention.
103. The wearable device determines the matching degree of the target address and each preset address.
104. The wearable device determines a target preset address with the highest matching degree with the target address from all preset addresses, and the target preset address is used as the current position of the wearer.
As an optional implementation manner, before step 101, the following steps may be further included:
the wearable device detects whether a positioning operation for turning on a positioning function occurs (e.g., a user presses an entity/virtual key for turning on the positioning function);
if the positioning operation is detected to occur, the wearable device judges whether at least one Wi-Fi is detected, and if the at least one Wi-Fi is detected, the wearable device performs operation of determining a preset address corresponding to each Wi-Fi in the at least one Wi-Fi detected by the wearable device.
Therefore, by implementing the optional embodiment, when a wearer (e.g., a child) of the wearable device gets lost, the real-time position of the wearer can be known by the method, so that the guardian can be informed in time, and the possibility that the child is dangerous when a parent is not at the side is reduced.
As another optional implementation, before step 101, the following steps may be further included:
the method comprises the steps that the wearable device detects whether a position acquisition request sent by a mobile terminal (for example, a parent mobile phone) is received, wherein the mobile terminal and the wearable device are connected;
if the position acquisition request is received, the wearable device judges whether at least one Wi-Fi is detected, and if the at least one Wi-Fi is detected, the operation of determining a preset address corresponding to each Wi-Fi in the at least one Wi-Fi detected by the wearable device is executed.
Therefore, by implementing the optional implementation manner, a user (e.g., a parent) of the mobile terminal can send a position acquisition request to the wearable device through the mobile terminal to acquire the real-time position of the child, so that the purpose of monitoring the position of the child is achieved, and the personal safety of the child is protected.
As another optional implementation manner, after the wearable device determines, from all preset addresses, a target preset address with the highest matching degree with the target address, and before the wearable device takes the target preset address as the current location of the wearer, the method may further include the following steps:
the wearable device judges whether the matching degree of the target address and the target preset address is higher than the preset matching degree;
if the matching degree is higher than the preset matching degree, the wearable device executes the operation of taking the target preset address as the current position of the wearer;
if the matching degree is not higher than the preset matching degree, the wearable device outputs position abnormal information and sends an alarm signal for indicating that the user is in an abnormal position to the mobile terminal connected with the wearable device; the position abnormity information is used for representing that the position where the wearable device is located is abnormal.
Therefore, by implementing the optional implementation mode, when the matching degree of the target address and the target preset address is not higher than the preset matching degree, abnormal positioning information can be output and an alarm signal can be sent, so that the alarm signal can be sent to parents when the children are far away from the target address, the parents can timely contact the children and apply assistance, and further the personal safety of the children is protected.
As a further optional implementation, after the wearable device takes the target preset address as the current location of the wearer, the following steps may be further performed:
the wearable device outputs the current position and inquiry information for inquiring whether the current position of the user is accurate;
if the operation for indicating that the current position is accurate is detected, the wearable device optimizes the target address according to the target preset address;
if the operation for indicating that the current position is inaccurate is detected, the wearable device determines 3 Wi-Fi from the detected at least one Wi-Fi according to the sequence of high signal strength to low signal strength; wherein, a certain Wi-Fi in the 3 Wi-Fi is a Wi-Fi with strongest signal intensity in at least one detected Wi-Fi;
the wearable equipment respectively determines the MAC addresses of the 3 Wi-Fi;
the wearable device determines distances between the 3 Wi-Fi and the wearable device according to the determined signal strength of the 3 Wi-Fi and the MAC addresses of the 3 Wi-Fi;
the wearable device determines the current position of the wearer according to the distance between the 3 Wi-Fi devices and the wearable device.
Therefore, by implementing the optional implementation mode, the target address in the behavior record of the wearer can be optimized according to the target preset address under the condition that the current position is accurately positioned, so that the address recorded in the behavior record of the wearer is more accurate, and the positioning accuracy is further improved; in addition, the current position of the wearer can be determined by a Wi-Fi triangulation method under the condition that the current position is not accurately positioned, and better positioning experience is provided for the user.
Therefore, the method described in fig. 1 can be implemented to improve the positioning accuracy of the wearable device; in addition, the user of the mobile terminal can acquire the current position of the wearer through interaction with the mobile terminal, so that the position of the wearer can be monitored through the user of the mobile terminal, and the possibility of danger of the wearer is reduced; in addition, the target address in the behavior record of the wearer can be optimized to improve the positioning accuracy.
Example two
Referring to fig. 2, fig. 2 is a schematic flow chart of another positioning method according to an embodiment of the disclosure. As shown in fig. 2, the positioning method may include the steps of:
201. the wearable device detects whether an activation operation for triggering the wearable device to activate the positioning function occurs, and if so, performs step 202, and if not, performs step 201.
In this embodiment of the present invention, the starting operation may be that a user inputs a voice to the wearable device (for example, where i is currently located), or that the user presses an entity key on the wearable device for triggering the start of the positioning function, or that the user touches a virtual key on a screen of the wearable device for triggering the start of the positioning function, or that a power-on operation of the wearable device is turned on for the user (that is, the positioning function is started as long as the wearable device is turned on), which is not limited in the embodiment of the present invention.
202. The wearable device detects whether there is at least one Wi-Fi, if yes, step 203 is performed, if no, step 204 is performed.
203. The wearable device determines a preset address corresponding to each Wi-Fi in at least one Wi-Fi detected by the wearable device.
In the embodiment of the present invention, after the wearable device determines the preset address corresponding to each of the at least one Wi-Fi detected by the wearable device, step 205 is triggered to perform a corresponding operation.
204. The wearable equipment determines the positioning information of the wearable equipment through a GPS, and determines the current position of a wearer according to the positioning information; wherein the positioning information comprises at least a longitude and a latitude.
In the embodiment of the present invention, optionally, the manner in which the wearable device determines the current location of the wearer according to the positioning information may specifically be:
the wearable device sends positioning information to the server, so that the server determines an address position corresponding to the positioning information from the electronic map;
the wearable device takes the address location returned by the server as the current location of the wearer.
In the embodiment of the invention, after the wearable device determines the positioning information of the wearable device through the GPS and determines the current position of the wearer according to the positioning information, the process is ended.
The embodiment of the invention can also comprise: step 205 to step 207, please refer to the detailed description of step 102 to step 104 in the first embodiment for the description of step 205 to step 207, which is not described again in the embodiments of the present invention.
As an optional implementation, the wearable device determining, from the record of the behavior of the wearer, a target address corresponding to the current time may include the following steps:
the wearable device determines the current time; wherein the current time at least comprises a current date and a current time;
the wearable equipment determines a target wearer behavior record corresponding to the current date from the wearer behavior records, and determines a time period corresponding to the current moment from the target wearer behavior record;
the wearable device judges whether an address corresponding to the time period exists in the behavior record of the target wearer, and if yes, the address corresponding to the time period is used as a target address corresponding to the current time.
It should be noted that, optionally, after the wearable device determines that there is no address corresponding to the time period in the target wearer behavior record, the following steps may also be performed:
the wearable device classifies the detected at least one Wi-Fi according to the similarity of the preset address to obtain at least one Wi-Fi subset; the preset address similarity between any two Wi-Fi in each Wi-Fi subset is greater than the preset similarity;
the wearable device determines a target Wi-Fi subset from the at least one Wi-Fi subset; wherein the Wi-Fi number in the target Wi-Fi subset is greater than the Wi-Fi number in any other Wi-Fi subset;
the wearable device determines a certain Wi-Fi from the target Wi-Fi subset; wherein the signal strength of a certain Wi-Fi is greater than the signal strength of any other Wi-Fi in the target Wi-Fi subset.
It can be seen that in an alternative to what needs to be described, the wearable device can improve the positioning accuracy of the current position of the wearer by classifying Wi-Fi and judging the signal strength of the Wi-Fi.
Therefore, by implementing the optional implementation mode, the detected preset address corresponding to the Wi-Fi with the strongest signal intensity can be used as the current position under the condition that the target position corresponding to the current time does not exist in the target wearer behavior record, and the experience of the user on the positioning function of the wearable device is improved.
As another optional embodiment, after the wearable device detects that there is no at least one Wi-Fi, and before the wearable device determines the positioning information of the wearable device through GPS, the following operations may be further included:
the wearable device outputs guide information; the guiding information is used for guiding a user to execute the operation of firstly starting the flight mode and then closing the flight mode;
the method comprises the steps that after the wearable device detects the operation of starting first and then closing the flight mode, whether at least one Wi-Fi is detected or not is judged, if yes, the operation of determining a preset address corresponding to each Wi-Fi in the at least one Wi-Fi detected by the wearable device is executed, and if not, the operation of determining the positioning information of the wearable device through a GPS is executed.
Therefore, by implementing the optional implementation mode, the user can be guided to execute the operation of firstly starting the flight mode and then closing the flight mode when the Wi-Fi is not detected, so that the wearable device can search the network again, the problem of low positioning accuracy caused by the fact that the wearable device is in a network-free state and does not search the network in time is solved, and the positioning accuracy of the wearable device is improved.
Therefore, the method described in fig. 2 can be implemented to improve the positioning accuracy of the wearable device; in addition, the user of the mobile terminal can acquire the current position of the wearer through interaction with the mobile terminal, so that the position of the wearer can be monitored through the user of the mobile terminal, and the possibility of danger of the wearer is reduced; in addition, the target address in the behavior record of the wearer can be optimized to improve the positioning accuracy; in addition, the user experience of the positioning function of the wearable device can be improved.
EXAMPLE III
Referring to fig. 3, fig. 3 is a schematic flow chart of another positioning method according to the embodiment of the present invention. The positioning method as shown in fig. 3 may include the steps of:
301. the wearable device detects whether an activation operation for triggering the wearable device to activate the positioning function occurs, and if so, performs step 302, and if not, performs step 301.
302. The wearable device detects whether there is at least one Wi-Fi, if yes, step 304 is performed, if no, step 303 is performed.
303. The wearable equipment determines the positioning information of the wearable equipment through a GPS, and determines the current position of a wearer according to the positioning information; wherein the positioning information comprises at least a longitude and a latitude.
In the embodiment of the invention, after the wearable device determines the positioning information of the wearable device through the GPS and determines the current position of the wearer according to the positioning information, the process is ended.
304. The wearable device judges whether Wi-Fi which does not establish connection exists in the detected at least one Wi-Fi; the Wi-Fi which is not connected has no corresponding preset address; if so, step 309 is performed, and if not, step 305 is performed.
305. The wearable device determines a preset address corresponding to each Wi-Fi in at least one Wi-Fi detected by the wearable device.
The embodiment of the invention can also comprise: step 306 to step 308, please refer to the detailed description of step 102 to step 104 in the first embodiment for the description of step 306 to step 308, which is not described again in the embodiments of the present invention.
In the embodiment of the invention, after the wearable device determines the target preset address with the highest matching degree with the target address from all the preset addresses and takes the target preset address as the current position of the wearer, the process is ended.
309. The wearable device outputs prompt information for prompting the wearer to set an address for the Wi-Fi to which the connection has not been established.
310. The wearable device detects whether address setting operation occurs within a preset time; wherein, the initial timing time of the preset duration is the time of outputting the prompt message; if so, step 311 is performed, and if not, step 312 is performed.
In this embodiment of the present invention, the address setting operation may be to input a certain address for the user through a setting function of the wearable device, or to send a target instruction including the certain address to the wearable device through remote control for the mobile terminal establishing connection with the wearable device, which is not limited in the embodiment of the present invention.
311. And the wearable device takes a certain address corresponding to the address setting operation as a preset address of the Wi-Fi which has not established connection.
In the embodiment of the invention, if a plurality of preset addresses of Wi-Fi which is not connected are available, the wearable device can prompt the user to set an address corresponding to each Wi-Fi which is not connected.
In the embodiment of the present invention, after the wearable device uses a certain address corresponding to the address setting operation as the preset address of the Wi-Fi to which no connection has been established, step 305 is triggered to execute a corresponding operation.
312. The wearable device determines an MAC address corresponding to Wi-Fi which is not connected, and sends a position acquisition request to a server; and the position acquisition request is used for acquiring the geographic position corresponding to the MAC address.
313. The wearable device takes the geographical position returned by the server to the wearable device as a preset address of the Wi-Fi which has not established connection.
In the embodiment of the present invention, after the wearable device takes the geographic location returned by the server to the wearable device as the preset address of the Wi-Fi to which the connection has not been established, step 305 is triggered to execute a corresponding operation.
It can be seen that the method described in fig. 3 can improve the positioning accuracy of the wearable device; in addition, the user of the mobile terminal can acquire the current position of the wearer through interaction with the mobile terminal, so that the position of the wearer can be monitored through the user of the mobile terminal, and the possibility of danger of the wearer is reduced; in addition, the target address in the behavior record of the wearer can be optimized to improve the positioning accuracy; in addition, the user experience of the positioning function of the wearable device can be improved.
Example four
Referring to fig. 4, fig. 4 is a schematic structural diagram of a wearable device according to an embodiment of the present invention. As shown in fig. 4, the wearable device may include: a first determining unit 401, a second determining unit 402, a third determining unit 403, and a fourth determining unit 404, wherein:
a first determining unit 401, configured to determine a preset address corresponding to each of at least one Wi-Fi detected by the wearable device.
In the embodiment of the invention, the preset address corresponding to each Wi-Fi can be preset by a user.
A second determining unit 402, configured to determine, from the wearer behavior record, a target address corresponding to the current time; the wearable device records the addresses of the wearable device corresponding to the different times of the wearable device.
In the embodiment of the present invention, the addresses corresponding to the wearer at different times are recorded in the wearer behavior record, for example, if the address corresponding to the monday morning nine points is recorded in the wearer behavior record as the a school basic teaching building 1001 room, that is, the wearer will usually be in the a school basic teaching building 1001 room every monday morning nine points. In addition, the addresses corresponding to different times recorded in the behavior record of the wearer may be set by the user at the wearable device, may also be set by the mobile terminal establishing connection with the wearable device through remote control, and may also be determined by the wearable device by acquiring the location of the user in real time and analyzing the multiple locations acquired in real time, which is not limited in the embodiment of the present invention.
A third determining unit 403, configured to determine a matching degree between the target address and each preset address.
A fourth determining unit 404, configured to determine a target preset address with the highest matching degree with the target address from all preset addresses, and use the target preset address as the current location of the wearer.
As an optional embodiment, the first determining unit 401 may be further configured to, before determining a preset address corresponding to each of at least one Wi-Fi detected by the wearable device, detect whether a positioning operation for turning on a positioning function occurs (for example, a user presses an entity/virtual key for turning on the positioning function);
if the positioning operation is detected to occur, whether at least one Wi-Fi is detected or not is judged, and if the at least one Wi-Fi is detected, the operation of determining a preset address corresponding to each Wi-Fi in the at least one Wi-Fi detected by the wearable device is executed.
Therefore, by implementing the optional embodiment, when a wearer (e.g., a child) of the wearable device gets lost, the real-time position of the wearer can be known by the method, so that the guardian can be informed in time, and the possibility that the child is dangerous when a parent is not at the side is reduced.
As another optional embodiment, the first determining unit 401 may be further configured to detect whether a location obtaining request sent by a mobile terminal (e.g., a parent's mobile phone) is received before determining a preset address corresponding to each of at least one Wi-Fi detected by the wearable device, where the mobile terminal and the wearable device have established a connection;
if the position acquisition request is received, whether at least one Wi-Fi is detected or not is judged, and if the at least one Wi-Fi is detected, operation of determining a preset address corresponding to each Wi-Fi in the at least one Wi-Fi detected by the wearable device is executed.
Therefore, by implementing the optional implementation manner, a user (e.g., a parent) of the mobile terminal can send a position acquisition request to the wearable device through the mobile terminal to acquire the real-time position of the child, so that the purpose of monitoring the position of the child is achieved, and the personal safety of the child is protected.
As another optional implementation manner, the fourth determining unit 404 may be further configured to, after determining a target preset address with the highest matching degree with the target address from all the preset addresses and before taking the target preset address as the current location of the wearer, determine whether the matching degree of the target address and the target preset address is higher than the preset matching degree;
if the matching degree is higher than the preset matching degree, executing the operation of taking the target preset address as the current position of the wearer;
if the matching degree is not higher than the preset matching degree, outputting position abnormal information and sending an alarm signal for indicating that the user is in an abnormal position to the mobile terminal connected with the wearable device; the position abnormity information is used for representing that the position where the wearable device is located is abnormal.
Therefore, by implementing the optional implementation mode, when the matching degree of the target address and the target preset address is not higher than the preset matching degree, abnormal positioning information can be output and an alarm signal can be sent, so that the alarm signal can be sent to parents when the children are far away from the target address, the parents can timely contact the children and apply assistance, and further the personal safety of the children is protected.
As another optional implementation manner, the fourth determining unit 404 may be further configured to, after taking the target preset address as the current location of the wearer, output the current location and query information for querying whether the current location of the user is accurate;
if the operation for indicating that the current position is accurate is detected, optimizing the target address according to the target preset address;
if the operation for indicating that the current position is inaccurate is detected, determining 3 Wi-Fi from the detected at least one Wi-Fi according to the sequence of high signal strength to low signal strength; wherein, a certain Wi-Fi in the 3 Wi-Fi is a Wi-Fi with strongest signal intensity in at least one detected Wi-Fi;
respectively determining the MAC addresses of the 3 Wi-Fi;
determining distances between the 3 Wi-Fi and the wearable equipment according to the determined signal strength of the 3 Wi-Fi and the MAC addresses of the 3 Wi-Fi;
and determining the current position of the wearer according to the distances between the 3 Wi-Fi devices and the wearable equipment.
Therefore, by implementing the optional implementation mode, the target address in the behavior record of the wearer can be optimized according to the target preset address under the condition that the current position is accurately positioned, so that the address recorded in the behavior record of the wearer is more accurate, and the positioning accuracy is further improved; in addition, the current position of the wearer can be determined by a Wi-Fi triangulation method under the condition that the current position is not accurately positioned, and better positioning experience is provided for the user.
It can be seen that, by implementing the wearable device described in fig. 4, the positioning accuracy of the wearable device can be improved; in addition, the user of the mobile terminal can acquire the current position of the wearer through interaction with the mobile terminal, so that the position of the wearer can be monitored through the user of the mobile terminal, and the possibility of danger of the wearer is reduced; in addition, the target address in the behavior record of the wearer can be optimized to improve the positioning accuracy.
EXAMPLE five
Referring to fig. 5, fig. 5 is a schematic structural diagram of another wearable device disclosed in the embodiment of the present invention. Wherein, the wearable device shown in fig. 5 is optimized by the wearable device shown in fig. 4. Compared with the wearable device shown in fig. 4, the wearable device shown in fig. 5 may further include: a detection unit 405 and a fifth determination unit 406, wherein:
the manner that the second determining unit 402 is configured to determine the target address corresponding to the current time from the wearer behavior record is specifically:
a second determining unit 402, configured to determine a current time; wherein the current time at least comprises a current date and a current time; determining a target wearer behavior record corresponding to the current date from the wearer behavior records, and determining a time period corresponding to the current time from the target wearer behavior record; and judging whether an address corresponding to the time period exists in the behavior record of the target wearer, and if so, taking the address corresponding to the time period as a target address corresponding to the current time.
It should be noted that, optionally, the second determining unit 402 may be further configured to, after it is determined that an address corresponding to the time period does not exist in the target wearer behavior record, classify the detected at least one Wi-Fi according to similarity of preset addresses, and obtain at least one Wi-Fi subset; the preset address similarity between any two Wi-Fi in each Wi-Fi subset is greater than the preset similarity;
determining a target Wi-Fi subset from the at least one Wi-Fi subset; wherein the Wi-Fi number in the target Wi-Fi subset is greater than the Wi-Fi number in any other Wi-Fi subset;
determining a certain Wi-Fi from the target Wi-Fi subset; wherein the signal strength of a certain Wi-Fi is greater than the signal strength of any other Wi-Fi in the target Wi-Fi subset.
Therefore, in the alternative to be explained, the positioning accuracy of the current position of the wearer can be improved by classifying the Wi-Fi and judging the signal strength of the Wi-Fi.
Therefore, by implementing the embodiment of the invention, the detected preset address corresponding to the Wi-Fi with the strongest signal intensity can be used as the current position under the condition that the target position corresponding to the current time does not exist in the target wearer behavior record, so that the experience of a user on the positioning function of the wearable device is improved.
The detecting unit 405 is configured to detect whether a start operation for triggering the wearable device to start the positioning function occurs before the first determining unit 401 determines that the preset address corresponds to each of at least one Wi-Fi detected by the wearable device.
In this embodiment of the present invention, the starting operation may be that a user inputs a voice to the wearable device (for example, where i is currently located), or that the user presses an entity key on the wearable device for triggering the start of the positioning function, or that the user touches a virtual key on a screen of the wearable device for triggering the start of the positioning function, or that a power-on operation of the wearable device is turned on for the user (that is, the positioning function is started as long as the wearable device is turned on), which is not limited in the embodiment of the present invention.
The detecting unit 405 is further configured to detect whether at least one Wi-Fi exists after the occurrence of the start operation is detected.
The first determining unit 401 is specifically configured to determine, after the detecting unit 405 detects that there is at least one Wi-Fi, a preset address corresponding to each Wi-Fi in the at least one Wi-Fi detected by the wearable device.
A fifth determining unit 406, configured to determine, by using a GPS, positioning information of the wearable device after the detecting unit 405 detects that there is no at least one Wi-Fi, and determine, according to the positioning information, a current location of the wearer; wherein the positioning information comprises at least a longitude and a latitude.
In this embodiment of the present invention, optionally, the manner in which the fifth determining unit 406 determines the current location of the wearer according to the positioning information may specifically be:
sending positioning information to a server so that the server determines an address position corresponding to the positioning information from an electronic map;
and taking the address position returned by the server as the current position of the wearer.
As an optional embodiment, the first determining unit 401 may be further configured to output guiding information after the detecting unit 405 detects that there is no at least one Wi-Fi and before determining the positioning information of the wearable device through GPS; the guiding information is used for guiding a user to execute the operation of firstly starting the flight mode and then closing the flight mode;
after the operation of starting and then closing the flight mode is detected, whether at least one Wi-Fi is detected or not is judged, if yes, the operation of determining a preset address corresponding to each Wi-Fi in the at least one Wi-Fi detected by the wearable device is executed, and if not, the operation of determining the positioning information of the wearable device through a GPS is executed.
Therefore, by implementing the optional implementation mode, the user can be guided to execute the operation of firstly starting the flight mode and then closing the flight mode when the Wi-Fi is not detected, so that the wearable device can search the network again, the problem of low positioning accuracy caused by the fact that the wearable device is in a network-free state and does not search the network in time is solved, and the positioning accuracy of the wearable device is improved.
It can be seen that, by implementing the wearable device described in fig. 5, the positioning accuracy of the wearable device can be improved; in addition, the user of the mobile terminal can acquire the current position of the wearer through interaction with the mobile terminal, so that the position of the wearer can be monitored through the user of the mobile terminal, and the possibility of danger of the wearer is reduced; in addition, the target address in the behavior record of the wearer can be optimized to improve the positioning accuracy; in addition, the user experience of the positioning function of the wearable device can be improved.
EXAMPLE six
Referring to fig. 6, fig. 6 is a schematic structural diagram of another wearable device disclosed in the embodiment of the present invention. The wearable device shown in fig. 6 is optimized by the wearable device shown in fig. 5. Compared to the wearable device shown in fig. 5, the wearable device shown in fig. 6 may further include: a judging unit 407, an output unit 408, a sixth determining unit 409, and a seventh determining unit 410, wherein:
a determining unit 407, configured to determine, after the detecting unit 405 detects that at least one Wi-Fi exists and before the first determining unit 401 determines that a preset address corresponding to each Wi-Fi in the at least one Wi-Fi detected by the wearable device, whether there is a Wi-Fi in the at least one detected Wi-Fi for which a connection has not been established; and the Wi-Fi which is not connected has no corresponding preset address.
The first determining unit 401 is specifically configured to determine, after the detecting unit 405 detects that there is at least one Wi-Fi, and after the determining unit 407 determines that there is no Wi-Fi where a connection is not established, a preset address corresponding to each Wi-Fi in the at least one Wi-Fi detected by the wearable device.
An output unit 408, configured to output prompt information for prompting the wearer to set an address for a Wi-Fi to which a connection has not been established, after the determination unit 407 determines that there is a Wi-Fi to which a connection has not been established.
The detecting unit 405 is further configured to detect whether an address setting operation occurs within a preset duration; wherein, the initial timing time of the preset duration is the time of outputting the prompt message.
In this embodiment of the present invention, the address setting operation may be to input a certain address for the user through a setting function of the wearable device, or to send a target instruction including the certain address to the wearable device through remote control for the mobile terminal establishing connection with the wearable device, which is not limited in the embodiment of the present invention.
A sixth determining unit 409, configured to, after the detecting unit 405 detects that the address setting operation occurs, take a certain address corresponding to the address setting operation as a preset address of Wi-Fi with which connection has not been established, and determine a preset address corresponding to each Wi-Fi in at least one Wi-Fi detected by the wearable device.
In this embodiment of the present invention, optionally, if there are multiple preset addresses of Wi-Fi with which connection has not been established, the sixth determining unit 409 may be further configured to output a prompt message for prompting a user to set an address corresponding to each Wi-Fi with which connection has not been established.
In this embodiment of the present invention, after the sixth determining unit 409 determines the preset address corresponding to each Wi-Fi in at least one Wi-Fi detected by the wearable device, the determining subunit 4021 is triggered to perform an operation of determining whether a target address corresponding to the current time exists in the behavior record of the wearer.
A seventh determining unit 410, configured to determine, after the detecting unit 405 detects that the address setting operation does not occur within the preset time period, an MAC address corresponding to the Wi-Fi to which connection has not been established, and send a position acquisition request to the server; and the position acquisition request is used for acquiring the geographic position corresponding to the MAC address.
The seventh determining unit 410 is further configured to use the geographic location returned by the server to the wearable device as a preset address of a Wi-Fi to which a connection has not been established, and determine a preset address corresponding to each Wi-Fi in at least one Wi-Fi detected by the wearable device.
In this embodiment of the present invention, after the seventh determining unit 410 determines the preset address corresponding to each Wi-Fi in at least one Wi-Fi detected by the wearable device, the triggering and determining subunit 4021 executes an operation of determining whether a target address corresponding to the current time exists in the behavior record of the wearer.
It can be seen that, by implementing the wearable device described in fig. 6, the positioning accuracy of the wearable device can be improved; in addition, the user of the mobile terminal can acquire the current position of the wearer through interaction with the mobile terminal, so that the position of the wearer can be monitored through the user of the mobile terminal, and the possibility of danger of the wearer is reduced; in addition, the target address in the behavior record of the wearer can be optimized to improve the positioning accuracy; in addition, the user experience of the positioning function of the wearable device can be improved.
EXAMPLE seven
Referring to fig. 7, fig. 7 is a schematic structural diagram of another wearable device disclosed in the embodiment of the present invention. As shown in fig. 7, for convenience of illustration, only the portion related to the embodiment of the present invention is shown, and details of the technique are not disclosed, please refer to the method portion of the embodiment of the present invention.
Referring to fig. 7, the wearable device includes: radio Frequency (RF) circuit 710, memory 720, input unit 730, display unit 740, sensor 750, audio circuit 760, wireless fidelity (Wi-Fi) module 770, processor 780, power supply 790 and camera 800. Those skilled in the art will appreciate that the wearable device structure shown in fig. 7 does not constitute a limitation of the wearable device, and may include more or fewer components than shown, or combine certain components, or a different arrangement of components.
The following describes the various components of the wearable device in detail with reference to fig. 7:
the RF circuit 710 may be used for receiving and transmitting signals during information transmission and reception or during a call, and in particular, receives downlink information of a base station and then processes the received downlink information to the processor 780; in addition, the data for designing uplink is transmitted to the base station. In general, the RF circuit 710 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, the RF circuit 710 may also communicate with networks and other devices via wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to global system for Mobile communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Messaging Service (SMS), and the like.
The memory 720 may be used to store executable program code, and the processor 780 may execute various functional applications of the wearable device and data processing by running the executable program code stored in the memory 720. The memory 720 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phone book, etc.) created according to the use of the wearable device, and the like. Further, the memory 720 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The Memory 720 may include a Read-Only Memory (ROM), a Random Access Memory (RAM), a Programmable Read-Only Memory (PROM), an Erasable Programmable Read-Only Memory (EPROM), a One-time Programmable Read-Only Memory (OTPROM), an Electrically Erasable rewritable Read-Only Memory (EEPROM), a Compact Disc Read-Only Memory (CD-ROM) or other optical Disc storage, a magnetic disk storage, a tape storage, or any other medium readable by a computer for carrying or storing data.
The input unit 730 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the wearable device. Specifically, the input unit 730 may include a touch panel 731 and other input devices 732. The touch panel 731, also referred to as a touch screen, can collect touch operations of a user (e.g. operations of the user on or near the touch panel 731 by using any suitable object or accessory such as a finger, a stylus, etc.) and drive the corresponding connection device according to a preset program. Alternatively, the touch panel 731 may include two portions of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts it to touch point coordinates, and sends the touch point coordinates to the processor 780, and can receive and execute commands from the processor 780. In addition, the touch panel 731 may be implemented by various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. The input unit 730 may include other input devices 732 in addition to the touch panel 731. In particular, other input devices 732 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 740 may be used to display information input by or provided to the user and various menus of the wearable device. The Display unit 740 may include a Display panel 741, and optionally, the Display panel 741 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. Further, the touch panel 731 can cover the display panel 741, and when the touch panel 731 detects a touch operation on or near the touch panel 731, the touch operation is transmitted to the processor 780 to determine the type of the touch event, and then the processor 780 provides a corresponding visual output on the display panel 741 according to the type of the touch event. Although in fig. 7, the touch panel 731 and the display panel 741 are two independent components to implement the input and output functions of the wearable device, in some embodiments, the touch panel 731 and the display panel 741 may be integrated to implement the input and output functions of the wearable device.
The wearable device may also include at least one sensor 750, such as light sensors, motion sensors, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel 741 according to the brightness of ambient light, and a proximity sensor that may turn off the display panel 741 and/or the backlight when the wearable device is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally, three axes), detect the magnitude and direction of gravity when stationary, and can be used for applications (such as horizontal and vertical screen switching, related games, magnetometer attitude calibration) for recognizing wearable device attitude, and related functions (such as pedometer and tapping) for vibration recognition; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be further configured on the wearable device, detailed description is omitted here.
Audio circuitry 760, speaker 761, and microphone 762 may provide an audio interface between a user and a wearable device. The audio circuit 760 can transmit the electrical signal converted from the received audio data to the speaker 761, and the electrical signal is converted into a sound signal by the speaker 761 and output; microphone 762, on the other hand, converts collected sound signals into electrical signals, which are received by audio circuit 760 and converted into audio data, which are processed by audio data output processor 780, passed through RF circuit 710 to be sent to, for example, another wearable device, or output to memory 720 for further processing.
Wi-Fi belongs to short distance wireless transmission technology, and wearable equipment can help a user to send and receive e-mails, browse webpages, access streaming media and the like through a Wi-Fi module 770, and provides wireless broadband internet access for the user. Although fig. 7 shows a Wi-Fi module 770, it is understood that it does not belong to the essential constitution of the wearable device, and can be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 780 is a control center of the wearable device, and connects various parts of the entire wearable device using various interfaces and lines, and performs various functions of the wearable device and processes data by running or executing software programs and/or modules stored in the memory 720 and calling up data stored in the memory 720, thereby performing overall monitoring of the wearable device. Optionally, processor 780 may include one or more processing units; preferably, the processor 780 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 780.
The wearable device also includes a power source 790 (e.g., a battery) for powering the various components, which may preferably be logically coupled to the processor 780 via a power management system, such that the power management system may be used to manage charging, discharging, and power consumption.
Although not shown, the wearable device may further include a bluetooth module or the like, which is not described herein.
In an embodiment of the present invention, the processor 780 included in the wearable device invokes a software program stored in the memory 720 to specifically perform the following operations:
determining a preset address corresponding to each Wi-Fi in at least one Wi-Fi detected by the wearable device;
determining a target address corresponding to the current time from the behavior record of the wearer; the wearable device at least comprises a wearable device, wherein the wearable device records the addresses of the wearable device corresponding to the wearable device at different times;
determining the matching degree of the target address and each preset address;
and determining a target preset address with the highest matching degree with the target address from all the preset addresses, and taking the target preset address as the current position of the wearer.
It can be seen that the implementation of the wearable device described in fig. 7 can improve the positioning accuracy of the wearable device.
The embodiment of the invention also discloses a computer readable storage medium which stores a computer program, wherein the computer program enables a computer to execute the positioning method disclosed by the first embodiment to the third embodiment of the invention.
The embodiment of the invention also discloses a computer program product, and when the computer program product runs on a computer, the computer is enabled to execute a positioning method disclosed in the first embodiment to the third embodiment of the invention.
The positioning method and the wearable device disclosed by the embodiment of the invention are described in detail, a specific example is applied in the description to explain the principle and the implementation of the invention, and the description of the embodiment is only used for helping to understand the method and the core idea of the invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.
In the above embodiments, the implementation may be wholly or partially implemented by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the application to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by wire (e.g., coaxial cable, fiber optics, digital subscriber line) or wirelessly (e.g., infrared, wireless, microwave, etc.). The computer readable medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more available media. The usable medium may be a magnetic medium (which may be, for example, a floppy disk, a hard disk, a magnetic tape), an optical medium (such as an optical disk), a semiconductor medium (such as a solid state disk), or the like. In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus may be implemented in other manners. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, the above-described division of the units is only one type of division of logical functions, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or units, and may be in an electrical or other form.
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, 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, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated units, if implemented as software functional units and sold or used as a stand-alone product, may be stored in a computer accessible memory. Based on such understanding, the technical solution of the present application, which is a part of or contributes to the prior art in essence, or all or part of the technical solution, may be embodied in the form of a software product, stored in a memory, including several requests for causing a computer device (which may be a personal computer, a server, a network device, or the like, and may specifically be a processor in the computer device) to execute all or part of the steps of the above-described method of the embodiments of the present application.
The above embodiments are only used for illustrating the technical solutions of the present application and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art; the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions in the embodiments of the present application.

Claims (10)

1. A method of positioning, the method comprising:
determining a preset address corresponding to each Wi-Fi in at least one Wi-Fi detected by a wearable device;
determining a target address corresponding to the current time from the behavior record of the wearer; wherein the wearer behavior record at least comprises addresses respectively corresponding to the wearer at different times, which are recorded by the wearable device;
determining the matching degree of the target address and each preset address;
determining a target preset address with the highest matching degree with the target address from all the preset addresses, and taking the target preset address as the current position of the wearer;
under the condition that a target address corresponding to the current time does not exist in the behavior record of the wearer, classifying the detected at least one Wi-Fi according to the similarity of the preset address to obtain at least one Wi-Fi subset; the preset address similarity between any two Wi-Fi in each Wi-Fi subset is greater than the preset similarity;
determining a target Wi-Fi subset from the at least one Wi-Fi subset; wherein the Wi-Fi number in the target Wi-Fi subset is greater than the Wi-Fi number in any other Wi-Fi subset;
determining a target Wi-Fi from the target Wi-Fi subset; wherein the signal strength of the target Wi-Fi is greater than the signal strength of any other Wi-Fi in the target Wi-Fi subset;
and taking the preset address corresponding to the target Wi-Fi as the current position.
2. The method of claim 1, wherein determining the target address corresponding to the current time from the wearer behavior record comprises:
determining the current time; wherein the current time at least comprises a current date and a current time;
determining a target wearer behavior record corresponding to the current date from the wearer behavior records, and determining a time period corresponding to the current time from the target wearer behavior record;
and judging whether an address corresponding to the time period exists in the target wearer behavior record, and if so, taking the address corresponding to the time period as a target address corresponding to the current time.
3. The method according to claim 1 or 2, wherein before determining the preset address corresponding to each of the at least one Wi-Fi detected by the wearable device, the method further comprises:
detecting whether starting operation for triggering the wearable equipment to start a positioning function occurs;
if the starting operation is detected to occur, detecting whether at least one Wi-Fi exists;
if at least one Wi-Fi exists, executing the determination of a preset address corresponding to each Wi-Fi in the at least one Wi-Fi detected by the wearable device;
if at least one Wi-Fi does not exist, positioning information of the wearable equipment is determined through a GPS, and the current position of the wearer is determined according to the positioning information; wherein the positioning information comprises at least a longitude and a latitude.
4. The method of claim 3, wherein after detecting the presence of at least one of the Wi-Fi and before determining the preset address corresponding to each of the at least one of the Wi-Fi detected by the wearable device, the method further comprises:
judging whether Wi-Fi which has not established connection exists in at least one detected Wi-Fi; the Wi-Fi which is not connected is not provided with the corresponding preset address;
if the Wi-Fi which is not connected is not established, executing the determination of the preset address corresponding to each Wi-Fi in at least one Wi-Fi detected by the wearable device;
if the Wi-Fi which is not connected is available, outputting prompt information for prompting the wearer to set an address for the Wi-Fi which is not connected;
detecting whether address setting operation occurs within a preset time length; wherein, the starting timing time of the preset duration is the time of outputting the prompt message;
and if the address setting operation occurs, taking a certain address corresponding to the address setting operation as a preset address of the Wi-Fi which is not connected, and executing the determination of the preset address corresponding to each Wi-Fi in at least one Wi-Fi detected by the wearable device.
5. The method of claim 4, wherein after detecting that the address setting operation does not occur within the preset time period, the method further comprises:
determining the MAC address corresponding to the Wi-Fi which is not connected, and sending a position acquisition request to a server; the position obtaining request is used for obtaining a geographic position corresponding to the MAC address;
and taking the geographic position returned by the server to the wearable device as a preset address of the Wi-Fi which is not connected, and executing the determination of the preset address corresponding to each Wi-Fi in at least one Wi-Fi detected by the wearable device.
6. A wearable device, characterized in that the wearable device comprises:
the first determining unit is used for determining a preset address corresponding to each Wi-Fi in at least one Wi-Fi detected by the wearable device;
the second determining unit is used for determining a target address corresponding to the current time from the behavior record of the wearer; wherein the wearer behavior record at least comprises addresses respectively corresponding to the wearer at different times, which are recorded by the wearable device;
a third determining unit, configured to determine a matching degree between the target address and each of the preset addresses;
a fourth determining unit, configured to determine, from all the preset addresses, a target preset address with a highest matching degree with the target address, and use the target preset address as a current location of the wearer;
the second determining unit is further configured to classify the detected at least one Wi-Fi according to the similarity of the preset address under the condition that a target address corresponding to the current time does not exist in the wearer behavior record, so as to obtain at least one Wi-Fi subset; the preset address similarity between any two Wi-Fi in each Wi-Fi subset is greater than the preset similarity; determining a target Wi-Fi subset from the at least one Wi-Fi subset; wherein the Wi-Fi number in the target Wi-Fi subset is greater than the Wi-Fi number in any other Wi-Fi subset; determining a target Wi-Fi from the target Wi-Fi subset; wherein the signal strength of the target Wi-Fi is greater than the signal strength of any other Wi-Fi in the target Wi-Fi subset; and taking the preset address corresponding to the target Wi-Fi as the current position.
7. The wearable device according to claim 6, wherein the second determining unit is configured to determine the target address corresponding to the current time from the wearer behavior record in a manner that:
the second determining unit is used for determining the current time; wherein the current time at least comprises a current date and a current time; determining a target wearer behavior record corresponding to the current date from the wearer behavior records, and determining a time period corresponding to the current time from the target wearer behavior record; and judging whether an address corresponding to the time period exists in the target wearer behavior record, and if so, taking the address corresponding to the time period as a target address corresponding to the current time.
8. The wearable device of claim 6 or 7, further comprising:
the detection unit is used for detecting whether starting operation for triggering the wearable device to start a positioning function occurs or not before the first determination unit determines that the preset address corresponding to each Wi-Fi in at least one Wi-Fi detected by the wearable device is a preset address;
the detection unit is further used for detecting whether at least one Wi-Fi exists after the starting operation is detected to occur;
the first determining unit is specifically configured to determine, after the detecting unit detects that at least one Wi-Fi exists, a preset address corresponding to each of the at least one Wi-Fi detected by the wearable device;
a fifth determining unit, configured to determine, by using a GPS, positioning information of the wearable device after the detecting unit detects that at least one Wi-Fi does not exist, and determine, according to the positioning information, a current location of the wearer; wherein the positioning information comprises at least a longitude and a latitude.
9. The wearable device of claim 8, further comprising:
a determining unit, configured to determine, after the detecting unit detects that at least one Wi-Fi exists and before the first determining unit determines that a preset address corresponding to each Wi-Fi in the at least one Wi-Fi detected by the wearable device, whether a Wi-Fi to which a connection has not been established exists in the at least one detected Wi-Fi; the Wi-Fi which is not connected is not provided with the corresponding preset address;
the first determining unit is specifically configured to determine, after the detecting unit detects that at least one Wi-Fi exists and the judging unit judges that there is no Wi-Fi for which a connection is not established, a preset address corresponding to each Wi-Fi in the at least one Wi-Fi detected by the wearable device;
the output unit is used for outputting prompt information for prompting a wearer to set an address for the Wi-Fi which is not connected after the judgment unit judges that the Wi-Fi which is not connected is present;
the detection unit is also used for detecting whether the address setting operation occurs within the preset time length; wherein, the starting timing time of the preset duration is the time of outputting the prompt message;
a sixth determining unit, configured to, after the detecting unit detects that the address setting operation occurs, take a certain address corresponding to the address setting operation as a preset address of the Wi-Fi to which connection has not been established, and determine a preset address corresponding to each of the at least one Wi-Fi detected by the wearable device.
10. The wearable device of claim 9, further comprising:
a seventh determining unit, configured to determine, after the detecting unit detects that the address setting operation does not occur within the preset time period, an MAC address corresponding to the Wi-Fi to which the connection has not been established, and send a position acquisition request to a server; the position obtaining request is used for obtaining a geographic position corresponding to the MAC address;
the seventh determining unit is further configured to use the geographic location returned by the server to the wearable device as a preset address of the Wi-Fi to which a connection has not been established, and determine a preset address corresponding to each of at least one Wi-Fi detected by the wearable device.
CN201810925426.6A 2018-08-15 2018-08-15 Positioning method and wearable device Active CN109041212B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810925426.6A CN109041212B (en) 2018-08-15 2018-08-15 Positioning method and wearable device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810925426.6A CN109041212B (en) 2018-08-15 2018-08-15 Positioning method and wearable device

Publications (2)

Publication Number Publication Date
CN109041212A CN109041212A (en) 2018-12-18
CN109041212B true CN109041212B (en) 2020-09-04

Family

ID=64631201

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810925426.6A Active CN109041212B (en) 2018-08-15 2018-08-15 Positioning method and wearable device

Country Status (1)

Country Link
CN (1) CN109041212B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110418406B (en) * 2019-07-30 2022-08-19 努比亚技术有限公司 Positioning method, wearable device and computer-readable storage medium
CN111148046B (en) * 2019-12-31 2021-02-19 广西信恒科技有限公司 Track recording method, device and system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105101410A (en) * 2015-08-28 2015-11-25 小米科技有限责任公司 Method and device for determining geographical location of mobile terminal
CN106792984A (en) * 2016-11-29 2017-05-31 努比亚技术有限公司 A kind of WIFI hot spot scanning connection control method and terminal
CN107734456A (en) * 2017-11-30 2018-02-23 上海连尚网络科技有限公司 A kind of method and apparatus for recommendation service information
CN108235228A (en) * 2016-12-13 2018-06-29 阿里巴巴集团控股有限公司 A kind of safe checking method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105101410A (en) * 2015-08-28 2015-11-25 小米科技有限责任公司 Method and device for determining geographical location of mobile terminal
CN106792984A (en) * 2016-11-29 2017-05-31 努比亚技术有限公司 A kind of WIFI hot spot scanning connection control method and terminal
CN108235228A (en) * 2016-12-13 2018-06-29 阿里巴巴集团控股有限公司 A kind of safe checking method and device
CN107734456A (en) * 2017-11-30 2018-02-23 上海连尚网络科技有限公司 A kind of method and apparatus for recommendation service information

Also Published As

Publication number Publication date
CN109041212A (en) 2018-12-18

Similar Documents

Publication Publication Date Title
EP3306865B1 (en) Communication message sending method and device
CN104426919B (en) Page sharing method, apparatus and system
CN107592615B (en) Positioning method and device
CN106371964B (en) Method and device for prompting message
WO2018103441A1 (en) Network positioning method and terminal device
CN108834132B (en) Data transmission method and equipment and related medium product
CN109032491B (en) Data processing method and device and mobile terminal
CN108900231B (en) Dynamic antenna adjustment method and related product
CN108668328B (en) Network switching method and mobile terminal
CN108966317B (en) Network searching method based on mobile terminal and mobile terminal
CN110771121A (en) Application resource recommendation method and related equipment
CN107566909B (en) Barrage-based video content searching method and user terminal
WO2018161540A1 (en) Fingerprint registration method and related product
CN112312308A (en) Indoor positioning method and terminal equipment
CN108551525B (en) State determination method of movement track and mobile terminal
CN111107223B (en) Message processing method and electronic equipment
CN109041212B (en) Positioning method and wearable device
CN106020945B (en) Shortcut item adding method and device
CN109141355B (en) Relative height measuring method based on multiple sensors and wearable equipment
CN108810261B (en) Antenna switching method in call and related product
CN111966373B (en) APN resetting method, terminal equipment and storage medium
CN110602766B (en) Personal hotspot identification method and method for determining association relationship between terminals
CN109348425B (en) Positioning information updating method, device, equipment and storage medium
CN106339402B (en) Method, device and system for pushing recommended content
CN109040457B (en) Screen brightness adjusting method and mobile terminal

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
GR01 Patent grant
GR01 Patent grant