Positioning method and apparatus, server, and storage medium
By determining the area type of the device to be located and selecting appropriate positioning data, the problem of high positioning costs in mixed indoor and outdoor scenarios is solved, achieving low-cost positioning switching and coverage.
Patent Information
- Application Number
- CN202310899488.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-07-20
- Publication Date
- 2026-03-17
- Estimated Expiration
- 2043-07-20
AI Technical Summary
Achieving positioning coverage and switching in mixed indoor and outdoor scenarios is costly and difficult to implement.
By obtaining the primary serving cell identifier and measurement cell identifier list of the device to be located, the type of area where the device is located is determined, and satellite positioning data, 5G positioning data or preset indoor positioning data are selected as real-time positioning data to achieve positioning in mixed indoor and outdoor scenarios.
It achieved the positioning of indoor-outdoor mixed scenarios with lower cost and difficulty, reducing construction complexity.
Smart Images

Figure CN116684821B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of positioning technology, and in particular to a positioning method, device, server and storage medium. Background Technology
[0002] In outdoor environments, the Global Positioning System (GPS) can provide relatively accurate location services. Indoor positioning technologies such as ultra-wideband, near-field communication, wireless local area networks (WLANs), and radio frequency identification (RFID) have also achieved high-precision indoor positioning. However, the demand for positioning in mixed indoor and outdoor scenarios has become a research hotspot.
[0003] Currently, a variety of complementary positioning technologies are typically used to achieve seamless positioning coverage: a complete solution including hardware, platform, and algorithms is built to achieve coverage and switching between indoor and outdoor mixed scenarios.
[0004] However, a complete solution to achieve coverage and switching between indoor and outdoor mixed scenarios is costly and difficult to implement. Summary of the Invention
[0005] This application provides a positioning method, device, server, and storage medium to solve the problems of high cost and difficulty in construction for achieving coverage and switching in mixed indoor and outdoor scenarios.
[0006] Firstly, this application provides a positioning method, including:
[0007] Obtain the first identifier of the primary serving cell to which the device to be located belongs, and obtain the identifier list of the measurement cells corresponding to the primary serving cell, wherein the identifier list includes the second identifier of the measurement cells;
[0008] Based on the first identifier of the primary serving cell and the second identifier of the measuring cell in the identifier list, the area type of the device to be located is determined, wherein the area type includes a pre-calibrated outdoor area, an indoor-outdoor transition area, and an indoor area.
[0009] If the area type is an outdoor area, then the satellite positioning data of the device to be positioned will be used as the real-time positioning data of the device to be positioned.
[0010] If the area type is an indoor-outdoor transition area, then the 5G positioning data of the device to be located will be used as the real-time positioning data of the device to be located.
[0011] If the area type is an indoor area, then the 5G positioning data or preset indoor positioning data shall be used as the real-time positioning data of the device to be positioned.
[0012] The object to be located is located in real time based on the real-time location data of the device to be located.
[0013] In one possible design, determining the area type of the device to be located based on the first identifier of the primary serving cell and the second identifier of the measuring cells in the identifier list includes:
[0014] If the first identifier belongs to a pre-calibrated outdoor area cell, and the second identifiers of all measurement cells in the identifier list belong to pre-calibrated outdoor area cells, then the area type of the device to be located is determined to be an outdoor area.
[0015] If the first identifier belongs to a pre-calibrated indoor-outdoor transition zone cell, and the second identifier of the measurement cell in the identifier list belongs to a pre-calibrated outdoor area, indoor-outdoor transition zone, and indoor area, then the area type of the device to be located is determined to be an indoor-outdoor transition zone.
[0016] If the first identifier belongs to a pre-calibrated indoor area cell, and the second identifiers of all measurement cells in the identifier list belong to pre-calibrated indoor area cells, then the area type of the device to be located is determined to be an indoor area.
[0017] In one possible design, after stating that if the area type is an indoor-outdoor transition area, the method of using the 5G positioning data of the device to be located as the real-time positioning data of the device to be located, the method further includes:
[0018] Multiple field strength information data of the primary serving cell are continuously collected during each measurement cycle, and the average field strength value of each measurement cycle is calculated based on the multiple field strength information data.
[0019] When the average field strength of any measurement cycle is found to be less than the first threshold, the average field strength of the next n consecutive measurement cycles after the given measurement cycle is recorded, where n is a positive integer.
[0020] If the average field strength of the n measurement cycles satisfies the first preset condition; and the second identifier of all measurement cells in the identifier list of the measurement cells corresponding to the primary serving cell satisfies the second preset condition, or the average field strength of any measurement cycle among the n measurement cycles satisfies the third preset condition, then the satellite positioning data is switched to be used as the real-time positioning data of the device to be positioned.
[0021] In one possible design, determining that the average field strength of the n measurement cycles satisfies a first preset condition includes:
[0022] If the average field strength over the n measurement periods satisfies the following formula:
[0023]
[0024] In the formula, To record the average field strength of the first measurement cycle after the average field strength of any measurement cycle is found to be less than the first threshold; To record the average field strength of the second measurement period after the average field strength of any measurement period is less than the first threshold; To detect that the average field strength of any measurement period is less than the first threshold, the average field strength of the nth measurement period is recorded.
[0025] Then it is determined that the average field strength of the n measurement cycles meets the first preset condition.
[0026] In one possible design, the second preset condition includes: the second identifier of all measurement cells in the identifier list of the measurement cells corresponding to the main serving cell does not belong to the pre-calibrated indoor area.
[0027] In one possible design, the third preset condition includes: the average field strength of any one of the n measurement cycles is less than the second threshold.
[0028] Secondly, this application provides a positioning device, comprising:
[0029] The identifier acquisition module is used to acquire the first identifier of the primary serving cell to which the device to be located belongs, and to acquire the identifier list of the measurement cells corresponding to the primary serving cell, wherein the identifier list includes the second identifier of the measurement cells.
[0030] The area determination module is used to determine the area type of the device to be located based on the first identifier of the primary serving cell and the second identifier of the measuring cell in the identifier list, wherein the area type includes a pre-calibrated outdoor area, an indoor-outdoor transition area, and an indoor area.
[0031] An outdoor area positioning module is used to use the satellite positioning data of the device to be positioned as the real-time positioning data of the device to be positioned if the area type is an outdoor area.
[0032] The transition area positioning module is used to use the 5G positioning data of the device to be positioned as the real-time positioning data of the device to be positioned if the area type is an indoor-outdoor transition area.
[0033] An indoor area positioning module is used to use the 5G positioning data or preset indoor positioning data as the real-time positioning data of the device to be positioned if the area type is an indoor area.
[0034] The real-time positioning module is used to locate the object being located in real time based on the real-time positioning data of the device to be located.
[0035] Thirdly, this application provides a server, including: at least one processor and a memory;
[0036] The memory stores computer-executed instructions;
[0037] The at least one processor executes computer execution instructions stored in the memory, causing the at least one processor to perform the positioning method as described in the first aspect and various possible designs of the first aspect.
[0038] Fourthly, this application provides a computer storage medium storing computer execution instructions, which, when executed by a processor, implement the positioning method described in the first aspect and various possible designs of the first aspect.
[0039] The positioning method, device, server, and storage medium provided in this application determine the area of the device to be positioned by using the first identifier of the main serving cell occupied by the outdoor area, the indoor-outdoor transition area, and the indoor area, and the second identifier of all the measuring cells in the identifier list of the measuring cells corresponding to the main serving cell. Based on this, different positioning technologies are selected for real-time positioning data. The object to be positioned is located in real time according to the real-time positioning data of the device to be positioned, thus achieving positioning of mixed indoor and outdoor scenes with low cost and difficulty. Attached Figure Description
[0040] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0041] Figure 1 This is a schematic diagram illustrating an application scenario of the positioning method provided in the embodiments of this application;
[0042] Figure 2 Flowchart of the positioning method provided in the embodiments of this application Figure 1 ;
[0043] Figure 3 Flowchart of the positioning method provided in the embodiments of this application Figure 2 ;
[0044] Figure 4 This is a schematic diagram of the positioning device provided in the embodiments of this application;
[0045] Figure 5 This is a schematic diagram of the hardware structure of the server provided in an embodiment of this application. Detailed Implementation
[0046] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0047] With the development of IoT technology, human demand for location information services is increasing. Location information services provide navigation and positioning functions, including both outdoor and indoor navigation and positioning. However, as the location service field continues to evolve, it is no longer limited to single indoor or outdoor scenarios; the demand for mixed indoor and outdoor scenarios has become one of the current research hotspots in location services. Currently, mixed indoor and outdoor scenarios often employ a complete solution encompassing hardware, platform, and algorithms to achieve coverage and switching between these scenarios. However, such solutions are often complex to implement and costly.
[0048] To address the aforementioned technical problems, this application proposes the following technical approach: Considering that the indoor-outdoor transition zone is the area where indoor and outdoor areas meet, satellite positioning data from the outdoor area and 5G positioning data or other indoor positioning data from the indoor area can be used to locate the device to be positioned in the indoor-outdoor transition zone. The location of the object being located is determined by the first identifier of the primary serving cell and the identifier list of the corresponding measurement cells. Different positioning technologies and location data are used for different areas, achieving positioning in mixed indoor-outdoor scenarios with lower cost and difficulty. Detailed embodiments are described below.
[0049] Figure 1 This is a schematic diagram illustrating an application scenario of the positioning method provided in the embodiments of this application. For example... Figure 1 As shown, it includes: server 101, main service cell 102 and device to be located 103.
[0050] The device to be located 103 sends a location positioning request to the server 101. The server 101 measures the signal of the serving cells around the device to be located 103, determines the serving cell with the strongest signal among the serving cells occupied by the device to be located 103 as the main serving cell 102, and obtains the first identifier of the main serving cell 102 and the identifier list of the measurement cells corresponding to the main serving cell 102. The server 101 performs real-time positioning of the device to be located 103 according to the first identifier of the main serving cell 102 and the second identifier in the identifier list of the measurement cells corresponding to the main serving cell 102.
[0051] Figure 2Flowchart of the positioning method provided in the embodiments of this application Figure 1 The execution entity in this embodiment can be Figure 1 The server in the illustrated embodiment is not specifically limited in this embodiment. Figure 2 The method includes:
[0052] S201: Obtain the first identifier of the primary serving cell to which the device to be located belongs, and obtain the identifier list of the measurement cells corresponding to the primary serving cell, wherein the identifier list includes the second identifier of the measurement cells.
[0053] The primary serving cell is the cell associated with the radio access node that provides control plane connectivity to the core network. It is the cell used to initiate initial access and has the strongest signal among the serving cells occupied by the device to be located. Multiple measurement cells are defined within a primary serving cell based on differences in carrier frequency and scrambling code. The identifier list of measurement cells corresponding to the primary serving cell includes secondary identifiers for multiple measurement cells, used to indicate the area where the cell is located.
[0054] Specifically, the server receives a location request from the device to be located and identifies the serving cell with the strongest signal among the serving cells occupied by the device as the primary serving cell. Within a preset range of the primary serving cell, different preset areas are divided according to different carrier frequencies and scrambling codes, and each preset area is identified as a measurement cell. The server obtains the first identifier of the primary serving cell and the second identifiers of all measurement cells in the identifier list corresponding to the primary serving cell.
[0055] S202: Based on the first identifier of the primary serving cell and the second identifier of the measuring cell in the identifier list, determine the area type of the device to be located, where the area type includes pre-calibrated outdoor area, indoor-outdoor transition area and indoor area.
[0056] In this embodiment, cells within a defined range that have the following significant characteristics are designated as indoor-outdoor transition areas: simultaneously meeting the performance requirements of satellite positioning and 5G NR positioning.
[0057] For example, designating a cell as an outdoor area can be done by marking the cell as "ID-A"; designating a cell as an indoor-outdoor transition area can be done by marking the cell as "ID-B"; and designating a cell as an indoor area can be done by marking the cell as "ID-C".
[0058] Specifically, step S202 includes Sa to Sc:
[0059] Sa: If the first identifier belongs to a pre-calibrated outdoor area cell, and the second identifiers of all measurement cells in the identifier list belong to pre-calibrated outdoor area cells, then the area type of the device to be located is determined to be an outdoor area.
[0060] For example, if the first identifier of the primary serving cell is "ID-A" and the second identifier of all the measurement cells in the identifier list is "ID-A", then the area type of the device to be located is determined to be an outdoor area.
[0061] Sb: If the first identifier belongs to a pre-calibrated indoor-outdoor transition zone cell, and the second identifier of the measurement cell in the identifier list belongs to a pre-calibrated outdoor area, indoor-outdoor transition zone, and indoor area, then the area type of the device to be located is determined to be an indoor-outdoor transition zone.
[0062] For example, if the first identifier of the primary serving cell is "ID-B", and the second identifiers of all measurement cells in the identifier list include "ID-A", "ID-B", and "ID-C", then the area type of the device to be located is determined to be an indoor-outdoor transition area.
[0063] Sc: If the first identifier belongs to a pre-calibrated indoor area cell, and the second identifiers of all measurement cells in the identifier list belong to pre-calibrated indoor area cells, then the area type of the device to be located is determined to be an indoor area.
[0064] For example, if the first identifier of the primary serving cell is "ID-C" and the second identifier of all the measuring cells in the identifier list is "ID-C", then the area type of the device to be located is determined to be an outdoor area.
[0065] S203: If the area type is an outdoor area, then the satellite positioning data of the device to be positioned shall be used as the real-time positioning data of the device to be positioned.
[0066] The device to be located is bound to both a satellite positioning terminal and a 5G positioning terminal, or to a multi-mode terminal that simultaneously supports satellite positioning and 5G positioning. The satellite positioning data of the device to be located comes from either the satellite positioning terminal or the multi-mode terminal.
[0067] Specifically, if the area type is an outdoor area, the device to be located will continuously measure satellite positioning signals through a satellite positioning terminal or a multi-mode terminal to obtain location positioning data, and the satellite positioning data of the device to be located will be used as the real-time positioning data of the device to be located.
[0068] S204: If the area type is an indoor-outdoor transition area, then the 5G positioning data of the device to be located will be used as the real-time positioning data of the device to be located.
[0069] The device to be located is bound to both a satellite positioning terminal and a 5G positioning terminal, or to a multi-mode terminal that simultaneously supports satellite positioning and 5G positioning. The 5G positioning data of the device to be located comes from the 5G positioning terminal or the multi-mode terminal.
[0070] Specifically, if the area type is an indoor-outdoor transition area, the device to be located will continuously measure the 5G positioning signal through a 5G positioning terminal or a multi-mode terminal to obtain location positioning data, and the 5G positioning data of the device to be located will be used as the real-time positioning data of the device to be located.
[0071] S205: If the area type is an indoor area, then the real-time positioning data of the device to be positioned shall be based on 5G positioning data or preset indoor positioning data.
[0072] The device to be located is bound to both a satellite positioning terminal and a 5G positioning terminal, or to a multi-mode terminal that simultaneously supports satellite positioning and 5G positioning. The 5G positioning data of the device to be located comes from the 5G positioning terminal or the multi-mode terminal. The preset indoor positioning data comes from preset indoor positioning technologies, which can be WiFi, Bluetooth, UWB (UltraWide Band), and cellular mobile network technologies.
[0073] Specifically, if the area type is an indoor-outdoor transition zone, the device to be located will continuously measure the 5G positioning signal through a 5G positioning terminal or a multi-mode terminal to obtain location data, and use the 5G positioning data of the device to be located as the real-time positioning data of the device to be located. Alternatively, location data can be obtained based on preset indoor positioning technologies used in the indoor area, such as WiFi, Bluetooth, UWB, and cellular mobile network technologies, and the preset indoor positioning data can be used as the real-time positioning data of the device to be located.
[0074] S206: Real-time positioning of the object to be positioned is performed based on the real-time positioning data of the device to be positioned.
[0075] The object being located is either a person holding the device to be located, or an object on which the device is installed.
[0076] Specifically, if the area where the object to be located is located is an outdoor area, the object is located in real time based on the real-time positioning data of the device to be located, and a wide-area map is used for the geographical representation of the object. If the area where the object is located is an indoor-outdoor transition area, the object is located in real time based on the real-time positioning data of the device to be located, and a customized map is used for the geographical representation of the object. If the area where the object is located is located is an indoor area, the object is located in real time based on the real-time positioning data of the device to be located, and a customized indoor map is used for the geographical representation of the object.
[0077] In summary, the area described by the device to be located is determined by the first identifier of the main service cell occupied by the outdoor area, the indoor-outdoor transition area, and the indoor area, and the second identifier of all the measurement cells in the identifier list of the measurement cells corresponding to the main service cell. Based on this, real-time positioning data of different positioning technologies are selected, and the object to be located is located in real time according to the real-time positioning data of the device to be located. This achieves positioning of mixed indoor and outdoor scenes with low cost and difficulty.
[0078] Figure 3 Flowchart of the positioning method provided in the embodiments of this application Figure 2 In the embodiments of this application, in Figure 2 Based on the provided embodiments, the specific implementation method for switching the positioning device from 5G positioning data to satellite positioning data after step S204 is described in detail. For example... Figure 3 As shown, the method includes:
[0079] S301: Continuously collect multiple field strength information of the primary serving cell in each measurement cycle, and calculate the average field strength of each measurement cycle based on the multiple field strength information.
[0080] Specifically, each measurement cycle can collect m field strength data points, denoted as E1, E2, ..., E m The formula for calculating the average field strength for each measurement cycle based on multiple field strength data is as follows:
[0081]
[0082] In the formula, Let E1, E2, ..., E be the average field strength during the i-th measurement period, where i is a positive integer. m This represents m field strength data points collected within one measurement cycle, where m is a positive integer.
[0083] For example, the duration of a measurement cycle can be 1 second, 10 seconds, or 60 seconds.
[0084] S302: When the average field strength of any measurement cycle is found to be less than the first threshold, record the average field strength of n consecutive measurement cycles after any measurement cycle, where n is a positive integer.
[0085] Specifically, when it is detected that the average field strength of any measurement period, calculated based on the field strength information collected within any measurement period, is less than the first threshold, another event is triggered: field strength information is collected for n consecutive measurement periods, and the average field strength of the n consecutive measurement periods is calculated based on the field strength information collected for the n consecutive measurement periods, and the average field strength of the n consecutive measurement periods is recorded, where n is a positive integer.
[0086] For example, when the average field strength of any measurement cycle is found to be less than a first threshold, the average field strength of the next n consecutive measurement cycles is recorded, respectively. Where n is a positive integer.
[0087] S303: If the average field strength of n measurement cycles meets the first preset condition; and the second identifier of all measurement cells in the identifier list of the measurement cell corresponding to the main serving cell meets the second preset condition or the average field strength of any measurement cycle in the n measurement cycles meets the third preset condition, then switch to using satellite positioning data as the real-time positioning data of the device to be positioned.
[0088] Specifically, step S303, determining that the average field strength over n measurement cycles meets the first preset condition, includes:
[0089] If the average field strength over n measurement periods satisfies the following formula:
[0090]
[0091] In the formula, To record the average field strength of the first measurement cycle after the average field strength of any measurement cycle is found to be less than the first threshold; To record the average field strength of the second measurement period after the average field strength of any measurement period is less than the first threshold; To detect that the average field strength of any measurement period is less than the first threshold, the average field strength of the nth measurement period is recorded, where n is a positive integer.
[0092] If the average field strength over n measurement cycles meets the first preset condition, and if the second identifier of all measurement cells in the identifier list corresponding to the primary serving cell does not belong to the pre-calibrated indoor area, or if the average field strength over any measurement cycle is less than the second threshold, then the 5G positioning data will be switched to satellite positioning data, and the satellite positioning data will be used as the real-time positioning data of the device to be positioned.
[0093] In summary, by calculating the average field strength of each measurement cycle, it can be determined whether the conditions are met to switch from 5G positioning data to satellite positioning data, and then use the satellite positioning data as the real-time positioning data of the device to be positioned. This achieves the switching of positioning technology in indoor-outdoor transition areas at a lower cost and with less difficulty.
[0094] Figure 4 This is a schematic diagram of the positioning device provided in an embodiment of this application. Figure 5As shown, the positioning device includes: an identifier acquisition module 401, an area judgment module 402, an outdoor area positioning module 403, a transition area positioning module 404, an indoor area positioning module 405, and a real-time positioning module 406.
[0095] The identifier acquisition module 401 is used to acquire the first identifier of the primary serving cell to which the device to be located belongs, and to acquire the identifier list of the measurement cells corresponding to the primary serving cell, wherein the identifier list includes the second identifier of the measurement cells.
[0096] The area determination module 402 is used to determine the area type of the device to be located based on the first identifier of the main serving cell and the second identifier of the measuring cell in the identifier list. The area type includes pre-calibrated outdoor area, indoor-outdoor transition area and indoor area.
[0097] The outdoor area positioning module 403 is used to use the satellite positioning data of the device to be positioned as the real-time positioning data of the device to be positioned if the area type is an outdoor area.
[0098] The transition area positioning module 404 is used to use the 5G positioning data of the device to be positioned as the real-time positioning data of the device to be positioned if the area type is an indoor-outdoor transition area.
[0099] The indoor area positioning module 405 is used to use 5G positioning data or preset indoor positioning data as the real-time positioning data of the device to be positioned if the area type is an indoor area.
[0100] The real-time positioning module 406 is used to locate the object being located in real time based on the real-time positioning data of the device to be located.
[0101] In one possible implementation, the area determination module 402 is specifically configured to determine the area type of the device to be located as an outdoor area if the first identifier belongs to a pre-calibrated outdoor area cell and the second identifiers of all measurement cells in the identifier list belong to pre-calibrated outdoor area cells. If the first identifier belongs to a pre-calibrated indoor-outdoor transition area cell and the second identifiers of the measurement cells in the identifier list belong to a pre-calibrated outdoor area, indoor-outdoor transition area, and indoor area, then the area type of the device to be located is determined to be an indoor-outdoor transition area. If the first identifier belongs to a pre-calibrated indoor area cell and the second identifiers of all measurement cells in the identifier list belong to pre-calibrated indoor area cells, then the area type of the device to be located is determined to be an indoor area.
[0102] In one possible implementation, the positioning device further includes a switching module, which is specifically used to continuously collect multiple field strength information from the primary serving cell in each measurement cycle, and calculate the average field strength for each measurement cycle based on the multiple field strength information. When the average field strength for any measurement cycle is detected to be less than a first threshold, the average field strength for n consecutive measurement cycles following that measurement cycle is recorded, where n is a positive integer. If it is determined that the average field strength for n measurement cycles meets a first preset condition; and the second identifiers of all measurement cells in the identifier list of the measurement cells corresponding to the primary serving cell meet a second preset condition, or the average field strength for any one of the n measurement cycles meets a third preset condition, then the device switches to using satellite positioning data as the real-time positioning data for the device to be positioned.
[0103] In one possible implementation, the positioning device further includes a first preset condition determination module, which is specifically used to determine if the average field strength of n measurement cycles satisfies the following formula:
[0104]
[0105] In the formula, To record the average field strength of the first measurement cycle after the average field strength of any measurement cycle is found to be less than the first threshold; To record the average field strength of the second measurement period after the average field strength of any measurement period is less than the first threshold; To detect that the average field strength of any measurement cycle is less than a first threshold, the average field strength of the nth measurement cycle is recorded. Then, it is determined that the average field strength of the nth measurement cycle satisfies a first preset condition.
[0106] The apparatus provided in this embodiment can be used to execute the technical solutions of the above method embodiments. Its implementation principle and technical effects are similar, and will not be described again here.
[0107] Figure 5 This is a schematic diagram of the hardware structure of the server provided in an embodiment of this application. Figure 5 As shown, the server in this embodiment includes: at least one processor 501 and a memory 502; the memory stores computer execution instructions; the at least one processor executes the computer execution instructions stored in the memory, causing the at least one processor to perform the positioning method described above.
[0108] Alternatively, the memory 502 can be either standalone or integrated with the processor 501.
[0109] When the memory 502 is set up independently, the server also includes a bus 503 for connecting the memory 502 and the processor 501.
[0110] This application embodiment also provides a computer storage medium storing computer execution instructions, which, when executed by a processor, implement the positioning method described above.
[0111] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the positioning method described above.
[0112] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative; for instance, the division of modules is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple modules may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be indirect coupling or communication connection through some interfaces, devices, or modules, and may be electrical, mechanical, or other forms.
[0113] The modules described as separate components may or may not be physically separate. The components shown as modules may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to implement the solution of this embodiment according to actual needs.
[0114] Furthermore, the functional modules in the various embodiments of this application can be integrated into one processing unit, or each module can exist physically separately, or two or more modules can be integrated into one unit. The unit composed of the above modules can be implemented in hardware or in the form of hardware plus software functional units.
[0115] The integrated modules described above, implemented as software functional modules, can be stored in a computer-readable storage medium. These software functional modules, stored in a storage medium, include several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) or processor to execute some steps of the methods described in the various embodiments of this application.
[0116] It should be understood that the aforementioned processor can be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), etc. A general-purpose processor can be a microprocessor or any conventional processor. The steps of the method disclosed in this invention can be directly manifested as being executed by a hardware processor, or executed by a combination of hardware and software modules within the processor.
[0117] The memory may include high-speed RAM, and may also include non-volatile storage (NVM), such as at least one disk storage device, and may also be a USB flash drive, external hard drive, read-only memory, disk or optical disc, etc.
[0118] The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. Buses can be categorized as address buses, data buses, control buses, etc. For ease of illustration, the buses shown in the accompanying drawings are not limited to a single bus or a single type of bus.
[0119] The aforementioned storage medium can be implemented from any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk. The storage medium can be any available medium accessible to general-purpose or special-purpose computers.
[0120] An exemplary storage medium is coupled to a processor, enabling the processor to read information from and write information to the storage medium. Alternatively, the storage medium can be an integral part of the processor. Both the processor and the storage medium can reside in an Application Specific Integrated Circuit (ASIC). Alternatively, the processor and storage medium can exist as discrete components in an electronic device or host device.
[0121] Those skilled in the art will understand that all or part of the steps of the above-described method embodiments can be implemented by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When executed, the program performs the steps of the above-described method embodiments; and the aforementioned storage medium includes various media capable of storing program code, such as ROM, RAM, magnetic disks, or optical disks.
[0122] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some or all of the technical features therein. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of this application.
Claims
1. A positioning method, characterized by, Applied to a server, comprising: obtaining a first identity of a main serving cell to which a to-be-positioned device belongs, and obtaining an identity list of measurement cells corresponding to the main serving cell, wherein the identity list includes a second identity of a measurement cell; determining a region type in which the to-be-positioned device is located according to the first identity of the main serving cell and the second identity of the measurement cell in the identity list, wherein the region type includes a pre-labeled outdoor region, an indoor-outdoor transition region, and an indoor region; if the region type is the outdoor region, satellite positioning data of the to-be-positioned device is taken as real-time positioning data of the to-be-positioned device; if the region type is the indoor-outdoor transition region, 5G positioning data of the to-be-positioned device is taken as the real-time positioning data of the to-be-positioned device; if the region type is the indoor region, the 5G positioning data or preset indoor positioning data is taken as the real-time positioning data of the to-be-positioned device; real-time positioning is performed on a positioned object according to the real-time positioning data of the to-be-positioned device; after the 5G positioning data of the to-be-positioned device is taken as the real-time positioning data of the to-be-positioned device if the region type is the indoor-outdoor transition region, the method further comprises: continuously collecting a plurality of field strength information of the main serving cell in each measurement period, and calculating a field strength average of each measurement period according to the plurality of field strength information; after monitoring that the field strength average of any measurement period is less than a first threshold value, recording field strength averages of n consecutive measurement periods after the any measurement period, wherein n is a positive integer; if it is determined that the field strength averages of the n measurement periods satisfy a first preset condition, and the second identities of all measurement cells in the identity list of the measurement cells corresponding to the main serving cell satisfy a second preset condition or the field strength average of any measurement period in the n measurement periods satisfies a third preset condition, satellite positioning data is switched to be taken as the real-time positioning data of the to-be-positioned device; the determination that the field strength averages of the n measurement periods satisfy the first preset condition comprises: if the field strength averages of the n measurement periods satisfy the following formula: wherein the field strength average of the first recorded measurement period upon monitoring that the field strength average of any measurement period is less than the first threshold value; the field strength average of the second recorded measurement period upon monitoring that the field strength average of any measurement period is less than the first threshold value; the field strength average of the n-th recorded measurement period upon monitoring that the field strength average of any measurement period is less than the first threshold value; then it is determined that the field strength averages of the n measurement periods satisfy the first preset condition; the second preset condition comprises that the second identities of all measurement cells in the identity list of the measurement cells corresponding to the main serving cell do not belong to a pre-labeled indoor region; the third preset condition comprises that the field strength average of any measurement period in the n measurement periods is less than a second threshold value.
2. The method of claim 1, wherein, the determination of the region type in which the to-be-positioned device is located according to the first identity of the main serving cell and the second identity of the measurement cell in the identity list comprises: if the first identity belongs to a pre-labeled outdoor region cell, and the second identities of all measurement cells in the identity list belong to pre-labeled outdoor region cells, it is determined that the region type in which the to-be-positioned device is located is the outdoor region; if the first identity belongs to a pre-labeled indoor-outdoor transition area cell and the second identities of the measurement cells in the identity list belong to pre-labeled outdoor area, indoor-outdoor transition area and indoor area, it is determined that the area type where the device to be positioned is located is an indoor-outdoor transition area; if the first identity belongs to a pre-labeled indoor area cell and the second identities of all the measurement cells in the identity list belong to pre-labeled indoor area cells, it is determined that the area type where the device to be positioned is located is an indoor area.
3. A positioning device, characterized in that The application is applied to a server, comprising: an identity acquisition module, configured to acquire a first identity of a primary serving cell to which a device to be positioned belongs, and acquire an identity list of measurement cells corresponding to the primary serving cell, wherein the identity list comprises second identities of the measurement cells; an area judgment module, configured to judge an area type where the device to be positioned is located according to the first identity of the primary serving cell and the second identities of the measurement cells in the identity list, wherein the area type comprises pre-labeled outdoor area, indoor-outdoor transition area and indoor area; an outdoor area positioning module, configured to, if the area type is an outdoor area, take satellite positioning data of the device to be positioned as real-time positioning data of the device to be positioned; a transition area positioning module, configured to, if the area type is an indoor-outdoor transition area, take 5G positioning data of the device to be positioned as real-time positioning data of the device to be positioned; an indoor area positioning module, configured to, if the area type is an indoor area, take the 5G positioning data or preset indoor positioning data as real-time positioning data of the device to be positioned; a real-time positioning module, configured to perform real-time positioning on a positioned object according to the real-time positioning data of the device to be positioned; a switching module, further configured to: continuously collect a plurality of field strength information of the primary serving cell in each measurement period, and calculate a field strength average of each measurement period according to the plurality of field strength information; when monitoring that the field strength average of any measurement period is less than a first threshold value, record field strength averages of n consecutive measurement periods after the any measurement period, wherein n is a positive integer; if it is determined that the field strength averages of the n measurement periods satisfy a first preset condition, and the second identities of all the measurement cells in the identity list of the measurement cells corresponding to the primary serving cell satisfy a second preset condition or the field strength average of any measurement period in the n measurement periods satisfies a third preset condition, switch to take satellite positioning data as real-time positioning data of the device to be positioned; a first preset condition judgment module, configured to: if the field strength averages of the n measurement periods satisfy the following formula: wherein the field strength average of the first recorded measurement period upon monitoring that the field strength average of any measurement period is less than the first threshold value; the field strength average of the second recorded measurement period upon monitoring that the field strength average of any measurement period is less than the first threshold value; the field strength average of the n-th recorded measurement period upon monitoring that the field strength average of any measurement period is less than the first threshold value; it is determined that the field strength averages of the n measurement periods satisfy the first preset condition; the second preset condition comprises that the second identities of all the measurement cells in the identity list of the measurement cells corresponding to the primary serving cell do not belong to pre-labeled indoor area; the third preset condition comprises that the field strength average of any measurement period in the n measurement periods is less than a second threshold value.
4. The device of claim 3, wherein The area determining module is specifically configured to determine that the area type in which the device to be positioned is located as an outdoor area if the first identifier belongs to a pre-labeled outdoor area cell and the second identifiers of all the measured cells in the identifier list belong to pre-labeled outdoor area cells. The area determining module is specifically configured to determine that the area type in which the device to be positioned is located as an indoor-outdoor transition area if the first identifier belongs to a pre-labeled indoor-outdoor transition area cell and the second identifiers of the measured cells in the identifier list belong to pre-labeled outdoor area cells, indoor-outdoor transition area cells and indoor area cells.
5. A server, characterized by Comprise: At least one processor and a memory; The memory stores computer execution instructions; The at least one processor executes the computer execution instructions stored in the memory, so that the at least one processor executes the positioning method as claimed in claim 1 or 2.
6. A computer storage medium, characterized in that The computer storage medium stores computer execution instructions, and when the processor executes the computer execution instructions, the positioning method as claimed in claim 1 or 2 is realized.
Citation Information
Patent Citations
Indoor and outdoor distinguishing method based on LTE signal
CN109348501A
Seamless switching indoor and outdoor combined positioning method and system
CN110996258A