CN109041212B - A positioning method and wearable device - Google Patents
A positioning method and wearable device Download PDFInfo
- 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
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W64/00—Locating users or terminals or network equipment for network management purposes, e.g. mobility management
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01S—RADIO 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/00—Satellite radio beacon positioning systems; Determining position, velocity or attitude using signals transmitted by such systems
- G01S19/38—Determining a navigation solution using signals transmitted by a satellite radio beacon positioning system
- G01S19/39—Determining 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/42—Determining position
- G01S19/48—Determining 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
Description
技术领域technical field
本发明涉及可穿戴设备技术领域,具体涉及一种定位方法及可穿戴设备。The present invention relates to the technical field of wearable devices, in particular to a positioning method and a wearable device.
背景技术Background technique
智能手表中通常都具有定位功能,用于在检测到佩戴者有定位需求的时候为其获取当前所在位置。其中,智能手表获取佩戴者当前所在位置的方式为:智能手表接收由全球定位系统(Global Positioning Syste,GPS)或基站发送的位置数据,或者检测Wi-Fi的物理地址(Media Access Control地址,MAC地址),进而将位置数据或者MAC地址发送给地图厂商,以使得地图厂商根据位置数据或者MAC地址在电子地图中标定出佩戴者的当前所在位置,再将标定了当前所在位置的电子地图返回给佩戴者。Smart watches usually have a positioning function, which is used to obtain the current location of the wearer when it is detected that the wearer has a positioning demand. Among them, the smart watch obtains the current location of the wearer in the following way: the smart watch receives the location data sent by the Global Positioning System (Global Positioning System, GPS) or the base station, or detects the physical address of Wi-Fi (Media Access Control address, MAC address). address), and then send the location data or MAC address to the map manufacturer, so that the map manufacturer can demarcate the current location of the wearer in the electronic map according to the location data or MAC address, and then return the electronic map with the current location demarcated to the electronic map. wearer.
但是,如果某地新建了一个小区,地图厂商会首先将该小区的位置信息同步至电子地图中,后续再将该小区内的多个具体位置信息同步至电子地图中,那么,在该小区内的多个具体位置信息还未同步至电子地图之前,如果佩戴者处于该小区且存在定位需求,地图厂商就只能为佩戴者标定出该小区的位置信息而不能标定出佩戴者所在的具体位置(例如,该小区A座),这样会造成对佩戴者当前所在位置定位精确程度不高的问题。However, if a new cell is built in a certain place, the map manufacturer will first synchronize the location information of the cell to the electronic map, and then synchronize multiple specific location information in the cell to the electronic map. Before synchronizing to the electronic map, if the wearer is in the community and there is a positioning requirement, the map manufacturer can only calibrate the location information of the community for the wearer but not the specific location of the wearer. (For example, Block A in the cell), this will cause the problem of inaccurate positioning of the current position of the wearer.
发明内容SUMMARY OF THE INVENTION
本发明实施例公开了一种定位方法及可穿戴设备,能够提高可穿戴设备的定位精确程度。The embodiments of the present invention disclose a positioning method and a wearable device, which can improve the positioning accuracy of the wearable device.
本发明实施例第一方面公开了一种定位方法,所述方法包括:A first aspect of the embodiments of the present invention discloses a positioning method, and the method includes:
确定可穿戴设备检测到的至少一个Wi-Fi中每个所述Wi-Fi对应的预设地址;determining a preset address corresponding to each of the at least one Wi-Fi detected by the wearable device;
从佩戴者行为记录中确定出当前时间对应的目标地址;其中,所述佩戴者行为记录至少包括所述可穿戴设备所记录的佩戴者在不同时间分别对应的地址;The target address corresponding to the current time is determined from the wearer's behavior record; wherein, the wearer's behavior record includes at least addresses corresponding to the wearer at different times recorded by the wearable device;
确定所述目标地址与每个所述预设地址的匹配度;determining the degree of matching between the target address and each of the preset addresses;
从所有所述预设地址中确定出与所述目标地址的匹配度最高的目标预设地址,并将所述目标预设地址作为佩戴者的当前所在位置。A target preset address with the highest matching degree with the target address is determined from all the preset addresses, and the target preset address is used as the current location of the wearer.
作为一种可选的实施方式,在本发明实施例第一方面中,所述的从佩戴者行为记录中确定出当前时间对应的目标地址,包括:As an optional implementation manner, in the first aspect of the embodiment of the present invention, determining the target address corresponding to the current time from the wearer's behavior record includes:
确定出当前时间;其中,所述当前时间至少包括当前日期和当前时刻;Determine the current time; wherein, the current time includes at least the current date and the current moment;
从佩戴者行为记录中确定出与所述当前日期对应的目标佩戴者行为记录,并从所述目标佩戴者行为记录中确定出所述当前时刻对应的时间段;Determine the target wearer's behavior record corresponding to the current date from the wearer's behavior record, and determine the time period corresponding to the current moment from the target wearer's behavior record;
判断所述目标佩戴者行为记录中是否存在与所述时间段对应的地址,如果存在,则将所述时间段对应的地址作为所述当前时间对应的目标地址。Determine whether there is an address corresponding to the time period in the target wearer's behavior record, and if so, use the address corresponding to the time period as the target address corresponding to the current time.
作为一种可选的实施方式,在本发明实施例第一方面中,所述的确定可穿戴设备检测到的至少一个Wi-Fi中每个所述Wi-Fi对应的预设地址之前,所述方法还包括:As an optional implementation manner, in the first aspect of the embodiment of the present invention, before determining the preset address corresponding to each Wi-Fi in the at least one Wi-Fi detected by the wearable device, the The method also includes:
检测是否发生用于触发所述可穿戴设备启动定位功能的启动操作;Detecting whether a start operation for triggering the wearable device to start the positioning function occurs;
如果检测到发生所述启动操作,检测是否存在至少一个Wi-Fi;If it is detected that the start-up operation occurs, detecting whether there is at least one Wi-Fi;
如果存在至少一个所述Wi-Fi,则执行所述的确定可穿戴设备检测到的至少一个Wi-Fi中每个所述Wi-Fi对应的预设地址;If there is at least one of the Wi-Fis, performing the determining of the preset address corresponding to each of the Wi-Fis in the at least one Wi-Fi detected by the wearable device;
如果不存在至少一个所述Wi-Fi,则通过GPS确定出所述可穿戴设备的定位信息,并根据所述定位信息确定佩戴者的当前所在位置;其中,所述定位信息至少包括经度和纬度。If there is no at least one Wi-Fi, the positioning information of the wearable device is determined through GPS, and the current location of the wearer is determined according to the positioning information; wherein, the positioning information at least includes longitude and latitude .
作为一种可选的实施方式,在本发明实施例第一方面中,在检测到存在至少一个所述Wi-Fi之后,以及所述的确定可穿戴设备检测到的至少一个Wi-Fi中每个所述Wi-Fi对应的预设地址之前,所述方法还包括:As an optional implementation manner, in the first aspect of the embodiment of the present invention, after detecting the existence of at least one of the Wi-Fi, and the determining of the at least one Wi-Fi detected by the wearable device, each Before each preset address corresponding to the Wi-Fi, the method further includes:
判断检测到的至少一个所述Wi-Fi中是否存在未建立过连接的Wi-Fi;其中,所述未建立过连接的Wi-Fi无对应的所述预设地址;Determine whether there is a Wi-Fi that has not been connected in at least one of the detected Wi-Fis; wherein, the Wi-Fi that has not been connected has no corresponding preset address;
如果不存在所述未建立过连接的Wi-Fi,则执行所述的确定可穿戴设备检测到的至少一个Wi-Fi中每个所述Wi-Fi对应的预设地址;If there is no Wi-Fi for which the connection has not been established, performing the determining of the preset address corresponding to each Wi-Fi in the at least one Wi-Fi detected by the wearable device;
如果存在所述未建立过连接的Wi-Fi,则输出用于提示佩戴者为所述未建立过连接的Wi-Fi设置地址的提示信息;If there is the Wi-Fi for which the connection has not been established, output prompt information for prompting the wearer to set an address for the Wi-Fi for which the connection has not been established;
检测预设时长内是否发生设置地址操作;其中,所述预设时长的起始计时时刻为输出所述提示信息的时刻;Detecting whether an address setting operation occurs within a preset time length; wherein, the starting timing time of the preset time length is the time when the prompt information is output;
如果发生所述设置地址操作,则将所述设置地址操作对应的某个地址作为所述未建立过连接的Wi-Fi的预设地址,并执行所述的确定可穿戴设备检测到的至少一个Wi-Fi中每个所述Wi-Fi对应的预设地址。If the address setting operation occurs, a certain address corresponding to the address setting operation is used as the preset address of the Wi-Fi for which no connection has been established, and the determining of at least one detected by the wearable device is performed. A preset address corresponding to each Wi-Fi in the Wi-Fi.
作为一种可选的实施方式,在本发明实施例第一方面中,在检测到所述预设时长内未发生所述设置地址操作之后,所述方法还包括: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:
确定所述未建立过连接的Wi-Fi对应的MAC地址,并向服务器发送位置获取请求;其中,所述位置获取请求用于获取所述MAC地址对应的地理位置;Determine the MAC address corresponding to the Wi-Fi for which the connection has not been established, and send a location acquisition request to the server; wherein, the location acquisition request is used to acquire the geographic location corresponding to the MAC address;
将所述服务器向所述可穿戴设备返回的所述地理位置作为所述未建立过连接的Wi-Fi的预设地址,并执行所述的确定可穿戴设备检测到的至少一个Wi-Fi中每个所述Wi-Fi对应的预设地址。Use the geographic location returned by the server to the wearable device as the preset address of the Wi-Fi for which no connection has been established, and perform the determining of at least one Wi-Fi detected by the wearable device. A preset address corresponding to each of the Wi-Fi.
本发明实施例第二方面公开了一种可穿戴设备,所述可穿戴设备包括:A second aspect of the embodiments of the present invention discloses a wearable device, and the wearable device includes:
第一确定单元,用于确定所述可穿戴设备检测到的至少一个Wi-Fi中每个所述Wi-Fi对应的预设地址;a first determining unit, configured to determine a preset address corresponding to each Wi-Fi in the at least one Wi-Fi detected by the wearable device;
第二确定单元,用于从佩戴者行为记录中确定出当前时间对应的目标地址;其中,所述佩戴者行为记录至少包括所述可穿戴设备所记录的佩戴者在不同时间分别对应的地址;The second determining unit is used to determine the target address corresponding to the current time from the wearer's behavior record; wherein, the wearer's behavior record includes at least the addresses respectively corresponding to the wearer at different times recorded by the wearable device;
第三确定单元,用于确定所述目标地址与每个所述预设地址的匹配度;a third determining unit, configured to determine the degree of matching between the target address and each of the preset addresses;
第四确定单元,用于从所有所述预设地址中确定出与所述目标地址的匹配度最高的目标预设地址,并将所述目标预设地址作为佩戴者的当前所在位置。The fourth determining unit is configured to determine the target preset address with the highest matching degree with the target address from all the preset addresses, and use the target preset address as the current location of the wearer.
作为一种可选的实施方式,在本发明实施例第二方面中,所述第二确定单元用于从佩戴者行为记录中确定出当前时间对应的目标地址的方式具体为:As an optional implementation manner, in the second aspect of the embodiment of the present invention, the manner in which the second determining unit is used to determine the target address corresponding to the current time from the wearer's behavior record is specifically:
所述第二确定单元,用于确定出当前时间;其中,所述当前时间至少包括当前日期和当前时刻;从佩戴者行为记录中确定出与所述当前日期对应的目标佩戴者行为记录,并从所述目标佩戴者行为记录中确定出所述当前时刻对应的时间段;判断所述目标佩戴者行为记录中是否存在与所述时间段对应的地址,如果存在,则将所述时间段对应的地址作为所述当前时间对应的目标地址。The second determining unit is configured to determine the current time; wherein, the current time includes at least the current date and the current time; determine the target wearer's behavior record corresponding to the current date from the wearer's behavior record, and Determine the time period corresponding to the current moment from the target wearer's behavior record; determine whether there is an address corresponding to the time period in the target wearer's behavior record, and if so, assign the time period to the corresponding address address as the target address corresponding to the current time.
作为一种可选的实施方式,在本发明实施例第二方面中,所述可穿戴设备还包括:As an optional implementation manner, in the second aspect of the embodiment of the present invention, the wearable device further includes:
检测单元,用于在所述第一确定单元确定所述可穿戴设备检测到的至少一个Wi-Fi中每个所述Wi-Fi对应的预设地址之前,检测是否发生用于触发所述可穿戴设备启动定位功能的启动操作;A detection unit, configured to detect whether an occurrence of triggering the The start operation of the wearable device to start the positioning function;
所述检测单元,还用于在检测到发生所述启动操作之后,检测是否存在至少一个Wi-Fi;The detection unit is further configured to detect whether there is at least one Wi-Fi after the start-up operation is detected;
所述第一确定单元,具体用于在所述检测单元检测到存在至少一个所述Wi-Fi之后,确定可穿戴设备检测到的至少一个Wi-Fi中每个所述Wi-Fi对应的预设地址;The first determining unit is specifically configured to, after the detecting unit detects that at least one Wi-Fi exists, determine the preset corresponding to each Wi-Fi in the at least one Wi-Fi detected by the wearable device. set address;
第五确定单元,用于在所述检测单元检测到不存在至少一个所述Wi-Fi之后,通过GPS确定出所述可穿戴设备的定位信息,并根据所述定位信息确定佩戴者的当前所在位置;其中,所述定位信息至少包括经度和纬度。a fifth determining unit, configured to determine the positioning information of the wearable device through GPS after the detection unit detects that at least one of the Wi-Fi does not exist, and determine the current location of the wearer according to the positioning information Location; wherein, the positioning information includes at least longitude and latitude.
作为一种可选的实施方式,在本发明实施例第二方面中,所述可穿戴设备还包括:As an optional implementation manner, in the second aspect of the embodiment of the present invention, the wearable device further includes:
判断单元,用于在所述检测单元检测到存在至少一个所述Wi-Fi之后,以及在所述第一确定单元确定所述可穿戴设备检测到的至少一个所述Wi-Fi中每个所述Wi-Fi对应的预设地址之前,判断检测到的至少一个所述Wi-Fi中是否存在未建立过连接的Wi-Fi;其中,所述未建立过连接的Wi-Fi无对应的所述预设地址;a determination unit, configured to determine, after the detection unit detects that at least one of the Wi-Fis exists, and after the first determination unit determines that each of the at least one of the Wi-Fis detected by the wearable device exists Before the preset address corresponding to the Wi-Fi, determine whether there is a Wi-Fi that has not been connected in the detected at least one Wi-Fi; wherein, the Wi-Fi that has not been connected has no corresponding the default address;
所述第一确定单元,具体用于在所述检测单元检测到存在至少一个所述Wi-Fi之后,以及在所述判断单元判断出不存在所述未建立过连接的Wi-Fi之后,确定可穿戴设备检测到的至少一个Wi-Fi中每个所述Wi-Fi对应的预设地址;The first determination unit is specifically configured to, after the detection unit detects that at least one of the Wi-Fis exists, and after the determination unit determines that the Wi-Fi for which the connection has not been established does not exist, determine a preset address corresponding to each of the at least one Wi-Fi detected by the wearable device;
输出单元,用于在所述判断单元判断出存在所述未建立过连接的Wi-Fi之后,输出用于提示佩戴者为所述未建立过连接的Wi-Fi设置地址的提示信息;an output unit, configured to output prompt information for prompting the wearer to set an address for the Wi-Fi for which the connection has not been established after the judgment unit determines that the Wi-Fi for which the connection has not been established exists;
所述检测单元,还用于检测预设时长内是否发生设置地址操作;其中,所述预设时长的起始计时时刻为输出所述提示信息的时刻;The detection unit is further configured to detect whether an address setting operation occurs within a preset time length; wherein, the start timing time of the preset time length is the time when the prompt information is output;
第六确定单元,用于在所述检测单元检测到发生所述设置地址操作之后,将所述设置地址操作对应的某个地址作为所述未建立过连接的Wi-Fi的预设地址,并确定所述可穿戴设备检测到的至少一个所述Wi-Fi中每个所述Wi-Fi对应的预设地址。A sixth determining unit, configured to use an address corresponding to the address setting operation as the preset address of the Wi-Fi for which no connection has been established after the detection unit detects that the address setting operation occurs, and A preset address corresponding to each of the at least one Wi-Fi detected by the wearable device is determined.
作为一种可选的实施方式,在本发明实施例第二方面中,所述可穿戴设备还包括:As an optional implementation manner, in the second aspect of the embodiment of the present invention, the wearable device further includes:
第七确定单元,用于在所述检测单元检测到所述预设时长内未发生所述设置地址操作之后,确定所述未建立过连接的Wi-Fi对应的MAC地址,并向服务器发送位置获取请求;其中,所述位置获取请求用于获取所述MAC地址对应的地理位置;A seventh determination unit, configured to determine the MAC address corresponding to the Wi-Fi for which no connection has been established after the detection unit detects that the address setting operation has not occurred within the preset time period, and send the location to the server an acquisition request; wherein, the location acquisition request is used to acquire the geographic location corresponding to the MAC address;
所述第七确定单元,还用于将所述服务器向所述可穿戴设备返回的所述地理位置作为所述未建立过连接的Wi-Fi的预设地址,并确定可穿戴设备检测到的至少一个Wi-Fi中每个所述Wi-Fi对应的预设地址。The seventh determining unit is further configured to use the geographic location returned by the server to the wearable device as the preset address of the Wi-Fi for which no connection has been established, and determine the location detected by the wearable device. A preset address corresponding to each of the Wi-Fis in the at least one Wi-Fi.
本发明实施例第三方面公开了一种可穿戴设备,包括:A third aspect of the embodiments of the present invention discloses a wearable device, including:
存储有可执行程序代码的存储器;a memory in which executable program code is stored;
与所述存储器耦合的处理器;a processor coupled to the memory;
所述处理器调用所述存储器中存储的所述可执行程序代码,执行本发明实施例第一方面公开的定位方法。The processor invokes the executable program code stored in the memory to execute the positioning method disclosed in the first aspect of the embodiment of the present invention.
本发明实施例第四方面公开了一种计算机可读存储介质,其存储计算机程序,其中,所述计算机程序使得计算机执行本发明实施例第一方面公开的定位方法。A fourth aspect of the embodiments of the present invention discloses a computer-readable storage medium storing a computer program, wherein the computer program causes a computer to execute the positioning method disclosed in the first aspect of the embodiments of the present invention.
本发明实施例第五方面公开了一种计算机程序产品,当所述计算机程序产品在计算机上运行时,使得所述计算机执行第一方面公开的定位方法。A fifth aspect of the embodiments of the present invention discloses a computer program product, which, when the computer program product runs on a computer, causes the computer to execute the positioning method disclosed in the first aspect.
与现有技术相比,本发明实施例具有以下有益效果:Compared with the prior art, the embodiments of the present invention have the following beneficial effects:
本发明实施例中,可穿戴设备可以确定检测到的至少一个Wi-Fi中每个Wi-Fi对应的预设地址,再从佩戴者行为记录中确定出当前时间(例如,星期一的上午十点)对应的目标地址(例如,某学校的教学楼101室);其中,佩戴者行为记录至少包括可穿戴设备所记录的佩戴者在不同时间分别对应的地址。进而,可穿戴设备可以确定目标地址与每个预设地址的匹配度,再从所有预设地址中确定出目标预设地址(例如,某学校的教学楼101室),并将目标预设地址作为佩戴者的当前所在位置;其中,目标预设地址为与当前时间对应的所在地址匹配度最高的预设地址。在上述方法中,可穿戴设备能够根据佩戴者的日常行为记录确定佩戴者在当前时间通常所在的地理位置,再根据该地理位置和搜索到的Wi-Fi确定出佩戴者的当前所在位置。综上所述,实施本发明实施例,能够提高可穿戴设备的定位精确程度。In this embodiment of the present invention, the wearable device may determine a preset address corresponding to each Wi-Fi in the detected at least one Wi-Fi, and then determine the current time (for example, ten in the morning on Monday) from the wearer's behavior record. point) corresponding to the target address (for example,
附图说明Description of drawings
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the technical solutions in the embodiments of the present invention more clearly, the following briefly introduces the drawings required in the embodiments. Obviously, the drawings in the following description are only some embodiments of the present invention. For those of ordinary skill in the art, other drawings can also be obtained from these drawings without any creative effort.
图1是本发明实施例公开的一种定位方法的流程示意图;1 is a schematic flowchart of a positioning method disclosed in an embodiment of the present invention;
图2是本发明实施例公开的另一种定位方法的流程示意图;2 is a schematic flowchart of another positioning method disclosed in an embodiment of the present invention;
图3是本发明实施例公开的又一种定位方法的流程示意图;3 is a schematic flowchart of another positioning method disclosed in an embodiment of the present invention;
图4是本发明实施例公开的一种可穿戴设备的结构示意图;4 is a schematic structural diagram of a wearable device disclosed in an embodiment of the present invention;
图5是本发明实施例公开的另一种可穿戴设备的结构示意图;5 is a schematic structural diagram of another wearable device disclosed in an embodiment of the present invention;
图6是本发明实施例公开的又一种可穿戴设备的结构示意图;6 is a schematic structural diagram of another wearable device disclosed in an embodiment of the present invention;
图7是本发明实施例公开的又一种可穿戴设备的结构示意图。FIG. 7 is a schematic structural diagram of another wearable device disclosed in an embodiment of the present invention.
具体实施方式Detailed ways
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.
需要说明的是,本发明实施例及附图中的术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其它步骤或单元。It should be noted that the terms "comprising" and "having" and any modifications thereof in the embodiments of the present invention and the accompanying drawings are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device comprising a series of steps or units is not limited to the listed steps or units, but optionally also includes unlisted steps or units, or optionally also includes For other steps or units inherent to these processes, methods, products or devices.
本发明实施例公开了一种定位方法及可穿戴设备,能够提高可穿戴设备的定位精确程度。需要说明的是,在本发明实施例一~实施七中,可穿戴设备的佩戴者即为用户。以下分别进行详细说明。The embodiments of the present invention disclose a positioning method and a wearable device, which can improve the positioning accuracy of the wearable device. It should be noted that, in Embodiments 1 to 7 of the present invention, the wearer of the wearable device is the user. Each of them will be described in detail below.
实施例一Example 1
请参阅图1,图1是本发明实施例公开的一种定位方法的流程示意图。如图1所示该定位方法可以包括以下步骤:Please refer to FIG. 1. FIG. 1 is a schematic flowchart of a positioning method disclosed in an embodiment of the present invention. As shown in Figure 1, the positioning method may include the following steps:
101、可穿戴设备确定可穿戴设备检测到的至少一个Wi-Fi中每个Wi-Fi对应的预设地址。101. The wearable device determines a preset address corresponding to each Wi-Fi in at least one Wi-Fi detected by the wearable device.
本发明实施例中,每个Wi-Fi对应的预设地址可以是用户预先设定的。举例来说,如果可穿戴设备检测到了3个Wi-Fi,并且确定出了这3个Wi-Fi的预设地址,那么这3个Wi-Fi的预设地址分别可以为A学校基础教学楼1001室、A学校实验楼1003室以及A学校的A1食堂。In this embodiment of the present invention, the preset address corresponding to each Wi-Fi may be preset by a user. For example, if the wearable device detects 3 Wi-Fis and determines the preset addresses of these 3 Wi-Fis, then the preset addresses of these 3 Wi-Fis can be the basic teaching building of school A respectively. Room 1001, Room 1003 of the Experimental Building of School A and the A1 canteen of School A.
102、可穿戴设备从佩戴者行为记录中确定出当前时间对应的目标地址;其中,佩戴者行为记录至少包括可穿戴设备所记录的佩戴者在不同时间分别对应的地址。102. The wearable device determines the target address corresponding to the current time from the wearer's behavior record; wherein the wearer's behavior record at least includes addresses respectively corresponding to the wearer at different times and recorded by the wearable device.
本发明实施例中,佩戴者行为记录中所记录的是佩戴者在不同时间对应的地址,举例来说,如果佩戴者行为记录中记录有星期一上午九点对应的地址为A学校基础教学楼1001室,那么,也就是说佩戴者在每个星期一上午九点通常会在A学校基础教学楼1001室。此外,佩戴者行为记录中记录的不同时间对应的地址可以是用户在可穿戴设备端设置的,也可以是与可穿戴设备建立连接的移动终端通过远程操控设定的,也可以是可穿戴设备通过实时获取用户的所在位置以及对实时获取到的多个所在位置进行分析确定出的,本发明实施例不作限定。In the embodiment of the present invention, what is recorded in the wearer's behavior record is the address corresponding to the wearer at different times. For example, if the wearer's behavior record records that the address corresponding to 9:00 am on Monday is the basic teaching building of School A Room 1001, then, that means that the wearer will usually be in Room 1001 of the Basic Teaching Building of School A at 9:00 am every Monday. In addition, the addresses corresponding to different times recorded in the wearer's behavior record can be set by the user on the wearable device, or set by the mobile terminal that establishes a connection with the wearable device through remote control, or the wearable device It is determined by acquiring the location of the user in real time and analyzing multiple locations acquired in real time, which is not limited in this embodiment of the present invention.
103、可穿戴设备确定目标地址与每个预设地址的匹配度。103. The wearable device determines the matching degree between the target address and each preset address.
104、可穿戴设备从所有预设地址中确定出与目标地址的匹配度最高的目标预设地址,并将目标预设地址作为佩戴者的当前所在位置。104. The wearable device determines the target preset address with the highest matching degree with the target address from all the preset addresses, and uses the target preset address as the current location of the wearer.
作为一种可选的实施方式,在步骤101之前,还可以包括以下步骤:As an optional implementation manner, before
可穿戴设备检测是否发生用于开启定位功能的定位操作(例如,用户按下用于开启定位功能的实体/虚拟按键);The wearable device detects whether a positioning operation for enabling the positioning function occurs (for example, the user presses a physical/virtual button for enabling the positioning function);
如果检测到发生定位操作,可穿戴设备判断是否检测到至少一个Wi-Fi,如果检测到至少一个Wi-Fi,则执行确定可穿戴设备检测到的至少一个Wi-Fi中每个Wi-Fi对应的预设地址的操作。If a positioning operation is detected, the wearable device determines whether at least one Wi-Fi is detected, and if at least one Wi-Fi is detected, executes a determination that each Wi-Fi corresponds to the at least one Wi-Fi detected by the wearable device operation of the preset address.
可见,实施该可选的实施方式,可穿戴设备的佩戴者(例如,儿童)在迷路时,可以通过本方法获知自己的实时位置,以便于及时通知监护人,降低了家长不在身边时儿童发生危险的可能性。It can be seen that, by implementing this optional embodiment, when the wearer of the wearable device (for example, a child) is lost, he can obtain his real-time position through this method, so as to notify the guardian in time, and reduce the danger to the child when the parent is not around possibility.
作为另一种可选的实施方式,在步骤101之前,还可以包括以下步骤:As another optional implementation manner, before
可穿戴设备检测是否接收到由移动终端(例如,家长的手机)发送的位置获取请求,其中,移动终端与可穿戴设备已建立连接;The wearable device detects whether a location acquisition request sent by a mobile terminal (for example, a parent's mobile phone) is received, wherein the mobile terminal and the wearable device have established a connection;
如果接收到位置获取请求,可穿戴设备判断是否检测到至少一个Wi-Fi,如果检测到至少一个Wi-Fi,则执行确定可穿戴设备检测到的至少一个Wi-Fi中每个Wi-Fi对应的预设地址的操作。If a location acquisition request is received, the wearable device determines whether at least one Wi-Fi is detected, and if at least one Wi-Fi is detected, the wearable device performs a determination that each Wi-Fi corresponds to the at least one Wi-Fi detected by the wearable device operation of the preset address.
可见,实施该可选的实施方式,移动终端的使用者(例如,家长)能够通过移动终端向可穿戴设备发送位置获取请求,以获取儿童的实时位置,进而达到对儿童的所在位置进行监测的目的,保护儿童的人身安全。It can be seen that, by implementing this optional embodiment, the user of the mobile terminal (for example, a parent) can send a location acquisition request to the wearable device through the mobile terminal to acquire the real-time location of the child, thereby achieving the goal of monitoring the location of the child. The purpose is to protect the personal safety of children.
作为又一种可选的实施方式,在可穿戴设备从所有预设地址中确定出与目标地址的匹配度最高的目标预设地址之后,以及在可穿戴设备将目标预设地址作为佩戴者的当前所在位置之前,还可以包括以下步骤:As another optional implementation manner, after the wearable device determines the target preset address with the highest matching degree with the target address from all the preset addresses, and after the wearable device uses the target preset address as the wearer's preset address You can also include the following steps before your current location:
可穿戴设备判断目标地址与目标预设地址的匹配度是否高于预设匹配度;The wearable device determines whether the matching degree between the target address and the target preset address is higher than the preset matching degree;
如果高于预设匹配度,可穿戴设备执行将目标预设地址作为佩戴者的当前所在位置的操作;If it is higher than the preset matching degree, the wearable device performs the operation of using the target preset address as the current location of the wearer;
如果不高于预设匹配度,可穿戴设备输出位置异常信息并向与可穿戴设备建立连接的移动终端发送用于表示用户处于异常位置的告警信号;其中,位置异常信息用于表示可穿戴设备当前所在位置异常。If it is not higher than the preset matching degree, the wearable device outputs the abnormal position information and sends an alarm signal indicating that the user is in an abnormal position to the mobile terminal that establishes a connection with the wearable device; wherein, the abnormal position information is used to indicate that the wearable device is in an abnormal position. The current location is abnormal.
可见,实施该可选的实施方式,能够当目标地址与目标预设地址的匹配度未高于预设匹配度时,输出定位异常信息以及发送告警信号,这样能够在儿童与目标地址较远时,向家长发送告警信号,以使得家长能够及时联系儿童并施以援助,进而保护儿童的人身安全。It can be seen that, by implementing this optional embodiment, when the matching degree between the target address and the target preset address is not higher than the preset matching degree, the abnormal positioning information can be output and the alarm signal can be sent, so that when the child is far away from the target address , to send an alarm signal to parents, so that parents can contact the child in time and provide assistance, thereby protecting the personal safety of the child.
作为又一种可选的实施方式,在可穿戴设备将目标预设地址作为佩戴者的当前所在位置之后,还可以执行以下步骤:As another optional implementation manner, after the wearable device uses the target preset address as the current location of the wearer, the following steps may also be performed:
可穿戴设备输出当前所在位置以及用于询问用户当前所在位置是否准确的询问信息;The wearable device outputs the current location and query information used to ask the user whether the current location is accurate;
如果检测到用于表示当前所在位置准确的操作,可穿戴设备根据目标预设地址对目标地址进行优化;If an operation that indicates the current location is accurate is detected, the wearable device optimizes the target address according to the target preset address;
如果检测到用于表示当前所在位置不准确的操作,可穿戴设备根据信号强度由高到低的顺序从检测到的至少一个Wi-Fi中确定出3个Wi-Fi;其中,上述3个Wi-Fi中存在某个Wi-Fi为检测到的至少一个Wi-Fi中信号强度最强的一个Wi-Fi;If an operation indicating an inaccurate current location is detected, the wearable device determines three Wi-Fis from the at least one detected Wi-Fi in order of signal strength from high to low; - There is a Wi-Fi in the Fi that has the strongest signal strength among the at least one detected Wi-Fi;
可穿戴设备分别确定上述3个Wi-Fi的MAC地址;The wearable device determines the MAC addresses of the above three Wi-Fi devices respectively;
可穿戴设备根据确定出的上述3个Wi-Fi的信号强度和上述3个Wi-Fi的MAC地址,确定出上述3个Wi-Fi分别和可穿戴设备之间的距离;The wearable device determines the distances between the three Wi-Fis and the wearable device according to the determined signal strengths of the three Wi-Fis and the MAC addresses of the three Wi-Fis;
可穿戴设备根据上述3个Wi-Fi分别和可穿戴设备之间的距离确定出佩戴者的当前所在位置。The wearable device determines the current location of the wearer according to the distances between the above three Wi-Fi devices and the wearable device respectively.
可见,实施该可选的实施方式,能够在当前所在位置定位准确的情况下根据目标预设地址对佩戴者行为记录中的目标地址进行优化,以使得佩戴者行为记录中所记录的地址更为准确,进而提高定位精确程度;此外,还能够在当前所在位置定位不准确的情况下,通过Wi-Fi三角定位法确定佩戴者的当前所在位置,为用户提供了更好的定位体验。It can be seen that by implementing this optional embodiment, the target address in the wearer's behavior record can be optimized according to the target preset address when the current location is accurately positioned, so that the address recorded in the wearer's behavior record is more accurate. In addition, the current location of the wearer can be determined by the Wi-Fi triangulation method when the current location is not accurate, providing users with a better location experience.
可见,实施图1所描述的方法,能够提高可穿戴设备的定位精确程度;此外,还能够通过与移动终端的交互,使得移动终端的使用者能够获取到佩戴者的当前所在位置,这样能够通过移动终端的使用者对佩戴者的位置监控,降低佩戴者发生危险的可能性;此外,还能够对佩戴者行为记录中的目标地址进行优化,以提高定位准确性。It can be seen that the implementation of the method described in FIG. 1 can improve the positioning accuracy of the wearable device; in addition, through the interaction with the mobile terminal, the user of the mobile terminal can obtain the current location of the wearer. The user of the mobile terminal monitors the position of the wearer to reduce the possibility of danger to the wearer; in addition, the target address in the wearer's behavior record can be optimized to improve positioning accuracy.
实施例二Embodiment 2
请参阅图2,图2是本发明实施例公开的另一种定位方法的流程示意图。如图2所示,该定位方法可以包括以下步骤:Please refer to FIG. 2 , which is a schematic flowchart of another positioning method disclosed in an embodiment of the present invention. As shown in Figure 2, the positioning method may include the following steps:
201、可穿戴设备检测是否发生用于触发可穿戴设备启动定位功能的启动操作,如果是,则执行步骤202,如果否,则执行步骤201。201. The wearable device detects whether an activation operation for triggering the activation of the positioning function of the wearable device occurs, if yes, execute
本发明实施例中,启动操作可以为用户向可穿戴设备输入语音(例如,我现在在哪里),也可以为用户按下可穿戴设备上的用于触发定位功能启动的实体按键,也可以为用户点触可穿戴设备屏幕上的用于触发定位功能启动的虚拟按键,也可以为用户开启可穿戴设备的开机操作(即,只要开机就启动定位功能),本发明实施例不做限定。In this embodiment of the present invention, the starting operation may be the user inputting a voice (for example, where am I now) to the wearable device, or the user may press a physical button on the wearable device that is used to trigger the starting of the positioning function, or the user may be The user touches the virtual button on the screen of the wearable device for triggering the activation of the positioning function, and also enables the booting operation of the wearable device for the user (ie, the positioning function is activated as long as the device is turned on), which is not limited in this embodiment of the present invention.
202、可穿戴设备检测是否存在至少一个Wi-Fi,如果是,则执行步骤203,如果否,则执行步骤204。202. The wearable device detects whether there is at least one Wi-Fi, and if yes, executes
203、可穿戴设备确定可穿戴设备检测到的至少一个Wi-Fi中每个Wi-Fi对应的预设地址。203. The wearable device determines a preset address corresponding to each Wi-Fi in the at least one Wi-Fi detected by the wearable device.
本发明实施例中,在可穿戴设备确定可穿戴设备检测到的至少一个Wi-Fi中每个Wi-Fi对应的预设地址之后,触发步骤205执行相应的操作。In this embodiment of the present invention, after the wearable device determines a preset address corresponding to each Wi-Fi in the at least one Wi-Fi detected by the wearable device,
204、可穿戴设备通过GPS确定出可穿戴设备的定位信息,并根据定位信息确定佩戴者的当前所在位置;其中,定位信息至少包括经度和纬度。204. The wearable device determines the positioning information of the wearable device through GPS, and determines the current location of the wearer according to the positioning information; wherein the positioning information at least includes longitude and latitude.
本发明实施例中,可选的,可穿戴设备根据定位信息确定佩戴者的当前所在位置的方式具体可以为:In this 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 the address location corresponding to the positioning information from the electronic map;
可穿戴设备将服务器返回的地址位置作为佩戴者的当前所在位置。The wearable device uses the address location returned by the server as the current location of the wearer.
本发明实施例中,在可穿戴设备通过GPS确定出可穿戴设备的定位信息,并根据定位信息确定佩戴者的当前所在位置之后,结束本次流程。In the embodiment of the present invention, after the wearable device determines the positioning information of the wearable device through GPS, and determines the current location of the wearer according to the positioning information, this process ends.
本发明实施例还可以包括:步骤205~步骤207,针对步骤205~步骤207的描述,请参照实施例一中针对步骤102~步骤104的详细描述,本发明实施例不再赘述。This embodiment of the present invention may further include
作为一种可选的实施方式,可穿戴设备从佩戴者行为记录中确定出当前时间对应的目标地址,可以包括以下步骤:As an optional implementation manner, the wearable device determines the target address corresponding to the current time from the wearer's behavior record, which may include the following steps:
可穿戴设备确定出当前时间;其中,当前时间至少包括当前日期和当前时刻;The wearable device determines the current time; wherein, the current time includes at least the current date and the current time;
可穿戴设备从佩戴者行为记录中确定出与当前日期对应的目标佩戴者行为记录,并从目标佩戴者行为记录中确定出当前时刻对应的时间段;The wearable device determines the target wearer's behavior record corresponding to the current date from the wearer's behavior record, and determines the time period corresponding to the current moment from the target wearer's behavior record;
可穿戴设备判断目标佩戴者行为记录中是否存在与时间段对应的地址,如果存在,则将时间段对应的地址作为当前时间对应的目标地址。The wearable device determines whether there is an address corresponding to the time period in the target wearer's behavior record, and if so, takes the address corresponding to the time period as the target address corresponding to the current time.
需要说明的是,可选的,在可穿戴设备判断出目标佩戴者行为记录中不存在与时间段对应的地址之后,还可以执行以下步骤:It should be noted that, optionally, after the wearable device determines that the address corresponding to the time period does not exist in the target wearer's behavior record, the following steps may also be performed:
可穿戴设备根据预设地址的相似度将检测到至少一个Wi-Fi进行分类,获得至少一个Wi-Fi子集;其中,每个Wi-Fi子集中任意两个Wi-Fi之间的预设地址相似度大于预设相似度;The wearable device classifies the detected at least one Wi-Fi according to the similarity of the preset addresses, and obtains at least one Wi-Fi subset; wherein, the preset between any two Wi-Fis in each Wi-Fi subset The address similarity is greater than the preset similarity;
可穿戴设备从至少一个Wi-Fi子集中确定出目标Wi-Fi子集;其中,目标Wi-Fi子集中的Wi-Fi数量大于任一其他Wi-Fi子集中的Wi-Fi数量;The wearable device determines a target Wi-Fi subset from at least one Wi-Fi subset; wherein, the number of Wi-Fis in the target Wi-Fi subset is greater than the number of Wi-Fis in any other Wi-Fi subset;
可穿戴设备从目标Wi-Fi子集中确定出某个Wi-Fi;其中,某个Wi-Fi的信号强度大于目标Wi-Fi子集中其他任一Wi-Fi的信号强度。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.
可见,在需要说明的可选方案中,可穿戴设备能够通过对Wi-Fi的分类以及对Wi-Fi信号强度的判定,提高对佩戴者当前所在位置的定位准确性。It can be seen that in the optional solution that needs to be explained, the wearable device can improve the positioning accuracy of the current location of the wearer by classifying Wi-Fi and judging the strength of Wi-Fi signals.
可见,实施该可选的实施方式,能够在目标佩戴者行为记录中不存在与当前时间对应的目标位置的情况下,将检测到的信号强度最强的Wi-Fi对应的预设地址作为当前所在位置,改善了用户对可穿戴设备的定位功能的体验。It can be seen that by implementing this optional embodiment, in the case where there is no target position corresponding to the current time in the target wearer's behavior record, the preset address corresponding to the Wi-Fi with the strongest detected signal strength can be used as the current The location improves the user's experience of the positioning function of the wearable device.
作为另一种可选的实施方式,在可穿戴设备检测到不存在至少一个Wi-Fi之后,以及在可穿戴设备通过GPS确定出可穿戴设备的定位信息之前,还可以包括以下操作:As another optional implementation manner, after the wearable device detects that at least one Wi-Fi does not exist, and before the wearable device determines the positioning information of the wearable device through GPS, the following operations may also be included:
可穿戴设备输出引导信息;其中,引导信息用于引导用户执行先开启飞行模式再关闭飞行模式的操作;The wearable device outputs guidance information; wherein the guidance information is used to guide the user to perform an operation of first turning on the flight mode and then turning off the flight mode;
可穿戴设备在检测到飞行模式的先开启再关闭操作之后,判断是否检测到至少一个Wi-Fi,如果是,则执行确定可穿戴设备检测到的至少一个Wi-Fi中每个Wi-Fi对应的预设地址的操作,如果否,则执行通过GPS确定出可穿戴设备的定位信息的操作。After the wearable device detects the operation of turning on and then turning off the airplane mode, it determines whether at least one Wi-Fi is detected. The operation of the preset address, if not, the operation of determining the positioning information of the wearable device through GPS is performed.
可见,实施该可选的实施方式,能够在未检测到Wi-Fi时通过引导用户执行先开启飞行模式再关闭飞行模式的操作,使得可穿戴设备重新搜索网络,优化由于可穿戴设备处于无网状态且未及时搜网,而造成的定位准确性不高的问题,进而提高可穿戴设备的定位准确性。It can be seen that by implementing this optional implementation, when Wi-Fi is not detected, the user can be guided to perform the operation of first turning on the airplane mode and then turning off the airplane mode, so that the wearable device can search for the network again, and the wearable device can be optimized because the wearable device is in a networkless state. The status of the wearable device is not searched in time, resulting in the problem of low positioning accuracy, thereby improving the positioning accuracy of the wearable device.
可见,实施图2所描述的方法,能够提高可穿戴设备的定位精确程度;此外,还能够通过与移动终端的交互,使得移动终端的使用者能够获取到佩戴者的当前所在位置,这样能够通过移动终端的使用者对佩戴者的位置监控,降低佩戴者发生危险的可能性;此外,还能够对佩戴者行为记录中的目标地址进行优化,以提高定位准确性;此外,还能够改善用户对可穿戴设备的定位功能的体验。It can be seen that the implementation of the method described in FIG. 2 can improve the positioning accuracy of the wearable device; in addition, the user of the mobile terminal can obtain the current location of the wearer through the interaction with the mobile terminal. The user of the mobile terminal monitors the position of the wearer to reduce the possibility of danger to the wearer; in addition, the target address in the wearer's behavior record can be optimized to improve the positioning accuracy; Experience with the positioning function of wearable devices.
实施例三Embodiment 3
请参阅图3,图3是本发明实施例公开的又一种定位方法的流程示意图。如图3所示该定位方法可以包括以下步骤:Please refer to FIG. 3 , which is a schematic flowchart of another positioning method disclosed by an embodiment of the present invention. As shown in Figure 3, the positioning method may include the following steps:
301、可穿戴设备检测是否发生用于触发可穿戴设备启动定位功能的启动操作,如果是,则执行步骤302,如果否,则执行步骤301。301. The wearable device detects whether a start operation for triggering the wearable device to start the positioning function occurs, if yes, execute
302、可穿戴设备检测是否存在至少一个Wi-Fi,如果是,则执行步骤304,如果否,则执行步骤303。302. The wearable device detects whether there is at least one Wi-Fi, and if yes, executes
303、可穿戴设备通过GPS确定出可穿戴设备的定位信息,并根据定位信息确定佩戴者的当前所在位置;其中,定位信息至少包括经度和纬度。303. The wearable device determines the positioning information of the wearable device through GPS, and determines the current location of the wearer according to the positioning information; wherein the positioning information at least includes longitude and latitude.
本发明实施例中,在可穿戴设备通过GPS确定出可穿戴设备的定位信息,并根据定位信息确定佩戴者的当前所在位置之后,结束本次流程。In the embodiment of the present invention, after the wearable device determines the positioning information of the wearable device through GPS, and determines the current location of the wearer according to the positioning information, this process ends.
304、可穿戴设备判断检测到的至少一个Wi-Fi中是否存在未建立过连接的Wi-Fi;其中,未建立过连接的Wi-Fi无对应的预设地址;如果是,则执行步骤309,如果否,则执行步骤305。304. The wearable device determines whether there is a Wi-Fi that has not been connected in the detected at least one Wi-Fi; wherein, the Wi-Fi that has not been connected has no corresponding preset address; if so, go to step 309 , if not, go to step 305.
305、可穿戴设备确定可穿戴设备检测到的至少一个Wi-Fi中每个Wi-Fi对应的预设地址。305. The wearable device determines a preset address corresponding to each Wi-Fi in the at least one Wi-Fi detected by the wearable device.
本发明实施例还可以包括:步骤306~步骤308,针对步骤306~步骤308的描述,请参照实施例一中针对步骤102~步骤104的详细描述,本发明实施例不再赘述。This embodiment of the present invention may further include
本发明实施例中,在可穿戴设备从所有预设地址中确定出与目标地址的匹配度最高的目标预设地址,并将目标预设地址作为佩戴者的当前所在位置之后,结束本次流程。In the embodiment of the present 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 uses the target preset address as the current location of the wearer, this process ends. .
309、可穿戴设备输出用于提示佩戴者为未建立过连接的Wi-Fi设置地址的提示信息。309. The wearable device outputs prompt information for prompting the wearer to set an address for the Wi-Fi for which no connection has been established.
310、可穿戴设备检测预设时长内是否发生设置地址操作;其中,预设时长的起始计时时刻为输出提示信息的时刻;如果是,则执行步骤311,如果否,则执行步骤312。310. The wearable device detects whether an address setting operation occurs within the preset duration; wherein, the starting timing of the preset duration is the timing of outputting the prompt information; if yes, go to step 311, if not, go to step 312.
本发明实施例中,设置地址操作可以为用户通过可穿戴设备的设置功能输入某个地址,也可以为与可穿戴设备建立连接的移动终端通过远程控制,将包含某个地址的目标指令发送给可穿戴设备,本发明实施例不做限定。In this embodiment of the present invention, the address setting operation may be for the user to input a certain address through the setting function of the wearable device, or for the mobile terminal that establishes a connection with the wearable device to send a target instruction including a certain address to the mobile terminal through remote control. The wearable device is not limited in this embodiment of the present invention.
311、可穿戴设备将设置地址操作对应的某个地址作为未建立过连接的Wi-Fi的预设地址。311. The wearable device uses an address corresponding to the address setting operation as a preset address of the Wi-Fi for which no connection has been established.
本发明实施例中,如果存在多个未建立过连接的Wi-Fi的预设地址,可穿戴设备可以提示用户对应每个未建立过连接的Wi-Fi设置一个地址。In the embodiment of the present invention, if there are multiple preset addresses of Wi-Fi for which no connection has been established, the wearable device may prompt the user to set an address for each Wi-Fi for which no connection has been established.
本发明实施例中,在可穿戴设备将设置地址操作对应的某个地址作为未建立过连接的Wi-Fi的预设地址之后,触发步骤305执行相应的操作。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 for which no connection has been established,
312、可穿戴设备确定未建立过连接的Wi-Fi对应的MAC地址,并向服务器发送位置获取请求;其中,位置获取请求用于获取MAC地址对应的地理位置。312. The wearable device determines the MAC address corresponding to the Wi-Fi for which no connection has been established, and sends a location acquisition request to the server, where the location acquisition request is used to acquire the geographic location corresponding to the MAC address.
313、可穿戴设备将服务器向可穿戴设备返回的地理位置作为未建立过连接的Wi-Fi的预设地址。313. The wearable device uses the geographic location returned by the server to the wearable device as the preset address of the Wi-Fi for which no connection has been established.
本发明实施例中,在可穿戴设备将服务器向可穿戴设备返回的地理位置作为未建立过连接的Wi-Fi的预设地址之后,触发步骤305执行相应的操作。In this embodiment of the present invention, after the wearable device uses the geographic location returned by the server to the wearable device as the preset address of the Wi-Fi for which no connection has been established,
可见,实施图3所描述的方法,能够提高可穿戴设备的定位精确程度;此外,还能够通过与移动终端的交互,使得移动终端的使用者能够获取到佩戴者的当前所在位置,这样能够通过移动终端的使用者对佩戴者的位置监控,降低佩戴者发生危险的可能性;此外,还能够对佩戴者行为记录中的目标地址进行优化,以提高定位准确性;此外,还能够改善用户对可穿戴设备的定位功能的体验。It can be seen that implementing the method described in FIG. 3 can improve the positioning accuracy of the wearable device; in addition, the user of the mobile terminal can obtain the current location of the wearer through the interaction with the mobile terminal. The user of the mobile terminal monitors the position of the wearer to reduce the possibility of danger to the wearer; in addition, the target address in the wearer's behavior record can be optimized to improve the positioning accuracy; Experience with the positioning function of wearable devices.
实施例四Embodiment 4
请参阅图4,图4是本发明实施例公开的一种可穿戴设备的结构示意图。如图4所示,该可穿戴设备可以包括:第一确定单元401、第二确定单元402、第三确定单元403以及第四确定单元404,其中:Please refer to FIG. 4 , which is a schematic structural diagram of a wearable device disclosed in an embodiment of the present invention. As shown in FIG. 4 , the wearable device may include: a
第一确定单元401,用于确定可穿戴设备检测到的至少一个Wi-Fi中每个Wi-Fi对应的预设地址。The first determining
本发明实施例中,每个Wi-Fi对应的预设地址可以是用户预先设定的。In this embodiment of the present invention, the preset address corresponding to each Wi-Fi may be preset by a user.
第二确定单元402,用于从佩戴者行为记录中确定出当前时间对应的目标地址;其中,佩戴者行为记录至少包括可穿戴设备所记录的佩戴者在不同时间分别对应的地址。The second determining
本发明实施例中,佩戴者行为记录中所记录的是佩戴者在不同时间对应的地址,举例来说,如果佩戴者行为记录中记录有星期一上午九点对应的地址为A学校基础教学楼1001室,那么,也就是说佩戴者在每个星期一上午九点通常会在A学校基础教学楼1001室。此外,佩戴者行为记录中记录的不同时间对应的地址可以是用户在可穿戴设备端设置的,也可以是与可穿戴设备建立连接的移动终端通过远程操控设定的,也可以是可穿戴设备通过实时获取用户的所在位置以及对实时获取到的多个所在位置进行分析确定出的,本发明实施例不作限定。In the embodiment of the present invention, what is recorded in the wearer's behavior record is the address corresponding to the wearer at different times. For example, if the wearer's behavior record records that the address corresponding to 9:00 am on Monday is the basic teaching building of School A Room 1001, then, that means that the wearer will usually be in Room 1001 of the Basic Teaching Building of School A at 9:00 am every Monday. In addition, the addresses corresponding to different times recorded in the wearer's behavior record can be set by the user on the wearable device, or set by the mobile terminal that establishes a connection with the wearable device through remote control, or the wearable device It is determined by acquiring the location of the user in real time and analyzing multiple locations acquired in real time, which is not limited in this embodiment of the present invention.
第三确定单元403,用于确定目标地址与每个预设地址的匹配度。The third determining
第四确定单元404,用于从所有预设地址中确定出与目标地址的匹配度最高的目标预设地址,并将目标预设地址作为佩戴者的当前所在位置。The fourth determining
作为一种可选的实施方式,第一确定单元401,还可以用于在确定可穿戴设备检测到的至少一个Wi-Fi中每个Wi-Fi对应的预设地址之前,检测是否发生用于开启定位功能的定位操作(例如,用户按下用于开启定位功能的实体/虚拟按键);As an optional implementation manner, the first determining
如果检测到发生定位操作,则判断是否检测到至少一个Wi-Fi,如果检测到至少一个Wi-Fi,则执行确定可穿戴设备检测到的至少一个Wi-Fi中每个Wi-Fi对应的预设地址的操作。If a positioning operation is detected, it is determined whether at least one Wi-Fi is detected, and if at least one Wi-Fi is detected, it is determined that the preset corresponding to each Wi-Fi in the at least one Wi-Fi detected by the wearable device is executed. The operation of setting the address.
可见,实施该可选的实施方式,可穿戴设备的佩戴者(例如,儿童)在迷路时,可以通过本方法获知自己的实时位置,以便于及时通知监护人,降低了家长不在身边时儿童发生危险的可能性。It can be seen that, by implementing this optional embodiment, when the wearer of the wearable device (for example, a child) is lost, he can obtain his real-time position through this method, so as to notify the guardian in time, and reduce the danger to the child when the parent is not around possibility.
作为另一种可选的实施方式,第一确定单元401,还可以用于在确定可穿戴设备检测到的至少一个Wi-Fi中每个Wi-Fi对应的预设地址之前,检测是否接收到由移动终端(例如,家长的手机)发送的位置获取请求,其中,移动终端与可穿戴设备已建立连接;As another optional implementation manner, the first determining
如果接收到位置获取请求,则判断是否检测到至少一个Wi-Fi,如果检测到至少一个Wi-Fi,则执行确定可穿戴设备检测到的至少一个Wi-Fi中每个Wi-Fi对应的预设地址的操作。If a location acquisition request is received, it is determined whether at least one Wi-Fi is detected, and if at least one Wi-Fi is detected, the pre-determination corresponding to each Wi-Fi in the at least one Wi-Fi detected by the wearable device is executed. The operation of setting the address.
可见,实施该可选的实施方式,移动终端的使用者(例如,家长)能够通过移动终端向可穿戴设备发送位置获取请求,以获取儿童的实时位置,进而达到对儿童的所在位置进行监测的目的,保护儿童的人身安全。It can be seen that, by implementing this optional embodiment, the user of the mobile terminal (for example, a parent) can send a location acquisition request to the wearable device through the mobile terminal to acquire the real-time location of the child, thereby achieving the goal of monitoring the location of the child. The purpose is to protect the personal safety of children.
作为又一种可选的实施方式,第四确定单元404,还可以用于在从所有预设地址中确定出与目标地址的匹配度最高的目标预设地址之后,以及在将目标预设地址作为佩戴者的当前所在位置之前,判断目标地址与目标预设地址的匹配度是否高于预设匹配度;As another optional implementation manner, the fourth determining
如果高于预设匹配度,则执行将目标预设地址作为佩戴者的当前所在位置的操作;If it is higher than the preset matching degree, perform the operation of taking the target preset address as the current location of the wearer;
如果不高于预设匹配度,则输出位置异常信息并向与可穿戴设备建立连接的移动终端发送用于表示用户处于异常位置的告警信号;其中,位置异常信息用于表示可穿戴设备当前所在位置异常。If it is not higher than the preset matching degree, output location abnormality information and send an alarm signal indicating that the user is in an abnormal location to the mobile terminal that establishes a connection with the wearable device; wherein, the location abnormality information is used to indicate that the wearable device is currently located. Abnormal location.
可见,实施该可选的实施方式,能够当目标地址与目标预设地址的匹配度未高于预设匹配度时,输出定位异常信息以及发送告警信号,这样能够在儿童与目标地址较远时,向家长发送告警信号,以使得家长能够及时联系儿童并施以援助,进而保护儿童的人身安全。It can be seen that, by implementing this optional embodiment, when the matching degree between the target address and the target preset address is not higher than the preset matching degree, the abnormal positioning information can be output and the alarm signal can be sent, so that when the child is far away from the target address , to send an alarm signal to parents, so that parents can contact the child in time and provide assistance, thereby protecting the personal safety of the child.
作为又一种可选的实施方式,第四确定单元404,还可以用于在将目标预设地址作为佩戴者的当前所在位置之后,输出当前所在位置以及用于询问用户当前所在位置是否准确的询问信息;As another optional implementation manner, the
如果检测到用于表示当前所在位置准确的操作,根据目标预设地址对目标地址进行优化;If an operation that indicates the current location is accurate is detected, the target address is optimized according to the target preset address;
如果检测到用于表示当前所在位置不准确的操作,根据信号强度由高到低的顺序从检测到的至少一个Wi-Fi中确定出3个Wi-Fi;其中,上述3个Wi-Fi中存在某个Wi-Fi为检测到的至少一个Wi-Fi中信号强度最强的一个Wi-Fi;If an operation indicating that the current location is inaccurate is detected, three Wi-Fis are determined from the detected at least one Wi-Fi in order of signal strength from high to low; among the three Wi-Fis above There is a Wi-Fi with the strongest signal strength among the at least one detected Wi-Fi;
分别确定上述3个Wi-Fi的MAC地址;Determine the MAC addresses of the above three Wi-Fis respectively;
根据确定出的上述3个Wi-Fi的信号强度和上述3个Wi-Fi的MAC地址,确定出上述3个Wi-Fi分别和可穿戴设备之间的距离;According to the determined signal strengths of the three Wi-Fis and the MAC addresses of the three Wi-Fis, determine the distances between the three Wi-Fis and the wearable device;
根据上述3个Wi-Fi分别和可穿戴设备之间的距离确定出佩戴者的当前所在位置。The current location of the wearer is determined according to the distances between the above three Wi-Fi devices and the wearable device.
可见,实施该可选的实施方式,能够在当前所在位置定位准确的情况下根据目标预设地址对佩戴者行为记录中的目标地址进行优化,以使得佩戴者行为记录中所记录的地址更为准确,进而提高定位精确程度;此外,还能够在当前所在位置定位不准确的情况下,通过Wi-Fi三角定位法确定佩戴者的当前所在位置,为用户提供了更好的定位体验。It can be seen that by implementing this optional embodiment, the target address in the wearer's behavior record can be optimized according to the target preset address when the current location is accurately positioned, so that the address recorded in the wearer's behavior record is more accurate. In addition, the current location of the wearer can be determined by the Wi-Fi triangulation method when the current location is not accurate, providing users with a better location experience.
可见,实施图4所描述的可穿戴设备,能够提高可穿戴设备的定位精确程度;此外,还能够通过与移动终端的交互,使得移动终端的使用者能够获取到佩戴者的当前所在位置,这样能够通过移动终端的使用者对佩戴者的位置监控,降低佩戴者发生危险的可能性;此外,还能够对佩戴者行为记录中的目标地址进行优化,以提高定位准确性。It can be seen that the implementation of the wearable device described in FIG. 4 can improve the positioning accuracy of the wearable device; in addition, the user of the mobile terminal can obtain the current location of the wearer through the interaction with the mobile terminal, so that The position of the wearer can be monitored by the user of the mobile terminal to reduce the possibility of the wearer being in danger; in addition, the target address in the wearer's behavior record can be optimized to improve the positioning accuracy.
实施例五Embodiment 5
请参阅图5,图5是本发明实施例公开的另一种可穿戴设备的结构示意图。其中,图5所示的可穿戴设备是由图4所示的可穿戴设备进行优化得到的。与图4所示的可穿戴设备相比较,图5所示的可穿戴设备中还可以包括:检测单元405和第五确定单元406,其中:Please refer to FIG. 5 , which is a schematic structural diagram of another wearable device disclosed in an embodiment of the present invention. The wearable device shown in FIG. 5 is obtained by optimizing 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
第二确定单元402用于从佩戴者行为记录中确定出当前时间对应的目标地址的方式具体为:The manner in which the second determining
第二确定单元402,用于确定出当前时间;其中,当前时间至少包括当前日期和当前时刻;从佩戴者行为记录中确定出与当前日期对应的目标佩戴者行为记录,并从目标佩戴者行为记录中确定出当前时刻对应的时间段;判断目标佩戴者行为记录中是否存在与时间段对应的地址,如果存在,则将时间段对应的地址作为当前时间对应的目标地址。The second determining
需要说明的是,可选的,第二确定单元402,还可以用于在判断出目标佩戴者行为记录中不存在与时间段对应的地址之后,根据预设地址的相似度将检测到至少一个Wi-Fi进行分类,获得至少一个Wi-Fi子集;其中,每个Wi-Fi子集中任意两个Wi-Fi之间的预设地址相似度大于预设相似度;It should be noted that, optionally, the second determining
从至少一个Wi-Fi子集中确定出目标Wi-Fi子集;其中,目标Wi-Fi子集中的Wi-Fi数量大于任一其他Wi-Fi子集中的Wi-Fi数量;determining a target Wi-Fi subset from at least one Wi-Fi subset; wherein the number of Wi-Fis in the target Wi-Fi subset is greater than the number of Wi-Fis in any other Wi-Fi subset;
从目标Wi-Fi子集中确定出某个Wi-Fi;其中,某个Wi-Fi的信号强度大于目标Wi-Fi子集中其他任一Wi-Fi的信号强度。A certain Wi-Fi is determined 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.
可见,在需要说明的可选方案中,能够通过对Wi-Fi的分类以及对Wi-Fi信号强度的判定,提高对佩戴者当前所在位置的定位准确性。It can be seen that, in the optional solution to be explained, the positioning accuracy of the current position of the wearer can be improved by classifying Wi-Fi and determining the strength of Wi-Fi signal.
可见,实施本发明实施例,能够在目标佩戴者行为记录中不存在与当前时间对应的目标位置的情况下,将检测到的信号强度最强的Wi-Fi对应的预设地址作为当前所在位置,改善了用户对可穿戴设备的定位功能的体验。It can be seen that by implementing the embodiment of the present invention, in the case where there is no target position corresponding to the current time in the target wearer's behavior record, the preset address corresponding to the Wi-Fi with the strongest detected signal strength can be used as the current position. , which improves the user's experience of the wearable device's positioning function.
检测单元405,用于在第一确定单元401确定可穿戴设备检测到的至少一个Wi-Fi中每个Wi-Fi对应的预设地址之前,检测是否发生用于触发可穿戴设备启动定位功能的启动操作。The
本发明实施例中,启动操作可以为用户向可穿戴设备输入语音(例如,我现在在哪里),也可以为用户按下可穿戴设备上的用于触发定位功能启动的实体按键,也可以为用户点触可穿戴设备屏幕上的用于触发定位功能启动的虚拟按键,也可以为用户开启可穿戴设备的开机操作(即,只要开机就启动定位功能),本发明实施例不做限定。In this embodiment of the present invention, the starting operation may be the user inputting a voice (for example, where am I now) to the wearable device, or the user may press a physical button on the wearable device that is used to trigger the starting of the positioning function, or the user may be The user touches the virtual button on the screen of the wearable device for triggering the activation of the positioning function, and also enables the booting operation of the wearable device for the user (ie, the positioning function is activated as long as the device is turned on), which is not limited in this embodiment of the present invention.
检测单元405,还用于在检测到发生启动操作之后,检测是否存在至少一个Wi-Fi。The
第一确定单元401,具体用于在检测单元405检测到存在至少一个Wi-Fi之后,确定可穿戴设备检测到的至少一个Wi-Fi中每个Wi-Fi对应的预设地址。The first determining
第五确定单元406,用于在检测单元405检测到不存在至少一个Wi-Fi之后,通过GPS确定出可穿戴设备的定位信息,并根据定位信息确定佩戴者的当前所在位置;其中,定位信息至少包括经度和纬度。The
本发明实施例中,可选的,第五确定单元406根据定位信息确定佩戴者的当前所在位置的方式具体可以为:In the embodiment of the present invention, optionally, the manner in which the fifth determining
向服务器发送定位信息,以使得服务器从电子地图中确定出与定位信息对应的地址位置;Sending positioning information to the server, so that the server determines the address position corresponding to the positioning information from the electronic map;
将服务器返回的地址位置作为佩戴者的当前所在位置。Use the address location returned by the server as the current location of the wearer.
作为一种可选的实施方式,第一确定单元401,还可以用于在检测单元405检测到不存在至少一个Wi-Fi之后,以及在通过GPS确定出可穿戴设备的定位信息之前,输出引导信息;其中,引导信息用于引导用户执行先开启飞行模式再关闭飞行模式的操作;As an optional implementation manner, the first determining
在检测到飞行模式的先开启再关闭操作之后,判断是否检测到至少一个Wi-Fi,如果是,则执行确定可穿戴设备检测到的至少一个Wi-Fi中每个Wi-Fi对应的预设地址的操作,如果否,则执行通过GPS确定出可穿戴设备的定位信息的操作。After detecting the operation of turning on and then turning off the airplane mode, it is determined whether at least one Wi-Fi is detected, and if so, the preset corresponding to each Wi-Fi in the at least one Wi-Fi detected by the wearable device is executed. The operation of the address, if not, the operation of determining the positioning information of the wearable device through GPS is performed.
可见,实施该可选的实施方式,能够在未检测到Wi-Fi时通过引导用户执行先开启飞行模式再关闭飞行模式的操作,使得可穿戴设备重新搜索网络,优化由于可穿戴设备处于无网状态且未及时搜网,而造成的定位准确性不高的问题,进而提高可穿戴设备的定位准确性。It can be seen that by implementing this optional implementation, when Wi-Fi is not detected, the user can be guided to perform the operation of first turning on the airplane mode and then turning off the airplane mode, so that the wearable device can search for the network again, and the wearable device can be optimized because the wearable device is in a networkless state. The status of the wearable device is not searched in time, resulting in the problem of low positioning accuracy, thereby improving the positioning accuracy of the wearable device.
可见,实施图5所描述的可穿戴设备,能够提高可穿戴设备的定位精确程度;此外,还能够通过与移动终端的交互,使得移动终端的使用者能够获取到佩戴者的当前所在位置,这样能够通过移动终端的使用者对佩戴者的位置监控,降低佩戴者发生危险的可能性;此外,还能够对佩戴者行为记录中的目标地址进行优化,以提高定位准确性;此外,还能够改善用户对可穿戴设备的定位功能的体验。It can be seen that the implementation of the wearable device described in FIG. 5 can improve the positioning accuracy of the wearable device; in addition, the user of the mobile terminal can obtain the current location of the wearer through the interaction with the mobile terminal, so that The position of the wearer can be monitored by the user of the mobile terminal to reduce the possibility of danger to the wearer; in addition, the target address in the wearer's behavior record can be optimized to improve the positioning accuracy; User experience of the wearable's positioning capabilities.
实施例六Embodiment 6
请参阅图6,图6是本发明实施例公开的又一种可穿戴设备的结构示意图。其中,图6所示的可穿戴设备是由图5所示的可穿戴设备进行优化得到的。与图5所示的可穿戴设备相比较,图6所示的可穿戴设备还可以包括:判断单元407、输出单元408、第六确定单元409以及第七确定单元410,其中:Please refer to FIG. 6. FIG. 6 is a schematic structural diagram of another wearable device disclosed in an embodiment of the present invention. The wearable device shown in FIG. 6 is obtained by optimizing the wearable device shown in FIG. 5 . Compared with the wearable device shown in FIG. 5 , the wearable device shown in FIG. 6 may further include: a
判断单元407,用于在检测单元405检测到存在至少一个Wi-Fi之后,以及在第一确定单元401确定可穿戴设备检测到的至少一个Wi-Fi中每个Wi-Fi对应的预设地址之前,判断检测到的至少一个Wi-Fi中是否存在未建立过连接的Wi-Fi;其中,未建立过连接的Wi-Fi无对应的预设地址。The
第一确定单元401,具体用于在检测单元405检测到存在至少一个Wi-Fi之后,以及在判断单元407判断出不存在未建立过连接的Wi-Fi之后,确定可穿戴设备检测到的至少一个Wi-Fi中每个Wi-Fi对应的预设地址。The
输出单元408,用于在判断单元407判断出存在未建立过连接的Wi-Fi之后,输出用于提示佩戴者为未建立过连接的Wi-Fi设置地址的提示信息。The
检测单元405,还用于检测预设时长内是否发生设置地址操作;其中,预设时长的起始计时时刻为输出提示信息的时刻。The
本发明实施例中,设置地址操作可以为用户通过可穿戴设备的设置功能输入某个地址,也可以为与可穿戴设备建立连接的移动终端通过远程控制,将包含某个地址的目标指令发送给可穿戴设备,本发明实施例不做限定。In this embodiment of the present invention, the address setting operation may be for the user to input a certain address through the setting function of the wearable device, or for the mobile terminal that establishes a connection with the wearable device to send a target instruction including a certain address to the mobile terminal through remote control. The wearable device is not limited in this embodiment of the present invention.
第六确定单元409,用于在检测单元405检测到发生设置地址操作之后,将设置地址操作对应的某个地址作为未建立过连接的Wi-Fi的预设地址,并确定可穿戴设备检测到的至少一个Wi-Fi中每个Wi-Fi对应的预设地址。The
本发明实施例中,可选的,如果存在多个未建立过连接的Wi-Fi的预设地址,第六确定单元409还可以用于输出用于提示用户对应每个未建立过连接的Wi-Fi设置一个地址的提示信息。In this embodiment of the present invention, optionally, if there are multiple preset addresses of Wi-Fi for which no connection has been established, the sixth determining
本发明实施例中,在第六确定单元409确定可穿戴设备检测到的至少一个Wi-Fi中每个Wi-Fi对应的预设地址之后,触发判断子单元4021执行判断佩戴者行为记录中是否存在当前时间对应的目标地址的操作。In this embodiment of the present invention, after the
第七确定单元410,用于在检测单元405检测到预设时长内未发生设置地址操作之后,确定未建立过连接的Wi-Fi对应的MAC地址,并向服务器发送位置获取请求;其中,位置获取请求用于获取MAC地址对应的地理位置。The
第七确定单元410,还用于将服务器向可穿戴设备返回的地理位置作为未建立过连接的Wi-Fi的预设地址,并确定可穿戴设备检测到的至少一个Wi-Fi中每个Wi-Fi对应的预设地址。The
本发明实施例中,在第七确定单元410确定可穿戴设备检测到的至少一个Wi-Fi中每个Wi-Fi对应的预设地址之后,触发判断子单元4021执行判断佩戴者行为记录中是否存在当前时间对应的目标地址的操作。In this embodiment of the present invention, after the
可见,实施图6所描述的可穿戴设备,能够提高可穿戴设备的定位精确程度;此外,还能够通过与移动终端的交互,使得移动终端的使用者能够获取到佩戴者的当前所在位置,这样能够通过移动终端的使用者对佩戴者的位置监控,降低佩戴者发生危险的可能性;此外,还能够对佩戴者行为记录中的目标地址进行优化,以提高定位准确性;此外,还能够改善用户对可穿戴设备的定位功能的体验。It can be seen that the implementation of the wearable device described in FIG. 6 can improve the positioning accuracy of the wearable device; in addition, through the interaction with the mobile terminal, the user of the mobile terminal can obtain the current location of the wearer, so The position of the wearer can be monitored by the user of the mobile terminal to reduce the possibility of danger to the wearer; in addition, the target address in the wearer's behavior record can be optimized to improve the positioning accuracy; User experience of the wearable's positioning capabilities.
实施例七Embodiment 7
请参阅图7,图7是本发明实施例公开的又一种可穿戴设备的结构示意图。如图7所示,为了便于说明,仅示出了与本发明实施例相关的部分,具体技术细节未揭示的,请参照本发明实施例方法部分。Please refer to FIG. 7. FIG. 7 is a schematic structural diagram of another wearable device disclosed in an embodiment of the present invention. As shown in FIG. 7 , for the convenience of description, only the part related to the embodiment of the present invention is shown, and the specific technical details are not disclosed, please refer to the method part of the embodiment of the present invention.
参考图7,可穿戴设备包括:射频(Radio Frequency,RF)电路710、存储器720、输入单元730、显示单元740、传感器750、音频电路760、无线保真(wireless fidelity,Wi-Fi)模块770、处理器780、电源790以及摄像头800等部件。本领域技术人员可以理解,图7中示出的可穿戴设备结构并不构成对可穿戴设备的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。Referring to FIG. 7 , the wearable device includes: a radio frequency (RF)
下面结合图7对可穿戴设备的各个构成部件进行具体的介绍:The following describes the various components of the wearable device in detail with reference to Figure 7:
RF电路710可用于收发信息或通话过程中,信号的接收和发送,特别地,将基站的下行信息接收后,给处理器780处理;另外,将设计上行的数据发送给基站。通常,RF电路710包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器(Low NoiseAmplifier,LNA)、双工器等。此外,RF电路710还可以通过无线通信与网络和其他设备通信。上述无线通信可以使用任一通信标准或协议,包括但不限于全球移动通讯系统(GlobalSystem of Mobile communication,GSM)、通用分组无线服务(General Packet RadioService,GPRS)、码分多址(Code Division Multiple Access,CDMA)、宽带码分多址(Wideband Code Division Multiple Access,WCDMA)、长期演进(Long Term Evolution,LTE)、电子邮件、短消息服务(Short Messaging Service,SMS)等。The
存储器720可用于存储可执行程序代码,处理器780通过运行存储在存储器720的可执行程序代码,从而执行可穿戴设备的各种功能应用以及数据处理。存储器720可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据可穿戴设备的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器720可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The
上述存储器720包括只读存储器(Read-Only Memory,ROM)、随机存储器(RandomAccess Memory,RAM)、可编程只读存储器(Programmable Read-only Memory,PROM)、可擦除可编程只读存储器(Erasable Programmable Read Only Memory,EPROM)、一次可编程只读存储器(One-time Programmable Read-Only Memory,OTPROM)、电子抹除式可复写只读存储器(Electrically-Erasable Programmable Read-Only Memory,EEPROM)、只读光盘(Compact Disc Read-Only Memory,CD-ROM)或其他光盘存储器、磁盘存储器、磁带存储器、或者能够用于携带或存储数据的计算机可读的任何其他介质。The above-mentioned
输入单元730可用于接收输入的数字或字符信息,以及产生与可穿戴设备的用户设置以及功能控制有关的键信号输入。具体地,输入单元730可包括触控面板731以及其他输入设备732。触控面板731,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板731上或在触控面板731附近的操作),并根据预先设定的程式驱动相应的连接装置。可选的,触控面板731可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器780,并能接收处理器780发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板731。除了触控面板731,输入单元730还可以包括其他输入设备732。具体地,其他输入设备732可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。The
显示单元740可用于显示由用户输入的信息或提供给用户的信息以及可穿戴设备的各种菜单。显示单元740可包括显示面板741,可选的,可以采用液晶显示器(LiquidCrystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板741。进一步的,触控面板731可覆盖显示面板741,当触控面板731检测到在其上或附近的触摸操作后,传送给处理器780以确定触摸事件的类型,随后处理器780根据触摸事件的类型在显示面板741上提供相应的视觉输出。虽然在图7中,触控面板731与显示面板741是作为两个独立的部件来实现可穿戴设备的输入和输入功能,但是在某些实施例中,可以将触控面板731与显示面板741集成而实现可穿戴设备的输入和输出功能。The
可穿戴设备还可包括至少一种传感器750,比如光传感器、运动传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板741的亮度,接近传感器可在可穿戴设备移动到耳边时,关闭显示面板741和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别可穿戴设备姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;至于可穿戴设备还可配置的陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。The wearable device may also include at least one
音频电路760、扬声器761,传声器762可提供用户与可穿戴设备之间的音频接口。音频电路760可将接收到的音频数据转换后的电信号,传输到扬声器761,由扬声器761转换为声音信号输出;另一方面,传声器762将收集的声音信号转换为电信号,由音频电路760接收后转换为音频数据,再将音频数据输出处理器780处理后,经RF电路710以发送给比如另一可穿戴设备,或者将音频数据输出至存储器720以便进一步处理。
Wi-Fi属于短距离无线传输技术,可穿戴设备通过Wi-Fi模块770可以帮助用户收发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带互联网访问。虽然图7示出了Wi-Fi模块770,但是可以理解的是,其并不属于可穿戴设备的必须构成,完全可以根据需要在不改变发明的本质的范围内而省略。Wi-Fi is a short-range wireless transmission technology, and the wearable device can help users to send and receive emails, browse web pages, and access streaming media through the Wi-
处理器780是可穿戴设备的控制中心,利用各种接口和线路连接整个可穿戴设备的各个部分,通过运行或执行存储在存储器720内的软件程序和/或模块,以及调用存储在存储器720内的数据,执行可穿戴设备的各种功能和处理数据,从而对可穿戴设备进行整体监控。可选的,处理器780可包括一个或多个处理单元;优选的,处理器780可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器780中。The
可穿戴设备还包括给各个部件供电的电源790(比如电池),优选的,电源可以通过电源管理系统与处理器780逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The wearable device also includes a power supply 790 (such as a battery) for supplying power to various components. Preferably, the power supply can be logically connected to the
尽管未示出,可穿戴设备还可以包括蓝牙模块等,在此不再赘述。Although not shown, the wearable device may also include a Bluetooth module, etc., which will not be described herein again.
在本发明实施例中,该可穿戴设备所包括的处理器780调用存储在存储器720内的软件程序具体执行以下操作:In this embodiment of the present invention, the
确定可穿戴设备检测到的至少一个Wi-Fi中每个Wi-Fi对应的预设地址;Determine the preset address corresponding to each Wi-Fi in the at least one Wi-Fi detected by the wearable device;
从佩戴者行为记录中确定出当前时间对应的目标地址;其中,佩戴者行为记录至少包括可穿戴设备所记录的佩戴者在不同时间分别对应的地址;The target address corresponding to the current time is determined from the wearer's behavior record; wherein, the wearer's behavior record at least includes the addresses corresponding to the wearer at different times recorded by the wearable device;
确定目标地址与每个预设地址的匹配度;Determine how well the target address matches each preset address;
从所有预设地址中确定出与目标地址的匹配度最高的目标预设地址,并将目标预设地址作为佩戴者的当前所在位置。The target preset address with the highest matching degree with the target address is determined from all the preset addresses, and the target preset address is used as the current location of the wearer.
可见,实施图7所描述的可穿戴设备,能够提高可穿戴设备的定位精确程度。It can be seen that, implementing the wearable device described in FIG. 7 can improve the positioning accuracy of the wearable device.
本发明实施例还公开了一种计算机可读存储介质,其存储计算机程序,其中,所述计算机程序使得计算机执行本发明实施例一~实施例三公开的一种定位方法。An embodiment of the present invention further discloses a computer-readable storage medium, which stores a computer program, wherein the computer program enables a computer to execute a positioning method disclosed in Embodiments 1 to 3 of the present invention.
本发明实施例还公开了一种计算机程序产品,当所述计算机程序产品在计算机上运行时,使得所述计算机执行本发明实施例一~实施例三公开的一种定位方法。The embodiment of the present invention also discloses a computer program product, which, when the computer program product runs on a computer, causes the computer to execute a positioning method disclosed in Embodiments 1 to 3 of the present invention.
以上对本发明实施例公开的一种定位方法及可穿戴设备进行了详细介绍,本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的一般技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。A positioning method and a wearable device disclosed in the embodiments of the present invention have been described above in detail. The principles and implementations of the present invention are described in this paper by using specific examples. The descriptions of the above embodiments are only used to help understand the present invention. At the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation and application scope. In summary, the content of this specification should not be construed as Limitations of the present invention.
在上述实施例中,可全部或部分地通过软件、硬件、固件或其任意组合来实现。当使用软件实现时,可全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本申请实施例所述的流程或功能。所述计算机可为通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴光缆、光纤、数字用户线)或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心传输。所述计算机可读介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质(磁性介质例如可以是软盘、硬盘、磁带)、光介质(例如光盘)、或半导体介质(例如固态硬盘)等。在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。In the above-described embodiments, it may be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented in software, it 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 the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of the present application are generated. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable device. The computer instructions may be stored in or transmitted from one computer readable storage medium to another computer readable storage medium, for example, the computer instructions may be downloaded from a website site, computer, server or data center Transmission to another website site, computer, server, or data center by wire (eg, coaxial cable, optical fiber, digital subscriber line) or wireless (eg, 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, data center, etc., that includes an integration of one or more available media. The usable medium may be a magnetic medium (the magnetic medium may be, for example, a floppy disk, a hard disk, a magnetic tape), an optical medium (eg, an optical disk), or a semiconductor medium (eg, a solid state disk), and the like. In the above-mentioned embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference may be made to the relevant descriptions of other embodiments.
在本申请所提供的几个实施例中,应该理解到,所揭露的装置,可以通过其它的方式来实现。例如,以上所描述的装置实施例仅仅是示意性的,例如上述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或者讨论的相互之间的耦合或直接耦合或通信连接可以通过一些接口,装置或单元的间接耦合或通信连接,可以是电性或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed apparatus may be implemented in other manners. For example, the device embodiments described above are only illustrative. For example, the division of the above-mentioned units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated. to another system, or some features can be ignored, or not implemented. On the other hand, 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, which may be in electrical or other forms.
上述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可位于一个地方,或者也可以分布到多个网络单元上。可根据实际的需要选择其中的部分或全部单元来实现本实施例方案的目的。The above-mentioned units described as separate components may or may not be physically separated, and components displayed as units may or may not be physical units, and may be located in one place or distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.
另外,在本申请各实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit. The above-mentioned integrated units may be implemented in the form of hardware, or may be implemented in the form of software functional units.
上述集成的单元若以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可获取的存储器。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或者部分,可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储器中,包括若干请求用以使得一台计算机设备(可以为个人计算机、服务器或者网络设备等,具体可以是计算机设备中的处理器)执行本申请的各个实施例上述方法的全部或部分步骤。The above-mentioned integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer-accessible memory. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or the whole or part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a memory , including several requests to cause a computer device (which may be a personal computer, a server, or a network device, etc., specifically a processor in the computer device) to execute all or part of the steps of the above methods in the various embodiments of the present application.
以上所述,以上实施例仅用以说明本申请的技术方案而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,然而本领域的普通技术人员应当理解;其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围。As mentioned above, the above embodiments are only used to illustrate the technical solutions of the present application and not to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand; The technical solutions described in the embodiments are modified, or some technical features thereof are equivalently replaced; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions in the embodiments of the present application.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810925426.6A CN109041212B (en) | 2018-08-15 | 2018-08-15 | A 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 | A 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 | A positioning method and wearable device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109041212B (en) |
Families Citing this family (2)
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)
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 |
-
2018
- 2018-08-15 CN CN201810925426.6A patent/CN109041212B/en active Active
Patent Citations (4)
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 |
---|---|---|
US10649720B2 (en) | Sound effect configuration method and system and related device | |
EP3306865B1 (en) | Communication message sending method and device | |
CN104967896A (en) | Method for displaying bulletscreen comment information, and apparatus thereof | |
CN106371964B (en) | Method and device for prompting message | |
CN109032491B (en) | Data processing method, device and mobile terminal | |
WO2018103443A1 (en) | Network positioning method and terminal device | |
CN106534288B (en) | A data transmission method and mobile terminal | |
WO2018049934A1 (en) | Data migration method and terminals | |
WO2019233316A1 (en) | Data processing method and device, mobile terminal, and storage medium | |
CN107566909B (en) | Barrage-based video content searching method and user terminal | |
CN106973168A (en) | Voice playing method and device and computer equipment | |
CN106101764A (en) | A kind of methods, devices and systems showing video data | |
CN106126675A (en) | A kind of method of recommendation of audio, Apparatus and system | |
CN109041212B (en) | A positioning method and wearable device | |
CN111107223A (en) | A message processing method and electronic device | |
CN106330684B (en) | Method and terminal for information synchronization | |
CN106330875B (en) | Message display method and device | |
WO2018103440A1 (en) | Network positioning method and terminal device | |
CN106951223A (en) | Desktop display method and terminal | |
CN106357767B (en) | Information synchronization method and server | |
CN108595229A (en) | navigation application starting method and related device | |
CN107800883A (en) | Calendar reminder anomaly detection method, device and mobile terminal | |
JP2019511142A (en) | Information display method, apparatus and system | |
CN106550143A (en) | A mode switching method and mobile terminal | |
CN106534525A (en) | Call recording 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 |