Positioning method, readable storage medium, electronic equipment and program product

By obtaining the positioning ability of the building and determining the appropriate floor positioning method, the problem of inaccurate floor positioning in multiple entrance buildings is solved, and more accurate and reliable floor positioning is achieved.

CN119729749AActive Publication Date: 2025-03-28HUAWEI DEVICE CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202311253521.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-09-26
Publication Date
2025-03-28
Estimated Expiration
2043-09-26

AI Technical Summary

Technical Problem

Existing floor positioning methods are difficult to provide accurate floor positioning results in multi-entrance buildings, especially in the absence of a pre-built Wifi fingerprint library.

Method used

By obtaining the positioning capabilities of the building where the electronic device is located, including the building structure, supported positioning methods and floor information manually input by the user, the positioning methods of the first floor are determined, and the floor positioning results are calculated and the results and accuracy are sent.

Benefits of technology

Improve the accuracy and reliability of floor positioning, and avoid user misleading by providing floor positioning results and their accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119729749A_ABST
    Figure CN119729749A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of computers, in particular to a positioning method, a readable storage medium, electronic equipment and a program product. According to the positioning method, when the electronic equipment performs positioning, the current positioning capability of a to-be-positioned building where the electronic equipment is located is obtained, and the first positioning capability relates to the building structure of the to-be-positioned building, whether a fingerprint positioning mode is supported or not, whether floor information manually input by a user exists or not and the like. After the positioning capability of the to-be-positioned building is obtained, a first floor positioning mode is determined, a floor positioning result is obtained, and at the moment, the floor positioning result and the precision of the floor positioning result are sent to the electronic equipment which needs to display the floor positioning result. It can be understood that due to the fact that not only is the floor positioning result sent, but also the precision of the floor positioning result is sent, the floor positioning result and the positioning precision can be displayed, misleading to a user is avoided, the positioning precision is related to the positioning capacity, and the positioning precision is more reliable.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a positioning method, a readable storage medium, an electronic device and a program product. Background Art

[0002] Some electronic devices can locate the floor where the user is when the user is in the building.

[0003] For example, when children are indoors, Figure 1A The watch 100 shown in the figure can be used to locate the floor where the child is currently located. The watch 100 can communicate with the mobile phone 200 through the cloud 300, and the parent can view the floor information where the child is located through the mobile phone 200. For example, by clicking on Figure 1A The "positioning" control in the "Smart Care" APP that supports the display positioning function as shown in the figure, at this time, the cloud 300 will send the floor positioning result received from the watch 100 to the mobile phone 200 according to the request of the mobile phone 200, and the mobile phone interface of the mobile phone 200 can display the following information: Figure 1B The positioning results shown are Figure 1B The display box k1 in the figure displays "5th floor", indicating that the child is currently on the 5th floor of the building.

[0004] Currently, there are many methods for achieving indoor floor positioning, such as an air pressure positioning method, a fingerprint positioning method involving wireless fidelity (Wifi) / Bluetooth, and the like.

[0005] However, the accuracy of some floor positioning results is related to the building structure and the positioning method used. For example, the air pressure positioning method can output relatively accurate floor positioning results when the building has only one entrance, but it cannot provide accurate floor positioning results when there are multiple entrances on different floors. If other floor positioning methods cannot be used in this building, for example, the current building does not have a pre-built Wifi fingerprint library and Wifi fingerprint positioning cannot be used, the floor positioning result output by the electronic device will be wrong. For example, for a building with multiple entrances on different floors, only barometer positioning can be performed. If Figure 1B As shown, although the display box k1 shows "5th floor", the child is actually on the "7th floor", which will provide the user with an erroneous floor positioning result and mislead the user. Summary of the invention

[0006] In order to solve the above problems, the present application proposes a positioning method, a readable storage medium, an electronic device and a program product. In the positioning method, when the electronic device is positioning, the current positioning capability of the building to be positioned where the electronic device is located can be obtained. The positioning capability may involve the building structure of the building to be positioned, whether the fingerprint positioning method is supported, whether the floor information manually input by the user is available, etc. After the positioning capability of the building to be positioned is obtained, the first floor positioning method can be determined; according to the obtained first floor positioning method, the positioning result of the floor where the electronic device is located can be obtained. At this time, the floor positioning result and the accuracy of the floor positioning result are sent to the electronic device that is to display the obtained floor positioning result. Then, when the second electronic device is displayed, it can be displayed in a manner corresponding to the positioning accuracy. It can be understood that, since the floor positioning result is sent to the electronic device of the floor positioning result to be displayed, the accuracy of the floor positioning result is also sent, so the electronic device to be displayed will not only display the floor positioning result, but also display the positioning accuracy when displaying, so as to avoid misleading the user. In addition, the positioning accuracy is related to the current positioning capability of the building to be positioned and the floor positioning method adopted, so the positioning accuracy is more reliable.

[0007] In a first aspect, an embodiment of the present application provides a positioning method, which is applied to a first electronic device, including: obtaining a current first positioning capability of a building to be positioned where the first electronic device is located; determining a first floor positioning method based on the first positioning capability; using the first floor positioning method to obtain a first floor positioning result of the floor where the first electronic device is located; and sending the first floor positioning result and the accuracy of the first floor positioning result to a second electronic device.

[0008] It is understandable that the accuracy of the floor positioning result is related to the positioning capability of the building to be positioned (i.e., building). Moreover, the accuracy of the positioning results that can be obtained by different positioning methods is also different. Therefore, when the first electronic device detects the floor positioning demand, it can obtain the positioning capability and obtain the positioning method according to the positioning capability. Then, the positioning result is calculated using the positioning method, and the positioning result and positioning accuracy are output. It is understandable that since the positioning accuracy is sent to the second electronic device at the same time as the positioning result, misleading the user is avoided. In addition, the positioning method used is related to the positioning capability. Since the positioning accuracy is related to the positioning result, the current positioning capability of the building to be positioned and the floor positioning method used are related, the output positioning accuracy is more reliable, avoiding misleading the user.

[0009] For example, the first electronic device is a watch described below, and the second electronic device is a mobile phone described below.

[0010] In a possible implementation of the first aspect above, it also includes: determining a first positioning accuracy for current positioning using the first floor positioning method; and selecting the one with lower positioning accuracy as the accuracy of the first floor positioning result from the first positioning accuracy and the positioning accuracy corresponding to the pre-stored first floor positioning method.

[0011] It can be understood that the first floor positioning method is determined according to the first positioning capability, and the first floor positioning method will have a corresponding positioning accuracy. After the positioning method is screened out, the screened positioning method is used for the current positioning, and an actual calculation is performed to obtain a positioning result, and the positioning result will also have a positioning accuracy. At this time, the positioning accuracy with a lower positioning accuracy is used as the output positioning accuracy, and the output positioning accuracy will be more reliable.

[0012] In a possible implementation of the first aspect, the method further includes: using the positioning accuracy corresponding to the pre-stored first floor positioning method as the accuracy of the first floor positioning result.

[0013] It is understandable that the first floor positioning method is determined according to the first positioning capability, and the first floor positioning method will have a corresponding positioning accuracy. The positioning accuracy corresponding to the pre-stored first floor positioning method is used as the accuracy of the first floor positioning result, so that the positioning accuracy can be obtained conveniently and quickly.

[0014] In a possible implementation of the first aspect above, the first positioning capability includes at least one of a building structure, a positioning mode type supported by the first electronic device, and whether there is floor information manually input by a user.

[0015] It can be understood that the first positioning capability includes at least one of the building structure, the type of positioning method supported by the first electronic device, and whether the first electronic device has floor information manually input by the user, which fully considers the factors that affect the accuracy of the floor positioning results and is comprehensive.

[0016] In a possible implementation of the first aspect above, the building structure includes at least one of equal floor spacing, unequal floor spacing, a single entrance and exit, multiple entrances and exits on the same floor, and multiple entrances and exits on different floors, and the type of positioning method includes whether a fingerprint positioning method is supported, wherein the fingerprint positioning method includes a Bluetooth-based fingerprint positioning method or a wireless fidelity-based fingerprint positioning method.

[0017] It is understandable that the accuracy of the floor positioning result is related to the positioning capability of the building, for example, the structure of the building (such as whether the exit and entrance of the building are consistent, whether the entrance and exit of the building cross floors, the number of entrances and exits of the building, the distance between floors, etc.), the type of supported floor positioning methods (for example, whether it includes fingerprint positioning methods, etc.) and other capability items. In addition, the accuracy of the positioning results obtained by different positioning methods is also different. The first positioning capability includes at least one of the building structure, the type of positioning method supported by the first electronic device, and whether it has the floor information manually entered by the user, which fully considers the factors that affect the accuracy of the floor positioning results and is comprehensive.

[0018] In a possible implementation of the first aspect above, a first floor positioning method is determined based on the first positioning capability, including: when the first positioning capability includes: having floor information manually input by a user, determining that the first floor positioning method is to use the floor information manually input by the user as the first floor positioning result; when the first positioning capability includes: not having the floor information manually input by the user, and the building to be positioned supports the fingerprint positioning method, then determining that the first floor positioning method is the fingerprint positioning method; when the first positioning capability includes: not having the floor information manually input by the user, and the building to be positioned does not support the fingerprint positioning method, then determining that the first floor positioning method is the air pressure positioning method.

[0019] It is understandable that when the first positioning capability includes floor information manually input by the user, the floor information manually input by the user can be directly used as the positioning result, and the positioning result is relatively accurate. When the first positioning capability includes: the floor information not manually input by the user, that is, the user has not manually input the floor information, and the building to be located supports the fingerprint positioning method, that is, there is fingerprint library data corresponding to the building, the fingerprint positioning method can be used, and generally speaking, the fingerprint positioning method is more accurate than the air pressure positioning method, so the first floor positioning method is determined to be the fingerprint positioning method. When the first positioning capability includes: the floor information not manually input by the user, that is, the user has not manually input the floor information, and the building to be located does not support the fingerprint positioning method, the air pressure positioning method is used at this time. It is understandable that different positioning methods are used for different positioning capabilities, so as to obtain more accurate positioning results as much as possible.

[0020] In a possible implementation of the first aspect above, a first floor positioning method is determined based on the first positioning capability, including: determining multiple floor positioning methods supported by the building to be positioned according to the first positioning capability; and selecting a first floor positioning method that meets the first priority condition from the multiple floor positioning methods according to the positioning accuracies corresponding to the multiple floor positioning methods.

[0021] It is understandable that in some cases, the positioning capability may have multiple capability items. When setting, one capability item may have a corresponding positioning method, and multiple capability items may correspond to the same positioning method, so multiple floor positioning methods may be determined according to the first positioning capability. At this time, the floor positioning method to be used is selected from the multiple floor positioning methods according to the accuracy corresponding to each floor positioning method related to the positioning capability, so that when the floor positioning method is used for positioning results later, the positioning result is more accurate.

[0022] In a possible implementation of the first aspect above, multiple floor positioning methods supported by the building to be positioned are determined according to the first positioning capability, including: when the first positioning capability includes: floor information manually input by the user, and the building to be positioned supports the fingerprint positioning method, it is determined that the building to be positioned supports the user correction positioning method and the fingerprint positioning method, wherein the user correction positioning method is to use the floor information manually input by the user as the first floor positioning result; when the first positioning capability includes: no floor information manually input by the user, the building to be positioned supports the fingerprint positioning method, the building structure includes one or more of equal floor spacing, unequal floor spacing, a single entrance and exit, multiple entrances and exits on the same floor, and multiple entrances and exits on different floors, it is determined that the building to be positioned supports the fingerprint positioning method. and air pressure positioning method; when the first positioning capability includes: floor information manually input by the user, the building to be positioned does not support the fingerprint positioning method, the building structure includes equal floor spacing, unequal floor spacing, a single entrance, multiple entrances and exits are located on the same floor, and multiple entrances and exits are located on different floors, then it is determined that the building to be positioned supports the user correction positioning method and the air pressure positioning method; when the first positioning capability includes: floor information manually input by the user, the building to be positioned supports the fingerprint positioning method, the building structure includes equal floor spacing, unequal floor spacing, a single entrance, multiple entrances and exits are located on the same floor, and multiple entrances and exits are located on different floors, then it is determined that the building to be positioned supports the user correction positioning method, the fingerprint positioning method, and the air pressure positioning method.

[0023] It is understandable that the current building to be located can use a variety of floor positioning methods, such as the commonly used user correction positioning method, fingerprint positioning method, and air pressure positioning method. When the positioning capability includes the ability item with the floor information manually input by the user, it corresponds to the user correction positioning method. When the positioning capability includes the ability item that the building to be located supports the fingerprint positioning method, it corresponds to the fingerprint positioning method; when the positioning capability includes one or more of the ability items of equal floor spacing, unequal floor spacing, a single entrance and exit, multiple entrances and exits on the same floor, and multiple entrances and exits on different floors included in the building structure, it is determined that the building to be located supports the air pressure positioning method. Therefore, when the first positioning capability includes a variety of ability items that meet various positioning methods, the multiple floor positioning methods supported by the building to be located can be reasonably and scientifically determined based on the first positioning capability.

[0024] In a possible implementation of the first aspect above, the method further includes determining a positioning accuracy corresponding to each floor positioning method.

[0025] It can be understood that when determining the positioning method for each floor, the positioning accuracy corresponding to the positioning method for each floor is also determined to facilitate subsequent use.

[0026] In a possible implementation of the first aspect above, the positioning accuracy corresponding to each floor positioning method is determined, including: when the floor positioning method is the user correction positioning method and the floor information manually input by the user is detected, the positioning accuracy corresponding to the user correction positioning method is determined to be the first accuracy; when the floor positioning method is the fingerprint positioning method and the building to be positioned is detected to support the fingerprint positioning method, the positioning accuracy corresponding to the fingerprint positioning method is determined to be the first accuracy; when the floor positioning method is the air pressure positioning method and the building structure is detected to have a single entrance and exit, the positioning accuracy corresponding to the air pressure positioning method is determined to be the first accuracy or the second accuracy; when the floor positioning method is the air pressure positioning method and the floor spacing is equal, or multiple entrances and exits are located on the same floor, the positioning accuracy corresponding to the air pressure positioning method is determined to be the second accuracy; when the floor positioning method is the air pressure positioning method and the building structure is detected to have multiple entrances and exits located on different floors, or the floor spacing is detected to be unequal, the positioning accuracy corresponding to the air pressure positioning method is determined to be the third accuracy, wherein the first accuracy is greater than the second accuracy, and the second accuracy is greater than the third accuracy.

[0027] For example, the first accuracy is high accuracy, the second accuracy is general accuracy, and the third accuracy is low accuracy. It can be understood that when determining the positioning accuracy corresponding to each floor positioning method, the positioning capability of the current building to be positioned is fully considered, so that the positioning accuracy corresponding to each floor positioning method can be reasonably and scientifically determined.

[0028] In a possible implementation of the first aspect above, when the floor positioning method is the air pressure positioning method, and it is detected that the building structure has a single entrance and exit, the positioning accuracy corresponding to the air pressure positioning method is determined to be the first accuracy or the second accuracy, including: when the floor positioning method is the air pressure positioning method, and it is detected that the building structure obtained by the first method is a single entrance and exit, the positioning accuracy corresponding to the air pressure positioning method is determined to be the first accuracy; when the floor positioning method is the air pressure positioning method, and it is detected that the building structure obtained by the second method is a single entrance and exit, the positioning accuracy corresponding to the air pressure positioning method is determined to be the second accuracy.

[0029] It is understandable that when different methods are used to determine capability items, although the same capability items can be obtained, the reliability of the obtained capability item results is different. Therefore, under the capability items obtained in different methods, when corresponding to the same positioning method, the accuracy of the positioning method is different. Therefore, when supporting multiple positioning methods, the positioning method is selected according to the accuracy of the positioning method, and the positioning method obtained is scientific and reliable.

[0030] In a possible implementation of the first aspect above, the building structure is determined to be a single entrance and exit in a first manner, including: when a first electronic device enters and exits the building to be located, first data is obtained, wherein the first data includes a fingerprint corresponding to wireless fidelity data or Bluetooth data collected by the first electronic device, or a pre-stored fingerprint corresponding to wireless fidelity data or Bluetooth data obtained by electronic devices used by other users when entering and exiting the building to be located; when the first data obtained when the first electronic device enters the building to be located is the same as the first data obtained when exiting the building to be located, it is determined that the building structure is a single entrance and exit.

[0031] It can be understood that the first data includes the fingerprint corresponding to the wireless fidelity data or Bluetooth data collected by the current electronic device to be located, as well as the pre-stored fingerprint data obtained by electronic devices used by other users. The data volume is sufficient to effectively determine the entrance and exit of the building.

[0032] In a possible implementation of the first aspect above, the building structure is determined to be a single entrance and exit in a second manner, including: obtaining map data of the building to be located; determining that there is only one entrance and exit in a first spatial area based on the map data of the building to be located, and then determining that the building structure is a single entrance and exit, wherein the first spatial area is a spherical spatial area with the entrance and exit of the building to be located by the first electronic device as the center and the distance from the center to the first distance threshold.

[0033] It is understandable that the entrance and exit conditions can be determined scientifically and effectively through map data.

[0034] In a possible implementation of the first aspect above, a first floor positioning method that meets a first priority condition is selected from multiple floor positioning methods according to the positioning accuracies corresponding to the multiple floor positioning methods, including: obtaining weight coefficients of the positioning accuracies corresponding to the multiple floor positioning methods; and selecting a positioning method corresponding to the positioning accuracy with the largest weight coefficient from the multiple floor positioning methods as the first floor positioning method.

[0035] It can be understood that setting the weight coefficient can facilitate operation.

[0036] In a possible implementation of the first aspect above, a method for determining that a building structure has multiple entrances and exits located on different floors includes: obtaining map data of the building to be located, and determining based on the map data that there are multiple entrances and exits located on different floors in a first spatial area, then determining that the building structure has multiple entrances and exits located on different floors, wherein the first spatial area is a spherical spatial area with the entrance and exit through which the first electronic device enters and exits the building to be located as the center of the sphere and within a first distance threshold from the center of the sphere; or, obtaining first air pressure data collected by the first electronic device, and determining based on the first air pressure data that a height deviation value of the first electronic device entering and exiting the building to be located along the building height direction is greater than a first height change threshold, then determining that the building structure has multiple entrances and exits located on different floors, wherein the first air pressure data is used to characterize multiple air pressure-related parameters generated when the first electronic device moves multiple times in the building to be located.

[0037] It is understandable that it is more scientific to use map data to determine that multiple entrances and exits are located on different floors, and it is easier to operate to use air pressure data to determine that multiple entrances and exits are located on different floors.

[0038] In a possible implementation of the first aspect above, a method for determining whether the building structure has unequal or equal floor spacing includes: obtaining first air pressure data collected by a first electronic device, and calculating a first height difference generated each time the first electronic device moves in the building to be located based on the first air pressure data, wherein the first air pressure data is used to characterize multiple air pressure-related parameters generated when the first electronic device moves multiple times in the building to be located; calculating a first difference between the first height difference and a second preset height difference, wherein the second preset height difference is a predicted height difference generated each time the first electronic device moves in the building to be located assuming that the floor spacing is equal; when the sum of multiple first differences obtained when the first electronic device moves multiple times in the building to be located is greater than the second deviation threshold, it is determined that the floor spacing is unequal; when the sum of multiple first errors obtained when the first electronic device moves multiple times in the building to be located is less than or equal to the second deviation threshold, it is determined that the floor spacing is equal.

[0039] It can be understood that the method of determining the distance between floors by using the height corresponding to the movement of the first electronic device in the building to be located is scientific and reasonable.

[0040] In a possible implementation of the first aspect above, a method for determining that a building structure has multiple entrances and exits located on the same floor includes: obtaining map data of the building to be located, and determining based on the map data that there are multiple entrances and exits located on the same floor in a first spatial area, then determining that the building structure has multiple entrances and exits located on the same floor, wherein the first spatial area is a spherical spatial area with the entrance and exit through which the first electronic device enters and exits the building to be located as the center of the sphere and within a first distance threshold from the center of the sphere; or, obtaining first air pressure data collected by the first electronic device, and determining based on the first air pressure data that a height deviation value of the first electronic device entering and exiting the building to be located along the building height direction is less than or equal to a first height change threshold, then determining that the building structure to be located has multiple entrances and exits located on the same floor, wherein the first air pressure data is used to characterize multiple air pressure-related parameters generated when the first electronic device moves multiple times in the building to be located.

[0041] It is understandable that it is more scientific to use map data to determine that multiple entrances and exits are located on the same floor, and it is easier to operate to use air pressure data to determine that multiple entrances and exits are located on the same floor.

[0042] In the second aspect, an embodiment of the present application proposes a positioning method, which is applied to a second electronic device, including: receiving the first floor positioning result of the building to be positioned where the first electronic device is located and the accuracy of the first floor positioning result; displaying the first floor positioning result according to the display method corresponding to the accuracy of the first floor positioning result.

[0043] It can be understood that displaying the floor positioning results in a display method corresponding to the accuracy of the floor positioning results can provide users with an intuitive accuracy experience.

[0044] In a possible implementation of the second aspect above, the first floor positioning result is displayed according to the display method corresponding to the accuracy of the first floor positioning result, including: when the accuracy of the first floor positioning result is the first accuracy, the floor number where the located first electronic device is located and the accuracy of the first floor positioning result are displayed; when the accuracy of the first floor positioning result is the second accuracy, the located number of floors or the located floor range are displayed; when the accuracy of the first floor positioning result is the third accuracy, the number of floors passed by the first electronic device is displayed; wherein the first accuracy is greater than the second accuracy, and the second accuracy is greater than the third accuracy.

[0045] It can be understood that when the accuracy of the floor positioning result is the first accuracy, the number of floors where the electronic device is located and the accuracy of the first floor positioning result are displayed, when the accuracy of the first floor positioning result is the second accuracy, the number of floors located or the range of floors located are displayed, and when the accuracy of the first floor positioning result is the third accuracy, the number of floors passed by the electronic device is displayed. At this time, different accuracies can be distinguished, and when the accuracy of the first floor positioning result is the third accuracy, the number of floors passed by the electronic device is displayed, which can provide users with more effective reference opinions.

[0046] In a third aspect, an embodiment of the present application provides an electronic device, comprising: one or more processors; one or more memories; one or more memories storing one or more programs, wherein when one or more programs are executed by one or more processors, the electronic device executes any positioning method of the first aspect and its various implementations, and any positioning method of the second aspect and its various implementations.

[0047] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, on which instructions are stored. When the instructions are executed on a computer, the computer executes any positioning method such as the first aspect and any one of the various implementations of the first aspect, as well as the second aspect and any one of the various implementations of the second aspect.

[0048] In a fifth aspect, a computer program product is provided, comprising a computer-readable code, or a non-volatile computer-readable storage medium carrying the computer-readable code. When the computer-readable code runs in an electronic device, a processor in the electronic device executes the positioning method according to the first aspect and any one of the various implementations of the first aspect, and the second aspect and any one of the various implementations of the second aspect.

[0049] Among them, the beneficial effects of the third to fifth aspects can refer to the beneficial effects related to the first and second aspects, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0050] Figure 1A According to some embodiments of the present application, a schematic diagram of a positioning scenario is shown;

[0051] Figure 1B According to some embodiments of the present application, a schematic diagram of a display method is shown;

[0052] Figure 2 According to some embodiments of the present application, a schematic diagram of positioning accuracy and a corresponding display method is shown;

[0053] Figure 3AAccording to some embodiments of the present application, a schematic diagram of a high-precision display method is shown;

[0054] Figure 3B According to some embodiments of the present application, a schematic diagram of a floating display mode is shown;

[0055] Figure 3C According to some embodiments of the present application, a schematic diagram of a floating display mode is shown;

[0056] Figure 3D According to some embodiments of the present application, a schematic diagram of a cross-layer display method is shown;

[0057] Figure 3E According to some embodiments of the present application, a schematic diagram of a user correction method is shown;

[0058] Figure 4 According to some embodiments of the present application, a process schematic diagram of a floor positioning method is shown;

[0059] Figure 5 According to some embodiments of the present application, a schematic diagram of a positioning method is shown;

[0060] Figure 6 According to some embodiments of the present application, a schematic diagram of a system architecture 600 corresponding to a positioning method is shown;

[0061] Figure 7 According to an embodiment of the present application, a schematic diagram of the hardware structure of a watch 100 is shown. DETAILED DESCRIPTION

[0062] The illustrative embodiments of the present application include but are not limited to a positioning method, a readable storage medium, an electronic device, a program product, and the like.

[0063] It can be understood that the positioning method provided by the present application, in addition to the above-mentioned scenarios where parents need the location of their children, can also be used for other scenarios such as guardianship of special groups, clocking in at work, locating floors when navigating in a shopping mall, locating floors during construction in a building, etc. The examples of the aforementioned application scenarios are only illustrative and the present application does not limit them.

[0064] It can be understood that the electronic device for performing positioning and the electronic device for displaying the positioning result can be the same electronic device or different electronic devices.

[0065] It can be understood that the watch capable of positioning mentioned in this application can be any electronic device with a positioning function, or it can be the mobile phone mentioned above, and also includes but is not limited to tablet computers, vehicle-mounted equipment, augmented reality (AR) / virtual reality (VR) equipment, ultra-mobile personal computers (UMPC), netbooks, personal digital assistants (PDA), servers and other electronic devices. This application does not impose any restrictions.

[0066] It can be understood that the mobile phone that can display the positioning results mentioned in this application can also be the above-mentioned watch, as well as any other electronic device with display function, and also includes but is not limited to tablet computers, vehicle-mounted equipment, AR / VR devices, UMPC, netbooks, PDAs, servers, etc. This application does not impose any restrictions.

[0067] It is understandable that the positioning method proposed in the present application can be applied to any type of building, for example, the building can be a building, specifically a shopping mall, a railway station, an airport, a bus station, etc., where location data can be obtained manually, or a residential building, an office building, etc., where location data cannot be obtained manually for the time being. Moreover, there is no restriction on the structure of the building, and it is applicable to buildings with multiple entrances or buildings with a single entrance.

[0068] The following is a detailed explanation of this plan using a building as an example.

[0069] The following is a brief introduction to the air pressure positioning method and the fingerprint positioning method.

[0070] Barometric positioning method: The barometric positioning method mainly detects changes in air pressure through a barometer, and calculates changes in height based on changes in air pressure. At this time, the number of floors can be calculated based on the floor spacing. When the user enters the room from outdoors, the floor where the user enters the room is located is regarded as the first floor. At this time, the current specific floor is obtained. It can be understood that the aforementioned positioning method based on barometer data is only a simple introduction to the principle. When the barometer data positioning method is specifically implemented, there can be a variety of adaptive adjustments. For example, the value of the floor spacing will be updated as the user enters the same building multiple times, and a more accurate result will be obtained. The specific content will not be repeated here.

[0071] It is understandable that due to the differences in building structures with multiple entrances or unequal floor spacing, the barometer may miscalculate the floor of the user's entrance into the building, for example, calculating the second-floor entrance as the first-floor, resulting in inaccurate results and poor precision.

[0072] Fingerprint positioning method: The fingerprint positioning method involves two stages: offline and online. Offline means that it is necessary to manually collect the signal characteristic values ​​of the wireless access point (Access Point, AP) at each location point in the building in advance, such as the signal strength (Received Signal Strength, RSS), so as to obtain a fingerprint library. It can be understood that the fingerprint library can include the AP name, number and signal strength, as well as the location parameters corresponding to each AP, for example, the location parameters can be longitude and latitude, building height, specific floor, etc. Then, when in the online stage, that is, the fingerprint positioning stage, the user measures the signal characteristic value currently received through the electronic device, matches the measured signal characteristic value with the signal characteristic value pre-stored in the fingerprint library (for example, matching through a similarity matching algorithm), and obtains the location parameter of the current electronic device (for example, a specific floor) according to the matching algorithm. Among them, when it comes to fingerprint positioning of Wifi, the wireless access point AP can be a router or other equipment at this time. When it comes to fingerprint positioning of Bluetooth, the wireless access point AP can be a Bluetooth base station or other equipment at this time. It can be understood that the above-mentioned positioning method based on the fingerprint library is only a brief introduction to the principle. When the fingerprint library positioning method is specifically implemented, there can be a variety of adaptive adjustments, which are not required.

[0073] It is understandable that although the fingerprint positioning method has a higher accuracy (i.e. higher precision) in positioning results, it requires manual data collection in advance. Currently, only a few buildings such as shopping malls, railway stations and airports support this positioning method, which has great limitations.

[0074] Therefore, as mentioned above, the current floor positioning method will provide positioning results with different levels of accuracy due to the limitations of the building structure (i.e., building structure) or the floor positioning method supported by the building (such as the floor does not support the fingerprint positioning method), resulting in users being unable to know the accuracy of the provided floor positioning results, i.e., the precision, resulting in a poor user experience.

[0075] For example, if the positioning result obtained by the user is "5th floor", and there are multiple entrances in the building structure that are not on the same floor, the accuracy of the "5th floor" obtained by the air pressure positioning method is different from that of the "5th floor" obtained by the fingerprint positioning method, and the "5th floor" obtained by the air pressure positioning method is likely to be wrong, while the positioning method obtained by the fingerprint library is likely to be correct. However, the user cannot perceive the accuracy of the positioning result of "5th floor", and the user experience is poor.

[0076] It is understandable that the accuracy of the floor positioning result is related to the positioning capability of the building, for example, the structure of the building (such as whether the exit and entrance of the building are consistent, whether the entrance and exit of the building cross floors, the number of entrances and exits of the building, the distance between floors, etc.), and the type of floor positioning method supported (for example, whether it includes fingerprint positioning method, etc.). In addition, the accuracy (i.e., precision) of the positioning results obtained by different positioning methods is also different.

[0077] Therefore, the present application discloses a floor positioning method, in which positioning capabilities are pre-set (for example, including equal / unequal floor spacing, high-precision single entrance and exit / general precision single entrance and exit, multiple entrances and exits located on the same floor / multiple entrances and exits located on different floors, whether there is floor data actively input by the user, whether fingerprint positioning method is supported, etc.), the relationship between positioning method and accuracy, and the electronic device can judge the positioning capability when detecting the floor positioning demand, determine the positioning method according to the positioning capability, calculate the positioning result according to the positioning method, and output the positioning result and positioning accuracy.

[0078] For example, the positioning result can be the exact floor (i.e., the floor number where the electronic device to be positioned is located), the floor range, or the number of floors passed by the user (i.e., the number of floors passed by the electronic device to be positioned). Positioning accuracy can include three types of accuracy: high accuracy, general accuracy, and low accuracy. That is, high accuracy means that the exact floor obtained by the current positioning method is likely to be consistent with the actual floor, general accuracy means that the exact floor or floor range currently obtained is likely to be consistent with the actual floor, and low accuracy means that the exact floor currently obtained is likely to be inconsistent with the actual floor. At this time, the number of floors passed by the user can be calculated as the positioning result, thereby providing the user with more useful advice.

[0079] In some embodiments, when the positioning method is not determined according to the positioning capability, the current default positioning method is used for calculation, for example, the air pressure positioning method is used. If the corresponding positioning method can be determined according to the positioning capability after the positioning capability is obtained, for example, it is determined that the positioning method corresponding to the positioning capability is the fingerprint positioning method, then the fingerprint positioning method is used to obtain the corresponding positioning result.

[0080] In other embodiments, after the positioning capability is obtained, the positioning capability may only support the same positioning method, or may support multiple positioning methods. If only one positioning method is currently obtained, that positioning method is used; if multiple positioning methods are supported under the current positioning capability, and under different positioning capabilities, the multiple positioning methods will correspond to their own accuracy, then the corresponding positioning methods can be screened out according to the accuracy of the multiple positioning methods. It can be understood that in some implementations, the positioning accuracy L1 corresponding to the screened positioning method can be used as the output positioning accuracy. In other implementations, after the positioning method is screened out, a positioning result will be obtained when the current positioning is actually calculated using the screened positioning method, and the positioning result will correspond to a positioning accuracy L2 (that is, the first positioning accuracy). The lower positioning accuracy L1 corresponding to the positioning method under the positioning capability and the positioning accuracy L2 obtained when the positioning result is calculated using the positioning method for the current positioning is used as the positioning accuracy of the output floor positioning result. For example, if the positioning accuracy L1 is high precision and the positioning accuracy L2 is low precision, the output positioning accuracy is low precision; if the positioning accuracy L1 is low precision and the positioning accuracy L2 is high precision, the output positioning accuracy is low precision; if the positioning accuracy L1 is high precision and the positioning accuracy L2 is high precision, the output positioning accuracy is high precision. It can be understood that the lower positioning accuracy is used as the output positioning accuracy, and the output positioning accuracy will be more accurate at this time.

[0081] The following introduces the positioning methods under different positioning capabilities and the positioning accuracy corresponding to the positioning methods.

[0082] For example, determine whether the capability item of having accurate floor results manually input by the user (hereinafter referred to as "user correction" for the sake of convenience) is met. When the user correction capability item is met, it is determined that the positioning capability includes the user correction capability item, that is, there is an accurate floor result manually input by the user. Since the floor information manually input by the user must be accurate, the positioning accuracy is the highest. At this time, the floor result accurately input by the user is preferentially selected as the positioning result (referred to as "user correction positioning method"), and the positioning accuracy corresponding to the user correction positioning method is higher.

[0083] For example: determine whether the fingerprint positioning method is supported, the positioning capabilities include not having user correction, and supporting the fingerprint positioning method. Since the fingerprint positioning method has a higher accuracy, the fingerprint positioning method is preferred at this time, and it is determined that the positioning accuracy corresponding to the fingerprint positioning method is higher.

[0084] It is understandable that for the judgment of other capability items, when the positioning capability includes the current non-support of fingerprint positioning, the lack of user correction, and the support of any other capability items related to the building structure, the default positioning method can be used, for example, the use of air pressure positioning for floor positioning. However, when the positioning capability includes specific different capability items related to the building structure, the positioning accuracy corresponding to the positioning method used is different.

[0085] For example, it is determined that the positioning capability includes the entrance and exit of the building structure as a high-precision single entrance and exit capability item. At this time, since the building has only one entrance and exit, the air pressure positioning method is used to use the position data of the single entrance and exit as the first floor for floor calculation to obtain the positioning result. At this time, it is considered that the accuracy of the positioning result is relatively high.

[0086] The positioning capability includes the ability items of multiple entrances and exits located on different floors. At this time, when using the air pressure positioning method, the user's entrance position is used as the first floor for floor calculation, and since the entrances and exits of the current building are not on the same floor, it can be obtained that the current entrance position is very likely not on the first floor. Therefore, the positioning result calculated using the air pressure positioning method is most likely wrong, and the corresponding positioning accuracy is poor.

[0087] The positioning capability is determined to include unequal floor spacing. At this time, for the current building that meets the situation of unequal floor spacing, since a floor spacing is used to roughly estimate the floor when using a barometer for positioning, it can be determined that the positioning result calculated using the barometric positioning method is also likely to be wrong, and the corresponding positioning accuracy is poor.

[0088] In addition, when the positioning capability is determined to include any one of the following: a single entrance and exit with general accuracy, multiple entrances and exits located on the same floor, and equal floor spacing, the default positioning method, that is, the air pressure positioning method, is used. The location data of the current entrance is used as the first floor for floor calculation to obtain the positioning result, and the current positioning accuracy determined is considered to be the default accuracy, that is, general accuracy.

[0089] It can be understood that when the positioning method is the air pressure positioning method, it can correspond to different positioning accuracies, including high accuracy, general accuracy or low accuracy.

[0090] It is understandable that, since the capability items in the positioning capability can be obtained through different capability identification methods, the positioning capability can include multiple capability items at the same time, so there will be support for multiple positioning methods.

[0091] For example, the positioning capability includes: floor information manually entered by the user, support for fingerprint positioning method, and determination of support for user correction positioning method and fingerprint positioning method.

[0092] For example, when the positioning capability includes: no floor information manually entered by the user, support for fingerprint positioning, equal floor spacing, unequal floor spacing, a single entrance and exit, multiple entrances and exits on the same floor, and multiple entrances and exits on different floors, it is determined that the fingerprint positioning method and the air pressure positioning method are supported.

[0093] For example, when the positioning capability includes: floor information manually entered by the user, fingerprint positioning method is not supported, the building structure includes equal floor spacing, unequal floor spacing, a single entrance and exit, multiple entrances and exits on the same floor, and multiple entrances and exits on different floors, it is determined that the user correction positioning method and the air pressure positioning method are supported.

[0094] For example, when the positioning capability includes: floor information manually entered by the user, support for fingerprint positioning method, equal floor spacing, unequal floor spacing included in the building structure, a single entrance and exit, multiple entrances and exits on the same floor, and multiple entrances and exits on different floors, it is determined to support one or more of the user correction positioning method, fingerprint positioning method, and air pressure positioning method.

[0095] It is understandable that when multiple positioning methods are supported, each positioning method also has a corresponding positioning accuracy.

[0096] At this time, the positioning accuracy that meets the requirements can be selected from a variety of accuracy conditions as the required positioning accuracy (i.e., positioning accuracy L1), so that the positioning method corresponding to the required positioning accuracy is used as the final positioning method. In some embodiments, when the multiple positioning accuracies obtained according to the capability items included in the positioning capability include high accuracy, low accuracy, and general accuracy, since the general accuracy is used as the default accuracy by default, it is preferred to filter from the obtained high accuracy and low accuracy to obtain the corresponding positioning method. If the accuracy level does not include high accuracy or low accuracy, the default accuracy is used, that is, the general accuracy is used as the required positioning accuracy. It can be understood that in some implementations, when high accuracy or low accuracy exists at the same time, high accuracy can be used as the required positioning accuracy; low accuracy can also be used as the required positioning accuracy; in addition, the required positioning accuracy can also be determined according to the reliability of the identification method for obtaining the capability items corresponding to each positioning accuracy, that is, the positioning accuracy corresponding to the capability item obtained according to the identification method with the highest reliability is used as the required positioning accuracy.

[0097] For example, the current positioning capabilities include a high-precision single entrance and exit and unequal floor spacing. Among them, the accuracy level corresponding to the high-precision single entrance and exit is high precision, and the accuracy level corresponding to the unequal floor spacing is low precision. Therefore, the reliability of the ability identification method for obtaining a high-precision single entrance and exit and the ability identification method for obtaining unequal floor spacing (that is, the accuracy of the corresponding ability items obtained by the ability identification method) can be compared. Assuming that the ability identification method for a high-precision single entrance and exit is more reliable than the ability identification method for obtaining unequal floor spacing, the accuracy level corresponding to the high-precision single entrance and exit is used as the required positioning accuracy.

[0098] It can be seen that different positioning capabilities correspond to different positioning methods and different positioning accuracy. After determining the positioning capability of the building where the electronic device to be located is located, the corresponding positioning method can be determined based on the positioning capability to calculate and output the accuracy of the positioning result, so that the user can perceive the accuracy of the current result and avoid user misjudgment. Moreover, even if it is believed that the accuracy of the currently calculated positioning result is low, that is, the positioning accuracy is low, since the user can understand the accuracy of the current positioning result based on the positioning accuracy, it can avoid misleading the user.

[0099] In some embodiments, positioning related parameters can be obtained, for example, positioning related parameters include building type (such as community, shopping mall, or station, etc.), map data, Wifi data, Bluetooth data, Global Navigation Satellite System (GNSS) data, fingerprint library data, data manually input by the user, etc. Positioning related parameters are data used to obtain supported positioning capabilities, that is, to obtain supported positioning capabilities according to specific positioning related parameters. Therefore, when the user is positioning, the electronic device needs to collect all the positioning related parameters that can be obtained, and determine the corresponding positioning capabilities according to the positioning related parameters.

[0100] In some embodiments, after determining the floor positioning result and positioning accuracy to be output, the output positioning accuracy can be displayed in a display mode corresponding to the output positioning accuracy to show the positioning accuracy. Figure 2 The positioning accuracy and corresponding display mode shown. High-precision positioning accuracy corresponds to "high-precision display mode", general-precision positioning accuracy corresponds to "floating display mode", and low-precision positioning accuracy corresponds to "cross-layer display mode". Figures 3A-3D As shown, Figure 3A It shows a high-precision display mode, where the floor display box k2 is "high-precision 5th floor"; Figure 3B as well as Figure 3C shows a floating display mode, where Figure 3B Middle floor display frame k3 "5th floor", Figure 3C The floor display box k3' in the figure is "3rd to 5th floor"; Figure 3D The cross-floor display mode is shown, in which the floor display box k4 is "cross-floor 5" and there is a cross-starting point (i.e., the entry point) on the display interface.

[0101] It is understandable that in some embodiments, for the above-mentioned user actively and manually inputting floor information (i.e., user correction), specifically, after the positioning result is displayed on the electronic device, the user can perform a correction operation according to the correction control on the display interface, input the real floor result, and after the real floor result is entered in the electronic device, perform user correction. It is understandable that as long as the current user inputs positioning information, the positioning mode selection is not judged at this time, and the correction result input by the user is directly used as the positioning result, and the electronic device display interface is displayed in a high-precision display mode.

[0102] For example, Figure 3E It shows a process in which the user finds that the floor result is wrong when the mobile phone 200 is displayed in a high-precision display mode, the user actively corrects the floor information, and the mobile phone 200 displays it in a high-precision display mode again, wherein the floor display box is used as a correction control as an example. Figure 3E The floor display box B11 on the display interface W11 of the mobile phone 200 shows "High Precision 5th Floor", and then the user clicks on the floor display box B11 "High Precision 5th Floor", and the mobile phone 200 enters the display interface W12. The user enters the real floor information in the modification entry box B1, "Building xx 4th Floor", and then clicks the confirmation control B12. At this time, the mobile phone 200 will complete the modification and enter the display interface W13. At this time, the display result is the floor display box B13 "High Precision 4th Floor". It can be understood that the correction control can be any possible control, which is custom designed by the developer. For example, it can be a floor display box, or a cartoon character control, etc., and no specific control is required. It can be understood that at this time, the positioning result or positioning accuracy will also be updated on the watch 100, and the specific positioning information entered by the user will be used as the specific positioning result, and high precision will be used as the output positioning accuracy.

[0103] It can be understood that when the mobile phone 200 is displayed in a floating display mode or a cross-layer display mode, after the user manually enters the correction information, the floor result entered by the user will be used as the positioning result, and the mobile phone 200 will be displayed in a high-precision display mode.

[0104] It can be understood that when the user actively corrects the floor information, the electronic device displays it in a high-precision manner. At this time, the reliability of the display results seen by the user can be guaranteed.

[0105] Figure 4According to some embodiments of the present application, a process diagram of a floor positioning method is shown. The process diagram can be executed by one electronic device alone or by multiple electronic devices in cooperation. The specific steps are as follows:

[0106] S401, detecting a floor positioning requirement.

[0107] It is understandable that the electronic device can monitor whether the user goes from indoors to outdoors, or from outdoors to indoors, by the difference in GNSS signal strength and the number of satellites between indoors and outdoors; it can also monitor whether the temperature of the user's environment changes through a temperature sensor, for example, the temperature changes when the user goes outdoors, or from outdoors to indoors, thereby determining whether the user goes from indoors to outdoors, or from outdoors to indoors. It is understandable that the number of satellites and temperature sensors are only two ways to monitor whether the user goes from indoors to outdoors, or from outdoors to indoors. There are other monitoring methods, which are not limited here.

[0108] In some embodiments, when the electronic device detects changes in GNSS signal strength and the number of satellites, or detects changes in ambient temperature, that is, when the user enters the room, it determines that a floor positioning requirement has been generated.

[0109] S402: Acquire available positioning related parameters.

[0110] In some embodiments, after detecting the need for floor positioning, if the barometer, Wifi, Bluetooth and other sensors are not turned on, the barometer, Wifi, Bluetooth and other sensors can be automatically turned on to collect signals, or a prompt box will pop up to prompt the user to turn on wireless methods such as Wifi / Bluetooth to collect wireless signals. In addition, it is also checked whether the fingerprint library data can be obtained, and whether the correction data that the user has entered can be obtained.

[0111] S403: Determine the satisfied capability items according to the positioning related parameters, so as to obtain the corresponding positioning capability.

[0112] In some embodiments, the satisfied capability items can be determined based on positioning-related parameters. It is understandable that the satisfaction of each capability item is related to the accuracy of the positioning result. Among them, the capability items include the type of positioning method supported (for example, whether the fingerprint positioning method is supported, the fingerprint positioning method includes a fingerprint positioning method based on Bluetooth or a fingerprint positioning method based on wireless fidelity), whether there is user correction, a single entrance and exit with high precision, a single entrance and exit with general precision, multiple entrances and exits on the same floor, multiple entrances and exits on different floors, equal floor spacing, and unequal floor spacing.

[0113] Specifically, the following five capability identification methods can be combined to obtain the satisfaction of the capability items. In the specific implementation process, any one of the following or multiple capability identification methods can be used simultaneously for judgment.

[0114] (1) Fingerprint library capability identification method: Determine whether the fingerprint positioning method is supported by searching the fingerprint database for fingerprint data corresponding to the current building to be located. If the fingerprint database contains fingerprint data of the current building to be located, the capability item supporting the fingerprint positioning method can be determined, thereby determining that the positioning capability includes supporting the fingerprint positioning method. It can be understood that if the fingerprint positioning method is used, the corresponding positioning accuracy can be determined to be high accuracy.

[0115] It can be understood that the data in the fingerprint library can be collected manually before positioning, or it can be fingerprint data collected through crowdsourcing, where the fingerprint data collected through crowdsourcing is fingerprint data automatically collected by the electronic device when each user uses the electronic device for positioning. For example, when the electronic device can obtain relatively accurate location parameters, it will automatically store the corresponding fingerprint and the corresponding location parameters.

[0116] (2) Identification method of air pressure cross-layer capability: The capability item of whether the entrance and exit are on the same floor or not, and the capability item of whether the floor spacing is equal or not, are determined based on the floor change calculated by the barometer data and the building height deviation value assuming that the floor spacing is equal. Specifically, if it is determined that the entrance and exit are not on the same floor or the current floor spacing is unequal, it can be determined that the positioning capability includes that the entrance and exit are not on the same floor or the current floor spacing is unequal. It can be understood that when the positioning capability includes that the entrance and exit are not on the same floor or the current floor spacing is unequal, it can be determined that the air pressure positioning method is used, and the positioning accuracy corresponding to the air pressure positioning method is low accuracy. If it is determined that the capability item of the entrance and exit are on the same floor or the current floor spacing is equal, it can be determined that the positioning capability includes that the entrance and exit are on the same floor or the current floor spacing is equal. It can be understood that when the positioning capability includes that the entrance and exit are on the same floor or the current floor spacing is equal, the positioning accuracy corresponding to the air pressure positioning method is general accuracy. Among them, in some implementations, when it is determined that the capability items of the entrances and exits being on the same floor and the current floor spacing being equal are met, the calculated building height and the fingerprint information corresponding to the currently collected Wifi / Bluetooth and other wireless signals (for example, the wireless access point name, the number of wireless access points, and the corresponding signal strength) and the location parameters corresponding to the fingerprint information (the location parameters correspond to the location of the entrance and exit of the current building) can be recorded for subsequent use.

[0117] Specifically, when the user (i.e., the electronic device to be located) walks indoors, a barometer is used to measure the elevation change, and the elevation change rate is used to determine whether the user crosses floors (i.e., crosses layers); each time the user crosses floors, the air pressure altitude values ​​at the start and end of the cross-layer crossing are recorded to obtain the height change (i.e., height displacement change) generated when the user crosses floors multiple times. Based on the height change generated by the user's multiple cross-layer crossings, the characteristics of the change are clustered and analyzed to determine whether the entrances and exits are on the same floor, as well as the distance between floors. It is understandable that the user can enter the building multiple times, so that a more accurate entrance and exit and floor distance can be determined based on the height change.

[0118] Furthermore, cluster analysis of height changes: Assuming that the user crosses floors n times indoors, the corresponding height changes across floors are generated, that is, the height changes measured by the barometer after each continuous movement of the user indoors: ΔH1, ΔH2, …, ΔH n Among them, the height change is a vector and has a direction. The height change corresponding to the user's moving trajectory of going upstairs is recorded as "positive", and the height change corresponding to the user's moving trajectory of going downstairs is recorded as "negative".

[0119] The following formula (1) and formula (2) show a judgment formula for determining whether the entrance and exit are on the same floor based on the height change corresponding to the process of the user entering the room, moving up and down the stairs, and finally leaving the room:

[0120] sumΔH= abs(ΔH1+ ΔH2+…+ ΔH n ) Formula (1)

[0121]

[0122] Where abs() is the absolute value function, and sumΔH represents the height deviation after the user enters from the entrance and exits from the exit. Since the barometer data may have errors, an error threshold Threshold1 is set (as the first height change threshold). When the height deviation value is less than Threshold1, that is, close to 0, it is considered that the entrance and exit are on the same floor, otherwise, they are not on the same floor.

[0123] The following formulas (3) to (5) show the judgment formulas for whether the floor spacing is equal (i.e., equal height or different height) according to the height change corresponding to the user entering the room, moving up and down the stairs, and finally leaving the room:

[0124]

[0125] L i =2.0+i*0.1 (i is an integer ranging from 1 to 40) Formula (4)

[0126]

[0127] Where ΔH i is the height change during each indoor movement (i.e., the cross-floor height), Li is the floor spacing, and sumD i It is the total deviation between the height of the cross-layer and the actual height of the movement when the height is assumed to be equal. Threshold2 is the deviation threshold corresponding to the set total deviation.

[0128] When the value of i is fixed, the floor spacing is fixed, that is, assuming that the current floor spacing is equal, the corresponding cross-floor height is calculated inversely when the floor spacing is equal. Calculate the deviation between the cross-layer height collected by air pressure and the cross-layer height calculated by inverse calculation Then calculate the deviation across multiple layers to get the total deviation sumD i . Calculate the corresponding sumD under various possible i i . Select the smallest min(sumD i ), at this time sumD i It should be relatively small, and it is determined whether it is less than a threshold. If it is less than, it is determined that the current building has equal floor spacing, that is, the floors of the building are of the same height, otherwise they are of different heights.

[0129] It can be understood that the floor spacing and whether the entrances and exits are on the same floor obtained by the capability identification method can be stored and used as useful information for determining the positioning capability when the user enters the building again or other users enter the building.

[0130] (3) User correction capability identification method: Determine the capability items related to user correction based on the data manually input by the user. Specifically, detect in real time whether the floor information at the current location has been actively corrected by the user. If it is detected that the user has actively corrected the floor information, determine the capability items that meet the user correction requirement. At this time, the positioning capability includes user correction. It can be understood that when the positioning capability includes user correction, the user correction positioning method can be used, and the positioning accuracy corresponding to the user correction positioning method is high accuracy. Among them, in some implementation methods, the current floor information and the fingerprint information of the corresponding wireless signal such as Wifi / Bluetooth and the corresponding location parameters can be collected and recorded for use when the electronic device is re-positioned or when other electronic devices are positioned.

[0131] (4) Multiple entrance signal difference capability identification method: By obtaining the difference of wireless signals such as Wifi / Bluetooth at different entrances and exits, it is determined whether it is a high-precision single entrance and exit. Specifically, the indoor and outdoor change event results (i.e., from indoor to outdoor / from outdoor to indoor) obtained by combining the GNSS signal are compared with the difference of the parameters related to the wireless signals such as Wifi / Bluetooth at the entrances and exits of the building (for example, the fingerprint corresponding to the wireless signals such as Wifi / Bluetooth). For example, the difference in the AP name, number and signal strength detected by Wifi / Bluetooth at the entrance and exit (for example, the fingerprint data of the corresponding entrance and exit collected through crowdsourcing) can be compared. If there is no obvious difference in the AP name, number and signal strength corresponding to the wireless signals such as Wifi / Bluetooth collected by multiple people at the entrance and exit multiple times, it is determined that the capability item of a single entrance and exit building (i.e., "high-precision single entrance and exit") is met, and the positioning capability can include a high-precision single entrance and exit. It is understandable that if the positioning capability includes a high-precision single entrance and exit, the entrance and exit floor is set to the first floor, and the air pressure positioning method is used, then the positioning accuracy corresponding to the air pressure positioning method is high-precision; otherwise, it is judged that the situation of not being a high-precision single entrance and exit is met. At this time, the positioning capability includes not being a high-precision single entrance and exit. It is understandable that if the positioning capability includes not being a high-precision single entrance and exit, at this time, the positioning accuracy corresponding to the default air pressure positioning method is general accuracy. It is understandable that when detecting entrances and exits through wireless signals such as Wifi / Bluetooth, the fingerprint information corresponding to the wireless signals such as Wifi / Bluetooth and the corresponding location parameters can be recorded for use when the electronic device is re-positioned or when other electronic devices are positioned.

[0132] (5) Map data capability identification method: By combining map data, the capability items of a single entrance and exit with general accuracy, multiple entrances and exits on the same floor, and multiple entrances and exits on different floors are determined. Specifically, the indoor and outdoor change event monitoring results obtained by combining GNSS data are recorded to record the location coordinates of users entering and leaving the building; the recorded entrance and exit location coordinates are compared with the existing building map data. If the building map has only one entrance and exit (i.e., "a single entrance and exit with general accuracy") within a certain range of the location point (for example, a spherical space area with the location point as the center and the distance from the center of the sphere as the first distance threshold) or there are multiple entrances and exits on the same floor, then it is determined that the capability items of a single entrance and exit with general accuracy or multiple entrances and exits on the same floor are met. It can be understood that when the positioning capability only includes a single entrance and exit with general accuracy or multiple entrances and exits on the same floor, it can be determined that the air pressure positioning method is used, and the positioning accuracy corresponding to the air pressure positioning method is general accuracy. If the building map has multiple entrances and exits distributed on different floors within a certain range of the point (for example, a spherical space area with the location point as the center and the distance from the center as the first distance threshold), then the capability item that satisfies the multiple entrances and exits being located on different floors is determined, and the positioning capability includes multiple entrances and exits being located on different floors. It can be understood that when the positioning capability includes multiple entrances and exits being located on different floors, it can be determined that the positioning result obtained by the air pressure positioning method is likely to be wrong, and the positioning accuracy is determined to be low.

[0133] It is understandable that at this time, since the exact entrance and exit floor is known, the fingerprint information of wireless signals such as Wifi / Bluetooth can be recorded to enrich the fingerprint library data. In addition, when it is determined that a single entrance and exit or multiple entrances and exits are located on the same floor to meet the general accuracy, in order to facilitate the subsequent calculation of the positioning result using the air pressure positioning method, or to facilitate the re-positioning of electronic devices and the positioning of other electronic devices. At this time, the floor information of the user's entrance and exit can be recorded, and the fingerprint information corresponding to wireless such as Wifi / Bluetooth can be recorded to enrich the fingerprint library data.

[0134] It can be understood that when the currently satisfied capability items are obtained through the supported capability identification method (at least one of the five capability identification methods can be supported), the corresponding positioning capability can be obtained, that is, the positioning capability includes the capability items determined by the capability identification method.

[0135] It can be understood that when making a judgment, the satisfied capability items determined by each capability identification method, as well as the positioning method and positioning accuracy corresponding to each capability item can be stored as prior data as a basis for judgment during the next floor positioning, and the valid fingerprint information obtained in the capability identification method and the corresponding position parameters can also be stored and recorded to provide the required positioning-related parameters for subsequent floor positioning.

[0136] It can be understood that in some embodiments, during each positioning process, each capability identification method obtains the satisfied capability item, and when the positioning capability only includes this capability item, the corresponding positioning method and positioning accuracy will be changed after recalculation based on the positioning related parameters. For example, the user correction data will be updated only after the user correction data is received next time.

[0137] It can be understood that in some embodiments, since only one capability identification method is supported, only a single capability item result can be obtained at this time; in other embodiments, if multiple capability identification methods in the above steps are currently used, multiple capability items will be obtained, and the specific capability items are determined by the supported capability identification methods and the results obtained by the adopted capability identification methods.

[0138] S404: Determine a positioning method according to the positioning capability.

[0139] It is understandable that since the positioning capability includes multiple capability items, and different capability items support different positioning methods, and each positioning method has different accuracy conditions, further, when the positioning method is determined according to the positioning capability, the positioning accuracy corresponding to the determined positioning method can also be obtained.

[0140] In some embodiments, there is a default positioning method and a default positioning accuracy, for example, the default positioning method is the air pressure positioning method, and the default positioning accuracy is the general accuracy. In other embodiments, when the positioning capability includes multiple capability items, multiple positioning methods are supported. At this time, the positioning method that meets the priority condition can be selected according to the positioning accuracy corresponding to each positioning method, so as to obtain the positioning method used for floor positioning and the positioning accuracy L1 corresponding to the positioning method used.

[0141] Specifically, in some embodiments, different proportional coefficients may be set for the positioning accuracy of the capability items obtained through the above steps and the positioning methods corresponding to the capability items. The proportional coefficient is set by comprehensively considering the accuracy (i.e., reliability) of the capability items obtained by the capability identification method and the accuracy of the positioning methods corresponding to the capability items, and the specific setting requirements are not limited here.

[0142] For example, the proportional coefficient of the capability item corresponding to the detection of user correction (corresponding to high precision) can be set to 100%; the proportional coefficient of the capability item supporting fingerprint positioning (corresponding to high precision) is 90%; the proportional coefficient of the capability item with unequal floor spacing or multiple entrances and exits located on different floors obtained by the air pressure cross-layer capability recognition method (corresponding to low precision) is 70%; the proportional coefficient of the capability item of a single entrance and exit with high precision obtained by the multi-entry signal capability recognition method (corresponding to high precision) is 85%; the proportional coefficient of the capability item of multiple entrances and exits located on different floors obtained by the map data capability recognition method (corresponding to low precision) is 88%, and the proportional coefficient of the capability item corresponding to general precision obtained by the capability recognition method shown above is 0%. Among them, since the positioning method corresponding to the capability item of general precision is the default positioning method, and the general precision is also the default positioning precision, in the case where the non-default positioning method and non-default positioning precision need to be given priority, the proportional coefficient of the capability item corresponding to general precision is set to 0%, so as to avoid interference when selecting the positioning method.

[0143] It is understandable that when the positioning capability includes multiple capability items, the capability item with the largest proportional coefficient is selected according to the configured proportional coefficient. At this time, the positioning method to be used later and the corresponding positioning accuracy L1 (that is, the positioning method and positioning accuracy corresponding to the capability item with the largest proportional coefficient as the priority condition) can be obtained. When the final positioning method and positioning accuracy cannot be obtained by configuring the proportional coefficient, the default positioning method and positioning accuracy are used, that is, the air pressure positioning method is used, and the default is general accuracy.

[0144] Based on the proportional coefficient of the above configuration, the following describes the corresponding positioning methods and positioning accuracy under some possible positioning capabilities.

[0145] For example, when the positioning capability includes user correction and other capability items, since the weight coefficient corresponding to the user correction capability item is the largest, the user correction positioning method corresponding to the user correction is selected, and the positioning accuracy L1 is high accuracy.

[0146] When the positioning capability includes not having user correction and supporting fingerprint positioning, it is determined that the positioning mode is fingerprint positioning and the positioning accuracy L1 is high accuracy.

[0147] When the positioning capabilities include the lack of user correction and the absence of fingerprint positioning methods, and the building structure has multiple entrances that are not on the same floor (the corresponding proportional coefficients of the two capability identification methods are 88% or 70% respectively), and the floor spacing is unequal (the corresponding proportional coefficient is 70%), the positioning method corresponding to the building structure with multiple entrances that are not on the same floor (the corresponding proportional coefficient is 88%) is used as the final positioning method, that is, the positioning method is the air pressure positioning method, and the positioning accuracy L1 is low precision.

[0148] When the positioning capability includes no user correction and no support for fingerprint positioning, and the building structure is a high-precision single entrance and exit (the configured proportional coefficient is 85%) and the floor spacing is unequal (the configured proportional coefficient is 70%), the positioning method corresponding to the high-precision single entrance and exit will be used as the positioning method, that is, the positioning method is the air pressure positioning method, and the positioning accuracy L1 is high precision.

[0149] When the positioning capability includes no user correction, no support for fingerprint positioning, and the building structure is a high-precision single entrance and exit (the configured proportional coefficient is 85%), and the multiple entrances of the building structure are not on the same floor. At this time, if the multiple entrances are not on the same floor, which is obtained by the map data capability identification method, the corresponding proportional coefficient is 88%, then the positioning method corresponding to the multiple entrances not on the same floor is used as the final positioning method, that is, the positioning method is the air pressure positioning method, and the positioning accuracy is low precision (that is, the accuracy level corresponding to the multiple entrances not on the same floor); at this time, if the multiple entrances are not on the same floor, which is obtained by the air pressure cross-layer capability identification method, and the corresponding proportional coefficient is 70%, then the positioning method corresponding to the high-precision single entrance and exit is used as the final positioning method, that is, the positioning method is the air pressure positioning method, and the positioning accuracy L1 is high precision (that is, the accuracy level corresponding to the high-precision single entrance and exit).

[0150] It is understandable that when the positioning capabilities include no user correction, no support for fingerprint positioning, a single entrance and exit with general accuracy, multiple entrances on the same floor, and equal floor spacing, the default air pressure positioning method is used and the positioning accuracy L1 is general accuracy.

[0151] It is understandable that the above only lists some situations, not all situations, and will not be elaborated here.

[0152] S405, output the positioning result and positioning accuracy.

[0153] It is understandable that in some embodiments, after determining the positioning method and the positioning accuracy L1, the current positioning result can be calculated according to the positioning method. It is understandable that when the determined positioning method is used to calculate the current positioning result, a positioning accuracy L2 will also be obtained at this time. For example, if the fingerprint positioning method is used, if the fingerprint positioning method is currently used, it is determined that there are fewer fingerprint data related to the building to be located in the fingerprint library, so the positioning accuracy L2 of the positioning result currently obtained by the fingerprint positioning method is low. At this time, from the obtained positioning accuracy L2 and the pre-stored positioning accuracy L1 corresponding to the adopted positioning method, the one with lower positioning accuracy is selected as the output positioning accuracy.

[0154] It can be understood that in other embodiments, after the positioning method and the positioning accuracy L1 are determined, the current positioning result is calculated according to the positioning method, and the positioning accuracy L1 is directly used as the output positioning accuracy.

[0155] It is understandable that, in order to allow users to experience different levels of accuracy during specific output, so that users can feel the positioning accuracy, a display method corresponding to the output positioning accuracy can be used to avoid misjudgment. For example, the high-precision display method, floating display method, and cross-layer display method mentioned above can be used, or other methods can be used, which will not be described in detail here. It is understandable that when the positioning method and the accuracy of the positioning method cannot be determined, the positioning method can be set by default to a certain positioning method, for example, a pressure positioning method, and the corresponding positioning accuracy is a certain positioning accuracy, for example, a general accuracy. In this case, the positioning result is calculated using the pressure positioning method and displayed according to the general accuracy display method.

[0156] For example, when it is determined that the positioning method is the user correction positioning method, and the positioning result is the result of the user correction, and the positioning accuracy L1 and the positioning accuracy L2 are both high-precision, then the output positioning accuracy is high-precision. At this time, the user correction result and the positioning accuracy can be displayed in a high-precision display mode. For example, referring to the above Figure 3A High-precision display mode shown.

[0157] For example, when it is determined that the positioning method is the fingerprint positioning method, the floor result in the fingerprint library is used as the positioning result, and the positioning accuracy L1 and the positioning accuracy L2 are both high precision, then the output positioning accuracy is high precision. At this time, the result of the fingerprint positioning method and the positioning accuracy can be displayed in a high precision display mode.

[0158] For example, when it is determined that the positioning method is to adopt the air pressure positioning method, and the positioning accuracy supported by the current positioning capability is high precision (for example, the positioning capability includes "high-precision single entrance and exit", and the positioning accuracy L1 is high precision, that is, it is determined by the "high-precision single entrance and exit"), the positioning accuracy L2 is low precision (such as using the floor positioning method for positioning in the basement at this time), the floor result of the air pressure positioning method is used as the positioning result, and the output positioning accuracy is the low precision corresponding to the positioning accuracy L2. In addition, the result of the air pressure positioning method and the positioning accuracy can be displayed in a low-precision display mode. In addition, the number of floors crossed and the positioning accuracy can be displayed in a cross-layer display mode. For example, referring to the above Figure 3D The cross-layer display method shown.

[0159] For example, when it is determined that the positioning method is to use the air pressure positioning method, and the positioning accuracy L1 supported by the current positioning capability is low-precision (for example, the positioning capability includes multiple entrances and exits located on different floors or the floor spacing is unequal, and the positioning accuracy of the positioning capability is determined by "high-precision single entrance and exit"), when the positioning result is calculated using the air pressure positioning method, the current positioning accuracy is L2, and the output positioning accuracy is the low-precision corresponding to the positioning accuracy L1. At this time, the number of floors crossed by the user can be calculated, and the number of floors crossed obtained by the air pressure positioning method is used as the positioning result, and the output positioning accuracy is low-precision.

[0160] For example, when it is determined that the positioning method is to adopt the air pressure positioning method, and the positioning accuracy supported by the current positioning capability is general accuracy (for example, the positioning capability includes "general accuracy single entrance and exit", the floor entrances and exits are on the same floor or the floor spacing is equal, and the positioning capability does not include capability items involving high accuracy and low accuracy), the air pressure positioning method is adopted, and the positioning accuracy L1 is general accuracy. The floor result is obtained according to the air pressure positioning method, and the positioning accuracy L2 is general accuracy. At this time, the output positioning accuracy is general accuracy. In addition, the result of the air pressure positioning method and the positioning accuracy can be displayed in a floating display mode. For example, referring to the above Figure 3B or Figure 3C Floating display mode shown.

[0161] It can be understood that the execution order of the above steps 401 to S405 is only an example. In other embodiments, other execution orders may be adopted, and some steps may be split or combined, which is not limited here.

[0162] Understandably, the above Figure 4 The positioning method process shown can be executed by the watch 100 as the execution subject, or it can be executed by the watch 100 and the cloud 300 in cooperation. The specific execution method is not required here.

[0163] Figure 5 According to some embodiments of the present application, a schematic diagram of a positioning method is shown. Figure 5 The framework diagram shown shows a simple process framework for determining the positioning method and positioning accuracy using positioning related parameters such as barometer, Wifi / Bluetooth and other wireless signals, GNSS, map information, building type data, user correction data, etc. after the user initiates a positioning request. When positioning, the required pre-acquired data (for example, fingerprint library data, map data, and prior data such as capability items obtained by each capability identification method, the positioning method corresponding to each capability item, and the positioning accuracy corresponding to the positioning method) can be stored in the cloud for use.

[0164] Specifically, Figure 5 As shown in box 01 in FIG. 1 , when the electronic device detects a floor positioning request, for example, based on GNSS signal data, it is determined that floor positioning is required, and then box 02 is entered to determine the positioning method, and output the positioning result and positioning accuracy. Figure 5 As shown in box 03, the electronic device can obtain sensor data to collect GNSS, Wifi, Bluetooth and other sensor data. The electronic device can also obtain the floor data input by the user shown in box 04, and obtain the cloud-recorded or stored positioning-related parameters shown in box 05, for example, the above-mentioned fingerprint library data, map data and prior data to obtain positioning capabilities, determine the positioning method and output the positioning result and positioning accuracy. The specific process of determining the positioning method and outputting the positioning result and positioning accuracy is as described in the above steps S404-S405, which will not be repeated here.

[0165] It can be understood that in the current process of determining the positioning method and positioning accuracy, the fingerprint data corresponding to the useful Bluetooth / Wifi and other wireless signals collected in the process, the capability items updated by each current capability identification method, the positioning method, positioning accuracy, and the floor data entered by the user and other useful data can also be uploaded to the cloud and stored for subsequent use.

[0166] It can be understood that when outputting the positioning result and positioning accuracy shown in block 02, three possible positioning accuracy results will be obtained. Specifically, Figure 5 As shown in the boxes 021, 022 and 023 in FIG. 1 , they correspond to "high-precision positioning accuracy", "normal-precision positioning accuracy" and "low-precision positioning accuracy" respectively. It can be understood that in order to improve the user's perception of accuracy and enhance reliability, the display mode corresponding to the positioning accuracy can be set, such as Figure 5 As shown in boxes 051, 052 and 053, the display modes corresponding to the high-precision positioning mode, the general-precision positioning mode and the low-precision positioning mode are respectively the high-precision display mode, the floating display mode and the cross-layer display mode.

[0167] It can be understood that when the positioning accuracy is determined, it is displayed in different ways on the user product interface, and the low-precision positioning results are displayed in a cross-layer display mode to improve the overall floor positioning accuracy and reliability.

[0168] It is understandable that the positioning method mentioned in this application can be performed on one or more electronic devices, and the positioning results and positioning accuracy obtained can be displayed on multiple electronic devices. For example, in the above-mentioned scenario where a parent displays the floor location of a child carrying a watch 100 through a mobile phone 200. The watch 100 can cooperate with the cloud 300 that stores the relevant parameters required for positioning to perform positioning and obtain the positioning result and positioning accuracy. Then when the parent wants to know the floor location of the child, click on Figure 1A The mobile phone 200 will initiate a positioning request to the cloud 300, and the cloud 300 will obtain the positioning result and positioning accuracy from the watch 100 and send it to the mobile phone 200. After the mobile phone 200 receives the positioning result and positioning accuracy, the page of the mobile phone 200 will display the specific floor result in the display mode corresponding to the positioning accuracy, for example Figure 3A-3D The possible positioning conditions of the building where the child is currently located and the floor results reflecting the positioning accuracy.

[0169] For ease of understanding, Figure 6 According to some embodiments of the present application, a schematic diagram of a system architecture 600 corresponding to the positioning method proposed in the present application is shown between a watch 100, a mobile phone 200 and a cloud 300. It can be understood that the system architecture 600 includes a watch processing unit 600, a cloud processing unit 610, and a mobile phone processing unit 620.

[0170] The watch processing unit 600 includes a positioning detection module 601 , a data acquisition module 602 , an identification module 603A and a positioning result and accuracy output module 604 .

[0171] The cloud processing unit 610 includes a fingerprint data storage module 611 , a method accuracy data storage module 612 , an identification module 603B and a positioning method determination module 613 .

[0172] The mobile phone processing unit 620 includes an acquisition module 621 and a display module 622 .

[0173] Specifically, the watch processing unit 600 and the cloud processing unit 610 can cooperate to obtain positioning results and positioning accuracy. Among them, the fingerprint data storage module 611 in the cloud processing unit 610 is used to store fingerprint data and the corresponding location parameters, that is, the name, number and location coordinates of the wireless access point, the building height and the floor. The method accuracy data storage module 612 is used to store the positioning method obtained after using each capability identification method and the positioning accuracy corresponding to the positioning method. For example, each capability item corresponding to the 5 capability identification methods in the above step S403, as well as the positioning method and positioning accuracy corresponding to each capability item are stored respectively.

[0174] The positioning detection module 601 is used to detect the positioning needs of children after they enter the building. For example, when the watch 100 detects that a child enters the building according to the GNSS related data, it will start positioning.

[0175] After detecting the positioning requirement, the data acquisition module 602 starts to obtain the fingerprint library data in Bluetooth, Wifi, and the cloud processing unit 610, as well as the positioning mode and prior data of positioning accuracy under each positioning capability obtained after the previous judgment. For example, the fingerprint library data and prior data marked with "①" obtained by the watch processing unit 600 from the cloud processing unit 610. For example, Figure 6 The data acquisition module 602 supports signal acquisition such as barometer, GNSS, Wifi and Bluetooth.

[0176] The identification module 603A in the watch processing unit 600 can determine the satisfied capability items according to the received sensor data, fingerprint library data and prior data, and the capability items correspond to the positioning method and the accuracy of the positioning method. Figure 4 The capability identification method shown in step S403 in the above is judged to determine the capability items currently satisfied. It can be understood that in other embodiments, since the memory of the watch 100 is relatively small and the computing power is insufficient, some of the 5 capability identification methods listed in the above step S403 can be processed in the cloud processing unit 610 in the cloud 300, that is, in some implementations, the watch 100 will send part of the received sensor data to the cloud processing unit 610, and the identification module 603B in the cloud processing module will make a judgment to determine the capability items currently satisfied. For example, the air pressure cross-layer capability identification method in step S403 is performed in the watch processing unit 600. The fingerprint capability identification method, map data capability identification method, and multi-entry signal difference capability identification method in step S403 are operated in the cloud. In addition, since the user correction data is obtained from the mobile phone 200, after the cloud 300 receives the floor data input by the user, the corresponding user correction capability identification method in step S403 is also performed in the cloud. For another example, all capability identification methods can be performed in the cloud. There is no restriction on whether the specific implementation of each capability identification method is a watch or the cloud.

[0177] When the identification module 603A in the watch processing unit 600 and the identification module 603B in the cloud processing module 610 obtain the satisfied capability items, the identification module 603A will send the capability items satisfied by the currently obtained capability identification methods to the cloud processing unit 610, such as Figure 6The positioning mode determination module 613 in the cloud processing unit 610 can determine the positioning capability according to the capability items received and obtained from the identification module 603B, and obtain the corresponding positioning mode and positioning accuracy according to the positioning capability. It can be understood that the specific process is as follows Figure 4 The process shown in the specific step S404 is not repeated here.

[0178] When the positioning mode determination module 613 determines the positioning mode, the determined positioning mode and the positioning accuracy L1 corresponding to the positioning mode are sent to the watch processing unit 600. Figure 6 The positioning method and positioning accuracy L1 corresponding to the label "②" sent in the watch. The positioning result and accuracy output module 604 in the watch processing unit 600 will calculate the positioning result according to the received positioning method, and will get the positioning accuracy L2 at this time. The positioning accuracy with lower accuracy is selected from the positioning accuracy L1 and the positioning accuracy L2 as the output positioning accuracy, and the positioning result and positioning accuracy are output at this time. For example, the watch can run the final positioning result and positioning accuracy in the background, can display specific data on the watch, and can also feed back to the mobile phone through the cloud 300 after receiving the mobile phone 200's request for obtaining the positioning result and positioning accuracy sent by the cloud 300.

[0179] When the acquisition module 621 in the mobile phone processing unit 620 detects a request from a parent to obtain the child's location result, the acquisition module 621 sends a request to the cloud processing unit 610, and the cloud processing unit 610 obtains the location result and location accuracy from the location result and output module 604 in the watch 100, for example Figure 6 The positioning result and positioning accuracy shown by label “②” are obtained from the watch processing unit 600, and then the cloud processing unit 610 sends the positioning result and positioning accuracy to the mobile phone 200. After receiving the positioning result and positioning accuracy, the display module 622 of the mobile phone 200 displays it in a display mode corresponding to the accuracy.

[0180] It can be understood that the system architecture 600 shown above is only an example. In other embodiments, other modules may be included, and some modules may be split or merged, which is not limited here.

[0181] It can be understood that in other embodiments, the watch processing unit 600 may also include the fingerprint data storage module 611, the mode accuracy storage module 612, and the positioning mode determination module in the cloud processing unit 610 to implement steps S401-S405. The specific situation is determined by the developer and the computing power supported by the watch, and the specific implementation process is not required here.

[0182] Figure 7 According to an embodiment of the present application, a schematic diagram of the hardware structure of a watch 100 is shown.

[0183] further, Figure 7 According to some embodiments of the present application, a structural schematic diagram of a watch 100 is shown.

[0184] like Figure 7 As shown, the watch 100 includes: a processor 101, a micro control unit 102, a memory 103, a display screen 104, a communication module 105, a sensor module 106, an interface module 107, a button 108, a power module 109, etc.

[0185] The processor 101 may include one or more processing units, for example, a processing module or processing circuit including a central processing unit (CPU), a graphics processing unit (GPU), a digital signal processor (DSP), an artificial intelligence (AI) processor, or a programmable logic device (field programmable gate array, FPGA). Different processing units may be independent devices or integrated into one or more processors. For example, the processor 101 may be used in the positioning method provided in the embodiment of the present application.

[0186] The memory 103 may include volatile memories such as random-access memory (RAM), double data rate synchronous dynamic random access memory (DDR SDRAM), and non-volatile memories such as programmable read-only memory (PROM), electrically alterable read-only memory (EAROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), flash memory, and secure digital memory card (SD). The memory 103 may be used to store instructions and data.

[0187] The display screen 104 is used to display images, videos, etc., such as desktops and GUIs of various applications. The display screen 104 includes a display panel, and the display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), Mini-LED, Micro-LED, Micro-OLED, quantum dot light emitting diodes (QLED), etc.

[0188] The communication module 105 may include a mobile communication module and a wireless communication module.

[0189] Among them, the mobile communication module can provide solutions for wireless communications including 2G / 3G / 4G / 5G applied to smart watches. The mobile communication module may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module can receive electromagnetic waves through an antenna, filter, amplify, and process the received electromagnetic waves, and transmit them to a modulation and demodulation processor for demodulation. The mobile communication module can also amplify the signal modulated by the modulation and demodulation processor and convert it into electromagnetic waves for radiation through the antenna.

[0190] The wireless communication module can provide wireless communication solutions for the watch 100, including wireless local area networks (WLAN) (such as wireless fidelity (Wifi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), NFC, infrared technology (IR), etc. The wireless communication module can be one or more devices integrating at least one communication processing module. The wireless communication module receives electromagnetic waves via an antenna, modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 101. The wireless communication module can also receive the signal to be sent from the processor 101, modulate the frequency, amplify it, and convert it into electromagnetic waves for radiation through the antenna.

[0191] The sensor module 106 may include a barometer, Bluetooth, Wifi, and GNSS data collection.

[0192] The interface module 107 may include a physical interface for connecting the watch 100 to other devices. For example, the interface module 107 may include an interface for connecting an external memory card (e.g., an SD card interface for connecting a Micro SD card, a SIM card interface for connecting a subscriber identity module (SIM) card, a universal serial bus (USB) interface for connecting other devices, etc.).

[0193] The button 108 may include a crown, a dial, etc.

[0194] The power module 109 may include a battery, and the power module 109 may be used to charge the battery, or to supply power to the processor 101 , the microcontroller unit 102 , the memory 103 , the display screen 104 , the communication module 105 , the sensor module 106 , the interface module 107 , and the button 108 .

[0195] Understandably, Figure 7 The structure of the watch 100 shown does not constitute a specific limitation on the watch 100. In other embodiments of the present application, the watch 100 may include more or fewer components than shown, or combine some components, or separate some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.

[0196] It is understandable that the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the watch 100 .

[0197] It should be noted that the processor in the embodiment of the present application can be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method embodiment can be completed by an integrated logic circuit of hardware in the processor or an instruction or program code in the form of software. The general processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in the embodiment of the present application can be directly embodied as a hardware decoding processor to be executed, or a combination of hardware and software modules in the decoding processor to be executed. The software module can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in a memory, and the processor reads the information in the memory and completes the steps of the above method in combination with its hardware.

[0198] According to the method provided in the embodiments of the present application, the present application also provides a computer program product containing instructions, and the computer program product includes: computer program code, when the computer program code is executed on a computer, the computer implements the steps performed by the electronic device in any one of the above embodiments.

[0199] According to the method provided in the embodiments of the present application, the present application also provides a computer-readable medium, which stores program code. When the program code runs on a computer, the computer implements the steps performed by the electronic device in any one of the above embodiments.

[0200] The various embodiments of the mechanism disclosed in the present application can be implemented in hardware, software, firmware or a combination of these implementation methods. The embodiments of the present application can be implemented as a computer program or program code executed on a programmable system, which includes at least one processor, a storage system (including volatile and non-volatile memory and / or storage elements), at least one input device and at least one output device.

[0201] Program code can be applied to input instructions to perform the functions described in this application and generate output information. The output information can be applied to one or more output devices in a known manner. For the purposes of this application, a processing system includes any system having a processor such as, for example, a digital signal processor (DSP), a microcontroller, an application specific integrated circuit (ASIC), or a microprocessor.

[0202] Program code can be implemented with high-level programming language or object-oriented programming language to communicate with the processing system. When necessary, program code can also be implemented with assembly language or machine language. In fact, the mechanism described in this application is not limited to the scope of any specific programming language. In either case, the language can be a compiled language or an interpreted language.

[0203] In some cases, the disclosed embodiments may be implemented in hardware, firmware, software, or any combination thereof. The disclosed embodiments may also be implemented as instructions carried or stored on one or more temporary or non-temporary machine-readable (e.g., computer-readable) storage media, which may be read and executed by one or more processors. For example, instructions may be distributed over a network or through other computer-readable media. Therefore, a machine-readable medium may include any mechanism for storing or transmitting information in a machine (e.g., computer) readable form, including, but not limited to, a floppy disk, an optical disk, an optical disk, a magneto-optical disk, a read-only memory (ROM), a random access memory (RAM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a magnetic card or an optical card, a flash memory, or a tangible machine-readable memory for transmitting information (e.g., carrier wave, infrared signal digital signal, etc.) using the Internet in an electrical, optical, acoustic or other form of propagation signal. Therefore, a machine-readable medium includes any type of machine-readable medium suitable for storing or transmitting electronic instructions or information in a machine (e.g., computer) readable form.

[0204] In the accompanying drawings, some structural or method features may be shown in a specific arrangement and / or order. However, it should be understood that such a specific arrangement and / or order may not be required. Instead, in some embodiments, these features may be arranged in a manner and / or order different from that shown in the illustrative drawings. In addition, the inclusion of structural or method features in a particular figure does not mean that such features are required in all embodiments, and in some embodiments, these features may not be included or may be combined with other features.

[0205] It should be noted that the units / modules mentioned in the various device embodiments of the present application are all logical units / modules. Physically, a logical unit / module can be a physical unit / module, or a part of a physical unit / module, or can be implemented as a combination of multiple physical units / modules. The physical implementation method of these logical units / modules themselves is not the most important. The combination of functions implemented by these logical units / modules is the key to solving the technical problems proposed by the present application. In addition, in order to highlight the innovative part of the present application, the above-mentioned device embodiments of the present application do not introduce units / modules that are not closely related to solving the technical problems proposed by the present application, which does not mean that there are no other units / modules in the above-mentioned device embodiments.

[0206] It should be noted that in the examples and description of this patent, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "including one" do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0207] Although the present application has been illustrated and described with reference to certain preferred embodiments thereof, it will be apparent to those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the present application.

Claims

1. A positioning method, applied to a first electronic device, characterized in that: include: Acquire a current first positioning capability of the building to be positioned where the first electronic device is located; Determining a first floor positioning method based on the first positioning capability; Using the first floor positioning method, obtaining a first floor positioning result of the floor where the first electronic device is located; The first floor positioning result and the accuracy of the first floor positioning result are sent to a second electronic device.

2. The method according to claim 1, characterized in that Also includes: Determine a first positioning accuracy for current positioning using the first floor positioning method; From the first positioning accuracy and the pre-stored positioning accuracy corresponding to the first floor positioning method, the positioning accuracy with lower positioning accuracy is selected as the accuracy of the first floor positioning result.

3. The method according to claim 1, characterized in that Also includes: The pre-stored positioning accuracy corresponding to the first floor positioning method is used as the accuracy of the first floor positioning result.

4. The method according to claim 2 or 3, characterized in that: The first positioning capability includes at least one of a building structure, a positioning method type supported by the first electronic device, and whether the first electronic device has floor information manually input by a user.

5. The method according to claim 4, characterized in that The building structure includes at least one of equal floor spacing, unequal floor spacing, a single entrance and exit, multiple entrances and exits on the same floor, and multiple entrances and exits on different floors. The type of the positioning method includes whether a fingerprint positioning method is supported, wherein the fingerprint positioning method includes a fingerprint positioning method based on Bluetooth or a fingerprint positioning method based on wireless fidelity.

6. The method according to claim 5, characterized in that The determining of a first floor positioning method based on the first positioning capability includes: When the first positioning capability includes: having floor information manually input by a user, determining the first floor positioning method is to use the floor information manually input by the user as the first floor positioning result; When the first positioning capability includes: no floor information manually input by the user, and the building to be positioned supports the fingerprint positioning method, determining that the first floor positioning method is the fingerprint positioning method; When the first positioning capability includes: no floor information manually input by the user, and the building to be positioned does not support the fingerprint positioning method, it is determined that the first floor positioning method is the air pressure positioning method.

7. The method according to claim 5, characterized in that The determining a first floor positioning method based on the first positioning capability includes: Determining multiple floor positioning modes supported by the building to be positioned according to the first positioning capability; A first floor positioning method that meets a first priority condition is selected from the multiple floor positioning methods according to the positioning accuracies corresponding to the multiple floor positioning methods.

8. The method according to claim 7, characterized in that The determining, according to the first positioning capability, a plurality of floor positioning modes supported by the building to be positioned includes: When the first positioning capability includes: floor information manually input by a user, and the building to be positioned supports a fingerprint positioning method, it is determined that the building to be positioned supports a user deviation correction positioning method and the fingerprint positioning method, wherein the user deviation correction positioning method uses the floor information manually input by the user as the first floor positioning result; When the first positioning capability includes: no floor information manually input by the user, the building to be located supports the fingerprint positioning method, the building structure includes equal floor spacing, unequal floor spacing, a single entrance and exit, multiple entrances and exits on the same floor, and multiple entrances and exits on different floors, it is determined that the building to be located supports the fingerprint positioning method and the air pressure positioning method; When the first positioning capability includes: having floor information manually input by the user, the building to be positioned does not support the fingerprint positioning method, the building structure includes equal floor spacing, unequal floor spacing, a single entrance, multiple entrances and exits on the same floor, and multiple entrances and exits on different floors, it is determined that the building to be positioned supports the user correction positioning method and the air pressure positioning method; When the first positioning capability includes: floor information manually input by the user, the building to be located supports the fingerprint positioning method, the building structure includes equal floor spacing, unequal floor spacing, a single entrance and exit, multiple entrances and exits on the same floor, and multiple entrances and exits on different floors, it is determined that the building to be located supports the user correction positioning method, the fingerprint positioning method, and the air pressure positioning method.

9. The method according to claim 8, characterized in that It also includes determining the positioning accuracy corresponding to each floor positioning method.

10. The method according to claim 9, characterized in that Determining the positioning accuracy corresponding to each floor positioning method includes: When the floor positioning mode is the user deviation correction positioning mode, and when floor information manually input by a user is detected, determining that the positioning accuracy corresponding to the user deviation correction positioning mode is the first accuracy; When the floor positioning method is the fingerprint positioning method, and it is detected that the building to be positioned supports the fingerprint positioning method, determining that the positioning accuracy corresponding to the fingerprint positioning method is the first accuracy; When the floor positioning method is the air pressure positioning method and it is detected that the building structure has the single entrance and exit, determining that the positioning accuracy corresponding to the air pressure positioning method is the first accuracy or the second accuracy; When the floor positioning method is the air pressure positioning method and the floor spacings are equal, or the multiple entrances and exits are located on the same floor, determining that the positioning accuracy corresponding to the air pressure positioning method is the second accuracy; When the floor positioning method is the air pressure positioning method, and it is detected that the building structure is such that the multiple entrances and exits are located on different floors, or it is detected that the floor spacings are unequal, it is determined that the positioning accuracy corresponding to the air pressure positioning method is the third accuracy, The first precision is greater than the second precision, and the second precision is greater than the third precision.

11. The method according to claim 10, characterized in that When the floor positioning method is the air pressure positioning method and it is detected that the building structure is the single entrance and exit, determining that the positioning accuracy corresponding to the air pressure positioning method is the first accuracy or the second accuracy includes: When the floor positioning method is the air pressure positioning method, and it is detected that the building structure obtained by the first method is the single entrance and exit, the positioning accuracy corresponding to the air pressure positioning method is determined to be the first accuracy; When the floor positioning method is the air pressure positioning method, and it is detected that the building structure is the single entrance and exit obtained by the second method, the positioning accuracy corresponding to the air pressure positioning method is determined to be the second accuracy.

12. The method according to claim 11, characterized in that The first method of obtaining the building structure as the single entrance and exit includes: When the first electronic device enters and exits the building to be located, first data is acquired, wherein the first data includes a fingerprint corresponding to the Wi-Fi data or Bluetooth data collected by the first electronic device, or a fingerprint corresponding to the Wi-Fi data or Bluetooth data when entering and exiting the building to be located acquired by an electronic device used by another user and stored in advance; When the first data acquired when the first electronic device enters the building to be located is the same as the first data acquired when the first electronic device exits the building to be located, it is determined that the building structure is the single entrance and exit.

13. The method according to claim 11, characterized in that The second method of obtaining the building structure as the single entrance and exit includes: Obtain map data of the building to be located; If it is determined based on the map data of the building to be located that there is only one entrance and exit in the first spatial area, then the building structure is determined to be the single entrance and exit, wherein the first spatial area is a spherical spatial area with the entrance and exit through which the first electronic device enters and exits the building to be located as the center of the sphere and the distance from the center of the sphere is within a first distance threshold.

14. The method according to claim 7, characterized in that The selecting a first floor positioning method that meets a first priority condition from the multiple floor positioning methods according to the positioning accuracies corresponding to the multiple floor positioning methods includes: Obtaining weight coefficients of positioning accuracy corresponding to the multiple floor positioning methods; A positioning method corresponding to a positioning accuracy with a maximum weight coefficient is selected from the multiple floor positioning methods as the first floor positioning method.

15. The method according to claim 5, characterized in that The method for determining that the building structure is such that the multiple entrances and exits are located at different floors includes: Acquire map data of the building to be located, determine according to the map data of the building to be located that there are multiple entrances and exits located at different levels in a first spatial area, and determine that the building structure is that the multiple entrances and exits are located at different levels, wherein the first spatial area is a spherical spatial area with the entrance and exit through which the first electronic device enters and exits the building to be located as the sphere center and within a first distance threshold from the sphere center; or, Acquire first air pressure data collected by the first electronic device, and determine based on the first air pressure data that a height deviation value of the first electronic device entering and exiting the building to be located along the building height direction is greater than a first height change threshold, then determine that the building structure is that the multiple entrances and exits are located on different floors, wherein the first air pressure data is used to characterize multiple air pressure-related parameters generated when the first electronic device moves multiple times in the building to be located.

16. The method according to claim 5, characterized in that The manner of determining that the distances between floors of the building structure are unequal or equal includes: Acquire first air pressure data collected by the first electronic device, and calculate a first height difference generated by each movement of the first electronic device in the building to be located according to the first air pressure data, wherein the first air pressure data is used to characterize multiple air pressure-related parameters generated when the first electronic device moves multiple times in the building to be located; Calculating a first difference between the first height difference and a second preset height difference, wherein the second preset height difference is a predicted height difference generated each time the first electronic device moves in the building to be located when assuming that the floor spacings are equal; When the sum of multiple first difference values ​​obtained when the first electronic device moves multiple times in the building to be located is greater than a second deviation threshold, it is determined that the floor spacings are not equal; When the sum of multiple first errors obtained when the first electronic device moves multiple times in the building to be located is less than or equal to the second deviation threshold, it is determined that the floor distances are equal.

17. The method according to claim 5, characterized in that The method for determining that the building structure is such that the multiple entrances and exits are located on the same floor includes: Obtaining map data of the building to be located, and determining according to the map data that there are multiple entrances and exits located on the same floor in a first spatial area, then determining that the building structure is that the multiple entrances and exits are located on the same floor, wherein the first spatial area is a spherical spatial area with the entrance and exit through which the first electronic device enters and exits the building to be located as the sphere center and within a first distance threshold from the sphere center; or Acquire first air pressure data collected by the first electronic device, and determine based on the first air pressure data that a height deviation value of the first electronic device entering and exiting the building to be located along the building height direction is less than or equal to a first height change threshold, then determine that the structure of the building to be located is that the multiple entrances and exits are located on the same floor, wherein the first air pressure data is used to characterize multiple air pressure-related parameters generated when the first electronic device moves multiple times in the building to be located.

18. A positioning method, applied to a second electronic device, characterized in that: include: Receiving a first floor positioning result of a building to be positioned where the first electronic device is located and an accuracy of the first floor positioning result; The first floor positioning result is displayed according to a display mode corresponding to the accuracy of the first floor positioning result.

19. The method according to claim 18, characterized in that The displaying of the first floor positioning result according to the display mode corresponding to the accuracy of the first floor positioning result includes: When the accuracy of the first floor positioning result is the first accuracy, displaying the floor number of the located first electronic device and the accuracy of the first floor positioning result; When the accuracy of the first floor positioning result is the second accuracy, displaying the number of floors positioned or the range of floors positioned; When the accuracy of the first floor positioning result is the third accuracy, displaying the number of floors passed by the first electronic device; The first precision is greater than the second precision, and the second precision is greater than the third precision.

20. An electronic device, characterized in that: include: one or more processors; One or more memories; the one or more memories store one or more instructions, and when the one or more instructions are executed by the one or more processors, the electronic device executes the positioning method described in any one of claims 1 to 19.

21. A computer-readable storage medium, characterized in that: The storage medium stores instructions, which, when executed on a computer, enable the computer to execute the positioning method according to any one of claims 1 to 19.

22. A computer program product comprising instructions, characterized in that When the computer program product is executed on a computer, the computer is enabled to execute the positioning method according to any one of claims 1 to 19.

Citation Information

Patent Citations

  • Positioning method and terminal

    CN102075936A

  • Floor positioning method and device for wearable device

    CN114370880A

  • Positioning system with floor name vertical positioning

    US20220124456A1