WO2022228059A1 - 一种定位方法和装置 - Google Patents

一种定位方法和装置 Download PDF

Info

Publication number
WO2022228059A1
WO2022228059A1 PCT/CN2022/085352 CN2022085352W WO2022228059A1 WO 2022228059 A1 WO2022228059 A1 WO 2022228059A1 CN 2022085352 W CN2022085352 W CN 2022085352W WO 2022228059 A1 WO2022228059 A1 WO 2022228059A1
Authority
WO
WIPO (PCT)
Prior art keywords
positioning
reference information
information
location
devices
Prior art date
Application number
PCT/CN2022/085352
Other languages
English (en)
French (fr)
Inventor
殷佳欣
Original Assignee
花瓣云科技有限公司
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 花瓣云科技有限公司 filed Critical 花瓣云科技有限公司
Publication of WO2022228059A1 publication Critical patent/WO2022228059A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/021Services related to particular areas, e.g. point of interest [POI] services, venue services or geofences
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/029Location-based management or tracking services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W64/00Locating users or terminals or network equipment for network management purposes, e.g. mobility management

Definitions

  • the embodiments of the present application relate to the field of electronic devices, and in particular, to a positioning method and apparatus.
  • the electronic device can provide functions such as navigation and finding objects by positioning itself.
  • the commonly used electronic device positioning method may include positioning through a Global Positioning System (Global Positioning System, GPS).
  • the electronic device may search for satellites, that is, search for positioning satellites capable of communicating with the electronic device. After searching for at least three positioning satellites, the electronic device may communicate with the positioning satellites to obtain relative position information between the at least three positioning satellites and the electronic device, thereby determining the position information of the electronic device.
  • the location information of the electronic device may be latitude and longitude. It can be understood that the larger the number of positioning satellites searched by the electronic device when searching for satellites, the more relative position information of the positioning satellites and the electronic device can be obtained, and thus the more accurate position information of the electronic device can be obtained. .
  • the electronic device cannot perform accurate GPS positioning.
  • the electronic device searches for satellites, it cannot find three or more positioning satellites, so the relative position information between a sufficient number of positioning satellites cannot be obtained, and the electronic device cannot be determined accordingly.
  • Location information of the device when the electronic device is in a complex environment (such as an urban environment with a dense surrounding environment, or an indoor environment), the obtained relative position information of the positioning satellite and the electronic device will be inaccurate, resulting in the acquisition of The accuracy of the positioning information is reduced or even impossible to locate.
  • the embodiments of the present application provide a positioning method and apparatus, which can accurately locate a device to be positioned, and avoid the problem of inaccurate or impossible positioning due to a complex surrounding environment.
  • the electronic device is not required to have the positioning capability, so it can be applied to the positioning scenarios of various electronic devices.
  • positioning obstruction caused by fragmented positioning solutions is avoided.
  • a positioning method is provided, and the method is used for positioning a device to be positioned.
  • the method includes: when positioning the device to be located, determining one or more associated devices of the device to be located. Wherein, when the device to be located executes the application, the associated device has an application association relationship with the device to be located.
  • the application association relationship includes: when the device to be located executes the application, the associated device directly or indirectly cooperates with the device to be located to realize the function of the application, and the association relationship occurs with the device to be located.
  • the location information of the device to be located is determined according to the positioning reference information of the one or more associated devices.
  • an example of a method for locating a device to be located is provided.
  • the positioning of the device to be located may be implemented according to the associated device of the device to be located.
  • the associated device may be a device that has an application layer association with the device to be located. It can be understood that, taking the device to be positioned as a mobile phone as an example, the mobile phone can implement various functions by interacting with other devices. For example, the mobile phone can realize the payment function through the interaction with the POS machine. For another example, the mobile phone can scan the two-dimensional code to obtain information corresponding to the two-dimensional code. Therefore, in different application scenarios of the device to be located, there generally exists at least one associated device of the device to be located.
  • the associated device may include a device that can directly interact with the device to be located, thereby providing a corresponding service.
  • Associating the device may also include indirectly cooperating with the device to be located to implement corresponding functions.
  • an association relationship is formed with an associated device that directly cooperates with the device to be located to realize a specific function, so as to achieve a device that indirectly cooperates with the device to realize the specific function.
  • the positioning of the device to be positioned can be realized according to the positioning reference information of the associated device corresponding to the mobile phone.
  • the associated device can have a positioning function, that is, the location of the associated device can be determined directly or indirectly, and because the associated device is a device that has an application association relationship with the device to be located in the current scenario, the device to be located is usually located in the The location of the associated device is within a certain range, so the device to be positioned can be accurately positioned according to the positioning reference information of the associated device.
  • the positioning reference information of the associated device is not affected by changes in the current scene, there will be no problem of inaccurate positioning caused by the interference of objects in the scene similar to the GPS positioning process.
  • this solution does not need to distinguish different positioning scenarios, so it can be applied to most positioning scenarios.
  • the associated device having an application association relationship with the device to be located includes a first associated device.
  • the obtaining of one or more positioning reference information of the associated device includes: obtaining first positioning reference information of the first associated device.
  • the determining the location information of the device to be located according to the location reference information of the one or more associated devices includes: determining that the location of the device to be located is within a certain range of the location indicated by the first location reference information. Based on this solution, a specific solution example for locating the device to be located is provided. In this example, it is assumed that the associated device includes at least one device (eg, the first associated device). Then, it can be determined that the device to be located is located in the vicinity of the first associated device through the location of the first associated device.
  • the device to be located can be located as long as the position of the first associated device can be determined. For example, taking the first associated device as a POS machine as an example, in order to interact with the POS machine and realize the payment function, the distance between the device to be located and the POS machine should not exceed the working distance of the POS machine (eg, less than 5cm). Therefore, according to the solution provided by the present application, the positioning accuracy of the device to be positioned can be improved.
  • the first positioning reference information includes first location information. Determining that the position of the device to be positioned is within a certain range of the position indicated by the first positioning reference information includes: determining that the position of the device to be positioned is the position indicated by the first position information. Based on this solution, a specific solution example of locating the device to be located according to the associated device is provided. In this example, the first positioning reference information may specifically include the location of the first associated device (eg, the location indicated by the first location information). With reference to the descriptions in the foregoing solutions, due to the positional correlation between the first associated device and the device to be positioned, the device to be positioned can be accurately positioned according to the position of the first associated device.
  • the first positioning reference information further includes: a first positioning accuracy. Determining that the position of the device to be positioned is within a certain range of the position indicated by the first positioning reference information includes: determining that the position of the device to be positioned is within a first precision range of the position indicated by the first position information, wherein, The first accuracy range is indicated by the first positioning accuracy.
  • a first positioning accuracy Determining that the position of the device to be positioned is within a certain range of the position indicated by the first positioning reference information includes: determining that the position of the device to be positioned is within a first precision range of the position indicated by the first position information, wherein, The first accuracy range is indicated by the first positioning accuracy.
  • the positioning accuracy of the device As a possible way to determine the positioning accuracy of the device, different devices have corresponding effective coverage areas, and within the effective coverage area, they can be associated with the device to be located to achieve the effect of providing services to the device to be located.
  • the effective coverage area can be used as the positioning accuracy of the device.
  • other parameter indicators can also be set as the positioning accuracy as required. That is to say, according to the positioning accuracy, the position range of the device to be positioned can be delineated. Therefore, the device to be positioned can be positioned more accurately according to the first position information and the first positioning accuracy.
  • the method before acquiring the first positioning reference information of the first associated device, the method further includes: determining whether the first associated device has a positioning capability.
  • the acquiring the first positioning reference information of the first associated device includes: in the case that the first associated device has a positioning capability, acquiring the first positioning reference information.
  • a trigger mechanism for locating the device to be located according to the first associated device is provided.
  • the location information of the first associated device That is to say, the first associated device needs to have positioning capability.
  • the associated device that has an application association relationship with the device to be located includes a second associated device, and the second associated device is a device that directly cooperates with the device to be located to realize the function of the application.
  • the method further includes: acquiring second positioning reference information of a third associated device, where the third associated device is an associated device of the second associated device.
  • the determining the location information of the device to be located according to the positioning reference information of the one or more associated devices includes: determining the location of the device to be located according to the second positioning reference information. Based on the solution, an example of a solution for locating the device to be located in the case that the associated device of the device to be located does not have the positioning capability is provided.
  • the device to be located may be located through a third associated device that has an application association relationship with the second associated device.
  • the location of the second associated device can be determined through the third associated device. For example, the location of the second associated device is determined according to the pair of positioning reference information of the third associated device. Then, the position of the device to be positioned is determined accordingly. It can be seen that, with this solution, even if the second associated device, which is the associated device of the device to be located, does not have the positioning capability, the device to be positioned can be positioned by the third associated device.
  • the second associated device since the second associated device can directly perform application association with the device to be located, it can be referred to as a level 1 associated device.
  • the third associated device may be referred to as a level 2 associated device of the device to be located.
  • the acquiring the positioning reference information of the one or more associated devices includes: acquiring the second positioning accuracy of the second associated device. Determining the position information of the device to be positioned according to the positioning reference information includes: determining the position of the device to be positioned according to the second positioning reference information and the second positioning accuracy.
  • a specific solution example for locating the device to be located according to the level 1 associated device and the level 2 associated device is provided. In this example, the location of the level 1 associated device can be determined according to the positioning reference information of the level 2 associated device, and then the device to be positioned is located according to the determined location of the level 1 associated device and the positioning accuracy of the level 1 associated device.
  • the second positioning reference information includes: second position information and third positioning accuracy.
  • the position of the device to be positioned includes: within a second accuracy range of the position indicated by the second position information, wherein the second accuracy range is jointly indicated by the second positioning accuracy and the third positioning accuracy.
  • a specific solution example for locating the device to be located is provided.
  • the location of the device to be located is: within a certain range near the location of the level 2 associated device.
  • the certain range may be the sum of the area covered by the positioning accuracy of the level 2 associated device and the area covered by the positioning accuracy of the level 1 associated device.
  • the positioning accuracy of the level 2 associated device and the location of the level 2 associated device can indicate the location of the level 1 associated device.
  • the device to be positioned can be accurately positioned.
  • the associated device of the device to be located in the current scene further includes a fourth associated device.
  • the fourth associated device has positioning capability.
  • the method further includes: acquiring third positioning reference information of the fourth associated device.
  • the determining the location information of the device to be located according to the positioning reference information of the one or more associated devices includes: determining the location information of the device to be located according to the first positioning reference information and the third positioning reference information.
  • another solution example of positioning according to multiple associated devices is provided. Combined with the solution of this example, in some scenarios, there may be multiple associated devices corresponding to the device to be located. In this way, according to the solution of this example, the device to be positioned can be positioned in combination with the positioning reference information of multiple associated devices. It can be understood that, in the case of locating the device to be located by using multiple associated devices, the possible location area of the device to be located can be further narrowed, so the positioning accuracy of the device to be located can be further improved.
  • the first positioning reference information includes first position information and first positioning accuracy
  • the third positioning reference information includes third position information and fourth positioning accuracy.
  • the position information of the device to be positioned includes: the device to be positioned is located in a positioning area, the positioning area includes an overlapping part of a first area and a second area, and the first area is the first precision of the position indicated by the first position information The area within the range, the first accuracy range is indicated by the first positioning accuracy.
  • the second area is an area within a third precision range of the position indicated by the third position information, and the third precision range is indicated by the fourth positioning precision.
  • a range (eg, called range 1 ) where the device to be located is located can be delineated according to the first associated device.
  • a range (eg, called range 2 ) where the device to be located is located may also be determined. Since the device to be located can establish an application association relationship with two associated devices at the same time in the current scenario, the actual position of the device to be located can be located in the overlapping area of the range 1 and the range 2. Therefore, compared with the solution of locating the device to be located according to the first associated device or the second associated device alone, the range of the area where the device to be located can be effectively narrowed, and thus the accuracy can be improved.
  • the determining one or more associated devices of the device to be located includes: receiving a positioning request, where the positioning request includes a device identifier of the device to be located. Based on the device identification, one or more of the associated devices are determined. Alternatively, a positioning request is received, where the positioning request includes one or more associated device identifiers of the device to be located. The associated device is determined according to the associated device identifier. Based on the solution, a determination solution for associated devices is provided. In this example, the device to be located may send a positioning request to a device (such as a device cloud, etc.) executing the solution, so that the device cloud can clarify that the device to be located has a positioning requirement.
  • a device such as a device cloud, etc.
  • the device cloud can determine the associated device of the device to be located according to the information carried in the location request. It can be understood that the device cloud can be used for device management of a series of devices including the device to be located. In this way, the device cloud can know the application association relationship between the devices in different scenarios. In some implementations of this example, the device cloud may determine the device that needs to be located currently according to the identifier of the device to be located in the location request. Further, according to the management of each device, the associated device currently corresponding to the device to be located is determined. It should be noted that, in some implementations, the location request may not carry the identifier of the device to be located, and the device cloud can still determine the device that sends the location request according to the interface or transmission resource that receives the location request.
  • the device to be located may also independently determine the associated device according to the interaction with other devices in the current scene.
  • the device to be located may send the determined associated device (or the identifier of the associated device) to the device cloud in the positioning request, so that the device cloud can determine the device to be located and the associated device.
  • the method further includes: determining one or more historically associated devices of the device to be located, the historical association
  • the device is an associated device determined according to an application association relationship between the device to be located and the associated device that has occurred in history.
  • another solution implementation of positioning the device to be positioned is provided. It can be understood that, if the device to be positioned needs to be positioned, if there is an associated device, the device to be positioned can be positioned according to the solution in the above example.
  • the device to be located when the device to be located needs to be located, it may not have an application association relationship with other devices. Or, when the device to be located needs to be located, the associated device in the current scenario cannot be determined. Then, based on the solution in this example, the current position of the device to be located can be determined by using the device to be located with other devices (eg, historically associated devices) with an application association relationship before positioning is required. For example, the device to be positioned may be positioned according to the positioning reference information of the historically associated device.
  • other devices eg, historically associated devices
  • the historical positioning reference information includes location information of the one or more historically associated devices, and at least one of the following: the positioning accuracy of the one or more historically associated devices or the relationship between the device to be located and the device to be located.
  • the one or more historical association devices maintain time information of the association relationship.
  • the device to be positioned in the process of positioning through the historically associated device, the device to be positioned may be positioned according to the location of the historically associated device. For example, the device to be located may be located near the location of the historically associated device. In other implementations, the location range of the device to be located may be specified in combination with the location accuracy of the historically associated device.
  • the position of the device to be positioned is determined according to the historical positioning reference information Information, including: from the one or more historically associated devices, select one or more devices whose time information is close to the positioning time indicated by the positioning request as a valid associated device, according to the location information of the one or more valid associated devices to determine the location information of the device to be located.
  • the historical positioning reference information Information including: from the one or more historically associated devices, select one or more devices whose time information is close to the positioning time indicated by the positioning request as a valid associated device, according to the location information of the one or more valid associated devices to determine the location information of the device to be located.
  • the method further includes: acquiring a movement attribute of the device to be positioned, where the movement attribute is used to indicate a movement state of the device to be positioned.
  • the determining the location information of the device to be located according to the historical positioning reference information includes: determining the location information of the device to be located according to the historical positioning reference information and the movement attribute.
  • the location determined according to the historically associated device is closer to the location of the device to be located within the time period that the historically associated device maintains the application associated relationship.
  • the position determined according to the historically associated device can be adjusted, thereby obtaining a positioning result closer to the current position. For example, when the positioning attribute indicates that the device to be located has moved a certain distance in a certain direction after interacting with the historically associated device and disconnecting the application relationship, then, on the basis of the positioning result determined according to the historically associated device, the The corresponding direction is offset by the corresponding distance, so that the positioning result closer to the current actual position can be obtained.
  • the method when receiving the positioning request, in the case that there is no associated device of the device to be located, the method further includes: detecting a change in the application association relationship of the device to be located, and in the case of the device to be located When the application association relationship of the device changes, a fifth associated device that has an application association relationship with the device to be located is determined. Obtain fourth positioning reference information of the fifth associated device, and determine the position of the device to be positioned according to the fourth positioning reference information. Based on this solution, another solution is provided, so that the positioning of the device to be positioned can be realized when the associated device is not available or cannot be determined in the current environment.
  • the device cloud can suspend the location request, and when it is determined that the location request appears and is pending
  • the location of the device to be located is determined according to the reference positioning information of the device. Therefore, the positioning of the device to be positioned can be realized without acquiring the historical interaction situation of the device to be positioned.
  • the device cloud can also obtain the movement attribute of the device to be located, thereby adjusting the positioning result, thereby achieving the effect of improving the positioning accuracy.
  • the device to be located is further associated with one or more connected devices based on a communication protocol connection relationship, and the location of the device to be located is determined according to the positioning reference information of the one or more associated devices information, including: determining the location information of the one or more connected devices, the determining the location information of the device to be located includes: according to the location information of the one or more connected devices, and the one or more associated devices Positioning reference information to determine the position information of the device to be positioned.
  • the associated device is not necessarily a device that has a connection relationship with the device to be located based on a communication protocol.
  • connection relationship based on the communication protocol may refer to the connection relationship based on WIFI, Bluetooth, 3G, 4G, 5G or other communication protocols.
  • the device to be located may establish a registration relationship with the corresponding device, thereby clarifying the purpose of each device in the communication process.
  • the positioning accuracy of the device to be located can be further improved.
  • the device for executing the method includes: a server, or the device to be located.
  • the execution body of this solution can be a server, such as a network device such as a device cloud, which can obtain the positioning reference information of the associated device.
  • This solution can also be used for the positioning mechanism of the device to be located itself. It can be understood that, taking the device to be located as a mobile phone as an example, the device to be located can determine its own position through GPS positioning in a simple environment through a GPS module provided therein. In scenarios such as indoor positioning, the mobile phone may not be able to locate itself through the GPS module, so the mobile phone can use the solution provided in this application to locate itself.
  • the associated device includes at least one of the following: a smart terminal device, a Bluetooth beacon, a two-dimensional code, a near field communication NFC tag, a POS machine, a printer, and a gate device.
  • a smart terminal device a Bluetooth beacon
  • a two-dimensional code a near field communication NFC tag
  • a POS machine a printer
  • a gate device a gate device.
  • some specific examples of possible associated devices are provided. For example, take the device to be positioned as a mobile phone as an example.
  • the mobile phone can establish an application association with other smart terminal devices through the share service, and the smart terminal can be other devices such as mobile phones. In this way, the mobile phone that provides the share service can be an associated device of the device to be located.
  • a device such as a Bluetooth beacon
  • the mobile phone can obtain the corresponding information by scanning the QR code, and the QR code can also be included in the associated device of the mobile phone.
  • the associated device in the above example is only an example.
  • a device that can establish an application association with the device to be located can also be used as an associated device of the device to be located for the device to be located. to locate.
  • the application scenario in which the device to be located includes at least one of the following: swiping a card, reading an NFC tag, paying, scanning a code, searching for services, and sharing services.
  • some examples of positioning scenarios are provided.
  • the mobile phone can interact with the NFC tag through the card mode of its NFC module to realize the card swipe function.
  • devices such as NFC tags that provide card swiping services can be used as associated devices of the device to be located for locating the device to be located.
  • the mobile phone can establish an application association with the NFC tag through the card reader mode of its NFC module to realize the reading function.
  • the NFC tag read by the NFC tag can be used as an associated device of the device to be located for locating the device to be located.
  • the mobile phone can realize the payment function by interacting with the POS machine and other devices. Then the POS machine can be used as an associated device of the device to be located for locating the device to be located.
  • the mobile phone can interact with the QR code to realize the scanning function. Then the two-dimensional code can be used as an associated device of the device to be located for locating the device to be located.
  • the mobile phone can obtain the search service by interacting with the intelligent terminal that provides the search service.
  • the intelligent terminal that provides the search service can be used as an associated device of the device to be located for locating the device to be located.
  • the mobile phone can obtain the search service by interacting with the intelligent terminal that provides the sharing service (such as other mobile phones using the sharing service).
  • the intelligent terminal that provides the shared service can be used as an associated device of the device to be located for locating the device to be located.
  • the associated devices involved in the present invention may include physical devices, such as POS machines.
  • it can also include objects that provide services, such as NFC tags, QR codes, etc. Therefore, it has a very wide scene coverage. For most positioning scenarios, the associated device corresponding to the device to be located can be found in it, so that the device to be located can be quickly and accurately located.
  • the method further includes: sending the location information of the device to be located to the device to be located.
  • the device cloud and other devices that implement this solution can send a positioning result (such as location information) to the device to be located, thereby enabling the device to be located to locate itself.
  • the device executing this solution may also be the device to be located itself or other terminal devices.
  • a positioning apparatus which is used for positioning a device to be positioned.
  • the apparatus includes: a determining unit, configured to determine one or more associated devices of the device to be located when the device to be located is located. Wherein, when the device to be located executes the application, the associated device has an application association relationship with the device to be located.
  • the application association relationship includes: when the device to be located executes the application, the associated device directly or indirectly cooperates with the device to be located to realize the function of the application, and the association relationship occurs with the device to be located.
  • An acquiring unit configured to acquire one or more positioning reference information of the associated device.
  • the determining unit is further configured to determine the location information of the device to be located according to the location reference information of the one or more associated devices.
  • the associated device having an application association relationship with the device to be located includes a first associated device.
  • an obtaining unit configured to obtain the first positioning reference information of the first associated device.
  • a determining unit configured to determine that the position of the device to be positioned is within a certain range of the position indicated by the first positioning reference information.
  • the first positioning reference information includes first location information.
  • a determining unit configured to determine that the position of the device to be positioned is the position indicated by the first position information.
  • the first positioning reference information further includes: a first positioning accuracy.
  • a determining unit configured to determine that the position of the device to be positioned is within a first accuracy range of the position indicated by the first position information, wherein the first accuracy range is indicated by the first positioning accuracy.
  • the determining unit before acquiring the first positioning reference information of the first associated device, is further configured to determine whether the first associated device has a positioning capability.
  • An obtaining unit configured to obtain the first positioning reference information when the first associated device has positioning capability.
  • the associated device that has an application association relationship with the device to be located includes a second associated device, and the second associated device is a device that directly cooperates with the device to be located to realize the function of the application.
  • the obtaining unit is configured to obtain second positioning reference information of a third associated device, where the third associated device is an associated device of the second associated device.
  • a determination unit configured to determine the position of the device to be positioned according to the second positioning reference information.
  • the acquiring unit is configured to acquire the second positioning accuracy of the second associated device.
  • a determining unit configured to determine the position of the device to be positioned according to the second positioning reference information and the second positioning accuracy.
  • the second positioning reference information includes: second position information and third positioning accuracy.
  • the position of the device to be positioned includes: within a second accuracy range of the position indicated by the second position information, wherein the second accuracy range is jointly indicated by the second positioning accuracy and the third positioning accuracy. For example, the sum of the second positioning accuracy and the third positioning accuracy.
  • the associated device of the device to be located in the current scene further includes a fourth associated device.
  • the fourth associated device has positioning capability.
  • the obtaining unit is further configured to obtain third positioning reference information of the fourth associated device.
  • a determining unit configured to determine the position information of the device to be positioned according to the first positioning reference information and the third positioning reference information.
  • the first positioning reference information includes first position information and first positioning accuracy
  • the third positioning reference information includes third position information and fourth positioning accuracy.
  • the position information of the device to be positioned includes: the device to be positioned is located in a positioning area, the positioning area includes an overlapping part of a first area and a second area, and the first area is the first precision of the position indicated by the first position information The area within the range, the first accuracy range is indicated by the first positioning accuracy.
  • the second area is an area within a third precision range of the position indicated by the third position information, and the third precision range is indicated by the fourth positioning precision.
  • the apparatus further includes: a receiving unit, configured to receive a positioning request, where the positioning request includes the device identifier of the device to be located.
  • a determining unit configured to determine one or more of the associated devices according to the device identification.
  • a receiving unit configured to receive a positioning request, where the positioning request includes one or more associated device identifiers of the device to be located. The associated device is determined according to the associated device identifier.
  • the determining unit is further configured to determine one or more historical associated devices of the device to be located, the historical The associated device is an associated device determined according to an application association relationship between the device to be located and the associated device that has occurred in history.
  • An acquiring unit is configured to acquire historical positioning reference information of the one or more historically associated devices, and a determining unit is configured to determine the location information of the device to be positioned according to the historical positioning reference information.
  • the historical positioning reference information includes location information of the one or more historically associated devices, and at least one of the following: the positioning accuracy of the one or more historically associated devices or the relationship between the device to be located and the device to be located.
  • the one or more historical association devices maintain time information of the association relationship.
  • the determining unit is configured to obtain information from the one or more historically associated devices , select one or more devices whose time information is close to the positioning time indicated by the positioning request as a valid associated device, and determine the position information of the device to be positioned according to the position information of the one or more valid associated devices.
  • the obtaining unit is further configured to obtain a movement attribute of the device to be positioned, where the movement attribute is used to indicate a movement state of the device to be positioned.
  • a determining unit configured to determine the position information of the device to be positioned according to the historical positioning reference information and the movement attribute.
  • the apparatus further includes: a detection unit, configured to detect a change in the application association relationship of the device to be located in the absence of an associated device of the device to be located when the location request is received .
  • the determining unit is configured to determine a fifth associated device that has an application association relationship with the device to be located when the application association relationship of the device to be located changes.
  • An obtaining unit configured to obtain fourth positioning reference information of the fifth associated device, and determine the position of the device to be positioned according to the fourth positioning reference information.
  • the device to be located is further associated with one or more connected devices based on the connection relationship of the communication protocol, and the determining unit is configured to determine the location information of the one or more connected devices.
  • the determining unit is further configured to determine the location information of the device to be located according to the location information of the one or more connected devices and the location reference information of the one or more associated devices.
  • the apparatus is set on a server, or a device to be located.
  • the associated device includes at least one of the following: a smart terminal device, a Bluetooth beacon, a two-dimensional code, a near field communication NFC tag, a POS machine, a printer, and a gate device.
  • the application scenario in which the device to be located includes at least one of the following: swiping a card, reading an NFC tag, paying, scanning a code, searching for services, and sharing services.
  • the apparatus further includes: a sending unit, configured to send the location information of the device to be located to the device to be located.
  • a positioning method which is applied to a device to be located.
  • the method includes: when the device to be located needs to perform positioning, sending a positioning request, where the positioning request is used to request the device to be located according to an associated device of the device to be located.
  • the device to be positioned is positioned.
  • the associated device has an application association relationship with the device to be located.
  • the application association relationship includes: when the device to be located executes the application, the associated device directly or indirectly cooperates with the device to be located to realize the function of the application, and the associated relationship occurs with the device to be located. Receive the location information of the device to be located.
  • the positioning request includes a device identification of the device to be located, where the device identification is used to determine an associated device of the device to be located.
  • the location request includes one or more associated device identifiers of the device to be located, where the associated device identifier is used to indicate the associated device.
  • a positioning device which is applied to a device to be located, and the device includes: a sending unit for sending a positioning request when the device to be located needs to be positioned, and the positioning request is used to request the device to be located according to the device to be located.
  • the associated device locates the device to be located. Wherein, when the device to be located executes the application, the associated device has an application association relationship with the device to be located.
  • the application association relationship includes: when the device to be located executes the application, the associated device directly or indirectly cooperates with the device to be located to realize the function of the application, and the association relationship occurs with the device to be located.
  • the receiving unit is used for receiving the location information of the device to be located.
  • the positioning request includes a device identification of the device to be located, where the device identification is used to determine an associated device of the device to be located.
  • the location request includes one or more associated device identifiers of the device to be located, where the associated device identifier is used to indicate the associated device.
  • a positioning system in a fifth aspect, includes a device to be positioned, and a server, where the server is used for positioning the device to be positioned.
  • the server is used to determine one or more associated devices of the device to be located.
  • the associated device when the device to be located executes the application, the associated device has an application association relationship with the device to be located.
  • the application association relationship includes: when the device to be located executes the application, the associated device directly or indirectly cooperates with the device to be located to realize the function of the application, and the association relationship occurs with the device to be located. Obtain the positioning reference information of one or more of the associated devices.
  • the device to be located is configured to send a positioning request to the server, where the positioning request is used to request the server to locate the device to be located according to an associated device of the device to be located.
  • the server is further configured to receive the positioning request and determine one or more associated devices of the device to be located.
  • the location request includes the device identifier of the device to be located.
  • the server is configured to determine one or more associated devices according to the device identification.
  • the location request includes one or more associated device identifiers of the device to be located.
  • One or more associated devices of the device to be located are determined according to the one or more associated device identifiers of the device to be located.
  • the associated device having an application association relationship with the device to be located includes a first associated device.
  • the obtaining of one or more positioning reference information of the associated device includes: obtaining first positioning reference information of the first associated device.
  • the determining the location information of the device to be located according to the location reference information of the one or more associated devices includes: determining that the location of the device to be located is within a certain range of the location indicated by the first location reference information.
  • an electronic device in a sixth aspect, is provided, and the electronic device may be a device to be located.
  • An electronic device includes one or more processors and one or more memories; the one or more memories are coupled to the one or more processors, and the one or more memories store computer instructions; when the one or more processors execute the computer instructions When , the electronic device is made to perform the positioning method according to any one of the above-mentioned third aspect and various possible designs.
  • a server in a seventh aspect, can be used to locate a device to be located.
  • the server may be a device cloud.
  • the server includes one or more processors and one or more memories; the one or more memories are coupled to the one or more processors, and the one or more memories store computer instructions; when the one or more processors execute the computer instructions , so that the server executes the positioning method according to any one of the above-mentioned first aspect and various possible designs.
  • a chip system in an eighth aspect, includes an interface circuit and a processor.
  • the chip system can be set in the device to be positioned.
  • the interface circuit and the processor are interconnected by lines; the interface circuit is used to receive signals from the memory and send signals to the processor, and the signals include computer instructions stored in the memory; when the processor executes the computer instructions, the chip system executes the above-mentioned steps as described in Section 1.
  • a chip system in a ninth aspect, includes an interface circuit and a processor.
  • the chip system can be set in a server such as a device cloud for locating the device to be located.
  • the interface circuit and the processor are interconnected by lines; the interface circuit is used to receive signals from the memory and send signals to the processor, and the signals include computer instructions stored in the memory; when the processor executes the computer instructions, the chip system executes the above-mentioned steps as described in Section 1. A method of positioning on the one hand and any of the various possible designs.
  • a computer-readable storage medium includes computer instructions.
  • the positioning method according to any one of the foregoing first aspect and various possible designs is performed.
  • the positioning method as described above in the third aspect and any of the various possible designs is performed.
  • a computer program product includes instructions, and when the computer program product runs on a computer, the computer can execute any one of the above-mentioned first aspect and various possible designs according to the instructions positioning method. Alternatively, when the computer program product is run on a computer, the computer can execute the positioning method according to the instructions in any of the above-mentioned third aspect and various possible designs.
  • FIG. 1 is a schematic diagram of a positioning scene
  • FIG. 2 is a schematic diagram of the composition of an electronic device provided by an embodiment of the present application.
  • FIG. 3 is a schematic diagram of the composition of a positioning system according to an embodiment of the present application.
  • FIG. 4 is a schematic diagram of the composition of a positioning system according to an embodiment of the present application.
  • FIG. 5 is a schematic diagram of the composition of a positioning system according to an embodiment of the present application.
  • FIG. 6 is a schematic flowchart of a positioning method provided by an embodiment of the present application.
  • FIG. 7 is a schematic diagram of the composition of a positioning system according to an embodiment of the present application.
  • FIG. 8 is a schematic diagram of a positioning scenario provided by an embodiment of the present application.
  • 9A is a schematic diagram of a positioning scenario provided by an embodiment of the present application.
  • FIG. 9B is a schematic diagram of a positioning scenario provided by an embodiment of the present application.
  • FIG. 10 is a schematic diagram of a positioning scenario provided by an embodiment of the present application.
  • FIG. 11 is a schematic diagram of a positioning scenario provided by an embodiment of the present application.
  • FIG. 12 is a schematic diagram of a positioning scenario provided by an embodiment of the present application.
  • FIG. 13 is a schematic flowchart of a positioning method provided by an embodiment of the present application.
  • FIG. 14 is a schematic diagram of a positioning scenario provided by an embodiment of the present application.
  • 15 is a schematic diagram of a positioning scenario provided by an embodiment of the present application.
  • 16 is a schematic diagram of the composition of a positioning device according to an embodiment of the present application.
  • 17 is a schematic diagram of the composition of a positioning device provided by an embodiment of the application.
  • FIG. 19 is a schematic diagram of the composition of a server according to an embodiment of the present application.
  • FIG. 20 is a schematic diagram of the composition of a chip system provided by an embodiment of the present application.
  • FIG. 21 is a schematic diagram of the composition of another chip system provided by an embodiment of the present application.
  • GPS positioning is a common method. Illustratively, in conjunction with FIG. 1 . Take the electronic device to be positioned as a mobile phone as shown in FIG. 1 as an example.
  • the mobile phone can search for satellites and determine the satellites (such as called positioning satellites) that can be used for positioning.
  • the positioning satellites searched by the mobile phone satellite search may include satellite 1 , satellite 2 and satellite 3 .
  • the mobile phone can communicate with each positioning satellite to obtain relative position information with each positioning satellite.
  • take the relative position information including the distance information between the positioning satellite and the mobile phone as an example.
  • the mobile phone can communicate with the satellite 1, thereby obtaining the distance information 1 with the satellite 1.
  • the mobile phone can communicate with the satellite 2 to obtain the distance information 2 with the satellite 2 .
  • the mobile phone can communicate with the satellite 3 to obtain distance information 3 with the satellite 3 .
  • the mobile phone can calculate and obtain the current location information, such as , the location information can be identified by latitude and longitude information.
  • the electronic device can determine its own position information according to the triangulation method. According to the triangulation method, the electronic device needs to be able to obtain relative position information corresponding to at least three positioning satellites. At the same time, the relative position information determined by the electronic device and each positioning satellite also needs to be accurate enough.
  • the electronic device cannot search for a sufficient number of positioning satellites, the electronic device cannot obtain a sufficient amount of relative position information, so that positioning cannot be performed.
  • the surrounding environment of an electronic device is complex, for example, the electronic device is located in a city with a complex environment, the accuracy of the relative position information will be greatly reduced due to the obstruction of objects in the environment such as buildings and trees. In this way, the electronic device cannot perform accurate positioning accordingly.
  • the electronic device can communicate with the signal source to determine the distance from other signal sources, and then combine the position of the signal source to determine the position of the electronic device. location information.
  • the signal source may be a network device that communicates with an electronic device that needs to be positioned, such as a base station.
  • the electronic device may determine the distance from each signal source through the following three solutions.
  • Scheme 1 Determined according to the received signal strength (Received Signal Strength Indication, RSSI).
  • RSSI Received Signal Strength Indication
  • the electronic device can receive the signal from the signal source.
  • the electronic device can determine the approximate distance to the source of the signal based on the signal strength of the various signals it receives.
  • Scheme 2 Determined according to the time of flight (Time of Fly, ToF).
  • the electronic device can communicate with various signal sources, such as sending measurement signals.
  • the electronic device can obtain the travel time of the measurement signal from the time it is sent to the time it is received by the various signal sources.
  • the electronic device can determine the distance from the electronic device to each signal source according to the propagation time and propagation speed of each measurement signal (for example, the propagation speed can be approximately equal to the speed of light).
  • Option 3 Determined according to Time Difference of Fly (TDoF).
  • the electronic device can send measurement signals to each signal source, and by communicating with each signal source, obtain time information when the measurement signal reaches each signal source, thereby determining the time difference between the measurement signal reaching each signal source.
  • the electronic device can determine the distance between the electronic device and each of the signal sources according to the time difference and the positions of one or more of the signal sources.
  • the signal source involved in the above example may include a device capable of communicating and interacting with the electronic device.
  • the signal source can use wireless communication (Wireless Fidelity, Wi-Fi), Bluetooth (Bluetooth), Near Field Communication (Near Field Communication, NFC), Cellular (Cellular), Infrared (InfraRed), Light Emitting Diode (Light Emitting Diode, LED) visible light, ultrasonic, inertial navigation, geomagnetic computer vision, Ultra-Wide Band (UWB) and other mechanisms to establish communication with electronic devices.
  • wireless communication Wireless Fidelity, Wi-Fi
  • Bluetooth Bluetooth
  • Near Field Communication Near Field Communication
  • NFC Near Field Communication
  • Cellular Cellular
  • Infrared InfraRed
  • Light Emitting Diode Light Emitting Diode
  • LED Light Emitting Diode
  • UWB Ultra-Wide Band
  • the electronic device can communicate with a nearby signal source, thereby positioning itself.
  • the signal source can be other devices near the electronic device, the communication quality between the electronic device and the signal source will not have a large error due to the complexity of the surrounding environment, which can Improve the positioning accuracy of electronic equipment.
  • the electronic device can obtain a sufficient number of distances from different signal sources, and then locate itself according to the triangulation method.
  • the above three schemes can also be combined with the angle of arrival (Angle of Arrival) information of the signal to further determine the relative angle between the electronic device and each signal source, so that the electronic device can more accurately determine the corresponding signal source.
  • the relative positional relationship between them (for example, the relative positional relationship may include the spatial distribution position between the electronic device and the signal source and the distance between the electronic device and the signal source, etc.), thereby improving the accuracy of the positioning information determined according to the relative positional relationship .
  • the mechanism of scheme 1 can be adopted, that is, the electronic equipment in the shopping mall can be positioned through RSSI.
  • the mechanism of Scheme 2 can be adopted, that is, the electronic devices in or around the store can be positioned through ToF.
  • the electronic device needs to determine the positioning mechanism in the current scene before positioning, and use a corresponding positioning strategy for positioning.
  • the positioning strategy of the electronic device may be to determine the distance from each signal source according to the RSSI.
  • the positioning strategy of the electronic device may be to determine the distance from each signal source according to the ToF.
  • the electronic device does not know that the positioning mechanism has changed, and thus the situation of unable to locate will also occur.
  • positioning cannot be performed for some electronic devices that do not support the positioning mechanism in the current scenario.
  • the positioning of the electronic device is hindered, or even cannot be positioned.
  • an embodiment of the present application provides a positioning method, which enables an electronic device to determine an associated device according to a specific application scenario where the electronic device is located and/or a business performed, etc., and implement the method according to the location of the associated device. positioning of itself.
  • the location of the associated device is associated with the location of the electronic device. According to the position of the associated device, the positioning of the electronic device is realized, which can avoid the problem of inaccurate or impossible positioning caused by the complex surrounding environment.
  • the electronic device is not required to have the positioning capability, so it can be applied to the positioning scenarios of various electronic devices.
  • positioning obstruction caused by fragmented positioning solutions is avoided.
  • the positioning method provided by the embodiments of the present application may be applied to an electronic device that needs to be positioned.
  • the electronic device may have different implementation forms.
  • the electronic device may be a portable mobile phone, a tablet computer, a personal digital assistant (PDA), an augmented reality (AR) ⁇ virtual reality (VR) device, a media player, etc. equipment.
  • the electronic device may also be a personal wearable device such as a smart bracelet or a smart watch.
  • the electronic device may also be a device applied in a smart home scenario, such as a speaker, a smart screen (or called a large screen), a smart socket, a smart switch, a desk lamp, an air conditioner, and the like.
  • FIG. 2 shows a schematic structural diagram of a possible electronic device 200 .
  • the electronic device 200 may include a processor 210, an external memory interface 220, an internal memory 221, a universal serial bus (USB) interface 230, a charging management module 240, a power management module 241, and a battery 242, Antenna 1, Antenna 2, Mobile Communication Module 250, Wireless Communication Module 260, Audio Module 270, Speaker 270A, Receiver 270B, Microphone 270C, Headphone Interface 270D, Sensor Module 280, Key 290, Motor 291, Indicator 292, Camera 293, a display screen 294, and a subscriber identification module (subscriber identification module, SIM) card interface 295 and the like.
  • SIM subscriber identification module
  • the sensor module 280 may include a pressure sensor, a gyro sensor, an air pressure sensor, a magnetic sensor, an acceleration sensor, a distance sensor, a proximity light sensor, a fingerprint sensor, a temperature sensor, a touch sensor, an ambient light sensor, a bone conduction sensor, and the like.
  • the structure illustrated in this embodiment does not constitute a specific limitation on the electronic device 200 .
  • the electronic device 200 may include more or fewer components than shown, or combine some components, or separate some components, or different component arrangements.
  • the illustrated components may be implemented in hardware, software, or a combination of software and hardware.
  • the processor 210 may include one or more processing units, for example, the processor 210 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), controller, memory, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural-network processing unit (NPU) Wait. Wherein, different processing units may be independent devices, or may be integrated into one or more processors 210 .
  • the ISP may process the image, for example, the processing may include automatic exposure (Automatic Exposure), automatic focus (Automatic Focus), automatic white balance (Automatic White Balance), denoising, backlight compensation , color enhancement, etc. Among them, the automatic exposure, automatic focus, and automatic white balance processing can also be called 3A processing. After processing, the ISP can obtain the corresponding photos. This process may also be referred to as the slicing operation of the ISP.
  • the controller may be the nerve center and command center of the electronic device 200 .
  • the controller can generate an operation control signal according to the instruction operation code and timing signal, and complete the control of fetching and executing instructions.
  • a memory may also be provided in the processor 210 for storing instructions and data.
  • the memory in processor 210 is cache memory.
  • the memory may hold instructions or data that have just been used or recycled by the processor 210 . If the processor 210 needs to use the instruction or data again, it can be called directly from the memory. Repeated accesses are avoided, and the waiting time of the processor 210 is reduced, thereby improving the efficiency of the system.
  • the processor 210 may include one or more interfaces.
  • the interface may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous transceiver (universal asynchronous transmitter) receiver/transmitter, UART) interface, mobile industry processor interface (MIPI), general-purpose input/output (GPIO) interface, subscriber identity module (SIM) interface, and / or universal serial bus (universal serial bus, USB) interface, etc.
  • I2C integrated circuit
  • I2S integrated circuit built-in audio
  • PCM pulse code modulation
  • PCM pulse code modulation
  • UART universal asynchronous transceiver
  • MIPI mobile industry processor interface
  • GPIO general-purpose input/output
  • SIM subscriber identity module
  • USB universal serial bus
  • the electronic device 200 can realize the shooting function through the ISP, the camera 293, the video codec, the GPU, the display screen 294 and the application processor.
  • the ISP is used to process the data fed back by the camera 293 .
  • the shutter is opened, the light is transmitted to the photosensitive element of the camera 293 through the lens, the light signal is converted into an electrical signal, and the photosensitive element of the camera 293 transmits the electrical signal to the ISP for processing, and converts it into an image visible to the naked eye.
  • ISP can also perform algorithm optimization on image noise, brightness, and skin tone. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene.
  • the ISP may be provided in the camera 293 .
  • Camera 293 is used to capture still images or video.
  • the object is projected through the lens to generate an optical image onto the photosensitive element.
  • the photosensitive element may be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor.
  • CMOS complementary metal-oxide-semiconductor
  • the photosensitive element converts the optical signal into an electrical signal, and then transmits the electrical signal to the ISP to convert it into a digital image signal.
  • the ISP outputs the digital image signal to the DSP for processing.
  • DSP converts digital image signals into standard RGB, YUV and other formats of image signals.
  • the electronic device 200 may include 1 or N cameras 293 , where N is a positive integer greater than 1.
  • a digital signal processor is used to process digital signals, in addition to processing digital image signals, it can also process other digital signals. For example, when the electronic device 200 selects a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy, and the like.
  • Video codecs are used to compress or decompress digital video.
  • the electronic device 200 may support one or more video codecs.
  • the electronic device 200 can play or record videos in various encoding formats, such as: moving picture experts group (moving picture experts group, MPEG) 1, MPEG2, MPEG3, MPEG4, and so on.
  • MPEG moving picture experts group
  • the NPU is a neural-network (NN) computing processor.
  • NN neural-network
  • Applications such as intelligent cognition of the electronic device 200 can be implemented through the NPU, for example: image recognition, face recognition, speech recognition, text understanding, and the like.
  • the charging management module 240 is used to receive charging input from the charger.
  • the charger may be a wireless charger or a wired charger.
  • the charging management module 240 may receive charging input from the wired charger through the USB interface 230 .
  • the charging management module 240 may receive wireless charging input through the wireless charging coil of the electronic device 200 . While the charging management module 240 charges the battery 242 , the electronic device 200 can also be powered by the power management module 241 .
  • the power management module 241 is used to connect the battery 242 , the charging management module 240 and the processor 210 .
  • the power management module 241 receives input from the battery 242 and/or the charging management module 240, and supplies power to the processor 210, the internal memory 221, the external memory, the display screen 294, the camera 293, and the wireless communication module 260.
  • the power management module 241 can also be used to monitor parameters such as the capacity of the battery 242 , the number of cycles of the battery 242 , and the health status (electric leakage, impedance) of the battery 242 .
  • the power management module 241 may also be provided in the processor 210 .
  • the power management module 241 and the charging management module 240 may also be provided in the same device.
  • the wireless communication function of the electronic device 200 may be implemented by the antenna 1, the antenna 2, the mobile communication module 250, the wireless communication module 260, the modulation and demodulation processor 210, the baseband processor 210, and the like.
  • Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals.
  • Each antenna in electronic device 200 may be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization.
  • the antenna 1 can be multiplexed as a diversity antenna of the wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
  • the mobile communication module 250 may provide a wireless communication solution including 2G/3G/4G/5G, etc. applied on the electronic device 200 .
  • the mobile communication module 250 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), and the like.
  • the mobile communication module 250 can receive electromagnetic waves from the antenna 1, filter and amplify the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation.
  • the mobile communication module 250 can also amplify the signal modulated by the modulation and demodulation processor, and then convert it into electromagnetic waves for radiation through the antenna 1 .
  • at least part of the functional modules of the mobile communication module 250 may be provided in the processor 210 .
  • at least part of the functional modules of the mobile communication module 250 may be provided in the same device as at least part of the modules of the processor 210 .
  • the modem processor may include a modulator and a demodulator.
  • the modulator is used to modulate the low frequency baseband signal to be sent into a medium and high frequency signal.
  • the demodulator is used to demodulate the received electromagnetic wave signal into a low frequency baseband signal. Then the demodulator transmits the demodulated low-frequency baseband signal to the baseband processor for processing.
  • the low frequency baseband signal is processed by the baseband processor and passed to the application processor.
  • the application processor outputs sound signals through audio devices (not limited to the speaker 270A, the receiver 270B, etc.), or displays images or videos through the display screen 294 .
  • the modem processor may be a stand-alone device.
  • the modem processor may be independent of the processor 210, and may be provided in the same device as the mobile communication module 250 or other functional modules.
  • the wireless communication module 260 can provide applications on the electronic device 200 including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation satellites Wireless communication solutions such as global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), and infrared technology (IR).
  • WLAN wireless local area networks
  • BT Bluetooth
  • GNSS global navigation satellite system
  • FM frequency modulation
  • NFC near field communication
  • IR infrared technology
  • the wireless communication module 260 may be one or more devices integrating at least one communication processing module.
  • the wireless communication module 260 receives the electromagnetic wave via the antenna 2, frequency modulates and filters the electromagnetic wave signal, and sends the processed signal to the processor 210.
  • the wireless communication module 260 can also receive the signal to be sent from the processor 210 , perform frequency modulation on the signal, amplify the signal, and then convert it into an electromagnetic wave for radiation through the antenna 2 .
  • the antenna 1 of the electronic device 200 is coupled with the mobile communication module 250, and the antenna 2 is coupled with the wireless communication module 260, so that the electronic device 200 can communicate with the network and other devices through wireless communication technology.
  • the wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), broadband Code Division Multiple Access (WCDMA), Time Division Code Division Multiple Access (TD-SCDMA), Long Term Evolution (LTE), BT, GNSS, WLAN, NFC , FM, and/or IR technology, etc.
  • the GNSS may include global positioning system (global positioning system, GPS), global navigation satellite system (global navigation satellite system, GLONASS), Beidou navigation satellite system (beidou navigation satellite system, BDS), quasi-zenith satellite system (quasi -zenith satellite system, QZSS) and/or satellite based augmentation systems (SBAS).
  • global positioning system global positioning system, GPS
  • global navigation satellite system global navigation satellite system, GLONASS
  • Beidou navigation satellite system beidou navigation satellite system, BDS
  • quasi-zenith satellite system quadsi -zenith satellite system, QZSS
  • SBAS satellite based augmentation systems
  • the electronic device 200 may perform data interaction with the server through the antenna 1 and/or the antenna 2 .
  • the electronic device 200 may send the first download request and/or the second download request to the server through the antenna 1 and/or the antenna 2.
  • the electronic device 200 may also receive the first data segment and/or the second data segment sent by the server through the antenna 1 and/or the antenna 2 .
  • the electronic device 200 implements a display function through a GPU, a display screen 294, an application processor 210, and the like.
  • the GPU is a microprocessor for image processing, and is connected to the display screen 294 and the application processor.
  • the GPU is used to perform mathematical and geometric calculations for graphics rendering.
  • Processor 210 may include one or more GPUs that execute program instructions to generate or alter display information.
  • Display screen 294 is used to display images, videos, and the like.
  • Display screen 294 includes a display panel.
  • the display panel can use a liquid crystal display screen 294 (liquid crystal display, LCD), an organic light-emitting diode (organic light-emitting diode, OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (active-matrix organic light-emitting diode).
  • light emitting diode, AMOLED organic light-emitting diode
  • flexible light emitting diode flex light-emitting diode, FLED
  • Miniled MicroLed, Micro-oLed, quantum dot light emitting diode (quantum dot light emitting diodes, QLED), etc.
  • the electronic device 200 may include one or N display screens 294 , where N is a positive integer greater than one.
  • the external memory interface 220 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 200.
  • the external memory card communicates with the processor 210 through the external memory interface 220 to realize the data storage function. For example to save files like music, video etc in external memory card.
  • Internal memory 221 may be used to store computer executable program code, which includes instructions.
  • the processor 210 executes various functional applications and data processing of the electronic device 200 by executing the instructions stored in the internal memory 221 .
  • the internal memory 221 may include a storage program area and a storage data area.
  • the storage program area can store an operating system, an application program required for at least one function (such as a sound playback function, an image playback function, etc.), and the like.
  • the storage data area can store data (such as audio data, phone book, etc.) created during the use of the electronic device 200 and the like.
  • the internal memory 221 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, universal flash storage (UFS), and the like.
  • the internal memory 221 may be used to store the cached network video.
  • the network video may also be stored in an external storage medium connected through the external memory interface 220 .
  • the electronic device 200 may implement audio functions through an audio module 270, a speaker 270A, a receiver 270B, a microphone 270C, an earphone interface 270D, an application processor 210, and the like. Such as music playback, recording, etc.
  • the audio module 270 is used for converting digital audio information into analog audio signal output, and also for converting analog audio input into digital audio signal. Audio module 270 may also be used to encode and decode audio signals. In some embodiments, the audio module 270 may be provided in the processor 210 , or some functional modules of the audio module 270 may be provided in the processor 210 .
  • Speaker 270A also referred to as a "speaker" is used to convert audio electrical signals into sound signals.
  • the electronic device 200 can listen to music through the speaker 270A, or listen to a hands-free call.
  • the receiver 270B also referred to as an "earpiece" is used to convert audio electrical signals into sound signals.
  • the voice can be answered by placing the receiver 270B close to the human ear.
  • the microphone 270C also called “microphone” or “microphone”, is used to convert sound signals into electrical signals.
  • the user can make a sound by approaching the microphone 270C through a human mouth, and input the sound signal into the microphone 270C.
  • the electronic device 200 may be provided with at least one microphone 270C.
  • the electronic device 200 may be provided with two microphones 270C, which may implement a noise reduction function in addition to collecting sound signals.
  • the electronic device 200 may further be provided with three, four or more microphones 270C to collect sound signals, reduce noise, identify sound sources, and implement directional recording functions.
  • the headphone jack 270D is used to connect wired headphones.
  • the earphone interface 270D may be a USB interface 230, or a 3.5mm open mobile terminal platform (OMTP) standard interface, a cellular telecommunications industry association of the USA (CTIA) standard interface .
  • OMTP open mobile terminal platform
  • CTIA cellular telecommunications industry association of the USA
  • Touch sensor also known as "touch panel”.
  • the touch sensor may be disposed on the display screen 294, and the touch sensor and the display screen 294 form a touch screen, also called a "touch screen”.
  • a touch sensor is used to detect touch operations on or near it.
  • the touch sensor can pass the detected touch operation to the application processor to determine the type of touch event.
  • visual output related to touch operations may be provided via display screen 294 .
  • the touch sensor may also be disposed on the surface of the electronic device 200 , which is different from the location where the display screen 294 is located.
  • the pressure sensor is used to sense the pressure signal and can convert the pressure signal into an electrical signal.
  • a pressure sensor may be provided on the display screen 294 .
  • the capacitive pressure sensor may be comprised of at least two parallel plates of conductive material. When a force is applied to the pressure sensor, the capacitance between the electrodes changes.
  • the electronic device 200 determines the intensity of the pressure according to the change in capacitance.
  • the electronic device 200 detects the intensity of the touch operation according to the pressure sensor.
  • the electronic device 200 can also calculate the touched position according to the detection signal of the pressure sensor.
  • touch operations with different touch operation intensities acting on the same touch position may correspond to different operation instructions. For example, when a touch operation whose intensity is less than the first pressure threshold acts on the short message application icon, the instruction for viewing the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold acts on the short message application icon, the instruction to create a new short message is executed.
  • the gyro sensor can be used to determine the motion attitude of the electronic device 200 .
  • the angular velocity of the electronic device 200 about three axes may be determined by a gyro sensor.
  • a gyro sensor can be used for image stabilization. Exemplarily, when the shutter is pressed, the gyro sensor detects the shaking angle of the electronic device 200, calculates the distance to be compensated by the lens module according to the angle, and allows the lens to counteract the shaking of the electronic device 200 through reverse motion to achieve anti-shake.
  • the gyroscope sensor can also be used for navigation, somatosensory game scenes.
  • Air pressure sensors are used to measure air pressure.
  • the electronic device 200 calculates the altitude through the air pressure value measured by the air pressure sensor to assist in positioning and navigation.
  • Magnetic sensors include Hall sensors.
  • the electronic device 200 can detect the opening and closing of the flip holster using the magnetic sensor.
  • the electronic device 200 can detect the opening and closing of the flip according to the magnetic sensor. Further, according to the detected opening and closing state of the leather case or the opening and closing state of the flip cover, characteristics such as automatic unlocking of the flip cover are set.
  • the acceleration sensor can detect the magnitude of the acceleration of the electronic device 200 in various directions (generally three axes).
  • the magnitude and direction of gravity can be detected when the electronic device 200 is stationary. It can also be used for recognizing the posture of the electronic device 200, and can be used in applications such as switching between horizontal and vertical screens, and pedometers.
  • the electronic device 200 can measure the distance through infrared or laser. In some embodiments, when shooting a scene, the electronic device 200 can use a distance sensor to measure the distance to achieve fast focusing.
  • Proximity light sensors may include, for example, light emitting diodes (LEDs) and light detectors, such as photodiodes.
  • the light emitting diodes may be infrared light emitting diodes.
  • the electronic device 200 emits infrared light to the outside through the light emitting diode.
  • Electronic device 200 uses photodiodes to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it may be determined that there is an object near the electronic device 200 . When insufficient reflected light is detected, the electronic device 200 may determine that there is no object near the electronic device 200 .
  • the electronic device 200 can use the proximity light sensor to detect that the user holds the electronic device 200 close to the ear to talk, so as to automatically turn off the screen to save power.
  • the proximity light sensor can also be used in holster mode, pocket mode automatically unlocks and locks the screen.
  • the ambient light sensor is used to sense ambient light brightness.
  • the electronic device 200 can adaptively adjust the brightness of the display screen 294 according to the perceived ambient light brightness.
  • the ambient light sensor can also be used to automatically adjust the white balance when taking pictures.
  • the ambient light sensor can also cooperate with the proximity light sensor to detect whether the electronic device 200 is in the pocket to prevent accidental touch.
  • the fingerprint sensor is used to collect fingerprints.
  • the electronic device 200 can use the collected fingerprint characteristics to realize fingerprint unlocking, accessing application locks, taking pictures with fingerprints, answering incoming calls with fingerprints, and the like.
  • a temperature sensor is used to detect temperature.
  • the electronic device 200 uses the temperature detected by the temperature sensor to execute the temperature processing strategy. For example, when the temperature reported by the temperature sensor exceeds a threshold value, the electronic device 200 reduces the performance of the processor 210 located near the temperature sensor, so as to reduce power consumption and implement thermal protection. In other embodiments, when the temperature is lower than another threshold, the electronic device 200 heats the battery 242 to avoid abnormal shutdown of the electronic device 200 caused by the low temperature. In some other embodiments, when the temperature is lower than another threshold, the electronic device 200 boosts the output voltage of the battery 242 to avoid abnormal shutdown caused by low temperature.
  • Bone conduction sensors can acquire vibration signals.
  • the bone conduction sensor can acquire the vibration signal of the vibrating bone mass of the human voice.
  • the bone conduction sensor can also contact the human pulse and receive the blood pressure beating signal.
  • the bone conduction sensor can also be disposed in the earphone, combined with the bone conduction earphone.
  • the audio module 270 can parse out the voice signal based on the vibration signal of the voice part vibrating the bone mass obtained by the bone conduction sensor, so as to realize the voice function.
  • the application processor can analyze the heart rate information based on the blood pressure beat signal obtained by the bone conduction sensor, so as to realize the function of heart rate detection.
  • the keys 290 include a power-on key, a volume key, and the like.
  • the keys 290 may be mechanical keys 290 .
  • the touch key 290 may also be used.
  • the electronic device 200 may receive key 290 inputs and generate key signal inputs related to user settings and function control of the electronic device 200 .
  • Motor 291 can generate vibrating cues.
  • the motor 291 can be used for vibrating alerts for incoming calls, and can also be used for touch vibration feedback.
  • touch operations acting on different applications can correspond to different vibration feedback effects.
  • the motor 291 can also correspond to different vibration feedback effects for touch operations on different areas of the display screen 294 .
  • Different application scenarios for example: time reminder, receiving information, alarm clock, games, etc.
  • the touch vibration feedback effect can also support customization.
  • the indicator 292 can be an indicator light, which can be used to indicate the charging status, the change of power, and can also be used to indicate messages, missed calls, notifications, and the like.
  • the SIM card interface 295 is used to connect a SIM card.
  • the SIM card can be contacted and separated from the electronic device 200 by inserting into the SIM card interface 295 or pulling out from the SIM card interface 295 .
  • the electronic device 200 may support 1 or N SIM card interfaces 295 , where N is a positive integer greater than 1.
  • the SIM card interface 295 can support Nano SIM card, Micro SIM card, SIM card and so on.
  • the same SIM card interface 295 can insert multiple cards at the same time.
  • the types of the plurality of cards may be the same or different.
  • the SIM card interface 295 can also be compatible with different types of SIM cards.
  • the SIM card interface 295 is also compatible with external memory cards.
  • the electronic device 200 interacts with the network through the SIM card to realize functions such as call and data communication.
  • the electronic device 200 employs an eSIM, ie: an embedded SIM card.
  • the eSIM card can be embedded in the electronic device 200 and cannot be separated from the electronic device 200 .
  • the solutions provided by the embodiments of the present application can be used in the electronic device 200 having the composition shown in FIG. 2 .
  • the electronic device 200 has positioning requirements. For example, in some embodiments, when the electronic device 200 can perform normal positioning through GPS positioning, the electronic device 200 can perform positioning through GPS positioning. In the case that the electronic device 200 cannot be positioned by GPS, the electronic device 200 can be positioned by using the solution provided by the embodiment of the present application. In other embodiments, the electronic device 200 may use the positioning method provided in the embodiments of the present application for positioning regardless of whether the positioning can be performed through GPS or not when there is a positioning requirement.
  • the specific implementation of the solutions provided in the embodiments of the present application will be introduced in detail in the subsequent description.
  • FIG. 2 is only a composition example of an electronic device.
  • the electronic device may also be a wearable electronic device that has positioning requirements, such as a smart watch.
  • the electronic device may also be a device such as a sensor that needs to be positioned.
  • the electronic device may be an independent component corresponding to the sensor module 280 shown in FIG. 2 , or the electronic device may also be One or more sensors in the sensor module 280 shown in FIG. 2 correspond to independent components or integrated components.
  • the specific form of the device is not particularly limited in this embodiment of the present application.
  • an electronic device with a positioning requirement may also be referred to as a device to be positioned.
  • the positioning of the device to be positioned may be implemented based on an associated device of the device to be positioned.
  • the associated device of the device to be located may be when the device to be located executes one or more applications installed therein, and the device to be located generates an application association during the execution of the application. device of.
  • the application association relationship may be the basis for realizing the corresponding function of the application installed on the device to be located. For example, take the device to be positioned as a mobile phone as an example.
  • a mobile phone executes a code scanning application
  • an application association relationship can be established with the QR code
  • the code scanning function can be realized by interacting with the QR code.
  • an application association relationship can be established with a collection terminal (such as a POS machine, or a QR code for collection), and a payment function can be realized through interaction with the collection terminal.
  • the application association relationship may be generated directly or indirectly.
  • the mobile phone in order to realize the payment function, the mobile phone can directly interact with the POS machine to complete the payment.
  • the POS machine may be a device that directly establishes an application association relationship with the mobile phone, that is, the POS machine may be an associated device of the mobile phone.
  • the associated device of the mobile phone may also include a device that indirectly generates an application association relationship with the mobile phone.
  • the direct interaction object of the mobile phone may be the POS machine in this scenario.
  • the POS machine may need to obtain payment information through other network nodes in order to support the mobile phone to complete the payment function.
  • Take the POS machine as an example to obtain payment information by establishing a WIFI connection with the router.
  • the router may be a device that indirectly establishes an application association relationship with the mobile phone in the process of realizing the payment function of the mobile phone. That is to say, in this scenario, the router may be an associated device that indirectly cooperates with the mobile phone to realize the payment function.
  • a device that indirectly cooperates with the device to be located to implement the application function may also include a device that does not have a direct application association relationship with the device to be located.
  • a POS machine in a payment scenario, can be used as a device that directly cooperates with a mobile phone to realize the payment function. If in this scenario, the POS machine also has a connection relationship with other devices, and the connection relationship may not need to support the payment function provided by the POS machine for the mobile phone.
  • the device that has a connection relationship with the POS machine can also be considered as an associated device that indirectly cooperates with the mobile phone to realize the payment function. Used to locate the phone.
  • the positioning of the device to be located may be implemented according to an associated device having an application association relationship with the device to be located, as in the above example.
  • a connection device having a communication connection relationship with the device to be located may also be combined to achieve more precise positioning of the device to be located. The specific implementation will be described in detail in the subsequent description.
  • the device during the use of the device to be located, it will interact with other electronic devices (or electronic devices) to implement functions in various scenarios.
  • a mobile phone when a user uses a payment function of a mobile phone, the mobile phone may interact with a point of sale (POS) terminal (referred to as a POS machine) with a payment function, so as to provide a payment function for the user.
  • POS point of sale
  • the mobile phone can scan the QR code with the camera under the control of the user, thereby providing the user with a code scanning function.
  • the above-mentioned electronic device or electronic device that interacts with the mobile phone to realize various functions during the use of the mobile phone may be referred to as an associated device of the mobile phone.
  • the associated devices of the mobile phone can have various forms.
  • the associated device may include a physical device, such as a Bluetooth beacon (Beacon), a mobile phone, a tablet computer, a TV, and the like.
  • the associated devices may also include devices that provide various services, such as two-dimensional codes, NFC tags, devices with AR object loading capabilities, printers, gates, and the like.
  • the mobile phone may have multiple different associated devices at the same time.
  • the device to be located (such as a mobile phone) can be associated with the associated device 1 - the associated device N.
  • N is a positive integer.
  • the mobile phone can realize the payment function through the interaction with the POS machine.
  • the POS machine can be an associated device of the mobile phone in this scenario.
  • the mobile phone can also interact with the NFC tag in the current store, so as to facilitate interaction with the device to which the NFC tag belongs, such as obtaining advertisement information corresponding to the NFC tag.
  • the NFC tag may be an associated device of the mobile phone in this scenario.
  • the associated device of the mobile phone may also interact with other devices.
  • the associated device directly associated with the mobile phone such as the associated device 1 or associated device 2 shown in FIG. 3 , etc.
  • the first-level associated device of the mobile phone a device that interacts with a level 1 associated device
  • a device that interacts with a level 1 associated device can be called a level 2 associated device of a mobile phone.
  • a device that interacts with a level 2 associated device may be referred to as a level 3 associated device of the phone.
  • FIG. 4 it is taken as an example that the associated device 1 has an interaction relationship with the associated device A, the associated device B, and the associated device C.
  • the level 1 associated device may include associated device 1 - associated device N.
  • Level 2 associated devices may include associated device A-associated device C.
  • POS machines can be included in the level 1 associated devices of mobile phones.
  • the POS machine may maintain a wireless connection with a local router in order to obtain payment information from the network. Then the router connected to the POS machine can be included in the level 2 associated device of the mobile phone.
  • one or more associated devices that implement a function (such as a payment function, etc.) of the device to be located may form a device chain of the device to be located together with the device to be located. That is, the device chain can be used to indicate the relationship between the device to be located and other surrounding devices or services.
  • the relationship may be a relationship corresponding to swiping a card, tapping, connecting to WiFi, paying, scanning a code, logging in, searching, a nearby service, a share service, or the like.
  • a touch can include a scenario where a mobile phone reads an NFC tag.
  • the device chain can be used to indicate the application association relationship (or simply referred to as the association relationship) between the device to be located and other surrounding devices (or objects, or services) in various scenarios.
  • the association relationship generally requires that the device to be located is not far from other devices. In this way, the device to be positioned can be positioned according to the device with the associated relationship (ie, the associated device).
  • the device to be located, the associated device 1 and the associated device A may form a device chain.
  • the device to be located, the associated device 1 and the associated device B can form another device chain.
  • the device to be located and the associated device 2 can also form a device chain.
  • the device to be located can determine the location information of the device to be located according to the positioning reference information of each associated device (such as a level 1 associated device and/or a level 2 associated device) on the device chain, and realize the treatment of the device to be located.
  • the positioning of the positioning device may include location information of each associated device, and/or accuracy information of the associated device, and the like.
  • the device to be positioned when the device to be positioned needs to be positioned, it can collect the positioning reference information of the above-mentioned associated device by itself, and perform positioning.
  • the device to be located is a device with processing functions such as a mobile phone, it can collect the location reference information of each associated device on the device chain by itself, and locate itself accordingly.
  • the device to be located can also be located through a cloud server when it needs to be located. It is understandable that for some devices to be located (such as sensors, smart bracelets, etc.) that do not have processing capabilities or have poor processing capabilities, they may not have the ability to determine their own location information based on positioning reference information, or due to protocol requirements. , the device to be positioned cannot obtain the positioning reference information by itself. At this time, in order to locate itself, the device to be located can send a positioning request to the cloud server, so that the cloud server can locate the device to be located according to the positioning reference information of the associated device of the device to be located.
  • the cloud server may be used for device management of all devices connected to the cloud server.
  • the device management may include maintenance of registration relationship, connection relationship, device status query, and the like.
  • device management also includes device location management.
  • the cloud server can open the device location query interface to the outside world, allowing other applications or devices to access the location information of a specific device. That is to say, the cloud server can obtain the positioning reference information of each associated device on the device chain of the device to be located.
  • a location request may be sent to the cloud server.
  • the cloud server can obtain the positioning reference information of each associated device from the associated devices corresponding to the device to be positioned (as shown in Figure 5, the level 1 associated device and the level 2 associated device, etc.) Location information of the device.
  • the cloud server may be a network device or a node capable of communicating with the device to be located.
  • the cloud server may be an independent access network device (or a component in the access network device) used to support the positioning solution provided by the embodiments of the present application.
  • the functions of the cloud server may also be integrated into other devices that provide network communication services for the device to be located.
  • the functions of the cloud server may be integrated in network devices such as an application server connected to the device to be located, a push server, and the like.
  • the functions of the cloud server may be integrated in nodes such as home gateways and routers to which the device to be located is connected.
  • the function of the cloud server can be implemented by related devices in the device cloud (Device clouds).
  • Device cloud technology is mainly oriented to industrial platform applications for remote data collection, and can be used for large-scale networking and management of terminals.
  • the functions covered include device access, device management, data forwarding, data storage, data display, data mining, terminal authentication, and operating billing.
  • the following description takes the cloud server as the device in the device cloud as an example.
  • the devices in the device cloud may also be simply referred to as the device cloud.
  • the method may include:
  • the device to be located sends a positioning request to the device cloud.
  • the device to be located may send a positioning request to the device cloud when there is a positioning requirement.
  • the positioning request may be used to request the device cloud to locate the device to be positioned.
  • the device cloud determines one or more associated devices of the device to be located according to the positioning request.
  • one or more associated devices of the device to be located may be devices on a device chain corresponding to the device to be located. It can be understood that when the device to be located corresponds to multiple device chains, the device cloud can determine multiple associated devices on the multiple device chains according to the positioning request.
  • the device cloud may determine a device chain corresponding to the device to be located according to the device identification (ID) indicating the device to be located in the location request.
  • ID device identification
  • the device cloud may be responsible for the management of each device connected to the device cloud. That is to say, the device cloud can know the association status of each access device. Therefore, when the device to be located and its associated devices are both connected to the device cloud, the device cloud can determine the information of each device chain of the device to be located according to the device ID of the device to be located. For example, in conjunction with FIG. 5 , it is assumed that N is equal to 2 as an example. Referring to FIG.
  • the device cloud can determine the device chain of the device to be located according to the device ID of the device to be located, which may include the device chain corresponding to the associated device 1 and the device chain corresponding to the associated device 2 . As shown in FIG. 7 , the device cloud can determine that the device chain corresponding to the associated device 1 also includes the associated device A, the associated device B, and the associated device C. Then, according to the device ID of the device to be located, the device cloud can determine that the associated devices of the device to be located can include: associated device 1, level 1 associated device composed of associated device 2, and associated device A, associated device B and associated device Class 2 associated equipment constituted by C.
  • the device cloud may further determine the associated device of the device to be located according to the associated information reported by the device to be located.
  • the device cloud can also determine the associated device of the device to be located according to the association information sent by the device to be located.
  • the association information may be sent together with the positioning request when the device to be located sends the positioning request, or may be sent by the device to be located to the device cloud through other signaling.
  • the association information may include the device ID of the associated device.
  • the device cloud may receive associated information from the device to be located, and the associated information may include associated device 1, associated device 2, and device IDs of associated device A, associated device B, and associated device C.
  • the associated information of the associated device may also be obtained by the device cloud in other forms.
  • the device cloud when the device to be located has a positioning requirement, the associated device that interacts with it is one or more fixed devices, then the device identifiers of these possible associated devices can be preset in the device cloud, so that , the device cloud can determine the associated device corresponding to the device to be located according to the preset information after receiving the positioning request.
  • the association information of the associated device may also be obtained by the device cloud through other devices related to the device to be located (such as a control device of the device to be located, etc.). This embodiment of the present application does not limit the manner in which the device cloud determines the associated device.
  • the device cloud may determine that the device to be located cannot perform positioning by itself before determining the associated device of the device to be located. That is, in this example, the device cloud may trigger the execution of S602 when it is determined that the device to be located cannot obtain its own position. In other embodiments of the present application, even if the device to be positioned can obtain its own position, the device cloud can trigger the execution of S602 and subsequent operations when receiving the positioning request, so that the device cloud can at least according to the embodiments of the present application The provided solution obtains the exact location of the device to be located.
  • the device cloud determines the positioning reference information of the associated device.
  • the positioning reference information may include at least one of the following information: the location of the associated device, the positioning accuracy of the associated device, and the like. In some embodiments, the positioning reference information may further include the positioning time of the associated device, and/or movement attributes, and the like.
  • the device cloud may determine the location of an associated device with location capabilities among Level 1 associated devices.
  • the device cloud can determine the location of the associated device 1 through communication with the associated device 1 .
  • the device cloud can determine the location of the associated device 2 through communication with the associated device 2 .
  • the device cloud in the case that each associated device in the level 1 associated device does not have the positioning capability, can obtain the location of the level 2 associated device. For example, in the case where neither the associated device 1 nor the associated device 2 has the positioning capability, the device cloud can communicate with one or more of the associated device A, the associated device B, and the associated device C to obtain the positioning capability. Location of level 2 associated equipment. For example, assuming that neither the associated device 1 nor the associated device 2 has the positioning capability, the device cloud can obtain the location of at least one of the associated device A, the associated device B, and the associated device C capable of positioning.
  • the positioning of the level 2 associated device is described as an example in the case that the level 1 associated device does not have the positioning capability.
  • the device cloud may also acquire the location reference information of the level 1 associated device and the level 2 associated device at the same time.
  • the device cloud may determine the location accuracy of each associated device in addition to determining the location of the associated device.
  • the positioning accuracy of the associated device may be used to indicate the coverage of the associated device. It can be understood that, as an associated device of the device to be positioned, the position of the device to be positioned should be within the positioning accuracy range of the associated device. Exemplarily, the positioning accuracy of the associated device may be identified by the positioning range. As an example, Table 1 shows an example of the correspondence relationship between the positioning accuracies of different associated devices.
  • POS machine ⁇ 5cm gate ⁇ 5cm NFC tags ⁇ 5cm router ⁇ 100m QR code ⁇ 1m
  • Attendance machine ⁇ 500m Share machine ⁇ 10m other cell phones ⁇ 10m Big screen ⁇ 5m PC or tablet ⁇ 1m printer ⁇ 50cm Connect the device ⁇ 10m ... ...
  • the device cloud can know the positioning accuracy of different associated devices.
  • the associated device 1 is a POS machine and the associated device 2 is a router. Then, according to Table 1, the device cloud can determine that the positioning accuracy of the associated device 1 is 5 cm, and the positioning accuracy of the associated device 2 is 100 m.
  • the associated device column in Table 1 may also be identified by the device ID of each associated device.
  • the device cloud can also simultaneously acquire the positioning reference information of each associated device including the positioning accuracy and position.
  • Table 2 is another example of the positioning reference information of the associated device obtained by the device cloud provided by the embodiment of the present application.
  • Associated devices Location positioning accuracy POS machine address A ⁇ 5cm gate address B ⁇ 5cm NFC tags address C ⁇ 5cm router address D ⁇ 100m QR code addressE ⁇ 1m Attendance machine address F ⁇ 500m Share machine address G ⁇ 10m other cell phones addressH ⁇ 10m Big screen address I ⁇ 5m PC or tablet address J ⁇ 1m printer address K ⁇ 50cm Connect the device address L ⁇ 10m ... ... ...
  • the associated device 1 is a POS machine and the associated device 2 is a router.
  • the device cloud can determine that the location accuracy of the associated device 1 is 5cm, and the location of the POS machine is address A; similarly, the device cloud can determine that the location accuracy of the associated device 2 is 100m, and the location of the router is the address D.
  • the device cloud can obtain the positioning reference information of the associated device through different ways.
  • the device cloud may obtain positioning reference information from associated devices, for example, the device cloud may obtain the position and positioning accuracy of each associated device through communication with the associated device.
  • the positioning reference information of different associated devices may also be stored in the device cloud. In this way, after the device cloud determines the associated device, the positioning reference information corresponding to the associated device can be determined by using different multiple stored positioning reference information.
  • the device cloud locates the device to be located according to the location reference information of the associated device.
  • the device cloud can determine the location of the device to be located according to the location and positioning accuracy of the associated device corresponding to the device to be located.
  • the device cloud may refer to the determination methods shown in the following four cases, and locate the device to be positioned according to the positioning reference information.
  • Case 1 Take device 1 as the device to be located as an example.
  • Device 1 is associated with device 0, that is, device 0 is an associated device of device 1.
  • the error 0 may be the positioning accuracy range of the device 0 . It can be understood that, in this case, because the location of device 1 is unknown, but an association relationship is generated between device 1 and device 0, it means that device 1 must be near device 0. So the location of device 0 can be used as the location of device 1.
  • the range of the positioning accuracy of the device 0 can be used as the positioning error of the device 1. It should be noted that when there is also an error in the position of the device 0 itself, the two errors need to be superimposed.
  • Case 2 Take device 2 as the device to be located as an example.
  • Device 2 is associated with Device 1, and Device 1 is associated with Device 0. That is, device 1 is an associated device of device 2.
  • Device 0 is an associated device of Device 1. That is, for device 2, device 1 is a level 1 associated device and device 0 is a level 2 associated device.
  • the position and positioning accuracy range of device 0 is known.
  • Device 2 cannot be located, so device 2 can be located based on its associated device (eg, device 1).
  • the location of the device 1 can be determined according to the location of the device 0 . In this example, the location of device 2 may be determined to be in the vicinity of device 0 .
  • Case 3 Take device 1 as the device to be located as an example.
  • Device 1 is associated with device 0. That is, device 0 is an associated device of device 1.
  • Device 1 or device 0 has a movement attribute, that is, the relative movement of the existing positions of device 1 and device 0.
  • device 1 and device 0 are both mobile phones. After the two mobile phones use the share service, the two mobile phones move in different directions.
  • the positioning result of the device 1 can be corrected according to the movement attribute, so as to increase the error caused by the movement of the two devices. For example, if only one device is moving, only the movement error of one device needs to be superimposed. For another example, if both devices move, the movement errors of the two devices can be superimposed.
  • the movement error of the device can be calculated and obtained according to the movement speed and time of the device.
  • the moving speed of the device can be acquired by the device itself through sensors, or acquired by the device cloud through other means.
  • Case 4 Take device 2 as the device to be located as an example.
  • Device 2 associates with device 0 and device 1 in the same time period. That is, both device 0 and device 1 are associated devices of device 2.
  • the device 2 is both within the positioning accuracy range of the device 0 and within the positioning accuracy range of the device 1 . Therefore, device 2 must be in the intersection space of the positioning accuracy range of device 0 and device 1. Therefore, the position of the device 2 may be the position corresponding to the intersection area.
  • the device cloud may determine the location information of the device to be located according to the location reference information of a level 1 associated device.
  • the location information of the device to be located may be determined according to the location reference information.
  • the associated device 1 is a POS machine.
  • FIG. 8 is a schematic diagram of a positioning scenario provided by an embodiment of the present application.
  • the device to be located such as a mobile phone
  • the device cloud determines that the mobile phone is performing a card transaction, and confirms that the POS machine is the associated device of the mobile phone.
  • the device cloud determines the location information of the POS machine. For example, through the POS machine or the management platform of the POS machine, query the registration location of the POS machine.
  • the device cloud can determine the positioning reference information of the POS machine (for example, the location of the POS machine is merchant A). According to the positioning reference information of the POS machine, the device cloud can locate the mobile phone. It can be understood that, in combination with Table 2, the positioning accuracy of the POS machine is within 5 cm. The device cloud can also determine that the POS machine is located in merchant A according to the positioning reference information of the POS machine. Therefore, the device cloud can determine that the location of the mobile phone is merchant A, and the error is less than 5cm.
  • the device cloud can reduce the location of the mobile phone to the positioning accuracy range of the associated device (such as this example). 5cm in the example) can achieve precise positioning of the device to be located without introducing a new positioning protocol, etc., so it can be well applied to most of the positioning scenarios of the device to be located.
  • the device cloud may determine the location information of the device to be located according to the location reference information of multiple level 1 associated devices.
  • the location information of the device to be located may be jointly determined according to the location reference information of different associated devices.
  • FIG. 9A is a schematic diagram of yet another positioning scenario provided by an embodiment of the present application.
  • the device to be located such as a mobile phone
  • the associated device 1 the POS machine shown in FIG. 9A
  • the associated device 2 the Bluetooth beacon shown in FIG. 9A
  • a positioning request is sent to the device cloud (the device cloud is not shown in the figure).
  • the device cloud can obtain the positioning reference information of the POS machine and the Bluetooth beacon. Take the positioning reference information including the position and positioning accuracy of the POS machine as an example.
  • the device cloud can determine that the location of the POS machine is address A, and the positioning accuracy is 5cm; the location of the Bluetooth beacon is the address M, and the positioning accuracy is 10m as an example. It should be noted that the corresponding relationship in Table 2 is only distance, and all associated devices are not exhaustive.
  • the associated device may also include a Bluetooth beacon, and the location of the Bluetooth beacon may be address M , the positioning accuracy can be 10m. In this way, according to the positioning reference information of the POS machine and the Bluetooth beacon, the device cloud can determine that the mobile phone can be located in an area where the positioning accuracy ranges of the POS machine and the Bluetooth beacon overlap.
  • the positioning information of the mobile phone includes the overlapping area of the positioning accuracy range of the POS machine (eg, within 5cm around address A) and the positioning accuracy range of the Bluetooth beacon (eg, within 10m around address M).
  • the overlapping area may be the positioning accuracy range of the POS machine. That is to say, in this scenario, the location information of the mobile phone may include a range of 5 cm around the address A.
  • the positioning information of the mobile phone may include a smaller range of the positioning accuracy range of the associated device.
  • the mobile phone may also be positioned according to the overlapping area.
  • the associated device 1 is a mobile phone 2 that is interconnected with a device to be located (eg, a mobile phone 1 ) for a share service, and the associated device 2 is a Bluetooth beacon as an example.
  • the mobile phone 1 can send a positioning request to the device cloud in the process of interacting with the associated device 1 (mobile phone 2 shown in FIG. 9B ) and the associated device 2 (the Bluetooth beacon shown in FIG. 9B ) (The device cloud is not shown in the figure).
  • the device cloud can obtain the positioning reference information of the mobile phone 2 and the Bluetooth beacon. Take the positioning reference information including the position and positioning accuracy of the mobile phone 2 as an example.
  • the device cloud can determine the location of mobile phone 2 as the address (such as address X). Since the mobile phone 2 has a share service relationship with mobile phone 1, the positioning accuracy of mobile phone 2 is 5m; the location of the Bluetooth beacon is used as the address. M, the positioning accuracy is 10m as an example. In this way, according to the positioning reference information of the mobile phone 2 and the Bluetooth beacon, the device cloud can determine that the mobile phone 1 can be located in the area where the positioning accuracy ranges of the mobile phone 2 and the Bluetooth beacon overlap. Therefore, the positioning information of the mobile phone 1 includes the overlapping area of the positioning accuracy range of the mobile phone 2 (eg, within 5m around the address X) and the positioning accuracy range of the Bluetooth beacon (eg, within 10m around the address M). With reference to FIG. 9B , the device cloud can determine that the positioning information of the mobile phone 1 includes the positioning area as shown in the figure.
  • the associated device may also be a passive device that does not belong to an electronic device.
  • NFC tags NFC tags
  • QR codes other electronic tags.
  • electronic tags such as NFC tags or two-dimensional codes, which are different from electronic devices that actively provide services such as POS machines or Bluetooth beacons in the above examples
  • users need to use other electronic devices and electronic tags. interact. For example, when users need to obtain product information, they can scan the QR code on the product package with an electronic device with a "scan" function, so that the electronic device can obtain the product information by analyzing the information carried by the QR code.
  • the user when the user needs to obtain the detailed information of the advertisement column through the NFC transmission protocol, the user can use an electronic device with the NFC reading function to communicate with the NFC tag, so that the electronic device can read the detailed information of the advertisement column through the NFC transmission protocol. .
  • the positioning method of the embodiment of the present application will be exemplarily described by taking as an example that the associated device of the device to be located includes an electronic tag (such as a two-dimensional code) and a Bluetooth beacon.
  • an electronic tag such as a two-dimensional code
  • a Bluetooth beacon
  • the two-dimensional code may be a static two-dimensional code. For example, if the two-dimensional code should be printed and posted at the location of the store, the location of the two-dimensional code is relatively fixed, and the two-dimensional code may be a static two-dimensional code.
  • the posting position of the QR code may be manually configured by the user.
  • the device cloud can determine the effective scanning range of the QR code.
  • the effective scanning range of the two-dimensional code can be a space within 5 meters in the direction of the posting position as the origin, facing the direction of the two-dimensional code.
  • the effective scanning range of the two-dimensional code may be the fan-shaped area as shown in the figure.
  • the Bluetooth beacon is used as a level 1 associated device of the mobile phone, the mobile phone will also be within the positioning accuracy range of the Bluetooth beacon. Therefore, the mobile phone or device cloud can determine the location of the mobile phone according to the effective scanning range of the QR code and the positioning accuracy range of the Bluetooth beacon.
  • the mobile phone can be positioned by the following methods: the mobile phone can send a positioning request to the device cloud; after receiving the positioning request, the device cloud can determine that the associated device of the mobile phone includes a QR code and Bluetooth beacons; the device cloud can determine the QR code and the positioning reference information of the Bluetooth beacon, such as the effective scanning range of the QR code and the location of the QR code, the effective positioning range of the Bluetooth beacon and the location of the Bluetooth beacon; the device cloud can The location of the device to be located (such as the mobile phone in the above description) is determined according to the positioning reference information of the two-dimensional code and the Bluetooth beacon.
  • the device cloud can locate the mobile phone through the following steps: Step 1: The device cloud receives a positioning request for the mobile phone, and the device cloud confirms that the mobile phone itself cannot be located. Step 2: The device cloud confirms that the mobile phone detects the Bluetooth Beacon, and at the same time confirms that the mobile phone scans the code, and confirms that the Bluetooth Beacon and the QR code are associated devices of the mobile phone. Step 3: The device cloud determines the location information of the Bluetooth Beacon and the QR code. The location information of the Bluetooth beacon and the two-dimensional code may be determined by the management platform or the issuing agency of the Bluetooth beacon and the two-dimensional code.
  • Step 4 The device cloud determines the location of the Bluetooth Beacon (for example, at the entrance of a store), with a coverage range of 10m.
  • the location of the QR code is at the cashier counter of the store, covering a fan-shaped area of 5m.
  • Step 5 The device cloud determines that the mobile phone must be within the coverage of the Bluetooth Beacon and the coverage of the QR code at the same time, so the device must be in the positioning area as shown in Figure 10.
  • Level 1 associated devices of the device to be located have the positioning capability (corresponding to Case 1 and Case 4 in the foregoing description)
  • the device to be positioned can be positioned accurately and quickly when the method shown in FIG. 6 is adopted.
  • the device cloud obtains the location information of the device to be located as an example for description.
  • the device to be located itself has If the associated device has the ability to determine the current location, the method steps described in FIG. 6 can also be completed by the device to be located, without the need for the device cloud to be executed.
  • the device cloud can determine the location reference information of the level 2 associated device or the level 3 associated device and other associated devices, and based on the location reference information of the level 2 associated device This locates the device to be located.
  • the Level 2 associated device may be a device that interacts with the Level 1 associated device.
  • a level 3 associated device may be a device that interacts with a level 2 associated device.
  • the device to be located is a mobile phone and the level 1 associated device is a POS machine as an example.
  • the device cloud receives the positioning request for the mobile phone, it can determine that the mobile phone is performing a credit card transaction, thereby confirming that the POS machine is an associated device of the mobile phone.
  • the device cloud can determine the positioning reference information of the POS machine. For example, the device cloud can query the registered location of the POS machine through the POS machine or the management platform of the POS machine.
  • the device cloud determines that the POS machine cannot be located, it determines that the POS machine is connected to the WiFi signal of the router, and thus determines that the router is an associated device of the POS machine, so the router is a level 2 associated device of the mobile phone.
  • the association between the router and the POS machine is a communication connection relationship generated based on the communication connection.
  • the device cloud can determine the positioning reference information of the router. For example, Device Cloud determines that the WiFi router is located at Merchant A through WiFi registration information or the WiFi router provider. According to the positioning reference information of the router, the device cloud can determine that the location of the mobile phone is near merchant A. Because the positioning accuracy of the POS machine is less than 5cm. The positioning accuracy of the router is about 100m. Therefore, the device cloud can determine that the location of the mobile phone is merchant A, with an error of 100m.
  • the level 1 associated device does not have the positioning capability
  • the level 2 associated device has the positioning capability as an example for description.
  • the device cloud may treat the level 2 associated device according to other devices related to the level 2 associated device (such as a level 3 associated device or a level 4 associated device, etc.).
  • the positioning device performs positioning, and its specific implementation manner is similar to the above example, and details are not repeated here.
  • a level 1 associated device is a device that can directly interact with the device to be located
  • a level 2 associated device is a device that can directly interact with a level 1 associated device.
  • the level 1 associated device and/or the level 2 associated device may also have different distinctions. Exemplarily, it is taken as an example that there are multiple devices that can interact with the device to be located at the same time. In some implementations, since all of these multiple devices can directly interact with the device to be located, they can be used as level 1 associated devices of the device to be located.
  • the device cloud may, according to the respective accuracy ranges of these associated devices, the coupling situation between each associated device and the current scene where the device to be located is located (such as whether the associated device can provide services in the current scene), etc.
  • Associated devices are distinguished. For example, an associated device whose positioning accuracy range is less than a corresponding preset threshold and can provide services in the current scenario is defined as a level 1 associated device.
  • the device cloud can locate the device to be located according to these level 1 associated devices. For the specific solution, reference may be made to the descriptions of Case 1 to Case 4 in the above example, which will not be repeated here.
  • the device to be positioned can be positioned.
  • the device to be positioned can be positioned through the solution provided by the embodiment of the present application (the solution shown in FIG. 6 ), the user can be positioned, and then the functions in the corresponding scenario can be realized according to the user's position. .
  • each smart service in the smart life scenario can be regulated by the smart system.
  • the smart system may be a hub that controls and manages each smart device in the scenario.
  • the smart system (referred to as the system for short) in this example may correspond to the device cloud in the above description.
  • the system can realize some intelligent capabilities in this scene by locating the user (for example, determining which room the user is in). For example, when the system receives an instruction from the user to "turn on the lights", it can light up the lighting equipment in the corresponding room in combination with the information of the room where the user is located.
  • the system can locate the user by locating the electronic device worn or used by the user. For example, take the system positioning the user through the smart watch worn by the user as an example. That is, the smart watch is the device to be located.
  • the system initiates the positioning of the smart watch.
  • smartwatches cannot locate themselves precisely when they are in an indoor environment.
  • the smart watch detects the currently searchable Bluetooth/WIFI devices.
  • the smart watch can detect devices such as smart speakers, multiple routers (such as R1-R5).
  • the smart watch can determine the closest associated device to the smart watch according to the distance between each device and the smart watch.
  • the smart watch may send detection signals to each device, and determine the closest associated device according to RSSI or other parameters of the detection signals.
  • the system can determine the closest distance to the smart speaker. Then, the smart watch can use the smart speaker as its level 1 associated device.
  • the system can obtain the information of the associated device (such as the device ID of the smart speaker) from the smart watch, and determine the positioning reference information of the smart speaker.
  • the system can determine the location range of the smart watch according to the positioning reference information of the smart speaker (eg, the location of the smart speaker, etc.).
  • the system can determine the specific room where the smart watch is located.
  • the location of the smart speaker can be configured by the user, or determined by the smart speaker or the system through positioning.
  • the system in the case where the smart speaker does not have the positioning capability, the system can determine the level 2 associated devices associated with the smart speaker (routers R1-R5 as shown in FIG. 12 ).
  • the system can determine the corresponding relationship between different routers and rooms based on the location of R1-R5 and the floor plan in the scenario. Then, according to the effective positioning accuracy range of each router and the location of each router, the system can determine the location of the smart speaker. For example, the system can determine that the speaker is located in the intersection area of the positioning accuracy range of R1-R3, then the system can determine that the smart speaker is located in room A accordingly.
  • the system can determine that the user is currently in the room A. In this way, when the system receives an instruction from the user, such as "turn on the light” through a voice instruction, it can turn on the lighting equipment in room A.
  • the device cloud may obtain the positioning reference information of the currently associated device in the case of receiving the positioning request of the device to be located, and locate the device to be located accordingly. In some embodiments, if the device to be located needs to know its own positioning result, the device cloud may send the location information to the device to be located after determining the location information of the device to be located.
  • the device to be located may be mobile, or the device to be located does not interact with any device when initiating a positioning request, so there is no associated device.
  • the embodiment of the present application further provides a positioning method, which can realize the positioning of the device to be positioned.
  • FIG. 13 is a schematic diagram of still another positioning method provided by an embodiment of the present application. As shown in Figure 13, the method may include:
  • the device to be located sends a location request to the device cloud.
  • the location request may include the time when the location request was sent.
  • the device cloud determines historical associated devices of the device to be located according to the positioning request.
  • the device cloud determines the location reference information of the historically associated device.
  • the device cloud can determine the status of the associated devices of the device to be located within a period of time before initiating the positioning request. For example, before the device to be located sends a positioning request, it can interact with different associated devices at different times, and the device cloud can obtain information about these associated devices respectively.
  • Table 3 shows an example of the location reference information of a historically associated device determined by a device cloud.
  • Associated equipment business Associated devices start time failure time Location positioning accuracy Pay by card POS machine 13:00 13:01 address A ⁇ 5cm Metro bus scan code gate 13:02 13:03 address B ⁇ 5cm touch NFC tags 14:15 14:16 address C ⁇ 5cm Connect to WiFi router 15:23 16:30 address D ⁇ 100m Take a photo and scan the code QR code 15:24 15:25 addressE ⁇ 1m Attendance Attendance machine 17:30 17:31 address F ⁇ 500m Share service Share machine 18:00 18:10 address G ⁇ 10m face to face group building other cell phones 18:45 18:50 addressH ⁇ 10m screencast Big screen 19:00 19:30 address I ⁇ 5m Multi-screen collaboration PC or tablet 20:00 21:00 address J ⁇ 1m Scan code to print printer 20:21 20:22 address K ⁇ 50cm Shared hotspot Connect the device 21:00 22:00 address L ⁇ 10m ... ... ... ... ... ... ... ...
  • the device cloud can know the effective time of interaction between each associated device and the device to be located in the historical interaction process.
  • the device cloud can determine the validity of the positioning reference information of each historically associated device. For example, when the time carried by the positioning request received by the device cloud is 22:05, according to Table 3, the device cloud can know that the closest interaction to the time when the positioning request is received is the interaction with the connected device. That is, since the time is the closest, the location of the device to be located is the closest to the location of the connected device. In this way, the device cloud can determine the location of the device to be located based on the location and positioning accuracy of the connected device.
  • the device cloud may select the positioning reference information of multiple associated devices that are closer to the time carried by the positioning request as valid positioning reference information, so as to combine the positioning reference information of these associated devices to locate the device to be positioned .
  • the selection of multiple associated devices may be determined by the device cloud according to the length of the interval, or may be selected by the device cloud according to a preset number, or may be determined by the device cloud according to the user's historical habits.
  • the corresponding relationship may also include service information provided by each historical association device.
  • the device cloud can determine that the service provided by the POS machine is payment by card.
  • the device cloud can determine that the service provided by the turnstile is the subway bus code scanning.
  • the device cloud can also determine that the service provided by the connected device is a shared hotspot.
  • the device cloud locates the device to be located according to the location reference information of the historically associated device.
  • the device cloud may locate the device to be positioned according to valid positioning reference information.
  • the device cloud uses the closest interaction with the time when the positioning request is received as valid positioning reference information as an example. For example, if the time in the positioning request is 22:05, the device cloud can use the positioning reference information of the connected device as valid positioning reference information. In this way, the device cloud can determine that the location of the device to be located is within 10m of the address L.
  • the device cloud uses the three interactions that are closest to the time when the positioning request is received as valid positioning reference information as an example. For example, if the time in the positioning request is 22:05, the device cloud can use the positioning reference information of the PC or tablet, printer, and connected device as valid positioning reference information. In this way, the device cloud can use the intersection area indicated by the multiple positioning reference information as the positioning result of the device to be located. For example, the device cloud can use the 1m range around the address J, the 50cm range around the address K, and the poor area within 10m range of the address L as the positioning result of the device to be located.
  • the device cloud may also determine the movement attribute of the device to be located according to the location reference information of the historically associated device.
  • the movement attribute may include the possible movement direction and/or movement distance of the device to be positioned.
  • the device cloud may determine the movement attribute of the device to be located according to the positioning reference information of different historically associated devices.
  • the movement attribute of the device to be located may be determined by the device cloud according to the interaction time of each historically associated device and the location of each historically associated device.
  • the device cloud can be determined according to Table 3.
  • the device to be located is using the scan code printing service provided by the printer.
  • the device to be located is using the shared hotspot service provided by the connected device. From this, the device cloud can determine with certainty that the movement properties of the device are along the direction the printer points to the connected device.
  • the device cloud can determine the orientation of the device to be located in the area indicated by the positioning reference information, and the above-mentioned direction.
  • the device cloud may also acquire the movement attribute of the device to be located from the device to be located.
  • the movement attribute of the device to be positioned may be determined according to an acceleration sensor, a gyroscope sensor, and other sensors capable of distinguishing direction and speed, which are set in the device to be positioned.
  • the device cloud can obtain its movement attributes from the device to be located, and locate the device to be located in combination with the location reference information of the historically associated device.
  • the mobile phone can interact with the POS machine at time T1, and send a positioning request to the device cloud at time T2 after time T1. Since there is no associated device on the mobile phone at time T2, the device cloud refers to the solution shown in Figure 13 to determine the historical associated device (such as a POS machine) of the mobile phone. In some embodiments, the device cloud can also determine the current movement attribute of the mobile phone. For example, the mobile phone can determine that the mobile phone is moving at a speed of 1 meter per second through the acceleration sensor set therein. The device cloud can obtain the mobile attribute from the mobile phone, and then determine the mobile phone.
  • the current position is: the position around the positioning accuracy range with the position of the POS machine as the center.
  • the positioning information of the mobile phone is determined.
  • the device cloud can locate the mobile phone according to the following steps: Step 1: The device cloud receives the positioning request for the mobile phone, and the device The cloud confirms that the phone itself cannot be located. Step 2: The device cloud confirms that the mobile phone has made a credit card transaction 2 minutes ago, and confirms that the POS machine is the associated device of the mobile phone. Step 3: The device cloud determines the location information of the POS machine.
  • Step 4 The device cloud determines that the location of the POS machine is Merchant A.
  • Step 5 The device cloud determines that the location of the mobile phone is Merchant A according to the location of the POS machine.
  • the device cloud can adjust the positioning result of the mobile phone in combination with the mobile attribute of the mobile phone. For example, according to the mobile attribute of the mobile phone, the device cloud determines that the mobile phone can move up to 50m in 2 minutes. Then the device cloud can determine that the location of the mobile phone is merchant A, with an error of 50m.
  • the device cloud can re-determine the position of the mobile phone according to the distance moved by the mobile phone and the position of the associated device.
  • the movement attribute acquired by the device cloud from the device to be positioned may include the full amount of data collected by the device to be positioned through the sensors provided in the device to be positioned as shown in the above example. After acquiring the movement attribute, the device cloud can process the full amount of data included in the movement attribute, thereby obtaining the movement situation of the device to be located. In other embodiments, the movement attribute acquired by the device cloud from the device to be positioned may also include data after the device to be positioned processes the full amount of data collected by the sensor. The processed data can be used to indicate the movement of the device to be located. In this way, data processing is performed on the device to be located, which can effectively reduce the amount of data transmission with the device cloud.
  • the device to be located currently has no associated device.
  • the device cloud can still collect historical association information of the device to be located.
  • the device cloud can combine the location reference information of the historically associated device to adjust the position determined according to the current associated device, so that the positioning result is more in line with the use logic of the device to be located, thereby further improving the positioning. Accuracy.
  • the device cloud can locate the device to be located according to the historical associated devices. In some embodiments of the present application, when the device to be positioned needs to be positioned, if there is no associated device in the current environment, the device cloud can also wait for the device to be positioned to interact with other devices before positioning the device to be positioned.
  • the device cloud may enter a waiting (pending) state when it is determined that there is no associated device in the current environment when receiving the mobile phone positioning request.
  • the device cloud can obtain the interaction of the mobile phone in real time, so that when an associated device appears, the mobile phone can be positioned according to the positioning reference information of the associated device.
  • the mobile phone sends a positioning request at time T3, and there is no associated device in the environment; the mobile phone interacts with the NFC tag at time T4 after time T3 as an example.
  • the device cloud can locate the mobile phone through the following steps: Step 1.
  • the device cloud receives a positioning request for the mobile phone, and the device cloud confirms that the mobile phone itself cannot be located.
  • the device cloud determines that the mobile phone currently has no associated device, or that the history of the associated device is too long and has no reference value.
  • Step 3. The device cloud determines that the device scans the NFC tag.
  • Step 5. The device cloud determines that the location of the mobile phone is at the NFC tag, resumes the suspended device location request, and returns the location result.
  • the specific implementation manner of the device cloud locating the mobile phone according to the NFC tag may refer to the solution shown in FIG. 13 or FIG. 6 , which will not be repeated here.
  • each functional module may be divided into each function, or two or more functions may be integrated into one processing module.
  • the above-mentioned integrated modules can be implemented in the form of hardware, and can also be implemented in the form of software function modules. It should be noted that, the division of modules in the embodiments of the present application is schematic, and is only a logical function division, and there may be other division manners in actual implementation.
  • FIG. 16 is a schematic diagram of the composition of a positioning device 1600 according to an embodiment of the present application.
  • the positioning apparatus 1600 can be used for positioning the device to be positioned.
  • the positioning apparatus 1600 may be set in a cloud server (eg, a device cloud) as shown in FIG. 5 .
  • a cloud server eg, a device cloud
  • the positioning apparatus 1600 includes: a determining unit 1601, configured to determine one or more associated devices of the device to be located when the device to be located is located. Wherein, when the device to be located executes the application, the associated device has an application association relationship with the device to be located.
  • the application association relationship includes: when the device to be located executes the application, the associated device directly or indirectly cooperates with the device to be located to realize the function of the application, and the association relationship occurs with the device to be located.
  • the acquiring unit 1602 is configured to acquire one or more positioning reference information of the associated device.
  • the determining unit 1601 is further configured to determine the location information of the device to be located according to the location reference information of the one or more associated devices.
  • the associated device having an application association relationship with the device to be located includes a first associated device.
  • the obtaining unit 1602 is configured to obtain first positioning reference information of the first associated device.
  • the determining unit 1601 is configured to determine that the position of the device to be positioned is within a certain range of the position indicated by the first positioning reference information.
  • the first positioning reference information includes first location information.
  • the determining unit 1601 is configured to determine that the position of the device to be positioned is the position indicated by the first position information.
  • the first positioning reference information further includes: a first positioning accuracy.
  • the determining unit 1601 is configured to determine that the position of the device to be positioned is within a first accuracy range of the position indicated by the first position information, where the first accuracy range is indicated by the first positioning accuracy.
  • the determining unit 1601 before acquiring the first positioning reference information of the first associated device, is further configured to determine whether the first associated device has a positioning capability.
  • the obtaining unit 1602 is configured to obtain the first positioning reference information when the first associated device has positioning capability.
  • the associated device that has an application association relationship with the device to be located includes a second associated device, and the second associated device is a device that directly cooperates with the device to be located to realize the function of the application.
  • the obtaining unit 1602 is configured to obtain second positioning reference information of a third associated device, where the third associated device is an associated device of the second associated device.
  • the determining unit 1601 is configured to determine the position of the device to be positioned according to the second positioning reference information.
  • the acquiring unit 1602 is configured to acquire the second positioning accuracy of the second associated device.
  • the determining unit 1601 is configured to determine the position of the device to be positioned according to the second positioning reference information and the second positioning accuracy.
  • the second positioning reference information includes: second position information and third positioning accuracy.
  • the position of the device to be positioned includes: within a second accuracy range of the position indicated by the second position information, wherein the second accuracy range is jointly indicated by the second positioning accuracy and the third positioning accuracy.
  • the associated device of the device to be located in the current scene further includes a fourth associated device.
  • the fourth associated device has positioning capability.
  • the obtaining unit 1602 is further configured to obtain third positioning reference information of the fourth associated device.
  • the determining unit 1601 is configured to determine the location information of the device to be located according to the first positioning reference information and the third positioning reference information.
  • the first positioning reference information includes first position information and first positioning accuracy
  • the third positioning reference information includes third position information and fourth positioning accuracy.
  • the position information of the device to be positioned includes: the device to be positioned is located in a positioning area, the positioning area includes an overlapping part of a first area and a second area, and the first area is the first precision of the position indicated by the first position information The area within the range, the first accuracy range is indicated by the first positioning accuracy.
  • the second area is an area within a third precision range of the position indicated by the third position information, and the third precision range is indicated by the fourth positioning precision.
  • the positioning apparatus 1600 further includes: a receiving unit 1603, configured to receive a positioning request, where the positioning request includes the device identifier of the device to be located.
  • the determining unit 1601 is configured to determine one or more associated devices according to the device identifier.
  • the receiving unit 1603 is configured to receive a positioning request, where the positioning request includes one or more associated device identifiers of the device to be located.
  • the associated device is determined according to the associated device identifier.
  • the determining unit 1601 is further configured to determine one or more historical associated devices of the device to be located, the The historical associated device is an associated device determined according to the application association relationship between the device to be located and the associated device that has occurred in history.
  • the obtaining unit 1602 is configured to obtain historical positioning reference information of the one or more historically associated devices, and the determining unit 1601 is configured to determine the position information of the device to be positioned according to the historical positioning reference information.
  • the historical positioning reference information includes location information of the one or more historically associated devices, and at least one of the following: the positioning accuracy of the one or more historically associated devices or the relationship between the device to be located and the device to be located.
  • the one or more historical association devices maintain time information of the association relationship.
  • the determining unit 1601 is configured to obtain information from the one or more historically associated devices , select one or more devices whose time information is close to the positioning time indicated by the positioning request as a valid associated device, and determine the position information of the device to be positioned according to the position information of the one or more valid associated devices.
  • the obtaining unit 1602 is further configured to obtain a movement attribute of the device to be positioned, where the movement attribute is used to indicate a movement state of the device to be positioned.
  • the determining unit 1601 is configured to determine the position information of the device to be positioned according to the historical positioning reference information and the movement attribute.
  • the positioning apparatus 1600 further includes: a detection unit 1604, configured to detect the application association relationship of the device to be located when there is no associated device of the device to be located when the positioning request is received changes.
  • the determining unit 1601 is configured to determine, when the application association relationship of the device to be located changes, a fifth associated device that has an application association relationship with the device to be located.
  • the obtaining unit 1602 is configured to obtain fourth positioning reference information of the fifth associated device, and determine the position of the device to be positioned according to the fourth positioning reference information.
  • the device to be located is further associated with one or more connected devices based on a communication protocol connection relationship, and the determining unit 1601 is configured to determine the location information of the one or more connected devices.
  • the determining unit 1601 is further configured to determine the location information of the device to be located according to the location information of the one or more connected devices and the location reference information of the one or more associated devices.
  • the positioning apparatus 1600 is provided in a server, or a device to be positioned.
  • the associated device includes at least one of the following: a smart terminal device, a Bluetooth beacon, a two-dimensional code, a near field communication NFC tag, a POS machine, a printer, and a gate device.
  • the application scenario in which the device to be located includes at least one of the following: swiping a card, reading an NFC tag, paying, scanning a code, searching for services, and sharing services.
  • the positioning apparatus 1600 further includes: a sending unit 1605, configured to send the position information of the device to be positioned to the device to be positioned.
  • FIG. 17 is a schematic diagram of the composition of another positioning apparatus 1700 provided by an embodiment of the present application.
  • the device to be positioned 1700 may be applied to the device to be positioned as shown in FIGS. 3-7 .
  • the positioning apparatus 1700 includes: a sending unit 1701, configured to send a positioning request when the device to be positioned needs to be positioned, where the positioning request is used to request to locate the device to be positioned according to an associated device of the device to be positioned.
  • the associated device has an application association relationship with the device to be located.
  • the application association relationship includes: when the device to be located executes the application, the associated device directly or indirectly cooperates with the device to be located to realize the function of the application, and the association relationship occurs with the device to be located.
  • the receiving unit 1702 is configured to receive the location information of the device to be located.
  • the positioning request includes a device identification of the device to be located, where the device identification is used to determine an associated device of the device to be located.
  • the location request includes one or more associated device identifiers of the device to be located, where the associated device identifier is used to indicate the associated device.
  • the location request includes a movement attribute of the device to be located.
  • the positioning apparatus 1700 further includes an obtaining unit 1703, configured to obtain the movement attribute of the device to be positioned.
  • FIG. 18 is a schematic diagram of the composition of another electronic device 1800 according to an embodiment of the present application.
  • the electronic device 1800 may be used as the device to be located in this embodiment of the present application. In some implementations, the electronic device 1800 may also locate itself according to the positioning method in the embodiment of the present application. It should be noted that, in conjunction with the electronic device 200 shown in FIG. 2 , the electronic device 1800 shown in FIG. 18 may be another possible composition division, and the electronic device 1800 with the above two compositions can all implement the implementation of the present application The positioning method provided by the example.
  • the electronic device 1800 may include: a processor 1801 and a memory 1802 .
  • the memory 1802 is used to store computer-implemented instructions.
  • the processor 1801 executes the instructions stored in the memory 1802, the electronic device 1800 can be caused to execute the positioning method shown in any one of the foregoing embodiments.
  • FIG. 19 is a schematic diagram of the composition of a server 1900 according to an embodiment of the present application.
  • the server 1900 can be used to locate the device to be located.
  • the server 1900 may be a cloud server 1900, such as a device cloud.
  • the server 1900 may include: a processor 1901 and a memory 1902 .
  • the memory 1902 is used to store computer-implemented instructions.
  • the server 1900 can be caused to execute the positioning method shown in any one of the foregoing embodiments.
  • FIG. 20 is a schematic diagram of the composition of a chip system 2000 according to an embodiment of the present application.
  • the chip system 2000 may include: a processor 2001 and a communication interface 2002 for supporting the device to be positioned to implement the functions involved in the above embodiments.
  • the chip system 2000 further includes a memory for storing necessary program instructions and data of the device to be positioned.
  • the chip system 2000 may be composed of chips, or may include chips and other discrete devices.
  • the communication interface 2002 may also be referred to as an interface circuit.
  • FIG. 21 is a schematic diagram of the composition of a chip system 2100 according to an embodiment of the present application.
  • the chip system 2100 may include: a processor 2101 and a communication interface 2102 for supporting a server (such as a device cloud) to implement the functions involved in the above embodiments.
  • the chip system 2100 further includes a memory for storing necessary program instructions and data of the server.
  • the chip system 2100 may be composed of chips, or may include chips and other discrete devices.
  • the communication interface 2102 may also be referred to as an interface circuit.
  • the functions or actions or operations or steps in the above embodiments may be implemented in whole or in part by software, hardware, firmware or any combination thereof.
  • a software program When implemented using a software program, it can 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 the 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, special purpose computer, 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, DSL) or wireless (eg, infrared, wireless, microwave, etc.).
  • the computer-readable storage medium can be any available medium that can be accessed by a computer, or data storage devices including one or more servers, data centers, etc. that can be integrated with the medium.
  • the usable media may be magnetic media (eg, floppy disks, hard disks, magnetic tapes), optical media (eg, DVDs), or semiconductor media (eg, solid state disks (SSDs)), and the like.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Position Fixing By Use Of Radio Waves (AREA)
  • Navigation (AREA)

Abstract

本申请实施例公开了一种定位方法和装置,涉及电子设备领域,能够对待定位设备进行准确定位,同时避免由于周边环境较为复杂导致的定位不准确或者无法定位的问题。具体方案为:在对该待定位设备进行定位时,确定待定位设备的一个或多个关联设备。其中,在该待定位设备执行应用时,该关联设备与该待定位设备发生应用关联关系。该应用关联关系包括:该关联设备在该待定位设备执行应用时,因直接或间接地配合该待定位设备实现该应用的功能,而与该待定位设备发生的关联关系。获取一个或多个该关联设备的定位参考信息。根据该一个或多个该关联设备的定位参考信息,确定该待定位设备的位置信息。

Description

一种定位方法和装置
本申请要求于2021年04月28日提交国家知识产权局、申请号为202110466932.5、申请名称为“一种定位方法和装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请实施例涉及电子设备领域,尤其涉及一种定位方法和装置。
背景技术
在很多电子设备的使用场景下,都需要对电子设备进行定位。示例性的,电子设备通过对自身进行定位,能够提供导航、寻物等功能。
目前,常用的电子设备定位方法可以包括通过全球定位系统(Global Positioning System,GPS)进行定位。示例性的,在进行定位时,电子设备可以进行搜星,即搜索能够与电子设备进行通信的定位卫星。在搜索到至少3个定位卫星后,电子设备可以与定位卫星进行通信,获取至少3个定位卫星与电子设备的相对位置信息,由此确定电子设备的位置信息。比如电子设备的位置信息可以为经纬度等。可以理解的是,电子设备搜星时搜索到的定位卫星的数量越大,则可以获取更多数量的定位卫星与电子设备的相对位置信息,由此即可获取更加准确的电子设备的位置信息。
然而,在一些场景下,电子设备无法进行准确的GPS定位。示例性的,在一些场景下,当电子设备搜星时,无法搜索到3个或更多定位卫星,那么就无法获取足够数量的定位卫星之间的相对位置信息,也就无法据此确定电子设备的位置信息。在另一些场景下,当电子设备处于复杂环境中(如周边环境密集的城市环境中,又如室内环境中)时,则会由于获取的定位卫星与电子设备的相对位置信息不准确,导致获取的定位信息准确度下降甚至无法进行定位。
发明内容
本申请实施例提供一种定位方法和装置,能够对待定位设备进行准确的定位,避免由于周边环境较为复杂导致的定位不准确或者无法定位的问题。同时也不要求电子设备具备定位能力,因此能够适用于各种电子设备的定位场景中。另外,由于在不同的定位场景中,不存在多种定位策略的切换,也就避免了碎片化的定位方案导致的定位受阻。
为了达到上述目的,本申请实施例采用如下技术方案:
第一方面,提供一种定位方法,该方法用于对待定位设备进行定位。该方法包括:在对该待定位设备进行定位时,确定待定位设备的一个或多个关联设备。其中,在该待定位设备执行应用时,该关联设备与该待定位设备发生应用关联关系。该应用关联关系包括:该关联设备在该待定位设备执行应用时,因直接或间接地配合该待定位设备实现该应用的功能,而与该待定位设备发生的关联关系。获取一个或多个该关联设备的定位参考信息。根据该一个或多个该关联设备的定位参考信息,确定该待定位设备的位置信息。
基于该方案,提供了一种对待定位设备进行定位的方法示例。在该示例中,可以根据待定位设备的关联设备实现对待定位设备的定位。其中,关联设备可以是与待定位设备具有应用层关联的设备。可以理解的是,以待定位设备为手机为例,手机可以通过与其他的设备进行交互,实现各种功能。比如,手机可以通过与POS机的交互,实现支付功能。又如,手机可以通过扫描二维码,由此获取二维码对应的信息。由此,在待定位设备不同的应用场景下,一般都会存在至少一个待定位设备的关联设备。需要说明的是,在本示例中,关联设备可以包括能够直接与待定位设备进行交互由此提供对应服务的设备。关联设备还可以包括间接配合待定位设备实现相应的功能。例如,与直接配合该待定位设备实现具体功能的关联设备发生关联关系,以达成间接地配合实现该具体功能的设备。在对待定位设备进行定位的过程中,可以根据手机对应的关联设备的定位参考信息,实现对待定位设备的定位。由于关联设备可以具有定位功能,也就是说,关联设备的位置可以是直接或间接确定的,而关联设备由于是当前场景下与待定位设备具有应用关联关系的设备,则待定位设备通常会在关联设备所在位置的一定范围内,因此能够根据关联设备的定位参考信息对待定位设备进行准确地定位。同时,由于关联设备的定位参考信息不受当前场景的变化的影响,因此不会出现类似与GPS定位过程中,由于场景中物体的干扰导致的定位不准确的问题。另外,本方案也不需区分不同的定位场景,因此能够适用于大多数的定位场景中。
在一种可能的设计中,与该待定位设备具有应用关联关系的关联设备包括第一关联设备。该获取一个或多个该关联设备的定位参考信息,包括:获取该第一关联设备的第一定位参考信息。该根据该一个或多个该关联设备的定位参考信息,确定该待定位设备的位置信息,包括:确定该待定位设备的位置在该第一定位参考信息所指示的位置的一定范围内。基于该方案,提供了一种具体的对待定位设备进行定位的方案示例。在本示例中,以关联设备至少包括1个设备(如第一关联设备)为例。那么,可以通过该第一关联设备的位置,确定待定位设备位于第一关联设备的附近。比如,以室内定位场景为例。GPS定位需要获取待定位设备与至少3个定位卫星之间的精确距离。但是由于待定位设备位于室内环境,因此无法对上述距离进行精确测量,其误差往往大于1km,甚至无法测量。而基于本方案,由于第一关联设备位于待定位设备附近,只要能够确定第一关联设备的位置即可对待定位设备进行定位。比如,以第一关联设备为POS机为例,为了能够与POS机进行交互,实现支付功能,待定位设备与POS机的距离不会超过POS机的工作距离(如小于5cm)。由此根据本申请提供的方案,能够提升待定位设备的定位准确度。
在一种可能的设计中,该第一定位参考信息包括第一位置信息。确定该待定位设备的位置在该第一定位参考信息所指示的位置的一定范围内,包括:确定该待定位设备的位置为该第一位置信息指示的位置。基于该方案,提供了一种具体的根据关联设备对待定位设备进行定位的方案示例。在该示例中,第一定位参考信息中,具体可以包括第一关联设备的位置(如第一位置信息指示的位置)。结合前述方案中的说明,由于第一关联设备与待定位设备的位置上的关联性,因此根据第一关联设备的位置就可以实现对待定位设备的准确定位。
在一种可能的设计中,该第一定位参考信息还包括:第一定位精度。确定该待定 位设备的位置在该第一定位参考信息所指示的位置的一定范围内,包括:确定该待定位设备的位置在该第一位置信息指示的位置的第一精度范围内,其中,该第一精度范围由该第一定位精度指示。基于该方案,提供了又一种具体的根据关联设备对待定位设备进行定位的方案示例。在该示例中,在根据关联设备的位置,对待定位设备进行定位的基础上,还可以参考关联设备的定位精度,进一步明确待定位设备的位置。作为确定设备定位精度的一种可能方式,不同的设备均具有对应的有效覆盖区域,在该有效覆盖区域内,就可以与待定位设备进行应用关联,实现向待定位设提供服务的效果,因而可以将该有效覆盖区域作为设备的定位精度。或者,也可以根据需要设置其他参数指标作为定位精度。也就是说,根据该定位精度,可以圈定待定位设备的位置范围。因此,根据第一位置信息以及第一定位精度能够对待定位设备进行更加准确地定位。
在一种可能的设计中,在该获取该第一关联设备的第一定位参考信息之前,该方法还包括:确定该第一关联设备是否具有定位能力。该获取该第一关联设备的第一定位参考信息,包括:在该第一关联设备具有定位能力的情况下,获取该第一定位参考信息。基于该方案,提供了一种根据第一关联设备对待定位设备进行定位的触发机制。在通过第一关联设备对待定位设备进行定位的情况下,需要能够知晓第一关联设备的位置信息。也就是说,需要第一关联设备具有定位能力。通过本方案,能够在获取第一关联设备的定位参考信息之前,确定第一关联设备具有定位能力,由此避免由于第一关联设备不具备定位能力而导致的定位参考信息获取失败的情况发生。
在一种可能的设计中,与该待定位设备具有应用关联关系的关联设备包括第二关联设备,该第二关联设备为直接配合该待定位设备实现该应用的功能的设备,在该第二关联设备不具有定位能力的情况下,该方法还包括:获取第三关联设备的第二定位参考信息,该第三关联设备是该第二关联设备的关联设备。该根据该一个或多个该关联设备的定位参考信息,确定该待定位设备的位置信息,包括:根据该第二定位参考信息确定该待定位设备的位置。基于该方案,提供了一种待定位设备的关联设备不具备定位能力的情况下,对待定位设备进行定位的方案示例。在本示例中,可以通过与第二关联设备具有应用关联关系的第三关联设备,对待定位设备进行定位。可以理解的是,与通过第二关联设备对待定位设备进行定位的思路类似,在第二关联设备不具备定位能力的情况下,可以通过第三关联设备确定第二关联设备的位置。比如,根据第三关联设备的定位参考信息对确定第二关联设备的位置。进而据此确定待定位设备的位置。可见,通过本方案,即使作为待定位设备的关联设备的第二关联设备不具备定位能力,也可以通过第三关联设备对待定位设备进行定位。在本示例及以下相关示例的说明中,第二关联设备由于可以直接与待定位设备进行应用关联,因此可以称为1级关联设备。对应的,第三关联设备可以称为待定位设备的2级关联设备。
在一种可能的设计中,该获取一个或多个该关联设备的定位参考信息,包括:获取该第二关联设备的第二定位精度。根据该定位参考信息,确定该待定位设备的位置信息,包括:根据该第二定位参考信息,和该第二定位精度,确定该待定位设备的位置。基于该方案,提供了一种具体的根据1级关联设备以及2级关联设备对待定位设备进行定位的方案示例。在本示例中,可以根据2级关联设备的定位参考信息,确定 1级关联设备的位置,进而根据确定的1级关联设备的位置以及1级关联设备的定位精度,对待定位设备进行定位。
在一种可能的设计中,该第二定位参考信息包括:第二位置信息和第三定位精度。该待定位设备的位置包括:在该第二位置信息指示的位置的第二精度范围内,其中,该第二精度范围由该第二定位精度和该第三定位精度共同指示。基于该方案,提供了一种具体的对待定位设备进行定位的方案示例。在该示例中,明确了根据2级关联设备以及1级关联设备对待定位设备进行定位的情况下,待定位设备的位置为:2级关联设备所在位置附近一定范围内。该一定范围可以是2级关联设备的定位精度以及1级关联设备的定位精度所覆盖区域之和。可以理解的是,2级关联设备的定位精度以及2级关联设备位置,可以指示1级关联设备的位置。在此基础上再参考1级关联设备的定位精度,即可对待定位设备进行准确地定位。
在一种可能的设计中,该待定位设备在当前场景下的关联设备还包括第四关联设备。该第四关联设备具有定位能力。该方法还包括:获取该第四关联设备的第三定位参考信息。该根据该一个或多个该关联设备的定位参考信息,确定该待定位设备的位置信息,包括:根据该第一定位参考信息和该第三定位参考信息,确定该待定位设备的位置信息。基于该方案,提供了又一种根据多个关联设备进行定位的方案示例。结合本示例的方案,在一些场景下,待定位设备对应的关联设备可以为多个。这样,根据本示例的方案,可以结合多个关联设备的定位参考信息,对待定位设备进行定位。可以理解的是,通过多个关联设备对待定位设备进行定位的情况下,能够进一步缩小待定位设备可能的位置区域,因此能够进一步提升待定位设备的定位准确度。
在一种可能的设计中,该第一定位参考信息包括第一位置信息和第一定位精度,该第三定位参考信息包括第三位置信息和第四定位精度。该待定位设备的位置信息包括:该待定位设备位于定位区域内,该定位区域包括第一区域和第二区域的重叠部分,该第一区域为该第一位置信息指示的位置的第一精度范围内的区域,该第一精度范围由该第一定位精度指示。该第二区域为该第三位置信息指示的位置的第三精度范围内的区域,该第三精度范围由该第四定位精度指示。基于该方案,提供了一种基于多个关联设备进行定位的具体方案示例。在本示例中,根据第一关联设备可以圈定一个待定位设备所在位置的范围(如称为范围1)。类似的,根据第二关联设备的定位参考信息,也可以确定一个待定位设备所在位置的范围(如称为范围2)。由于待定位设备在当前场景下可以同时与两个关联设备建立应用关联关系,因此待定位设备的实际位置可以位于范围1和范围2的重叠区域中。由此相较于单独根据第一关联设备或者第二关联设备对待定位设备进行定位的方案,能够有效地缩小待定位设备所在区域的范围,因此能够提升准确度。
在一种可能的设计中,该确定待定位设备的一个或多个关联设备,包括:接收定位请求,该定位请求包括该待定位设备的设备标识。根据该设备标识,确定一个或多个该关联设备。或者,接收定位请求,该定位请求中包括该待定位设备的一个或多个该关联设备标识。根据关联设备标识,确定该关联设备。基于该方案,提供了一种关联设备的确定方案。在本示例中,待定位设备可以向执行本方案的设备(比如设备云等)发送定位请求,以便于设备云明确待定位设备具有定位的需求。设备云可以根据 定位请求中携带的信息,确定待定位设备的关联设备。可以理解的是,设备云可以用于对包括待定位设备在内的一系列设备的设备管理。这样,设备云就能够知晓在不同场景下,各个设备之间所产生的应用关联关系。在本示例的一些实现中,设备云可以根据定位请求中的待定位设备的标识,确定当前需要定位的设备。进而根据对各个设备的管理情况,确定当前该待定位设备对应的关联设备。需要说明的是,在一些实现中,该定位请求中也可以不携带待定位设备的标识,设备云依然可以根据接收到定位请求的接口或者传输资源确定发送定位请求的设备。不同与上述场景的示例,在一些实现中,待定位设备还可以根据当前所处场景中与其他设备的交互情况,自主确定关联设备。待定位设备可以在定位请求中,将确定的关联设备(或者关联设备的标识)发送给设备云,以便于设备云可以确定待定位设备以及关联设备。
在一种可能的设计中,在根据接收的该定位请求无法确定该待定位设备的关联设备的情况下,该方法还包括:确定该待定位设备的一个或多个历史关联设备,该历史关联设备是根据历史已发生的该待定位设备和关联设备之间的应用关联关系确定的关联设备。获取该一个或多个历史关联设备的历史定位参考信息,根据该历史定位参考信息,确定该待定位设备的位置信息。基于该方案,提供了又一种对待定位设备进行定位的方案实现。可以理解的是,如果待定位设备在需要进行定位时,如果存在关联设备,那么就可以按照上述示例中的方案对待定位设备进行定位。而在一些场景下,在待定位设备需要进行定位时,可能并未与其他设备具有应用关联关系。或者,在待定位设备需要进行定位时,无法确定当前场景下的关联设备。那么,基于本示例中的方案,可以通过待定位设备在需要进行定位之前,与其他具有应用关联关系的设备(如历史关联设备),对当前待定位设备的位置进行判断。比如,可以根据历史关联设备的定位参考信息,对待定位设备进行定位。
在一种可能的设计中,该历史定位参考信息包括该一个或多个历史关联设备的位置信息,以及以下中的至少一个:该一个或多个历史关联设备的定位精度或者该待定位设备与该一个或多个历史关联设备保持关联关系的时间信息。基于该方案,在一些实现中,在通过历史关联设备进行定位的过程中,可以根据历史关联设备的位置,对待定位设备进行定位。比如,待定位设备可以位于历史关联设备的位置附近。在另一些实现中,还可以结合历史关联设备的定位精度,明确待定位设备的位置范围。和/或,结合历史关联设备的关联时间,确定待定位设备在与历史关联设备进行交互时的位置,由此结合当前需要定位的时间,对定位结果进行适当的调整(如根据待定位设备的移动属性等进行调整),由此提升定位准确度。
在一种可能的设计中,在该历史定位参考信息至少包括该一个或多个历史关联设备的位置信息以及该时间信息的情况下,该根据该历史定位参考信息,确定该待定位设备的位置信息,包括:从该一个或多个历史关联设备中,选取时间信息与该定位请求指示的定位时间接近的一个或多个设备作为有效关联设备,根据该一个或多个有效关联设备的位置信息,确定该待定位设备的位置信息。基于该方案,提供了又一种基于历史关联设备进行定位的方案示例。在本示例中,可以从多个历史关联设备中,选取与当前定位时间接近的一个或多个关联设备,对待定位设备进行定位。可以理解的是,与当前定位时间越是接近,那么定位结果就越接近当前待定位设备的位置。因此 通过该方案,能够进一步提升定位的准确度。
在一种可能的设计中,该方法还包括:获取该待定位设备的移动属性,该移动属性用于指示该待定位设备的移动状态。该根据该历史定位参考信息,确定该待定位设备的位置信息,包括:根据该历史定位参考信息以及该移动属性,确定该待定位设备的位置信息。基于该方案,提供了又一种基于历史关联设备进行定位的方案示例。在本示例中,执行本方案的设备(如设备云)还可以从待定位设备获取移动的情况。比如,通过移动属性标识待定位设备的移动情况。可以理解的是,根据历史关联设备确定的位置,更接近在与历史关联设备保持应用关联关系的时间内,待定位设备的位置。结合本方案中的移动属性,就可以对根据历史关联设备确定的位置进行调整,由此获取更加接近当前位置的定位结果。比如,当定位属性指示待定位设备在与历史关联设备交互断开应用关联关系之后,向某个方向移动了一段距离,那么,就可以在根据该历史关联设备确定的定位结果的基础上,向对应方向偏移对应距离,这样就可以获取更加接近当前实际位置的定位结果。
在一种可能的设计中,在接收该定位请求时,不存在该待定位设备的关联设备的情况下,该方法还包括:检测该待定位设备的应用关联关系的变化情况,在该待定位设备的应用关联关系出现变化时,确定与该待定位设备发生应用关联关系的第五关联设备。获取该第五关联设备的第四定位参考信息,根据该第四定位参考信息,确定该待定位设备的位置。基于该方案,提供了又一种方案,使得在当前环境中没有或者无法确定关联设备的情况下,实现对待定位设备的定位。在本示例中,在待定位设备需要进行定位时,如果周围没有或者无法确定是否存在关联设备或者无法获取参考定位信息的情况下,设备云可以将该定位请求挂起,并在确定出现与待定位设备进行应用关联的设备时,根据该设备的参考定位信息,确定待定位设备的位置。由此可以在不需获取待定位设备的历史交互情况的情况下,即可实现对待定位设备的定位。需要说明的是,在一些实现中,设备云还可以获取待定位设备的移动属性,由此调整定位结果,进而达到提升定位准确度的效果。
在一种可能的设计中,该待定位设备还基于通信协议连接关系而与一个或多个连接设备关联,该根据该一个或多个该关联设备的定位参考信息,确定该待定位设备的位置信息,包括:确定该一个或多个连接设备的位置信息,该确定该待定位设备的位置信息,包括:根据该一个或多个连接设备的位置信息,和该一个或多个该关联设备的定位参考信息,确定该待定位设备的位置信息。基于该方案,提供了一种结合多种设备对待定位设备进行定位的方案示例。可以理解的是,关联设备并不一定是与待定位设备具有基于通信协议连接关系的设备。其中,基于通信协议的连接关系可以是指基于WIFI、蓝牙、3G、4G、5G或其他通信协议的连接关系。可选地,在该基于通信信息的连接关系中,待定位设备可以与对应的设备建立注册关系,由此明确各自在通信过程中的用途。在本示例中,可以在根据关联设备对待定位设备进行定位的基础上,结合与待定位设备具有上述通信连接关系的设备所确定的待定位设备的位置,进一步提升待定位设备的定位准确度。
在一种可能的设计中,该方法的执行设备包括:服务器,或者该待定位设备。基于该方案,明确了本方案的执行主体,可以为服务器,比如设备云等能够获取关联设 备的定位参考信息的网络设备。该方案还可以用于待定位设备本身的定位机制。可以理解的是,以待定位设备为手机为例,待定位设备可以通过其中设置的GPS模块,在环境较为简单的情况下,通过GPS定位确定自身的位置。而在室内定位等场景下,手机可能无法通过GPS模块实现对自身的定位,那么手机就可以采用本申请提供的方案,实现对自身的定位。
在一种可能的设计中,该关联设备包括以下中的至少一种:智能终端设备,蓝牙信标Beacon,二维码,近场通信NFC标签,POS机,打印机,闸机设备。基于该方案,提供了一些具体的可能的关联设备的示例。比如,以待定位设备为手机为例。在设备间共享的场景下,手机可以通过share服务,与其他智能终端设备建立应用关联,该智能终端可以为其他手机等设备。这样,该提供share服务的手机就可以是待定位设备的关联设备。在蓝牙连接的场景下,向手机提供蓝牙连接接口的设备(如蓝牙beacon),就可以包括在手机的关联设备中。在扫码场景中,手机可以通过扫码二维码,获取对应的信息,此时该二维码也可以包括在手机的关联设备中。需要说明的是,上述示例中的关联设备仅为一种举例说明,在其他一些场景中,能够与待定位设备建立应用关联的设备,也可以作为待定位设备的关联设备,用于对待定位设备进行定位。
在一种可能的设计中,该待定位设备所处的应用场景包括以下中的至少一种:刷卡,NFC标签读取,支付,扫码,搜索服务,共享服务。基于该方案,提供了一些定位场景的举例。比如,刷卡场景下,手机可以通过其NFC模块的卡模式,与NFC标签进行交互,实现刷卡功能。那么提供刷卡服务的NFC标签等设备,就可以作为待定位设备的关联设备,用于对待定位设备进行定位。NFC标签读取场景下,手机可以通过其NFC模块的读卡器模式,与NFC标签建立应用关联,实现读取功能。那么提供NFC标签读取的NFC标签,就可以作为待定位设备的关联设备,用于对待定位设备进行定位。支付场景下,手机可以通过与POS机等设备进行交互,实现支付功能。那么POS机就可以作为待定位设备的关联设备,用于对待定位设备进行定位。扫码场景下,手机可以通过与二维码等进行交互,实现扫描功能。那么二维码就可以作为待定位设备的关联设备,用于对待定位设备进行定位。使用搜索服务的场景下,手机可以通过与提供搜索服务的智能终端进行交互,获取搜索服务。那么提供搜索服务的智能终端就可以作为待定位设备的关联设备,用于对待定位设备进行定位。使用共享服务的场景下,手机可以通过与提供共享服务的智能终端(比如使用share服务的其他手机)进行交互,获取搜索服务。那么提供共享服务的智能终端就可以作为待定位设备的关联设备,用于对待定位设备进行定位。从上述示例中可以看到,本发明中涉及的关联设备,可以包括实体设备,比如POS机等。此外还可以包括提供服务的物体,比如NFC标签,二维码等。因此具有非常广泛的场景覆盖,对于大多数定位场景,都能在其中找到与待定位设备对应的关联设备,由此即可快速准确地对待定位设备进行定位。
在一种可能的设计中,该方法还包括:向该待定位设备发送该待定位设备的该位置信息。基于该方案,在待定位设备需要获取当前位置时,设备云等执行本方案的设备,可以向待定位设备发送定位结果(如位置信息),由此使得待定位设备对自身的定位。可选地,执行本方案的设备也可以是待定位设备本身或其他终端设备。
第二方面,提供一种定位装置,该装置用于对待定位设备进行定位。该装置包括: 确定单元,用于在对该待定位设备进行定位时,确定待定位设备的一个或多个关联设备。其中,在该待定位设备执行应用时,该关联设备与该待定位设备发生应用关联关系。该应用关联关系包括:该关联设备在该待定位设备执行应用时,因直接或间接地配合该待定位设备实现该应用的功能,而与该待定位设备发生的关联关系。获取单元,用于获取一个或多个该关联设备的定位参考信息。确定单元,还用于根据该一个或多个该关联设备的定位参考信息,确定该待定位设备的位置信息。
在一种可能的设计中,与该待定位设备具有应用关联关系的关联设备包括第一关联设备。获取单元,用于获取该第一关联设备的第一定位参考信息。确定单元,用于确定该待定位设备的位置在该第一定位参考信息所指示的位置的一定范围内。
在一种可能的设计中,该第一定位参考信息包括第一位置信息。确定单元,用于确定该待定位设备的位置为该第一位置信息指示的位置。
在一种可能的设计中,该第一定位参考信息还包括:第一定位精度。确定单元,用于确定该待定位设备的位置在该第一位置信息指示的位置的第一精度范围内,其中,该第一精度范围由该第一定位精度指示。
在一种可能的设计中,在该获取该第一关联设备的第一定位参考信息之前,确定单元,还用于确定该第一关联设备是否具有定位能力。获取单元,用于在该第一关联设备具有定位能力的情况下,获取该第一定位参考信息。
在一种可能的设计中,与该待定位设备具有应用关联关系的关联设备包括第二关联设备,该第二关联设备为直接配合该待定位设备实现该应用的功能的设备,在该第二关联设备不具有定位能力的情况下,获取单元,用于获取第三关联设备的第二定位参考信息,该第三关联设备是该第二关联设备的关联设备。确定单元,用于根据该第二定位参考信息确定该待定位设备的位置。
在一种可能的设计中,获取单元,用于获取该第二关联设备的第二定位精度。确定单元,用于根据该第二定位参考信息,和该第二定位精度,确定该待定位设备的位置。
在一种可能的设计中,该第二定位参考信息包括:第二位置信息和第三定位精度。该待定位设备的位置包括:在该第二位置信息指示的位置的第二精度范围内,其中,该第二精度范围由该第二定位精度和该第三定位精度共同指示。例如,该第二定位精度和第三定位精度之和。
在一种可能的设计中,该待定位设备在当前场景下的关联设备还包括第四关联设备。该第四关联设备具有定位能力。获取单元,还用于获取该第四关联设备的第三定位参考信息。确定单元,用于根据该第一定位参考信息和该第三定位参考信息,确定该待定位设备的位置信息。
在一种可能的设计中,该第一定位参考信息包括第一位置信息和第一定位精度,该第三定位参考信息包括第三位置信息和第四定位精度。该待定位设备的位置信息包括:该待定位设备位于定位区域内,该定位区域包括第一区域和第二区域的重叠部分,该第一区域为该第一位置信息指示的位置的第一精度范围内的区域,该第一精度范围由该第一定位精度指示。该第二区域为该第三位置信息指示的位置的第三精度范围内的区域,该第三精度范围由该第四定位精度指示。
在一种可能的设计中,该装置还包括:接收单元,用于接收定位请求,该定位请求包括该待定位设备的设备标识。确定单元,用于根据该设备标识,确定一个或多个该关联设备。或者,接收单元,用于接收定位请求,该定位请求中包括该待定位设备的一个或多个该关联设备标识。根据关联设备标识,确定该关联设备。
在一种可能的设计中,在根据接收的该定位请求无法确定该待定位设备的关联设备的情况下,确定单元,还用于确定该待定位设备的一个或多个历史关联设备,该历史关联设备是根据历史已发生的该待定位设备和关联设备之间的应用关联关系确定的关联设备。获取单元,用于获取该一个或多个历史关联设备的历史定位参考信息,确定单元,用于根据该历史定位参考信息,确定该待定位设备的位置信息。
在一种可能的设计中,该历史定位参考信息包括该一个或多个历史关联设备的位置信息,以及以下中的至少一个:该一个或多个历史关联设备的定位精度或者该待定位设备与该一个或多个历史关联设备保持关联关系的时间信息。
在一种可能的设计中,在该历史定位参考信息至少包括该一个或多个历史关联设备的位置信息以及该时间信息的情况下,确定单元,用于从该一个或多个历史关联设备中,选取时间信息与该定位请求指示的定位时间接近的一个或多个设备作为有效关联设备,根据该一个或多个有效关联设备的位置信息,确定该待定位设备的位置信息。
在一种可能的设计中,获取单元,还用于获取该待定位设备的移动属性,该移动属性用于指示该待定位设备的移动状态。确定单元,用于根据该历史定位参考信息以及该移动属性,确定该待定位设备的位置信息。
在一种可能的设计中,该装置还包括:检测单元,用于在接收该定位请求时,不存在该待定位设备的关联设备的情况下,检测该待定位设备的应用关联关系的变化情况。确定单元,用于在该待定位设备的应用关联关系出现变化时,确定与该待定位设备发生应用关联关系的第五关联设备。获取单元,用于获取该第五关联设备的第四定位参考信息,根据该第四定位参考信息,确定该待定位设备的位置。
在一种可能的设计中,该待定位设备还基于通信协议连接关系而与一个或多个连接设备关联,确定单元,用于确定该一个或多个连接设备的位置信息。确定单元,还用于根据该一个或多个连接设备的位置信息,和该一个或多个该关联设备的定位参考信息,确定该待定位设备的位置信息。
在一种可能的设计中,该装置设置于服务器,或者待定位设备。
在一种可能的设计中,该关联设备包括以下中的至少一种:智能终端设备,蓝牙信标Beacon,二维码,近场通信NFC标签,POS机,打印机,闸机设备。
在一种可能的设计中,该待定位设备所处的应用场景包括以下中的至少一种:刷卡,NFC标签读取,支付,扫码,搜索服务,共享服务。
在一种可能的设计中,该装置还包括:发送单元,用于向待定位设备发送该待定位设备的该位置信息。
第三方面,提供一种定位方法,应用于待定位设备,该方法包括:该待定位设备在需要进行定位时,发送定位请求,该定位请求用于请求根据该待定位设备的关联设备对该待定位设备进行定位。其中,在该待定位设备执行应用时,该关联设备与该待定位设备发生应用关联关系。该应用关联关系包括:该关联设备在该待定位设备执行 应用时,因直接或间接地配合该待定位设备实现该应用的功能,而与该待定位设备发生的关联关系。接收该待定位设备的位置信息。
在一种可能的设计中,该定位请求包括该待定位设备的设备标识,该设备标识用于确定该待定位设备的关联设备。或者,该定位请求中包括该待定位设备的一个或多个关联设备标识,该关联设备标识用于指示该关联设备。
第四方面,提供一种定位装置,应用于待定位设备,该装置包括:发送单元,用于该待定位设备在需要进行定位时,发送定位请求,该定位请求用于请求根据该待定位设备的关联设备对该待定位设备进行定位。其中,在该待定位设备执行应用时,该关联设备与该待定位设备发生应用关联关系。该应用关联关系包括:该关联设备在该待定位设备执行应用时,因直接或间接地配合该待定位设备实现该应用的功能,而与该待定位设备发生的关联关系。接收单元,用于接收该待定位设备的位置信息。
在一种可能的设计中,该定位请求包括该待定位设备的设备标识,该设备标识用于确定该待定位设备的关联设备。或者,该定位请求中包括该待定位设备的一个或多个关联设备标识,该关联设备标识用于指示该关联设备。
第五方面,提供一种定位系统,该定位系统包括待定位设备,以及服务器,该服务器用于该待定位设备进行定位。该服务器用于,确定该待定位设备的一个或多个关联设备。其中,在该待定位设备执行应用时,该关联设备与该待定位设备发生应用关联关系。该应用关联关系包括:该关联设备在该待定位设备执行应用时,因直接或间接地配合该待定位设备实现该应用的功能,而与该待定位设备发生的关联关系。获取一个或多个该关联设备的定位参考信息。
在一种可能的设计中,该待定位设备,用于向该服务器发送定位请求,该定位请求用于请求该服务器根据该待定位设备的关联设备对该待定位设备进行定位。该服务器,还用于接收该定位请求,确定该待定位设备的一个或多个关联设备。
在一种可能的设计中,该定位请求包括该待定位设备的设备标识。该服务器,用于根据该设备标识,确定一个或多个该关联设备。或者,该定位请求中包括该待定位设备的一个或多个该关联设备标识。根据该待定位设备的一个或多个该关联设备标识,确定该待定位设备的一个或多个该关联设备。
在一种可能的设计中,与该待定位设备具有应用关联关系的关联设备包括第一关联设备。该获取一个或多个该关联设备的定位参考信息,包括:获取该第一关联设备的第一定位参考信息。该根据该一个或多个该关联设备的定位参考信息,确定该待定位设备的位置信息,包括:确定该待定位设备的位置在该第一定位参考信息所指示的位置的一定范围内。
在一种可能的设计中,该第一定位参考信息包括第一位置信息,以及第一定位精度。确定该待定位设备的位置在该第一定位参考信息所指示的位置的一定范围内,包括:确定该待定位设备的位置在该第一位置信息指示的位置的第一精度范围内,其中,该第一精度范围由该第一定位精度指示。
第六方面,提供一种电子设备,该电子设备可以为待定位设备。电子设备包括一个或多个处理器和一个或多个存储器;一个或多个存储器与一个或多个处理器耦合,一个或多个存储器存储有计算机指令;当一个或多个处理器执行计算机指令时,使得 电子设备执行如上述第三方面以及各种可能的设计中任一种的定位方法。
第七方面,提供一种服务器,该服务器可以用于对待定位设备进行定位。比如,该服务器可以为设备云。服务器包括一个或多个处理器和一个或多个存储器;一个或多个存储器与一个或多个处理器耦合,一个或多个存储器存储有计算机指令;当一个或多个处理器执行计算机指令时,使得服务器执行如上述第一方面以及各种可能的设计中任一种的定位方法。
第八方面,提供一种芯片系统,芯片系统包括接口电路和处理器。该芯片系统可以设置在待定位设备中。其中的接口电路和处理器通过线路互联;接口电路用于从存储器接收信号,并向处理器发送信号,信号包括存储器中存储的计算机指令;当处理器执行计算机指令时,芯片系统执行如上述第三方面以及各种可能的设计中任一种的定位方法。
第九方面,提供一种芯片系统,芯片系统包括接口电路和处理器。该芯片系统可以设置在设备云等用于对待定位设备进行定位的服务器中。其中的接口电路和处理器通过线路互联;接口电路用于从存储器接收信号,并向处理器发送信号,信号包括存储器中存储的计算机指令;当处理器执行计算机指令时,芯片系统执行如上述第一方面以及各种可能的设计中任一种的定位方法。
第十方面,提供一种计算机可读存储介质,计算机可读存储介质包括计算机指令,当计算机指令运行时,执行如上述第一方面以及各种可能的设计中任一种的定位方法。或者,当计算机指令运行时,执行如上述第三方面以及各种可能的设计中任一种的定位方法。
第十一方面,提供一种计算机程序产品,计算机程序产品中包括指令,当计算机程序产品在计算机上运行时,使得计算机可以根据指令执行如上述第一方面以及各种可能的设计中任一种的定位方法。或者,当计算机程序产品在计算机上运行时,使得计算机可以根据指令执行如上述第三方面以及各种可能的设计中任一种的定位方法。
应当理解的是,上述第二方面至第十一方面提供的技术方案,其技术特征均可对应到第一方面及其可能的设计中提供的拍摄方法,因此能够达到的有益效果类似,此处不再赘述。
附图说明
图1为一种定位场景的示意图;
图2为本申请实施例提供的一种电子设备的组成示意图;
图3为本申请实施例提供的一种定位系统的组成示意图;
图4为本申请实施例提供的一种定位系统的组成示意图;
图5为本申请实施例提供的一种定位系统的组成示意图;
图6为本申请实施例提供的一种定位方法的流程示意图;
图7为本申请实施例提供的一种定位系统的组成示意图;
图8为本申请实施例提供的一种定位场景的示意图;
图9A为本申请实施例提供的一种定位场景的示意图;
图9B为本申请实施例提供的一种定位场景的示意图;
图10为本申请实施例提供的一种定位场景的示意图;
图11为本申请实施例提供的一种定位场景的示意图;
图12为本申请实施例提供的一种定位场景的示意图;
图13为本申请实施例提供的一种定位方法的流程示意图;
图14为本申请实施例提供的一种定位场景的示意图;
图15为本申请实施例提供的一种定位场景的示意图;
图16为本申请实施例提供的一种定位装置的组成示意图;
图17为本申请实施例提供的一种定位装置的组成示意图;
图18为本申请实施例提供的一种电子设备的组成示意图;
图19为本申请实施例提供的一种服务器的组成示意图;
图20为本申请实施例提供的一种芯片系统的组成示意图;
图21为本申请实施例提供的又一种芯片系统的组成示意图。
具体实施方式
在电子设备需要定位时,GPS定位是一种常用的方式。示例性的,结合图1。以待定位的电子设备为如图1所示的手机为例。
在进行GPS定位时,手机可以进行搜星,确定能够用于进行定位的卫星(如称为定位卫星)。比如,如图1所示,手机搜星搜索到的定位卫星可以包括卫星1,卫星2以及卫星3。手机可以与各个定位卫星进行通信,以获取与各个定位卫星之间的相对位置信息。示例性的,以相对位置信息包括定位卫星与手机的距离信息为例。手机可以与卫星1进行通信,由此获取与卫星1之间的距离信息1。类似的,手机可以与卫星2进行通信,获取与卫星2之间的距离信息2。手机可以与卫星3进行通信,获取与卫星3之间的距离信息3。根据空间中三个定位卫星各自的经纬度信息,以及手机与各个卫星之间的距离信息(比如距离信息1,距离信息2以及距离信息3),手机即可计算获取当前所处的位置信息,比如,位置信息可以通过经纬度信息标识。
可以理解的是,在获取电子设备与各个定位卫星之间的相对位置信息之后,电子设备可以根据三角定位法,确定自身的位置信息。根据三角定位法,电子设备需要能够获取至少3个定位卫星对应的相对位置信息。同时,电子设备确定的与各个定位卫星之间的相对位置信息也需要足够准确。
也就是说,在电子设备无法搜索到足够数量的定位卫星时,就会使得电子设备无法获取足够数量的相对位置信息,由此就无法进行定位。另外,在电子设备周边环境较为复杂时,比如电子设备位于环境复杂的城市中,由于楼宇、树木等环境中物体的阻碍,相对位置信息的准确度会大幅下降。这样电子设备也就无法据此进行准确的定位。
为了解决在上述环境中,电子设备无法准确定位的问题,目前,电子设备可以通过与信号源进行通信,由此确定与其他信号源之间的距离,进而结合信号源的位置,确定电子设备的位置信息。其中,信号源可以为与需要进行定位的电子设备进行通信的网络设备,如基站等。示例性的,电子设备可以通过如下3种方案确定与各个信号源之间的距离。
方案1:根据接收信号强度(Received Signal Strength Indication,RSSI)确定。在该方案中,电子设备可以接收来自信号源的信号。电子设备可以根据接收到的不同信 号的信号强度,确定到信号源的大致距离。
方案2:根据飞行时间(Time of Fly,ToF)确定。在该方案中,电子设备可以与各个信号源进行通信,比如发送测量信号。电子设备可以获取测量信号从发出到被各个信号源接收到为止的传播时间。电子设备可以根据各个测量信号的传播时间,以及传播速度(比如传播速度可以约等于光速),确定电子设备到各个信号源的距离。
方案3:根据飞行时间差(Time Difference of Fly,TDoF)确定。在该方案中,电子设备可以向各个信号源发送测量信号,并通过与各个信号源进行通信,获取测量信号达到各个信号源的时间信息,由此确定测量信号到达各个信号源的时间差。电子设备可以根据该时间差,以及各个信号源中的一个或多个信号源的位置,确定电子设备与各个信号源之间的距离。
在上述示例中涉及的信号源,可以包括能够与电子设备进行通信交互的设备。比如,信号源可以通过无线通信(Wireless Fidelity,Wi-Fi),蓝牙(Bluetooth),近距离通信(Near Field Communication,NFC),蜂窝(Cellular),红外(InfraRed),发光二极管(Light Emitting Diode,LED)可见光,超声波,惯导,地磁计算机视觉,超宽带(Ultra-Wide Band,UWB)等机制,建立与电子设备之间的通信。
可以理解的是,通过上述3个方案,电子设备可以与附近的信号源进行通信,由此对自身进行定位。相比于传统的GPS定位,由于信号源可以是在电子设备附近的其他设备,因此电子设备与信号源之间的通信质量不会因为周边环境的复杂程度产生较大误差,由此也就能够提升电子设备的定位精度。同时,由于在大多数场景下,电子设备附近的信号源数量都大于3,因此电子设备能够获取足够数量的与不同信号源之间的距离情况,进而根据三角定位法对自身进行定位。
此外,还可以结合上述3种方案,以及信号的到达角度(Angle of Arrival)信息,进一步确定电子设备与各个信号源之间的相对角度,由此使得电子设备可以更加准确地确定与对应信号源之间的相对位置关系(如相对位置关系可以包括电子设备与信号源之间的空间分布位置以及电子设备与信号源之间的距离等),进而提升根据相对位置关系确定的定位信息的精确度。
目前,在不同的定位场景下,采用的定位方案可以是不同的。比如,在某商场中,可以采用方案1的机制,即通过RSSI对处于商场中的电子设备进行定位。又如,在商场外某商铺中,可以采用方案2的机制,即通过ToF对商铺中或商铺周围的电子设备进行定位。这样,电子设备就需要在进行定位之前,确定当前场景下的定位机制,并采用对应的定位策略进行定位。比如,在方案1对应的定位场景下,电子设备的定位策略可以为根据RSSI确定与各个信号源之间的距离。而在方案2对应的定位场景下,电子设备的定位策略可以为根据ToF确定与各个信号源之间的距离。这就需要电子设备在处于不同场景下时,多次反复切换定位策略。而在定位场景出现切换的情况时,比如,电子设备从上述示例中的商铺进入商场的情况下,电子设备并不知晓定位机制出现了变化,由此也会产生无法定位的情况发生。另外,而对于一些不支持当前场景下定位机制的电子设备,就无法进行定位。
也就是说,当前的定位方案中,由于定位方案的碎片化,导致电子设备定位受阻,甚至无法进行定位。
为了解决上述问题,本申请实施例提供一种定位方法,能够使得电子设备根据该电子设备所处的具体应用场景和/或所执行的业务等确定关联设备,并根据该关联设备所在的位置实现对自身的定位。本申请实施例提供的方案,由于关联设备是根据电子设备所处的具体场景和/或所执行的业务确定的,因此根据关联设备的位置与电子设备的位置具有关联性。根据关联设备的位置,实现对电子设备的定位,可以避免由于周边环境较为复杂导致的定位不准确或者无法定位的问题。同时也不要求电子设备具备定位能力,因此能够适用于各种电子设备的定位场景中。另外,由于在不同的定位场景中,不存在多种定位策略的切换,也就避免了碎片化的定位方案导致的定位受阻。
以下结合附图对本申请实施例提供的方案进行详细说明。
需要说明的是,本申请实施例提供的定位方法,可以应用在需要定位的电子设备中。在不同的实施例中,该电子设备可以具有不同的实现形式。示例性的,该电子设备可以是手机、平板电脑、个人数字助理(personal digital assistant,PDA)、增强现实(augmented reality,AR)\虚拟现实(virtual reality,VR)设备、媒体播放器等便携式移动设备。该电子设备还可以是智能手环、智能手表等个人穿戴设备。在一些实施例中,该电子设备还可以是应用在智能家居场景下的设备,比如音箱、智慧屏(或称为大屏)、智能插座、智能开关、台灯、空调等。
作为一种示例,图2示出了一种可能的电子设备200的结构示意图。如图2所示,该电子设备200可以包括处理器210,外部存储器接口220,内部存储器221,通用串行总线(universal serial bus,USB)接口230,充电管理模块240,电源管理模块241,电池242,天线1,天线2,移动通信模块250,无线通信模块260,音频模块270,扬声器270A,受话器270B,麦克风270C,耳机接口270D,传感器模块280,按键290,马达291,指示器292,摄像头293,显示屏294,以及用户标识模块(subscriber identification module,SIM)卡接口295等。其中,传感器模块280可以包括压力传感器,陀螺仪传感器,气压传感器,磁传感器,加速度传感器,距离传感器,接近光传感器,指纹传感器,温度传感器,触摸传感器,环境光传感器,骨传导传感器等。
可以理解的是,本实施例示意的结构并不构成对电子设备200的具体限定。在另一些实施例中,电子设备200可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。
处理器210可以包括一个或多个处理单元,例如:处理器210可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,存储器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器210中。作为一种示例,在本申请中,ISP可以对图像进行处理,如该处理可以包括自动曝光(Automatic Exposure)、自动对焦(Automatic Focus)、自动白平衡(Automatic White Balance)、去噪、背光补偿、色彩增强等处理。其中,自动曝光,自动对焦,以及自动白平衡的处理也可以称为3A处理。经过处理后,ISP就可以进行获取对应的照片。该过程也可称为ISP的成片操 作。
控制器可以是电子设备200的神经中枢和指挥中心。控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。
处理器210中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器210中的存储器为高速缓冲存储器。该存储器可以保存处理器210刚用过或循环使用的指令或数据。如果处理器210需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器210的等待时间,因而提高了系统的效率。
在一些实施例中,处理器210可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuit sound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purpose input/output,GPIO)接口,用户标识模块(subscriber identity module,SIM)接口,和/或通用串行总线(universal serial bus,USB)接口等。
电子设备200可以通过ISP,摄像头293,视频编解码器,GPU,显示屏294以及应用处理器等实现拍摄功能。
ISP用于处理摄像头293反馈的数据。例如,拍照时,打开快门,光线通过镜头被传递到摄像头293感光元件上,光信号转换为电信号,摄像头293感光元件将所述电信号传递给ISP处理,转化为肉眼可见的图像。ISP还可以对图像的噪点,亮度,肤色进行算法优化。ISP还可以对拍摄场景的曝光,色温等参数优化。在一些实施例中,ISP可以设置在摄像头293中。
摄像头293用于捕获静态图像或视频。物体通过镜头生成光学图像投射到感光元件。感光元件可以是电荷耦合器件(charge coupled device,CCD)或互补金属氧化物半导体(complementary metal-oxide-semiconductor,CMOS)光电晶体管。感光元件把光信号转换成电信号,之后将电信号传递给ISP转换成数字图像信号。ISP将数字图像信号输出到DSP加工处理。DSP将数字图像信号转换成标准的RGB,YUV等格式的图像信号。在一些实施例中,电子设备200可以包括1个或N个摄像头293,N为大于1的正整数。
数字信号处理器用于处理数字信号,除了可以处理数字图像信号,还可以处理其他数字信号。例如,当电子设备200在频点选择时,数字信号处理器用于对频点能量进行傅里叶变换等。
视频编解码器用于对数字视频压缩或解压缩。电子设备200可以支持一种或多种视频编解码器。这样,电子设备200可以播放或录制多种编码格式的视频,例如:动态图像专家组(moving picture experts group,MPEG)1,MPEG2,MPEG3,MPEG4等。
NPU为神经网络(neural-network,NN)计算处理器,通过借鉴生物神经网络结构,例如借鉴人脑神经元之间传递模式,对输入信息快速处理,还可以不断的自学习。通过NPU可以实现电子设备200的智能认知等应用,例如:图像识别,人脸识别,语音识别,文本理解等。
充电管理模块240用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。在一些有线充电的实施例中,充电管理模块240可以通过USB接口230接收有线充电器的充电输入。在一些无线充电的实施例中,充电管理模块240可以通过电子设备200的无线充电线圈接收无线充电输入。充电管理模块240为电池242充电的同时,还可以通过电源管理模块241为电子设备200供电。
电源管理模块241用于连接电池242,充电管理模块240与处理器210。电源管理模块241接收电池242和/或充电管理模块240的输入,为处理器210,内部存储器221,外部存储器,显示屏294,摄像头293,和无线通信模块260等供电。电源管理模块241还可以用于监测电池242容量,电池242循环次数,电池242健康状态(漏电,阻抗)等参数。在其他一些实施例中,电源管理模块241也可以设置于处理器210中。在另一些实施例中,电源管理模块241和充电管理模块240也可以设置于同一个器件中。
电子设备200的无线通信功能可以通过天线1,天线2,移动通信模块250,无线通信模块260,调制解调处理器210以及基带处理器210等实现。
天线1和天线2用于发射和接收电磁波信号。电子设备200中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。
移动通信模块250可以提供应用在电子设备200上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块250可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块250可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块250还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块250的至少部分功能模块可以被设置于处理器210中。在一些实施例中,移动通信模块250的至少部分功能模块可以与处理器210的至少部分模块被设置在同一个器件中。
调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。应用处理器通过音频设备(不限于扬声器270A,受话器270B等)输出声音信号,或通过显示屏294显示图像或视频。在一些实施例中,调制解调处理器可以是独立的器件。在另一些实施例中,调制解调处理器可以独立于处理器210,与移动通信模块250或其他功能模块设置在同一个器件中。
无线通信模块260可以提供应用在电子设备200上的包括无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。无线通信模块260可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块260经由天线2接收电 磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器210。无线通信模块260还可以从处理器210接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。
在一些实施例中,电子设备200的天线1和移动通信模块250耦合,天线2和无线通信模块260耦合,使得电子设备200可以通过无线通信技术与网络以及其他设备通信。所述无线通信技术可以包括全球移动通讯系统(global system for mobile communications,GSM),通用分组无线服务(general packet radio service,GPRS),码分多址接入(code division multiple access,CDMA),宽带码分多址(wideband code division multiple access,WCDMA),时分码分多址(time-division code division multiple access,TD-SCDMA),长期演进(long term evolution,LTE),BT,GNSS,WLAN,NFC,FM,和/或IR技术等。所述GNSS可以包括全球卫星定位系统(global positioning system,GPS),全球导航卫星系统(global navigation satellite system,GLONASS),北斗卫星导航系统(beidou navigation satellite system,BDS),准天顶卫星系统(quasi-zenith satellite system,QZSS)和/或星基增强系统(satellite based augmentation systems,SBAS)。
在一些实施例中,电子设备200可以通过天线1和/或天线2与服务器进行数据交互。示例性的,电子设备200可以通过该天线1和/或天线2向服务器发送第一下载请求和/或第二下载请求。电子设备200还可以该通过天线1和/或天线2接收服务器发送的第一数据段和/或第二数据段。
电子设备200通过GPU,显示屏294,以及应用处理器210等实现显示功能。GPU为图像处理的微处理器,连接显示屏294和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器210可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。
显示屏294用于显示图像,视频等。显示屏294包括显示面板。显示面板可以采用液晶显示屏294(liquid crystal display,LCD),有机发光二极管(organic light-emitting diode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diode,AMOLED),柔性发光二极管(flex light-emitting diode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot light emitting diodes,QLED)等。在一些实施例中,电子设备200可以包括1个或N个显示屏294,N为大于1的正整数。
外部存储器接口220可以用于连接外部存储卡,例如Micro SD卡,实现扩展电子设备200的存储能力。外部存储卡通过外部存储器接口220与处理器210通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。
内部存储器221可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。处理器210通过运行存储在内部存储器221的指令,从而执行电子设备200的各种功能应用以及数据处理。内部存储器221可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。存储数据区可存储电子设备200使用过程中所创建的数据(比如音频数据,电话本等)等。此外,内部存储器221可以包括高速随机存取存储器, 还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。
在本申请实施例中,内部存储器221可以用于存储缓存的网络视频。当然,在一些实施方式中,该网络视频也可存储在通过外部存储器接口220连接的外部存储介质中。
电子设备200可以通过音频模块270,扬声器270A,受话器270B,麦克风270C,耳机接口270D,以及应用处理器210等实现音频功能。例如音乐播放,录音等。
音频模块270用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块270还可以用于对音频信号编码和解码。在一些实施例中,音频模块270可以设置于处理器210中,或将音频模块270的部分功能模块设置于处理器210中。
扬声器270A,也称“喇叭”,用于将音频电信号转换为声音信号。电子设备200可以通过扬声器270A收听音乐,或收听免提通话。
受话器270B,也称“听筒”,用于将音频电信号转换成声音信号。当电子设备200接听电话或语音信息时,可以通过将受话器270B靠近人耳接听语音。
麦克风270C,也称“话筒”,“传声器”,用于将声音信号转换为电信号。当拨打电话或发送语音信息或需要通过语音助手触发电子设备200执行某些功能时,用户可以通过人嘴靠近麦克风270C发声,将声音信号输入到麦克风270C。电子设备200可以设置至少一个麦克风270C。在另一些实施例中,电子设备200可以设置两个麦克风270C,除了采集声音信号,还可以实现降噪功能。在另一些实施例中,电子设备200还可以设置三个,四个或更多麦克风270C,实现采集声音信号,降噪,还可以识别声音来源,实现定向录音功能等。
耳机接口270D用于连接有线耳机。耳机接口270D可以是USB接口230,也可以是3.5mm的开放移动电子设备200平台(open mobile terminal platform,OMTP)标准接口,美国蜂窝电信工业协会(cellular telecommunications industry association of the USA,CTIA)标准接口。
触摸传感器,也称“触控面板”。触摸传感器可以设置于显示屏294,由触摸传感器与显示屏294组成触摸屏,也称“触控屏”。触摸传感器用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。在一些实施例中,可以通过显示屏294提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器也可以设置于电子设备200的表面,与显示屏294所处的位置不同。
压力传感器用于感受压力信号,可以将压力信号转换成电信号。在一些实施例中,压力传感器可以设置于显示屏294。压力传感器的种类很多,如电阻式压力传感器,电感式压力传感器,电容式压力传感器等。电容式压力传感器可以是包括至少两个具有导电材料的平行板。当有力作用于压力传感器,电极之间的电容改变。电子设备200根据电容的变化确定压力的强度。当有触摸操作作用于显示屏294,电子设备200根据压力传感器检测所述触摸操作强度。电子设备200也可以根据压力传感器的检测信号计算触摸的位置。在一些实施例中,作用于相同触摸位置,但不同触摸操作强度的 触摸操作,可以对应不同的操作指令。例如:当有触摸操作强度小于第一压力阈值的触摸操作作用于短消息应用图标时,执行查看短消息的指令。当有触摸操作强度大于或等于第一压力阈值的触摸操作作用于短消息应用图标时,执行新建短消息的指令。
陀螺仪传感器可以用于确定电子设备200的运动姿态。在一些实施例中,可以通过陀螺仪传感器确定电子设备200围绕三个轴(即,x,y和z轴)的角速度。陀螺仪传感器可以用于拍摄防抖。示例性的,当按下快门,陀螺仪传感器检测电子设备200抖动的角度,根据角度计算出镜头模组需要补偿的距离,让镜头通过反向运动抵消电子设备200的抖动,实现防抖。陀螺仪传感器还可以用于导航,体感游戏场景。
气压传感器用于测量气压。在一些实施例中,电子设备200通过气压传感器测得的气压值计算海拔高度,辅助定位和导航。
磁传感器包括霍尔传感器。电子设备200可以利用磁传感器检测翻盖皮套的开合。在一些实施例中,当电子设备200是翻盖机时,电子设备200可以根据磁传感器检测翻盖的开合。进而根据检测到的皮套的开合状态或翻盖的开合状态,设置翻盖自动解锁等特性。
加速度传感器可检测电子设备200在各个方向上(一般为三轴)加速度的大小。当电子设备200静止时可检测出重力的大小及方向。还可以用于识别电子设备200姿态,应用于横竖屏切换,计步器等应用。
距离传感器,用于测量距离。电子设备200可以通过红外或激光测量距离。在一些实施例中,拍摄场景,电子设备200可以利用距离传感器测距以实现快速对焦。
接近光传感器可以包括例如发光二极管(LED)和光检测器,例如光电二极管。发光二极管可以是红外发光二极管。电子设备200通过发光二极管向外发射红外光。电子设备200使用光电二极管检测来自附近物体的红外反射光。当检测到充分的反射光时,可以确定电子设备200附近有物体。当检测到不充分的反射光时,电子设备200可以确定电子设备200附近没有物体。电子设备200可以利用接近光传感器检测用户手持电子设备200贴近耳朵通话,以便自动熄灭屏幕达到省电的目的。接近光传感器也可用于皮套模式,口袋模式自动解锁与锁屏。
环境光传感器用于感知环境光亮度。电子设备200可以根据感知的环境光亮度自适应调节显示屏294亮度。环境光传感器也可用于拍照时自动调节白平衡。环境光传感器还可以与接近光传感器配合,检测电子设备200是否在口袋里,以防误触。
指纹传感器用于采集指纹。电子设备200可以利用采集的指纹特性实现指纹解锁,访问应用锁,指纹拍照,指纹接听来电等。
温度传感器用于检测温度。在一些实施例中,电子设备200利用温度传感器检测的温度,执行温度处理策略。例如,当温度传感器上报的温度超过阈值,电子设备200执行降低位于温度传感器附近的处理器210的性能,以便降低功耗实施热保护。在另一些实施例中,当温度低于另一阈值时,电子设备200对电池242加热,以避免低温导致电子设备200异常关机。在其他一些实施例中,当温度低于又一阈值时,电子设备200对电池242的输出电压执行升压,以避免低温导致的异常关机。
骨传导传感器可以获取振动信号。在一些实施例中,骨传导传感器可以获取人体声部振动骨块的振动信号。骨传导传感器也可以接触人体脉搏,接收血压跳动信号。 在一些实施例中,骨传导传感器也可以设置于耳机中,结合成骨传导耳机。音频模块270可以基于所述骨传导传感器获取的声部振动骨块的振动信号,解析出语音信号,实现语音功能。应用处理器可以基于所述骨传导传感器获取的血压跳动信号解析心率信息,实现心率检测功能。
按键290包括开机键,音量键等。按键290可以是机械按键290。也可以是触摸式按键290。电子设备200可以接收按键290输入,产生与电子设备200的用户设置以及功能控制有关的键信号输入。
马达291可以产生振动提示。马达291可以用于来电振动提示,也可以用于触摸振动反馈。例如,作用于不同应用(例如拍照,音频播放等)的触摸操作,可以对应不同的振动反馈效果。作用于显示屏294不同区域的触摸操作,马达291也可对应不同的振动反馈效果。不同的应用场景(例如:时间提醒,接收信息,闹钟,游戏等)也可以对应不同的振动反馈效果。触摸振动反馈效果还可以支持自定义。
指示器292可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。
SIM卡接口295用于连接SIM卡。SIM卡可以通过插入SIM卡接口295,或从SIM卡接口295拔出,实现和电子设备200的接触和分离。电子设备200可以支持1个或N个SIM卡接口295,N为大于1的正整数。SIM卡接口295可以支持Nano SIM卡,Micro SIM卡,SIM卡等。同一个SIM卡接口295可以同时插入多张卡。所述多张卡的类型可以相同,也可以不同。SIM卡接口295也可以兼容不同类型的SIM卡。SIM卡接口295也可以兼容外部存储卡。电子设备200通过SIM卡和网络交互,实现通话以及数据通信等功能。在一些实施例中,电子设备200采用eSIM,即:嵌入式SIM卡。eSIM卡可以嵌在电子设备200中,不能和电子设备200分离。
可以理解的是,本申请实施例提供的方案,可以用于具有如图2所示组成的电子设备200中。该电子设备200具有定位需求。比如,在一些实施例中,在该电子设备200能够通过GPS定位进行正常定位的情况下,该电子设备200可以通过GPS定位进行定位。在该电子设备200无法通过GPS定位的情况下,该电子设备200可以采用本申请实施例提供的方案进行定位。在另一些实施例中,电子设备200可以在有定位需求的情况下,无论是否可以通过GPS定位,都采用本申请实施例提供的定位方法进行定位。关于本申请实施例提供的方案的具体实施方式,将在后续说明中进行详细介绍。
需要明确的是,上述图2仅为一种电子设备的组成示例。本申请实施例提供的方案,还能够应用于其他具有定位需求的电子设备中。示例性的,在一些实施例中,该电子设备也可以是智能手表等有定位需求的可穿戴电子设备。在另一些实施例中,该电子设备还可以是需要进行定位的传感器等器件,比如,该电子设备可以是如图2所示的传感器模块280对应的独立部件,或者,该电子设备还可以是如图2所示的传感器模块280中的一个或多个传感器对应的独立部件或者集成部件。本申请实施例对该设备的具体形态不作特殊限制。在本申请实施例中,具有定位需求的电子设备也可以称为待定位设备。
在本申请实施例中,对待定位设备的定位,可以是基于待定位设备的关联设备实现的。示例性的,在本申请的一些实施例中,待定位设备的关联设备可以是待定位设 备执行其中安装的一个或多个应用时,在该应用的执行过程中,待定位设备产生应用关联关系的设备。该应用关联关系可以是实现待定位设备安装的应用对应功能的基础。比如,以待定位设备为手机为例。手机在执行扫码应用时,可以与二维码建立应用关联关系,通过与二维码的交互,实现扫码功能。又如,手机在执行支付应用时,可以与收款终端(比如POS机,或者用于收款的二维码等)建立应用关联关系,通过与收款终端的交互,实现支付功能。
需要说明的是,在本示例中,该应用关联关系可以是直接产生的,也可以是间接产生的。例如,继续以待定位设备为手机为例。在支付场景下,手机为了实现支付功能,可以直接与POS机进进行交互,完成支付。那么,在该场景下,POS机就可以是直接与手机建立应用关联关系的设备,也就是说,该POS机可以是手机的关联设备。在另一些场景下,手机的关联设备还可以包括间接与手机产生应用关联关系的设备。比如,在另一些支付场景下,手机为了实现支付功能,其直接的交互对象可以是该场景下的POS机。而在该POS机可能需要通过其他网络节点获取支付信息,才能支持手机完成支付功能。以POS机通过与路由器建立WIFI连接获取支付信息为例。路由器就可以是在手机实现支付功能的过程中,间接地与手机建立应用关联关系的设备。也就是说,该场景下,路由器可以是间接地配合手机实现支付功能的关联设备。
另外,在本申请的另一些实施例中,间接地配合待定位设备实现应用功能的设备,还可以包括并未与待定位设备产生直接的应用关联关系的设备。比如,结合前述示例,在支付场景下,POS机可以作为直接配合手机实现支付功能的设备。如果在该场景下,POS机同时还与其他设备有连接关系,而该连接关系可以不需要支持POS机为手机提供的支付功能。在本示例中,该与POS机具有连接关系的设备,也可以认为是间接地配合手机实现支付功能的关联设备。用于对手机进行定位。
需要说明的是,在本申请的一些实施例中,对于待定位设备的定位,可以是如上述示例中,根据与待定位设备具有应用关联关系的关联设备实现的。在另一些实施例中,还可以结合与待定位设备具有通信连接关系的连接设备,实现对待定位设备的更精准的定位。具体实现方式将在后续说明中详述。
为了使得本领域技术人员能够对本申请实施例中涉及的关联设备有更加清楚的认识和了解,以下对关联设备的确定和可能的实现进行说明。
可以理解的是,在待定位设备的使用过程中,会与其他电子设备(或者电子器件)进行交互,以实现各个场景下的功能。示例性的,以待定位设备为手机为例。在一些场景中,在用户使用手机的付款功能时,手机可以与具有收款功能的销售点(point of sale,POS)终端(简称为POS机)进行交互,以便为用户提供付款功能。在另一些场景中,在用户使用手机的扫码功能时,手机可以在用户的控制下,将摄像头对准二维码进行扫描,由此为用户提供扫码功能。
在本申请实施例中,上述在手机使用过程中,与手机进行交互以便实现各项功能的电子设备或者电子器件,可以称为手机的关联设备。可以看到,在不同的实现场景中,手机的关联设备可以具有多种不同的形态。比如,关联设备可以包括物理设备,如蓝牙信标(Beacon)、手机、平板电脑、电视等。又如,关联设备还可以包括提供各种服务的设备,如二维码、NFC标签、具有AR物体加载能力的设备、打印机、闸 机等。
需要说明的是,在本申请的一些实施例中,手机可以同时具有多个不同的关联设备。结合图3,待定位设备(如手机)可以与关联设备1-关联设备N进行关联。其中N为正整数。示例性的,以支付场景为例。手机可以通过与POS机的交互实现支付功能。那么,POS机就可以是该场景下手机的1个关联设备。在一些场景中,手机还可以与当前店铺中的NFC标签进行交互,以便于与NFC标签所属的设备进行交互,比如获取NFC标签对应的广告信息等。此时,该NFC标签可以是该场景下手机的1个关联设备。
需要说明的是,在本申请的一些实施例中,手机的关联设备还可以与其他设备进行交互。本示例中,与手机直接关联的关联设备(比如图3所示的关联设备1或关联设备2等)就可以称为手机的1级关联设备。对应的,与1级关联设备交互的设备就可以称为手机的2级关联设备。与2级关联设备交互的设备可以称为手机的3级关联设备。以此类推。示例性的,结合图4,以关联设备1与关联设备A,关联设备B以及关联设备C有交互关系为例。那么,对于作为待定位设备的手机而言,1级关联设备可以包括关联设备1-关联设备N。2级关联设备可以包括关联设备A-关联设备C。为了对如图4所示的级联关系进行更加详细的说明,继续以支付场景为例。POS机作为能够直接与手机进行交互的设备,可以包括在手机的1级关联设备中。在一些实施例中,POS机可以与本地的路由器保持无线连接,以便于从网络获取支付信息。那么与POS机连接的路由器就可以包括在手机的2级关联设备中。
在后续说明中,实现待定位设备的一项功能(如支付功能等)的一个或多个关联设备,可以与待定位设备组成待定位设备的1个设备链条。也就是说,设备链条可以用于指示待定位设备和周边其他设备或者服务产生的关系。例如,该关系可以是刷卡、碰一碰、连接WiFi、支付、扫码、登录、搜索、附近(nearby)服务、共享(share)服务等对应的关系。其中,碰一碰可以包括手机读取NFC标签的场景。可以看到,在本申请实施例中,设备链条可以用于指示待定位设备在各个场景下,与周边的其他设备(或物体,或服务)产生的应用关联关系(或简称为关联关系)。该关联关系一般需要待定位设备不远离其他设备。这样,根据具有关联关系的设备(即关联设备),就可以对待定位设备进行定位。
示例性的,结合图5,待定位设备与关联设备1以及关联设备A可以组成一个设备链条。类似的,待定位设备与关联设备1以及关联设备B可以组成另一个设备链条。待定位设备与关联设备2也可以组成一个设备链条。
采用本申请实施例提供的定位方法,待定位设备可以根据设备链条上各个关联设备(比如1级关联设备和/或2级关联设备)的定位参考信息,确定待定位设备的位置信息,实现对待定位设备的定位。其中,定位参考信息可以包括各个关联设备的位置信息,和/或关联设备的精度信息等。
需要说明的是,待定位设备需要进行定位时,可以自行收集上述关联设备的定位参考信息,进行定位。比如,待定位设备为手机等具有处理功能的设备时,可以自行收集设备链条上各个关联设备的定位参考信息,并由此对自身进行定位。
在另一些实施例中,待定位设备还可以在需要进行定位时,通过云端服务器进行 定位。可以理解的是,对于一些不具备处理能力,或者处理能力较差的待定位设备(如传感器,智能手环等),可能不具备根据定位参考信息确定自身的位置信息的能力,或者由于协议要求,待定位设备无法自行获取定位参考信息。此时,为了对自身进行定位,待定位设备可以向云端服务器发送定位请求,以便云端服务器根据待定位设备的关联设备的定位参考信息,对待定位设备进行定位。
在该示例中,云端服务器可以用于负责对所有连接到云端服务器的设备进行设备管理。该设备管理可以包括维护注册关系、连接关系、设备状态查询等。在一些实施例中,设备管理也包括设备位置管理。云端服务器可以对外开放设备位置查询接口,允许其他应用或者设备访问特定设备的位置信息。也就是说,云端服务器可以获取待定位设备的设备链条上各个关联设备的定位参考信息。
示例性的,结合图5,在待定位设备需要定位时,可以向云端服务器发送定位请求。云端服务器可以响应于该定位请求,从待定位设备对应的关联设备(如图5所示的1级关联设备以及2级关联设备等)获取各个关联设备的定位参考信息,并据此确定待定位设备的位置信息。
在本申请实施例的具体实现中,云端服务器可以是能够与待定位设备进行通信的网络设备或者节点。在一些实施例中,云端服务器可以是独立的用于支持本申请实施例提供的定位方案的接入网设备(或者接入网设备中的部件)。在另一些实施例中,云端服务器的功能也可以集成在其他为待定位设备提供网络通信服务的设备中。比如,云端服务器的功能可以集成在于待定位设备连接的应用服务器,推送(push)服务器等网络设备中。又如,云端服务器的功能可以集成在于待定位设备连接的家庭网关,路由器等节点中。作为一种可能的实现,云端服务器的功能可以通过设备云(Device clouds)中的相关设备实现。设备云技术主要面向远程数据采集的行业平台应用,可用于终端的大范围组网和管理。涵盖功能包括设备接入、设备管理、数据转发、数据存储、数据展示、数据挖掘、终端认证、运营计费等几部分。以下以云端服务器为设备云中的设备为例进行说明。在以下说明中,设备云中的设备也可以简称为设备云。
以下以待定位设备通过设备云进行定位,待定位设备具有如图5所示的级联关系为例,对本申请实施例提供的定位方法进行说明。如图6所示,该方法可以包括:
S601、待定位设备向设备云发送定位请求。
示例性的,待定位设备可以在有定位需求时,向设备云发送定位请求。其中,定位请求可以用于请求设备云对待定位设备进行定位。
S602、设备云根据定位请求,确定待定位设备的一个或多个关联设备。
其中,待定位设备的一个或多个关联设备可以为待定位设备对应的设备链条上的设备。可以理解的是,在待定位设备对应多个设备链条时,那么设备云可以根据定位请求,确定这多个设备链条上的多个关联设备。
示例性的,设备云可以根据定位请求中的指示待定位设备的设备标识(identification,ID)确定待定位设备对应的设备链条。其中,不同的待定位设备的设备ID不同。结合前述说明,设备云可以负责各个接入到设备云的设备管理。也就是说,设备云能够知晓各个接入设备的关联情况。因此,在待定位设备及其关联设备均接入到设备云的情况下,设备云可以根据待定位设备的设备ID,确定待定位设备的各个设 备链条信息。比如,结合图5,以N等于2为例。请参考图7,设备云可以根据待定位设备的设备ID,确定待定位设备的设备链条可以包括关联设备1对应的设备链条以及关联设备2对应的设备链条。如图7所示,设备云可以确定关联设备1对应的设备链条上还包括关联设备A,关联设备B以及关联设备C。那么,根据待定位设备的设备ID,设备云就可以确定待定位设备的关联设备可以包括:关联设备1,关联设备2构成的1级关联设备,以及由关联设备A,关联设备B和关联设备C构成的2级关联设备。
在本申请的另一些实施例中,设备云还可以根据待定位设备上报的关联信息确定待定位设备的关联设备。在该示例中,设备云在根据定位请求确定待定位设备需要进行定位之外,还可以根据待定位设备发送的关联信息,确定待定位设备的关联设备。其中,关联信息可以是待定位设备在发送定位请求时,与定位请求一同发送的;也可以是待定位设备通过其他的信令向设备云发送的。在本申请的一些实施例中,关联信息可以包括关联设备的设备ID。比如,结合图7,设备云可以接收来自待定位设备的关联信息,该关联信息可以包括关联设备1,关联设备2,以及关联设备A,关联设备B和关联设备C的设备ID。
需要说明的是,在本申请的另一些实施例中,关联设备的关联信息还可以是设备云通过其他形式获取的。比如,在一些特定场景下,待定位设备在出现定位需求时,与其进行交互的关联设备是固定的一个或多个设备,那么这些可能的关联设备的设备标识可以预置在设备云中,这样,设备云就可以在接收到定位请求之后,根据预置的信息,确定待定位设备对应的关联设备。又如,关联设备的关联信息还可以是设备云通过其他与待定位设备相关的设备(如待定位设备的控制设备等)获取的。本申请实施例对于设备云确定关联设备的方式不作限制。
另外,在本申请的一些实施例中,设备云可以在确定待定位设备的关联设备之前,确定待定位设备无法自行进行定位。也就是说,在该示例中,设备云可以在确定待定位设备无法获取自身的位置时,触发执行S602。在本申请的另一些实施例中,即使待定位设备能够获取自身的位置,设备云也可以在接收到定位请求的情况下,触发执行S602以及后续操作,使得设备云可以至少根据本申请实施例提供的方案获取待定位设备的准确位置。
S603、设备云确定关联设备的定位参考信息。
其中,定位参考信息可以包括以下信息中的至少一项:关联设备的位置,关联设备的定位精度等。在一些实施例中,定位参考信息还可以包括关联设备的定位时间,和/或移动属性等。
示例性的,以定位参考信息包括关联设备的位置为例。在一些实施例中,设备云可以确定1级关联设备中,具有定位能力的关联设备的位置。结合图7,在关联设备1具有定位能力的情况下,设备云可以通过与关联设备1的通信,确定关联设备1的位置。类似的,在关联设备2具有定位能力的情况下,设备云可以通过与关联设备2的通信,确定关联设备2的位置。
在本申请的另一些实施例中,在1级关联设备中的各个关联设备都不具备定位能力的情况下,设备云可以获取2级关联设备的位置。比如,在关联设备1和关联设备 2都不具备定位能力的情况下,设备云可以通过与关联设备A,关联设备B和关联设备C中的一个或多个设备进行通信,获取具备定位能力的2级关联设备的位置。比如,以关联设备1和关联设备2都不具备定位能力为例,设备云可以获取能够进行定位的关联设备A,关联设备B和关联设备C中的至少一个关联设备的位置。
需要说明的是,上述示例中是以在1级关联设备不具备定位能力的情况下对2级关联设备进行定位为例进行说明的。在本申请的另一些实施例中,设备云还可以同时获取1级关联设备以及2级关联设备的定位参考信息。
在本申请的一些实施例中,设备云可以在确定关联设备的位置之外,还可以确定各个关联设备的定位精度。其中,关联设备的定位精度可以用于指示关联设备的覆盖范围。可以理解的是,作为待定位设备的关联设备,那么待定位设备的位置应当在关联设备的定位精度范围之内。示例性的,关联设备的定位精度可以通过定位范围来标识。作为一种示例,表1示出了不同关联设备的定位精度的对应关系示例。
表1
关联设备 定位精度
POS机 <5cm
闸机 <5cm
NFC标签 <5cm
路由器 <100m
二维码 <1m
考勤机 <500m
Share机器 <10m
其他手机 <10m
大屏 <5m
PC或平板 <1m
打印机 <50cm
连接设备 <10m
…… ……
根据表1所示的对应关系,设备云就可以知晓不同关联设备的定位精度。示例性的,结合图7,以关联设备1为POS机,关联设备2为路由器为例。那么,根据表1,设备云就可以确定关联设备1的定位精度为5cm,关联设备2的定位精度为100m。在本申请的另一些实施例中,表1中的关联设备一栏还可以通过各个关联设备的设备ID标识。
结合上述实施例中的说明,设备云还可以同时获取包括定位精度和位置在内的各个关联设备的定位参考信息。示例性的,表2为本申请实施例提供的又一种设备云获取的关联设备的定位参考信息的示例。
表2
关联设备 位置 定位精度
POS机 地址A <5cm
闸机 地址B <5cm
NFC标签 地址C <5cm
路由器 地址D <100m
二维码 地址E <1m
考勤机 地址F <500m
Share机器 地址G <10m
其他手机 地址H <10m
大屏 地址I <5m
PC或平板 地址J <1m
打印机 地址K <50cm
连接设备 地址L <10m
…… …… ……
示例性的,继续结合图7,以关联设备1为POS机,关联设备2为路由器为例。那么,根据表2,设备云就可以确定关联设备1的定位精度为5cm,POS机的位置为地址A;类似的,设备云可以确定关联设备2的定位精度为100m,路由器机的位置为地址D。
需要说明的是,在本申请的不同实现中,设备云可以通过不同的途径获取关联设备的定位参考信息。示例性的,在一些实施例中,设备云可以从关联设备获取定位参考信息,比如设备云可以通过与关联设备的通信,获取各个关联设备的位置以及定位精度。在另一些实施例中,不同的关联设备的定位参考信息还可以是存储在设备云中的。这样,在设备云确定关联设备之后,就可以通过存储的不同多个定位参考信息,确定对应关联设备的定位参考信息。
S604、设备云根据关联设备的定位参考信息,对待定位设备进行定位。
可以理解的是,作为待定位设备的关联设备,则表明在接收到定位请求时,待定位设备在关联设备附近。本示例中,设备云可以通过与待定位设备对应的关联设备的位置和定位精度,确定待定位设备的位置。
在本示例中,设备云可以参考以下4种情况中分别示出的确定方式,根据定位参考信息,对待定位设备进行定位。
情况1:以设备1为待定位设备为例。设备1和设备0产生关联关系,即设备0为设备1的关联设备。设备0的位置和定位精度范围已知,则设备1的位置=设备0的位置+误差0。其中,误差0可以为设备0的定位精度范围。可以理解的是,在这种情况下,因为设备1的位置未知,但是设备1和设备0之间产生关联关系,说明设备1一定在设备0附近。所以可以使用设备0的位置作为设备1的位置。但是在设备0的定位精度范围之内,无法确定设备1的具体位置,所以本示例中,可以将设备0的定位精度范围作为设备1定位的误差。需要说明的是,当设备0本身的位置也有误差时,两个误差需要叠加。
情况2:以设备2为待定位设备为例。设备2和设备1产生关联关系,设备1和设备0产生关联关系。即设备1为设备2的关联设备。设备0为设备1的关联设备。 也就是说,对于设备2,设备1为1级关联设备,设备0为2级关联设备。设备0的位置和定位精度范围已知。设备2无法定位,因此可以根据其关联设备(如设备1)对设备2进行定位。在设备1也无法定位的情况下,可以根据设备0的位置确定设备1的位置。在本示例中,设备2的位置可以确定在设备0的附近。但是误差需要叠加设备1定位精度范围对应的误差和设备0定位精度范围对应的误差。即,设备2的位置=设备0的位置+误差0+误差1。需要说明的是,当设备0自身的定位信息有误差时,误差也需要叠加。
情况3:以设备1为待定位设备为例。设备1和设备0产生关联。即设备0为设备1的关联设备。设备1或者设备0有移动属性,即设备1和设备0存在位置的相对移动。例如设备1和设备0均为手机,在两个手机使用share服务后,两个手机各自向不同方向移动。此时设备1使用设备0的位置时,可以根据移动属性,对设备1的定位结果进行修正,以增加两个设备各自因为移动造成的误差。比如,如果只有一个设备移动,则只需要叠加一个设备的移动误差。又如,如果两个设备均存在移动,那么可以叠加两个设备的移动误差。其中,设备的移动误差可以根据设备的移动速度以及时间计算获取。设备的移动速度可以是设备自行通过传感器获取的,也可以是设备云通过其他手段获取的。
情况4:以设备2为待定位设备为例。设备2在同一时间段内和设备0和设备1产生关联关系。即设备0和设备1均为设备2的关联设备。该情况下,设备2既在设备0的定位精度范围内,又在设备1的定位精度范围内。所以设备2一定在设备0和设备1定位精度范围的交集空间内。所以设备2的位置可以为该交集区域对应的位置。
以下结合实际场景,对上述4种情况下根据定位参考信息对待定位设备进行定位的方法进行详细说明。
在一些实施例中,结合图7,设备云可以根据一个1级关联设备的定位参考信息确定待定位设备的位置信息。其中,待定位设备的位置信息可以根据定位参考信息确定。
示例性的,以关联设备1为POS机为例。请参考图8,为本申请实施例提供的一种定位场景的示意图。如图8所示,待定位设备(如手机)可以在与关联设备1(如图8所示的POS机)进行交互的过程中,向设备云发送定位请求(图中未示出设备云)。设备云确定手机正在进行一笔刷卡交易,确认POS机是手机的关联设备。设备云确定POS机的位置信息。比如通过POS机或者POS机的管理平台,查询POS机的注册地点。由此设备云可以确定POS机的定位参考信息(如POS机的位置是A商户)。根据POS机的定位参考信息,设备云就可以对手机进行定位。可以理解的是,结合表2,POS机的定位精度为5cm以内。设备云还可以根据POS机的定位参考信息确定POS机位于A商户内。因此设备云可以确定手机的位置是A商户,误差小于5cm。
可以理解的是,在手机无法自行定位或者自行定位精度差(比如手机处于楼宇中)时,通过本示例提供的方案,设备云可以将手机的位置缩小到关联设备的定位精度范围内(如本示例中的5cm),能够实现对于待定位设备的精确定位,而同时不需要引入新的定位协议等,因此对于大部分待定位设备的定位场景均能够较好地适用。
在另一些实施例中,结合图7,设备云可以根据多个1级关联设备的定位参考信 息确定待定位设备的位置信息。其中,待定位设备的位置信息可以根据不同关联设备的定位参考信息共同确定。
示例性的,以关联设备1为POS机,关联设备2为蓝牙信标为例。请参考图9A,为本申请实施例提供的又一种定位场景的示意图。如图9A所示,待定位设备(如手机)可以在与关联设备1(如图9A所示的POS机)以及关联设备2(如图9A所示的蓝牙信标)进行交互的过程中,向设备云发送定位请求(图中未示出设备云)。设备云可以在收到定位请求后,获取POS机以及蓝牙信标的定位参考信息。以定位参考信息包括POS机的位置和定位精度为例。结合表2,设备云可以确定POS机的位置为地址A,定位精度为5cm;以蓝牙信标的位置为地址M,定位精度为10m为例。需要说明的是,表2中的对应关系仅为距离,并未对所有的关联设备进行穷举,比如,在本示例中,关联设备还可以包括蓝牙信标,蓝牙信标的位置可以为地址M,定位精度可以为10m。这样,根据POS机以及蓝牙信标的定位参考信息,设备云就可以确定手机可以位于POS机和蓝牙信标的定位精度范围有重叠的区域之内。因此,手机的定位信息包括POS机的定位精度范围(如地址A周围的5cm范围之内)与蓝牙信标的定位精度范围(如地址M周围的10m范围之内)的重叠区域。如图9A所示,由于POS机的定位精度范围被包括在蓝牙信标的定位精度范围内,因此,上述重叠区域可以为POS机的定位精度范围。也就是说,在该场景下,手机的位置信息可以包括地址A周围的5cm范围之内。
在如图9A的示例中,手机的定位信息可以包括关联设备的定位精度范围中较小的范围。在另一些实施例中,在关联设备的定位精度范围只有部分重合时,也可以根据重叠区域对手机进行定位。
示例性的,请参考图9B。以关联设备1为与待定位设备(如手机1)进行share服务互联的手机2,关联设备2为蓝牙信标为例。在该示例中,手机1可以在与关联设备1(如图9B所示的手机2)以及关联设备2(如图9B所示的蓝牙信标)进行交互的过程中,向设备云发送定位请求(图中未示出设备云)。设备云可以在收到定位请求后,获取手机2以及蓝牙信标的定位参考信息。以定位参考信息包括手机2的位置和定位精度为例。结合表2,设备云可以确定手机2的位置为地址(如地址X),由于该手机2与手机1有share服务的关系,因此,手机2的定位精度为5m;以蓝牙信标的位置为地址M,定位精度为10m为例。这样,根据手机2以及蓝牙信标的定位参考信息,设备云就可以确定手机1可以位于手机2和蓝牙信标的定位精度范围有重叠的区域之内。因此,手机1的定位信息包括手机2的定位精度范围(如地址X周围的5m范围之内)与蓝牙信标的定位精度范围(如地址M周围的10m范围之内)的重叠区域。结合图9B,设备云可以确定手机1的定位信息包括如图所示的定位区域。
需要说明的是,在本申请的另一些实施例中,关联设备还可以是不属于电子设备的被动装置。比如,NFC标签,二维码等电子标签。可以理解的是,对于NFC标签或者二维码等电子标签,不同于上述示例中POS机或者蓝牙信标等主动提供服务的电子设备,在提供对应服务时,需要用户通过其他电子设备与电子标签进行交互。比如,用户可以在需要获取商品信息时,使用具备“扫一扫”功能的电子设备扫描商品包装上的二维码,以便于电子设备通过分析二维码携带的信息,获取商品的信息。又如, 用户可以在需要通过NFC传输协议获取广告栏的详情信息时,使用具备NFC读取功能的电子设备,与NFC标签进行通信,以便于电子设备通过NFC传输协议读取广告栏的详情信息。
以下以待定位设备的关联设备包括电子标签(如二维码),以及蓝牙信标为例,对本申请实施例的定位方法进行示例性说明。
可以理解的是,用户想要能够准确地扫描获取二维码上的信息,就需要在一定的范围内对二维码进行扫描。也就是说,当待定位设备的关联设备包括二维码时,作为待定位设备的手机应当处于二维码对应的有效扫描范围之内。二维码的有效扫描范围就可以对应上述示例中的关联设备的有效定位范围。在一些实施例中,二维码可以为静态二维码。比如,该将二维码通过打印张贴在商铺的位置,那么该二维码的位置就是相对固定的,该二维码就可以是静态二维码。在该场景下,二维码的张贴位置可以是用户手动配置的。由此,根据二维码的张贴位置,设备云就可以确定二维码的有效扫描范围。比如,二维码的有效扫描范围可以为以张贴位置为原点,正对二维码的方向上,5米范围内的空间。
结合图10,二维码的有效扫描范围可以为如图所示的扇形区域。另外,蓝牙信标作为手机的1级关联设备,那么手机也会处于蓝牙信标的定位精度范围之内。因此,手机或者设备云就可以根据二维码的有效扫描范围以及蓝牙信标的定位精度范围,确定手机的位置。结合如图6所示的方法,在该场景下,手机可以通过如下方法进行定位:手机可以向设备云发送定位请求;设备云可以在接收到定位请求之后,确定手机的关联设备包括二维码以及蓝牙信标;设备云可以确定二维码以及蓝牙信标的定位参考信息,比如二维码的有效扫描范围以及二维码的位置,蓝牙信标的有效定位范围以及蓝牙信标的位置;设备云可以根据设二维码以及蓝牙信标的定位参考信息,确定待定位设备(如上述说明中的手机)的位置。作为一种示例,设备云可以通过如下步骤,实现对手机的定位:步骤1:设备云接收到对手机的定位请求,设备云确认手机自身无法定位。步骤2:设备云确定手机检测到蓝牙Beacon,同时确定手机发生扫码活动,确认蓝牙Beacon和二维码是手机的关联设备。步骤3:设备云确定蓝牙Beacon和二维码的位置信息。其中,蓝牙beacon以及二维码的位置信息可以通过蓝牙Beacon以及二维码的管理平台或者签发机构确定。步骤4:设备云确定蓝牙Beacon的位置(比如在某门店入口处),覆盖范围为10m。二维码的位置为该门店收银台处,覆盖范围为5m的扇形区域。步骤5:设备云确定手机必须同时在蓝牙Beacon的覆盖范围和二维码的覆盖范围内,所以设备一定在如图10所示的定位区域。
结合上述图8-图10的说明,本领域技术人员应当能够理解,在待定位设备的1级关联设备中的一个或多个具备定位能力(对应前述说明中的情况1和情况4)的情况下,采用如图6所示的方法时可以准确快速地对待定位设备进行定位。
需要说明的是,在图6示出的实施例中,以设备云获取待定位设备的位置信息为例进行了说明,在本申请其他可能的实施例中,如果待定位设备自身即具有根据与其关联的设备确定当前所处位置的能力,则图6所描述的各方法步骤也可以由该待定位设备完成,而不需要设备云执行。
以下结合附图对待定位设备的1级关联设备都不具备定位能力的情况下,本申请 实施例提供的定位方法(即如图6所示的方案)的具体实施进行示例性说明。
应当理解的是,在向待定位设备提供服务的过程中,并不要求所有的关联设备都具备定位能力。在本申请实施例中,在设备云无法确定第1级关联设备的定位参考信息的情况下,设备云可以确定2级关联设备,或者3级关联设备等其他关联设备的定位参考信息,并据此对待定位设备进行定位。其中,2级关联设备可以是与1级关联设备交互的设备。类似的,3级关联设备可以是与2级关联设备交互的设备。
示例性的,结合图11,以待定位设备为手机,1级关联设备为POS机为例。设备云接收到对手机的定位请求可以确定手机正在进行一笔刷卡交易,由此确认POS机是手机的关联设备。设备云可以确定POS机的定位参考信息。比如,设备云可以通过POS机或者POS机的管理平台,查询POS机的注册地点。设备云在确定POS机无法定位时,确定POS机连接了路由器的WiFi信号,由此确定路由器是POS机的关联设备,因此路由器是手机的2级关联设备。该路由器与POS机之间的关联是基于通信连接而产生的通信连接关系。设备云可以确定路由器的定位参考信息。比如设备云通过WiFi注册信息或者WiFi路由器供应商确定WiFi路由器位于A商户。根据路由器的定位参考信息,设备云可以确定手机的位置在A商户附近。由于POS机的定位精度不到5cm。路由器的定位精度大约为100m。所以设备云可以确定手机的位置是A商户,误差100m。
可以理解的是,上述示例中,是以1级关联设备不具备定位能力,2级关联设备具备定位能力为例进行说明的。在本申请的另一些实施例中,在2级关联设备也不具备定位能力时,设备云可以根据与2级关联设备相关的其他设备(如3级关联设备或4级关联设备等),对待定位设备进行定位,其具体执行方式与上述示例类似,此处不再赘述。
需要说明的是,上述示例中,是以1级关联设备是能够直接与待定位设备交互的设备,2级关联设备是能够直接与1级关联设备交互的设备为例进行说明的。在本申请的另一些实施例中,1级关联设备和/或2级关联设备还可以具有不同的区分。示例性的,以有多个设备可以同时与待定位设备进行交互为例。在一些实现中,这多个设备由于都可以直接与待定位设备进行交互,因此可以作为待定位设备的1级关联设备。在另一些实现中,设备云可以根据这些关联设备各自的精度范围,各个关联设备与当前待定位设备所处场景的耦合情况(如该关联设备是否可以提供当前场景下的服务)等,对这些关联设备进行区分。比如,将定位精度范围小于对应的预设阈值,并且能够提供当前场景下的服务的关联设备定义为1级关联设备。设备云可以根据这些1级关联设备对待定位设备进行定位。其具体方案可以参考上述示例中的情况1-情况4的说明,此处不再赘述。
可以理解的是,通过本申请实施例提供的方案,能够对待定位设备进行定位。在一种实现场景中,可以通过本申请实施例提供的方案(如图6所示的方案)对待定位设备进行定位,可以实现对用户的定位,进而根据用户的位置,实现对应场景中的功能。
示例性的,以智慧生活场景为例。在智慧生活场景中的各个智能服务可以由智慧系统负责调控。在一些实现中,该智慧系统可以是具备对该场景下各个智能设备进行控制管理的中枢。本示例中的智慧系统(简称为系统)可以对应到上述说明中的设备 云。
作为一种可能的实现,系统可以通过对用户进行定位(比如确定用户具体处于哪一个房间),实现该场景中的一些智慧能力。比如,当系统接收到用户“开灯”的指令时,可以结合用户所处房间的信息,点亮对应房间的照明设备。
在本示例中,系统可以通过对用户佩戴或使用的电子设备进行定位,实现对用户的定位。比如,以系统通过用户佩戴的智能手表对用户进行定位为例。即智能手表为待定位设备。
结合图6所示的方案,在需要对智能手表进行定位时,系统发起对智能手表的定位。一般而言,智能手表在位于室内环境下时,无法对自身进行精确的定位。在本示例中,在智能手表接收到系统的定位指示的情况下,检测当前能够搜索到的蓝牙/WIFI设备。比如,结合图12,智能手表可以检测到智能音箱、多个路由器(如R1-R5)等设备。在一些实施例中,智能手表可以根据各个设备到智能手表的距离,判断与智能手表距离最近的关联设备。示例性的,智能手表可以通过向各个设备发送检测信号,根据检测信号的RSSI或者其他参数,确定距离最近的关联设备。比如,在如图12所示的场景下,系统可以确定与智能音箱的距离最近。那么,智能手表就可以将智能音箱作为其1级关联设备。
系统可以从智能手表处获取关联设备的信息(比如智能音箱的设备ID),并确定智能音箱的定位参考信息。在一些实施例中,在智能音箱具备定位能力的情况下,系统可以根据智能音箱的定位参考信息(如智能音箱的位置等),确定智能手表的位置范围。结合预设的用户对应的户型图,系统就能够确定智能手表具体所处房间。其中,智能音箱的位置可以是用户自行配置的,也可以是智能音箱或系统通过定位确定的。在另一些实施例中,在智能音箱不具备定位能力的情况下,系统可以确定与智能音箱关联的2级关联设备(如图12所示的路由器R1-R5)。系统可以结合R1-R5的位置,结合场景下的户型图,确定不同路由器与房间的对应关系。接着,根据各个路由器的有效定位精度范围,以及各个路由器的位置,系统就可以确定智能音箱的位置。比如,系统可以确定音箱位于R1-R3的定位精度范围的交叉区域,那么系统就可以据此确定智能音箱位于房间A中。
在确定了智能手表位于房间A中之后,系统就可以确定用户当前处于房间A中。这样,当系统接收到用户的指令,比如通过语音指令“开灯”,就可以打开房间A中的照明设备。
结合前述说明,设备云可以在接收到待定位设备的定位请求的情况下,获取当前关联设备的定位参考信息,并据此对待定位设备进行定位。在一些实施例中,如果待定设备需要知晓自身的定位结果,那么设备云可以在确定待定位设备的位置信息之后,将该位置信息发送给待定位设备。
可以理解的是,在一些实施例中,待定位设备可能是移动的,或者,待定位设备在发起定位请求时,并没有与任何设备进行交互,也就不存在关联设备。在这些场景下,本申请实施例还提供一种定位方法,能够实现对待定位设备的定位。
示例性的,请参考图13,为本申请实施例提供的又一种定位方法的示意图。如图13所示,该方法可以包括:
S1301、待定位设备向设备云发送定位请求。
该步骤与如图6所示的S601类似,此处不再赘述。需要说明的是,在本示例中,由于待定为设备在发出定位请求时,可能没有对应的关联设备。因此,为了使得设备云可以根据历史交互情况对待定位设备进行定位,该定位请求中可以包括发送定位请求的时间。
S1302、设备云根据定位请求,确定待定位设备的历史关联设备。
S1303、设备云确定历史关联设备的定位参考信息。
在本示例中,设备云可以确定待定位设备在发起定位请求之前一段时间之内的关联设备的情况。比如,在待定位设备发送定位请求之前,可以在不同时刻分别与不同的关联设备进行了交互,那么设备云就可以分别获取这些关联设备的信息。
示例性的,表3示出了一种设备云确定的历史关联设备的定位参考信息的一种示例。
表3
关联设备业务 关联设备 起始时间 失效时间 位置 定位精度
刷卡支付 POS机 13:00 13:01 地址A <5cm
地铁公交扫码 闸机 13:02 13:03 地址B <5cm
碰一碰 NFC标签 14:15 14:16 地址C <5cm
连接WiFi 路由器 15:23 16:30 地址D <100m
拍照扫码 二维码 15:24 15:25 地址E <1m
考勤 考勤机 17:30 17:31 地址F <500m
Share服务 Share机器 18:00 18:10 地址G <10m
面对面建群 其他手机 18:45 18:50 地址H <10m
投屏 大屏 19:00 19:30 地址I <5m
多屏协同 PC或平板 20:00 21:00 地址J <1m
扫码打印 打印机 20:21 20:22 地址K <50cm
共享热点 连接设备 21:00 22:00 地址L <10m
…… …… …… …… …… ……
如表3所示,相较于前述说明中的表2,设备云可以知晓在历史交互过程中,各个关联设备与待定位设备的交互有效时间。通过如表3所示的定位参考信息,设备云就可以确定各个历史关联设备的定位参考信息的有效性。比如,在设备云接收到的定位请求携带的时间为22:05时,则根据表3,设备云可以知晓距离接收到定位请求的时刻最近的交互是与连接设备的交互。也就是说,由于时间最为接近,待定位设备的位置与连接设备的位置最为接近。这样,设备云就可以根据连接设备的位置和定位精度确定待定位设备的位置。在另一些实施例总,设备云可以选取与定位请求携带的时间较为接近的多个关联设备的定位参考信息作为有效的定位参考信息,以便结合这些关联设备的定位参考信息,对待定位设备进行定位。其中,多个关联设备的选取,可以是设备云自行根据间隔时间的长短自行确定的,也可以是设备云根据预设的数量选取的,也可以是设备云根据用户的历史习惯确定的。
需要说明的是,在一些实现中,如表3所示,在该对应关系中,还可以包括各个历史关联设备提供的业务信息。比如,通过表3,设备云可以确定POS机提供的业务为刷卡支付。又如,通过表3,设备云可以确定闸机提供的业务为地铁公交扫码。又 如,通过表3,设备云还可以确定连接设备提供的业务为共享热点。
S1304、设备云根据历史关联设备的定位参考信息,对待定位设备进行定位。
示例性的,设备云可以根据有效的定位参考信息,对待定位设备进行定位。
在一些实施例中,以设备云根据与接收到定位请求中的时间最为接近的交互作为有效的定位参考信息为例。比如定位请求中的时间为22:05,那么设备云就可以将连接设备的定位参考信息作为有效的定位参考信息。这样,设备云就可以确定待定位设备的位置在地址L的10m范围之内。
在另一些实施例中,以设备云根据与接收到定位请求中的时间最为接近的3个交互作为有效的定位参考信息为例。比如定位请求中的时间为22:05,那么设备云就可以将PC或平板,打印机,连接设备的定位参考信息作为有效的定位参考信息。这样,设备云就可以将多个定位参考信息指示的交叉区域作为待定位设备的定位结果。比如,设备云可以将地址J周围1m范围,地址K周围50cm范围,以及地址L的10m范围的较差区域,作为待定位设备的定位结果。
需要说明的是,通过上述方案,设备云确定的位置实际上是待定位设备在一段时间之前的位置。因此,在一些实施例中,设备云还可以根据历史关联设备的定位参考信息,确定待定位设备的移动属性。比如,该移动属性可以包括待定位设备可能的移动方向,和/或移动距离等。作为一种可能的实现,在确定待定位设备的当前位置时,设备云可以根据不同的历史关联设备的定位参考信息,确定待定位设备的移动属性。示例性的,待定位设备的移动属性,可以是设备云根据各个历史关联设备的交互时间,以及各个历史关联设备的位置确定的。比如,结合表3,设备云可以根据表3确定,在20:21-20:22这段时间内,待定位设备在使用打印机提供的扫码打印服务。在21:00-22:00这段时间内,待定位设备在使用连接设备提供的共享热点服务。由此,设备云就可以确定地定位设备的移动属性为沿着打印机到连接设备所指向的方向。结合连接设备的位置,或者连接设备和打印机的定位参考信息,设备云就可以确定待定位设备位于定位参考信息所指示区域中,上述方向所在的方位。
在本申请的另一些实施例中,设备云还可以从待定位设备获取待定位设备的移动属性。示例性的,待定位设备的移动属性可以是根据待定位设备中设置的加速度传感器,陀螺仪传感器等能够辨别方向和速度的传感器确定的。设备云可以从待定位设备获取其移动属性,并结合历史关联设备的定位参考信息,对待定位设备进行定位。
请参考图14,以待定位设备为手机为例。如图14所示,手机可以在T1时刻与POS机进行交互,在T1时刻之后的T2时刻向设备云发送定位请求。由于在T2时刻,手机不存在关联设备,因此,设备云参考如图13所示的方案,确定手机的历史关联设备(如POS机)。在一些实施例中,设备云还可以确定手机当前的移动属性,比如手机通过其中设置的加速度传感器可以确定正在以1米每秒的速度移动,设备云可以从手机获取该移动属性,进而确定手机当前的位置为:以POS机的位置为中心,定位精度范围周边的位置。根据手机的移动速度,结合定位请求中的时间以及与POS机交互的时间确定手机的定位信息。示例性的,以手机在发出定位请求之前2分钟与POS机进行过支付交互为例,设备云可以根据如下步骤,实现对手机的定位:步骤1:设备云接收到对手机的定位请求,设备云确认手机自身无法定位。步骤2:设备云确定手 机2分钟前进行过一笔刷卡交易,确认POS机是手机的关联设备。步骤3:设备云确定POS机的位置信息。步骤4:设备云确定POS机的位置是A商户。步骤5:设备云根据POS机的位置确定手机的位置是A商户。在一些实施例中,设备云可以结合手机的移动属性,对手机的定位结果进行调整。比如,设备云根据手机的移动属性,确定手机在2分钟时间内最多移动50m。那么设备云可以确定手机的位置是A商户,误差为50m。
需要说明的是,如果按照移动速度和移动时间估算,手机已经移动出了关联设备的定位精度范围,那么设备云可以按照手机移动的距离,结合关联设备的位置重新确定手机的位置。
在本示例中,设备云从待定位设备获取的移动属性,可以包括如上述示例中所示的待定位设备通过其中设置的传感器所采集的全量的数据。在获取该移动属性之后,设备云可以对该移动属性中包括的全量的数据进行处理,由此获取待定位设备的移动情况。在另一些实施例中,设备云从待定位设备获取的移动属性,也可以包括待定位设备对传感器所采集的全量的数据处理之后的数据。该处理之后的数据可以用于指示待定位设备的移动情况。由此,在待定位设备侧进行数据的处理,能够有效地减小与设备云之间的数据传输量。
另外,以上针对图13的说明中,均是以当前待定位设备没有关联设备为例的。在另一些实施例中,在当前待定位设备存在关联设备,设备云依然可以采集待定位设备的历史关联的信息。在对待定位设备进行定位时,设备云可以结合历史关联设备的定位参考信息,对根据当前的关联设备确定的位置进行调整,以使得定位结果更加符合待定位设备的使用逻辑,由此进一步提升定位准确度。
上述示例中,设备云可以根据历史关联设备对待定位设备进行定位。在本申请的一些实施例中,在待定位设备需要进行定位时,如果当前环境中没有关联设备,则设备云还可以等待待定位设备与其他设备进行交互时,再对待定位设备进行定位。
示例性的,设备云可以在接收到手机定位请求时,确定当前环境中没有关联设备的情况下,进入等待(pending)状态。设备云可以实时获取手机的交互情况,以便于在出现关联设备时,根据该关联设备的定位参考信息对手机进行定位。作为一种示例,请参考图15,以手机在T3时刻发送定位请求,环境中没有关联设备;手机在T3时刻之后的T4时刻与NFC标签进行交互为例。设备云可以通过如下步骤,对手机进行定位:步骤1、设备云接收到对手机的定位请求,设备云确认手机自身无法定位。步骤2、设备云确定手机当前没有关联设备,或者关联设备历史经过时间太长已经没有参考价值。设备云挂起设备定位请求。步骤3、设备云确定设备扫描NFC标签。步骤4、设备云确定NFC标签的定位参考信息,比如NFC标签位于某门店体验台处。步骤5、设备云确定手机的位置在NFC标签处,并恢复挂起的设备定位请求,返回定位结果。其中,步骤5中,设备云根据NFC标签对手机进行定位的具体执行方式,可以参考图13或图6所示的方案,此处不再赘述。
上述主要从设备的角度对本申请实施例提供的方案进行了介绍。为了实现上述功能,其包含了执行各个功能相应的硬件结构和/或软件模块。本领域技术人员应该很容易意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,本申请能够 以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。
本申请实施例可以根据上述方法示例对其中涉及的设备进行功能模块的划分,例如,可以对应各个功能划分各个功能模块,也可以将两个或两个以上的功能集成在一个处理模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。需要说明的是,本申请实施例中对模块的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。
请参考图16,为本申请实施例提供的一种定位装置1600的组成示意图。该定位装置1600可以用于对待定位设备进行定位。比如,该定位装置1600可以设置在如图5所示的云端服务器(如设备云)中。
该定位装置1600包括:确定单元1601,用于在对该待定位设备进行定位时,确定待定位设备的一个或多个关联设备。其中,在该待定位设备执行应用时,该关联设备与该待定位设备发生应用关联关系。该应用关联关系包括:该关联设备在该待定位设备执行应用时,因直接或间接地配合该待定位设备实现该应用的功能,而与该待定位设备发生的关联关系。获取单元1602,用于获取一个或多个该关联设备的定位参考信息。确定单元1601,还用于根据该一个或多个该关联设备的定位参考信息,确定该待定位设备的位置信息。
在一种可能的设计中,与该待定位设备具有应用关联关系的关联设备包括第一关联设备。获取单元1602,用于获取该第一关联设备的第一定位参考信息。确定单元1601,用于确定该待定位设备的位置在该第一定位参考信息所指示的位置的一定范围内。
在一种可能的设计中,该第一定位参考信息包括第一位置信息。确定单元1601,用于确定该待定位设备的位置为该第一位置信息指示的位置。
在一种可能的设计中,该第一定位参考信息还包括:第一定位精度。确定单元1601,用于确定该待定位设备的位置在该第一位置信息指示的位置的第一精度范围内,其中,该第一精度范围由该第一定位精度指示。
在一种可能的设计中,在该获取该第一关联设备的第一定位参考信息之前,确定单元1601,还用于确定该第一关联设备是否具有定位能力。获取单元1602,用于在该第一关联设备具有定位能力的情况下,获取该第一定位参考信息。
在一种可能的设计中,与该待定位设备具有应用关联关系的关联设备包括第二关联设备,该第二关联设备为直接配合该待定位设备实现该应用的功能的设备,在该第二关联设备不具有定位能力的情况下,获取单元1602,用于获取第三关联设备的第二定位参考信息,该第三关联设备是该第二关联设备的关联设备。确定单元1601,用于根据该第二定位参考信息确定该待定位设备的位置。
在一种可能的设计中,获取单元1602,用于获取该第二关联设备的第二定位精度。确定单元1601,用于根据该第二定位参考信息,和该第二定位精度,确定该待定位设备的位置。
在一种可能的设计中,该第二定位参考信息包括:第二位置信息和第三定位精度。 该待定位设备的位置包括:在该第二位置信息指示的位置的第二精度范围内,其中,该第二精度范围由该第二定位精度和该第三定位精度共同指示。
在一种可能的设计中,该待定位设备在当前场景下的关联设备还包括第四关联设备。该第四关联设备具有定位能力。获取单元1602,还用于获取该第四关联设备的第三定位参考信息。确定单元1601,用于根据该第一定位参考信息和该第三定位参考信息,确定该待定位设备的位置信息。
在一种可能的设计中,该第一定位参考信息包括第一位置信息和第一定位精度,该第三定位参考信息包括第三位置信息和第四定位精度。该待定位设备的位置信息包括:该待定位设备位于定位区域内,该定位区域包括第一区域和第二区域的重叠部分,该第一区域为该第一位置信息指示的位置的第一精度范围内的区域,该第一精度范围由该第一定位精度指示。该第二区域为该第三位置信息指示的位置的第三精度范围内的区域,该第三精度范围由该第四定位精度指示。
在一种可能的设计中,该定位装置1600还包括:接收单元1603,用于接收定位请求,该定位请求包括该待定位设备的设备标识。确定单元1601,用于根据该设备标识,确定一个或多个该关联设备。或者,接收单元1603,用于接收定位请求,该定位请求中包括该待定位设备的一个或多个该关联设备标识。根据关联设备标识,确定该关联设备。
在一种可能的设计中,在根据接收的该定位请求无法确定该待定位设备的关联设备的情况下,确定单元1601,还用于确定该待定位设备的一个或多个历史关联设备,该历史关联设备是根据历史已发生的该待定位设备和关联设备之间的应用关联关系确定的关联设备。获取单元1602,用于获取该一个或多个历史关联设备的历史定位参考信息,确定单元1601,用于根据该历史定位参考信息,确定该待定位设备的位置信息。
在一种可能的设计中,该历史定位参考信息包括该一个或多个历史关联设备的位置信息,以及以下中的至少一个:该一个或多个历史关联设备的定位精度或者该待定位设备与该一个或多个历史关联设备保持关联关系的时间信息。
在一种可能的设计中,在该历史定位参考信息至少包括该一个或多个历史关联设备的位置信息以及该时间信息的情况下,确定单元1601,用于从该一个或多个历史关联设备中,选取时间信息与该定位请求指示的定位时间接近的一个或多个设备作为有效关联设备,根据该一个或多个有效关联设备的位置信息,确定该待定位设备的位置信息。
在一种可能的设计中,获取单元1602,还用于获取该待定位设备的移动属性,该移动属性用于指示该待定位设备的移动状态。确定单元1601,用于根据该历史定位参考信息以及该移动属性,确定该待定位设备的位置信息。
在一种可能的设计中,该定位装置1600还包括:检测单元1604,用于在接收该定位请求时,不存在该待定位设备的关联设备的情况下,检测该待定位设备的应用关联关系的变化情况。确定单元1601,用于在该待定位设备的应用关联关系出现变化时,确定与该待定位设备发生应用关联关系的第五关联设备。获取单元1602,用于获取该第五关联设备的第四定位参考信息,根据该第四定位参考信息,确定该待定位设备的位置。
在一种可能的设计中,该待定位设备还基于通信协议连接关系而与一个或多个连接设备关联,确定单元1601,用于确定该一个或多个连接设备的位置信息。确定单元1601,还用于根据该一个或多个连接设备的位置信息,和该一个或多个该关联设备的定位参考信息,确定该待定位设备的位置信息。
在一种可能的设计中,该定位装置1600设置于服务器,或者待定位设备。
在一种可能的设计中,该关联设备包括以下中的至少一种:智能终端设备,蓝牙信标Beacon,二维码,近场通信NFC标签,POS机,打印机,闸机设备。
在一种可能的设计中,该待定位设备所处的应用场景包括以下中的至少一种:刷卡,NFC标签读取,支付,扫码,搜索服务,共享服务。
在一种可能的设计中,该定位装置1600还包括:发送单元1605,用于向待定位设备发送该待定位设备的该位置信息。
需要说明的是,上述方法实施例涉及的各步骤的所有相关内容均可以援引到对应功能模块的功能描述,在此不再赘述。
请参考图17,为本申请实施例提供的又一种定位装置1700的组成示意图。在一些实施例中,该待定位装置1700可以应用于如图3-图7中所示的待定位设备中。
该定位装置1700包括:发送单元1701,用于该待定位设备在需要进行定位时,发送定位请求,该定位请求用于请求根据该待定位设备的关联设备对该待定位设备进行定位。其中,在该待定位设备执行应用时,该关联设备与该待定位设备发生应用关联关系。该应用关联关系包括:该关联设备在该待定位设备执行应用时,因直接或间接地配合该待定位设备实现该应用的功能,而与该待定位设备发生的关联关系。接收单元1702,用于接收该待定位设备的位置信息。
在一种可能的设计中,该定位请求包括该待定位设备的设备标识,该设备标识用于确定该待定位设备的关联设备。或者,该定位请求中包括该待定位设备的一个或多个关联设备标识,该关联设备标识用于指示该关联设备。
在一种可能的设计中,该定位请求包括该待定位设备的移动属性。该定位装置1700,还包括获取单元1703,用于获取待定位设备的移动属性。
需要说明的是,上述方法实施例涉及的各步骤的所有相关内容均可以援引到对应功能模块的功能描述,在此不再赘述。
请参考图18,为本申请实施例提供的又一种电子设备1800的组成示意图。该电子设备1800可以作为本申请实施例中的待定位设备。在一些实现中,该电子设备1800也可以按照本申请实施例中的定位方法,对自身进行定位。需要说明的是,结合图2所示的电子设备200,该图18所示的电子设备1800可以是另一种可能的组成划分,具有上述两种组成的电子设备1800,都能够实现本申请实施例提供的定位方法。
示例性的,该电子设备1800可以包括:处理器1801和存储器1802。该存储器1802用于存储计算机执行指令。示例性的,在一些实施例中,当该处理器1801执行该存储器1802存储的指令时,可以使得该电子设备1800执行上述实施例中任一种所示的定位方法。
需要说明的是,上述方法实施例涉及的各步骤的所有相关内容均可以援引到对应功能模块的功能描述,在此不再赘述。
请参考图19,为本申请实施例提供的一种服务器1900的组成示意图。该服务器1900可以用于对待定位设备进行定位。作为一种可能的实现,该服务器1900可以是云端服务器1900,比如设备云。
示例性的,该服务器1900可以包括:处理器1901和存储器1902。该存储器1902用于存储计算机执行指令。示例性的,在一些实施例中,当该处理器1901执行该存储器1902存储的指令时,可以使得该服务器1900执行上述实施例中任一种所示的定位方法。
需要说明的是,上述方法实施例涉及的各步骤的所有相关内容均可以援引到对应功能模块的功能描述,在此不再赘述。
图20为本申请实施例提供的一种芯片系统2000的组成示意图。该芯片系统2000可以包括:处理器2001和通信接口2002,用于支持待定位设备实现上述实施例中所涉及的功能。在一种可能的设计中,芯片系统2000还包括存储器,用于保存待定位设备必要的程序指令和数据。该芯片系统2000,可以由芯片构成,也可以包含芯片和其他分立器件。需要说明的是,在本申请的一些实现方式中,该通信接口2002也可称为接口电路。
需要说明的是,上述方法实施例涉及的各步骤的所有相关内容均可以援引到对应功能模块的功能描述,在此不再赘述。
图21为本申请实施例提供的一种芯片系统2100的组成示意图。该芯片系统2100可以包括:处理器2101和通信接口2102,用于支持服务器(比如设备云)实现上述实施例中所涉及的功能。在一种可能的设计中,芯片系统2100还包括存储器,用于保存服务器必要的程序指令和数据。该芯片系统2100,可以由芯片构成,也可以包含芯片和其他分立器件。需要说明的是,在本申请的一些实现方式中,该通信接口2102也可称为接口电路。
需要说明的是,上述方法实施例涉及的各步骤的所有相关内容均可以援引到对应功能模块的功能描述,在此不再赘述。
在上述实施例中的功能或动作或操作或步骤等,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件程序实现时,可以全部或部分地以计算机程序产品的形式来实现。该计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行计算机程序指令时,全部或部分地产生按照本申请实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或者数据中心通过有线(例如同轴电缆、光纤、数字用户线(digital subscriber line,DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包括一个或多个可以用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质(例如,软盘、硬盘、磁带),光介质(例如,DVD)、或者半导体介质(例如固态硬盘(solid state disk,SSD))等。
尽管结合具体特征及其实施例对本申请进行了描述,显而易见的,在不脱离本申 请的精神和范围的情况下,可对其进行各种修改和组合。相应地,本说明书和附图仅仅是所附权利要求所界定的本申请的示例性说明,且视为已覆盖本申请范围内的任意和所有修改、变化、组合或等同物。显然,本领域的技术人员可以对本申请进行各种改动和变型而不脱离本申请的精神和范围。这样,倘若本申请的这些修改和变型属于本申请权利要求及其等同技术的范围之内,则本申请也意图包括这些改动和变型在内。

Claims (30)

  1. 一种定位方法,其特征在于,所述方法用于对待定位设备进行定位;所述方法包括:
    在对所述待定位设备进行定位时,确定待定位设备的一个或多个关联设备;其中,在所述待定位设备执行应用时,所述关联设备与所述待定位设备发生应用关联关系;所述应用关联关系包括:所述关联设备在所述待定位设备执行应用时,因直接或间接地配合所述待定位设备实现所述应用的功能,而与所述待定位设备发生的关联关系;
    获取一个或多个所述关联设备的定位参考信息;
    根据所述一个或多个所述关联设备的定位参考信息,确定所述待定位设备的位置信息。
  2. 根据权利要求1所述的方法,其特征在于,与所述待定位设备具有应用关联关系的关联设备包括第一关联设备;
    所述获取一个或多个所述关联设备的定位参考信息,包括:
    获取所述第一关联设备的第一定位参考信息;
    所述根据所述一个或多个所述关联设备的定位参考信息,确定所述待定位设备的位置信息,包括:
    确定所述待定位设备的位置在所述第一定位参考信息所指示的位置的一定范围内。
  3. 根据权利要求2所述的方法,其特征在于,所述第一定位参考信息包括第一位置信息;
    确定所述待定位设备的位置在所述第一定位参考信息所指示的位置的一定范围内,包括:确定所述待定位设备的位置为所述第一位置信息指示的位置。
  4. 根据权利要求2所述的方法,其特征在于,所述第一定位参考信息包括:第一位置信息和第一定位精度;
    确定所述待定位设备的位置在所述第一定位参考信息所指示的位置的一定范围内,包括:确定所述待定位设备的位置在所述第一位置信息指示的位置的第一精度范围内,其中,所述第一精度范围由所述第一定位精度指示。
  5. 根据权利要求2-4中任一项所述的方法,其特征在于,在所述获取所述第一关联设备的第一定位参考信息之前,所述方法还包括:
    确定所述第一关联设备是否具有定位能力;
    所述获取所述第一关联设备的第一定位参考信息,包括:
    在所述第一关联设备具有定位能力的情况下,获取所述第一定位参考信息。
  6. 根据权利要求1所述的方法,其特征在于,与所述待定位设备具有应用关联关系的关联设备包括第二关联设备,所述第二关联设备为直接配合所述待定位设备实现所述应用的功能的设备,在所述第二关联设备不具有定位能力的情况下,所述方法还包括:
    获取第三关联设备的第二定位参考信息,所述第三关联设备是所述第二关联设备的关联设备;
    所述根据所述一个或多个所述关联设备的定位参考信息,确定所述待定位设备的位置信息,包括:
    根据所述第二定位参考信息确定所述待定位设备的位置。
  7. 根据权利要求6所述的方法,其特征在于,
    所述获取一个或多个所述关联设备的定位参考信息,包括:获取所述第二关联设备的第二定位精度;
    根据所述定位参考信息,确定所述待定位设备的位置信息,包括:
    根据所述第二定位参考信息,和所述第二定位精度,确定所述待定位设备的位置。
  8. 根据权利要求7所述的方法,其特征在于,所述第二定位参考信息包括:第二位置信息和第三定位精度;
    所述待定位设备的位置包括:在所述第二位置信息指示的位置的第二精度范围内,其中,所述第二精度范围由所述第二定位精度和所述第三定位精度共同指示。
  9. 根据权利要求2-7中任一项所述的方法,其特征在于,所述待定位设备在当前场景下的关联设备还包括第四关联设备;所述第四关联设备具有定位能力;
    所述方法还包括:
    获取所述第四关联设备的第三定位参考信息;
    所述根据所述一个或多个所述关联设备的定位参考信息,确定所述待定位设备的位置信息,包括:
    根据所述第一定位参考信息和所述第三定位参考信息,确定所述待定位设备的位置信息。
  10. 根据权利要求9所述的方法,其特征在于,所述第一定位参考信息包括第一位置信息和第一定位精度,所述第三定位参考信息包括第三位置信息和第四定位精度;
    所述待定位设备的位置信息包括:所述待定位设备位于定位区域内,所述定位区域包括第一区域和第二区域的重叠部分,所述第一区域为所述第一位置信息指示的位置的第一精度范围内的区域,所述第一精度范围由所述第一定位精度指示;所述第二区域为所述第三位置信息指示的位置的第三精度范围内的区域,所述第三精度范围由所述第四定位精度指示。
  11. 根据权利要求1-10中任一项所述的方法,其特征在于,所述确定待定位设备的一个或多个关联设备,包括:
    接收定位请求,所述定位请求包括所述待定位设备的设备标识;
    根据所述设备标识,确定一个或多个所述关联设备;或者,
    接收定位请求,所述定位请求中包括所述待定位设备的一个或多个所述关联设备标识;
    根据关联设备标识,确定所述关联设备。
  12. 根据权利要求11所述的方法,其特征在于,在根据接收的所述定位请求无法确定所述待定位设备的关联设备的情况下,所述方法还包括:
    确定所述待定位设备的一个或多个历史关联设备,所述历史关联设备是根据历史已发生的所述待定位设备和关联设备之间的应用关联关系确定的关联设备;
    获取所述一个或多个历史关联设备的历史定位参考信息,
    根据所述历史定位参考信息,确定所述待定位设备的位置信息。
  13. 根据权利要求12所述的方法,其特征在于,所述历史定位参考信息包括所述 一个或多个历史关联设备的位置信息,以及以下中的至少一个:所述一个或多个历史关联设备的定位精度或者所述待定位设备与所述一个或多个历史关联设备保持关联关系的时间信息。
  14. 根据权利要求13所述的方法,其特征在于,在所述历史定位参考信息至少包括所述一个或多个历史关联设备的位置信息以及所述时间信息的情况下,
    所述根据所述历史定位参考信息,确定所述待定位设备的位置信息,包括:
    从所述一个或多个历史关联设备中,选取时间信息与所述定位请求指示的定位时间接近的一个或多个设备作为有效关联设备,
    根据所述一个或多个有效关联设备的位置信息,确定所述待定位设备的位置信息。
  15. 根据权利要求12-14中任一项所述的方法,其特征在于,所述方法还包括:
    获取所述待定位设备的移动属性,所述移动属性用于指示所述待定位设备的移动状态;
    所述根据所述历史定位参考信息,确定所述待定位设备的位置信息,包括:
    根据所述历史定位参考信息以及所述移动属性,确定所述待定位设备的位置信息。
  16. 根据权利要求11所述的方法,其特征在于,在接收所述定位请求时,不存在所述待定位设备的关联设备的情况下,所述方法还包括:
    检测所述待定位设备的应用关联关系的变化情况,
    在所述待定位设备的应用关联关系出现变化时,确定与所述待定位设备发生应用关联关系的第五关联设备;
    获取所述第五关联设备的第四定位参考信息,
    根据所述第四定位参考信息,确定所述待定位设备的位置。
  17. 根据权利要求1-16中任一项所述的方法,其特征在于,所述待定位设备还基于通信协议连接关系而与一个或多个连接设备关联,所述根据所述一个或多个所述关联设备的定位参考信息,确定所述待定位设备的位置信息,包括:
    确定所述一个或多个连接设备的位置信息,
    所述确定所述待定位设备的位置信息,包括:
    根据所述一个或多个连接设备的位置信息,和所述一个或多个所述关联设备的定位参考信息,确定所述待定位设备的位置信息。
  18. 根据权利要求1-17中任一项所述的方法,其特征在于,所述方法的执行设备包括:服务器,或者所述待定位设备。
  19. 根据权利要求1-18中任一项所述的方法,其特征在于,所述关联设备包括以下中的至少一种:智能终端设备,蓝牙信标Beacon,二维码,近场通信NFC标签,POS机,打印机,闸机设备。
  20. 根据权利要求1-19中任一项所述的方法,其特征在于,所述待定位设备所处的应用场景包括以下中的至少一种:刷卡,NFC标签读取,支付,扫码,搜索服务,共享服务。
  21. 根据权利要求1-20中任一项所述的方法,其特征在于,所述方法还包括:
    向所述待定位设备发送所述待定位设备的所述位置信息。
  22. 一种定位方法,其特征在于,应用于待定位设备,所述方法包括:
    所述待定位设备在需要进行定位时,发送定位请求,所述定位请求用于请求根据所述待定位设备的关联设备对所述待定位设备进行定位;其中,在所述待定位设备执行应用时,所述关联设备与所述待定位设备发生应用关联关系;所述应用关联关系包括:所述关联设备在所述待定位设备执行应用时,因直接或间接地配合所述待定位设备实现所述应用的功能,而与所述待定位设备发生的关联关系;
    接收所述待定位设备的位置信息。
  23. 根据权利要求22所述的方法,其特征在于,
    所述定位请求包括所述待定位设备的设备标识,所述设备标识用于确定所述待定位设备的关联设备;或者,
    所述定位请求中包括所述待定位设备的一个或多个关联设备标识,所述关联设备标识用于指示所述关联设备。
  24. 一种定位系统,其特征在于,所述定位系统包括待定位设备,以及服务器,所述服务器用于所述待定位设备进行定位;
    所述服务器用于,确定所述待定位设备的一个或多个关联设备;其中,在所述待定位设备执行应用时,所述关联设备与所述待定位设备发生应用关联关系;所述应用关联关系包括:所述关联设备在所述待定位设备执行应用时,因直接或间接地配合所述待定位设备实现所述应用的功能,而与所述待定位设备发生的关联关系;
    获取一个或多个所述关联设备的定位参考信息。
  25. 根据权利要求24所述的定位系统,其特征在于,
    所述待定位设备,用于向所述服务器发送定位请求,所述定位请求用于请求所述服务器根据所述待定位设备的关联设备对所述待定位设备进行定位;
    所述服务器,还用于接收所述定位请求,确定所述待定位设备的一个或多个关联设备。
  26. 根据权利要求25所述的定位系统,其特征在于,
    所述定位请求包括所述待定位设备的设备标识;
    所述服务器,用于根据所述设备标识,确定一个或多个所述关联设备;或者,
    所述定位请求中包括所述待定位设备的一个或多个所述关联设备标识;
    根据所述待定位设备的一个或多个所述关联设备标识,确定所述待定位设备的一个或多个所述关联设备。
  27. 根据权利要求24-26中任一项所述的定位系统,其特征在于,
    与所述待定位设备具有应用关联关系的关联设备包括第一关联设备;
    所述获取一个或多个所述关联设备的定位参考信息,包括:
    获取所述第一关联设备的第一定位参考信息;
    所述根据所述一个或多个所述关联设备的定位参考信息,确定所述待定位设备的位置信息,包括:
    确定所述待定位设备的位置在所述第一定位参考信息所指示的位置的一定范围内。
  28. 根据权利要求27所述的定位系统,其特征在于,所述第一定位参考信息包括第一位置信息,以及第一定位精度;
    确定所述待定位设备的位置在所述第一定位参考信息所指示的位置的一定范围内, 包括:确定所述待定位设备的位置在所述第一位置信息指示的位置的第一精度范围内,其中,所述第一精度范围由所述第一定位精度指示。
  29. 一种服务器,其特征在于,所述服务器包括一个或多个处理器和一个或多个存储器;所述一个或多个存储器与所述一个或多个处理器耦合,所述一个或多个存储器存储有计算机指令;
    当所述一个或多个处理器执行所述计算机指令时,使得所述服务器执行如权利要求1-21中任一项所述的定位方法。
  30. 一种待定位设备,其特征在于,所述待定位设备包括一个或多个处理器和一个或多个存储器;所述一个或多个存储器与所述一个或多个处理器耦合,所述一个或多个存储器存储有计算机指令;
    当所述一个或多个处理器执行所述计算机指令时,使得所述待定位设备执行如权利要求22或23所述的定位方法。
PCT/CN2022/085352 2021-04-28 2022-04-06 一种定位方法和装置 WO2022228059A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110466932.5 2021-04-28
CN202110466932.5A CN115250428A (zh) 2021-04-28 2021-04-28 一种定位方法和装置

Publications (1)

Publication Number Publication Date
WO2022228059A1 true WO2022228059A1 (zh) 2022-11-03

Family

ID=83697069

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/085352 WO2022228059A1 (zh) 2021-04-28 2022-04-06 一种定位方法和装置

Country Status (2)

Country Link
CN (1) CN115250428A (zh)
WO (1) WO2022228059A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117057384A (zh) * 2023-08-15 2023-11-14 厦门中盾安信科技有限公司 支持多类型业务办理的用户码串生成方法、介质及设备

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103220623A (zh) * 2013-04-03 2013-07-24 腾讯科技(深圳)有限公司 一种终端定位方法和装置
CN107872784A (zh) * 2017-10-27 2018-04-03 上海京颐科技股份有限公司 定位系统及方法
CN111787075A (zh) * 2020-06-18 2020-10-16 支付宝(杭州)信息技术有限公司 一种设备定位方法及装置
WO2021019205A1 (en) * 2019-07-31 2021-02-04 Biz2Mobile Ltd Locating devices
CN114157983A (zh) * 2021-12-03 2022-03-08 上海万位科技有限公司 一种通信设备定位方法及其系统

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2237527A1 (en) * 2009-03-31 2010-10-06 Thomson Licensing Method and apparatus for determining location information
WO2016061736A1 (zh) * 2014-10-20 2016-04-28 华为技术有限公司 协作定位方法及无线终端
CN105740297B (zh) * 2014-12-12 2018-12-14 华为技术有限公司 一种销售终端定位方法及装置
CN109408741B (zh) * 2018-10-09 2020-11-27 拉卡拉支付股份有限公司 定位方法、装置、电子设备及计算机可读存储介质

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103220623A (zh) * 2013-04-03 2013-07-24 腾讯科技(深圳)有限公司 一种终端定位方法和装置
CN107872784A (zh) * 2017-10-27 2018-04-03 上海京颐科技股份有限公司 定位系统及方法
WO2021019205A1 (en) * 2019-07-31 2021-02-04 Biz2Mobile Ltd Locating devices
CN111787075A (zh) * 2020-06-18 2020-10-16 支付宝(杭州)信息技术有限公司 一种设备定位方法及装置
CN114157983A (zh) * 2021-12-03 2022-03-08 上海万位科技有限公司 一种通信设备定位方法及其系统

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117057384A (zh) * 2023-08-15 2023-11-14 厦门中盾安信科技有限公司 支持多类型业务办理的用户码串生成方法、介质及设备
CN117057384B (zh) * 2023-08-15 2024-05-17 厦门中盾安信科技有限公司 支持多类型业务办理的用户码串生成方法、介质及设备

Also Published As

Publication number Publication date
CN115250428A (zh) 2022-10-28

Similar Documents

Publication Publication Date Title
US20220405733A1 (en) Payment Method and Electronic Device
CN113794801B (zh) 地理围栏的处理方法及装置
WO2021000807A1 (zh) 一种应用程序中等待场景的处理方法和装置
WO2020238890A1 (zh) 信息处理方法和设备
WO2021036776A1 (zh) 一种无线充电方法及电子设备
CN107148783A (zh) 用于扫描相邻设备的方法及其电子设备
KR20160046340A (ko) 장치 검색 방법 및 이를 지원하는 전자 장치
WO2021017909A1 (zh) 一种通过nfc标签实现功能的方法、电子设备及系统
WO2021000923A1 (zh) 一种路由器配置方法、终端及路由器
CN112637758B (zh) 一种设备定位方法及其相关设备
CN110557740A (zh) 一种电子设备控制方法及一种电子设备
WO2021043250A1 (zh) 一种蓝牙通信方法及相关装置
CN112134995A (zh) 一种查找应用对象的方法、终端及计算机可读存储介质
WO2021197354A1 (zh) 一种设备的定位方法及相关装置
CN111835907A (zh) 一种跨电子设备转接服务的方法、设备以及系统
WO2022068670A1 (zh) 设备间触碰建立无线连接的方法、电子设备及芯片
CN113472861B (zh) 一种文件传输方法及电子设备
WO2022143310A1 (zh) 一种双路投屏的方法及电子设备
WO2022228059A1 (zh) 一种定位方法和装置
WO2022048453A1 (zh) 解锁方法及电子设备
CN116055988B (zh) 一种双卡通信的方法和终端设备
WO2020124447A1 (zh) 面向多卡的网络管理
US11977946B2 (en) Method for automatically activating NFC application and terminal
CN116806013A (zh) 一种消息传输的方法及相应终端
WO2020077738A1 (zh) 一种定位方法和装置

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22794530

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 22794530

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205 DATED 22/04/2024)