Intelligent equipment positioning method and device, electronic equipment and storage medium

By obtaining the number of MAC addresses in the current positioning data of smart devices, determining the hierarchical matching strategy, and selecting the target positioning data for positioning, the problem of inaccurate positioning in low-density scenarios is solved and the positioning accuracy is improved.

CN120729936APending Publication Date: 2025-09-30ZHENSHI INFORMATION TECH SHANGHAI CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202510876519.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-06-27
Publication Date
2025-09-30

AI Technical Summary

Technical Problem

Existing MAC address matching algorithms are prone to inaccurate positioning and identification errors in low-density scenarios and do not fully consider differences in device density.

Method used

By obtaining the number of MAC addresses in the current positioning data of the smart device, the applicable hierarchical matching strategy is determined, the target positioning data is selected from the historical positioning data cached by the system, and positioning is performed according to the target matching strategy. It is suitable for positioning under different network device densities.

Benefits of technology

The positioning accuracy of smart devices under low network device density is improved and the positioning error is reduced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120729936A_ABST
    Figure CN120729936A_ABST
Patent Text Reader

Abstract

The invention discloses an intelligent equipment positioning method and device, electronic equipment and a storage medium. The method comprises the following steps: acquiring current positioning data of the intelligent equipment; wherein the current positioning data comprises at least one media access control address; determining a target matching strategy corresponding to the current positioning data from preset hierarchical matching strategies according to the number of media access control addresses in the current positioning data; according to the target matching strategy, target positioning data matched with the current positioning data are determined from historical positioning data cached by the system, the longitude and latitude coordinates corresponding to the target positioning data serve as the longitude and latitude coordinates corresponding to the current positioning data, and the intelligent device is positioned. According to the technical scheme provided by the embodiment of the invention, the positioning accuracy of the intelligent equipment under different network equipment densities, especially under low network equipment densities, can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of device positioning technology, and in particular to a method, apparatus, electronic device, and storage medium for positioning an intelligent device. Background Art

[0002] Media Access Control Address (MAC) matching is a core technology in smart device positioning. However, most existing MAC address matching algorithms fail to fully consider the important factor of device density during their design. In actual application scenarios, device density varies depending on factors such as geographic location and usage scenario. In particular, in low-density scenarios, such as base station coverage areas in remote areas and small home networks, where the number of devices is relatively small, existing algorithms are prone to large matching errors, which can lead to inaccurate device positioning and identification errors. Summary of the Invention

[0003] The present application provides a smart device positioning method, apparatus, electronic device and storage medium, which can improve the positioning accuracy of smart devices under different network device densities, especially under low network device density.

[0004] According to one aspect of the present application, a method for positioning a smart device is provided, the method comprising:

[0005] Acquire current location data of the smart device; wherein the current location data includes at least one media access control address;

[0006] Determining a target matching strategy corresponding to the current positioning data from a preset hierarchical matching strategy according to the number of media access control addresses in the current positioning data;

[0007] According to the target matching strategy, target positioning data that matches the current positioning data is determined from the historical positioning data cached by the system, and the longitude and latitude coordinates corresponding to the target positioning data are used as the longitude and latitude coordinates corresponding to the current positioning data to locate the smart device.

[0008] According to another aspect of the present application, a smart device positioning apparatus is provided, the apparatus comprising:

[0009] A positioning data acquisition module, configured to acquire current positioning data of the smart device; wherein the current positioning data includes at least one media access control address;

[0010] a matching strategy determination module, configured to determine, based on the number of media access control addresses in the current positioning data, a target matching strategy corresponding to the current positioning data from a preset hierarchical matching strategy;

[0011] The smart device positioning module is used to determine the target positioning data from the historical positioning data cached by the system according to the target matching strategy, and use the longitude and latitude coordinates corresponding to the target positioning data as the longitude and latitude coordinates corresponding to the current positioning data to locate the smart device.

[0012] According to another aspect of the present application, an electronic device is provided, comprising:

[0013] at least one processor; and

[0014] a memory communicatively connected to the at least one processor; wherein,

[0015] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the smart device positioning method according to any embodiment of the present invention.

[0016] According to another aspect of the present application, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the smart device positioning method according to any embodiment of the present invention when executed.

[0017] The technical solution of the embodiment of the present application obtains the current positioning data of the smart device; wherein the current positioning data includes at least one media access control address; according to the number of media access control addresses in the current positioning data, a target matching strategy corresponding to the current positioning data is determined from a preset hierarchical matching strategy; according to the target matching strategy, target positioning data matching the current positioning data is determined from the historical positioning data cached by the system, and the longitude and latitude coordinates corresponding to the target positioning data are used as the longitude and latitude coordinates corresponding to the current positioning data to locate the smart device. The technical solution of the embodiment of the present application determines the target matching strategy applicable to the current positioning data through a preset hierarchical matching strategy and the number of media access control addresses in the current positioning data, and locates the smart device through the target positioning data determined by the target matching strategy, which can improve the positioning accuracy of smart devices under different network device densities, especially under low network device density.

[0018] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present invention, nor is it intended to limit the scope of the present invention. Other features of the present invention will become readily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0020] Figure 1 This is a flow chart of a smart device positioning method provided according to the first embodiment of the present application;

[0021] Figure 2 This is a flow chart of a smart device positioning method provided according to the second embodiment of the present application;

[0022] Figure 3 This is a structural diagram of a smart device positioning device provided according to the third embodiment of the present application;

[0023] Figure 4 Schematic diagram of the structure of an electronic device that implements the smart device positioning method of an embodiment of the present application. DETAILED DESCRIPTION

[0024] In order to enable those skilled in the art to better understand the solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the embodiments described are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts should fall within the scope of protection of the present invention.

[0025] It should be noted that the terms "first", "second", etc. in the description and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that the numbers used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0026] Example 1

[0027] Figure 1A flowchart of a method for locating a smart device is provided for the first embodiment of the present application. This embodiment is applicable to the situation of locating a smart device. The method can be executed by a smart device positioning device. The smart device positioning device can be implemented in the form of hardware and / or software. The smart device positioning device can be configured in an electronic device. Figure 1 As shown, the method includes:

[0028] S110: Acquire current location data of the smart device; wherein the current location data includes at least one media access control address.

[0029] Smart devices refer to electronic devices that integrate sensors, processors, communication modules, and software systems to enable data collection, analysis, interaction, and automated control, such as smartphones, tablets, and smartwatches. A Media Access Control Address (MAC address) uniquely identifies a network device on a network. It consists of a 48-bit binary number, typically represented as 12 hexadecimal digits, with colons or hyphens separating each hexadecimal digit, such as 00:1A:2B:3C:4D:5E.

[0030] In an embodiment of the present application, in response to a positioning request for a smart device, the MAC addresses of network devices surrounding the smart device at the current moment can be obtained as the current positioning data of the smart device. Specifically, after receiving a positioning request for the smart device, the smart device can scan nearby Wi-Fi hotspots and record the SSID and MAC address of the scanned Wi-Fi hotspot as the current positioning data of the smart device. By obtaining the current positioning data of the smart device, that is, the MAC addresses of network devices near the smart device, the spatial position of the smart device can be determined based on the uniqueness of the MAC address and the actual spatial position corresponding to the MAC address.

[0031] S120 : Determine a target matching strategy corresponding to the current positioning data from a preset hierarchical matching strategy according to the number of media access control addresses in the current positioning data.

[0032] Among them, the preset hierarchical matching strategy is classified according to the density of network devices near the smart device, corresponding to high density, medium density and low density respectively.

[0033] In an embodiment of the present application, the density of network devices near a smart device can be determined based on the number of MAC addresses in the current positioning data, and a target matching strategy applicable to the current positioning data can be determined from a preset hierarchical matching strategy. Existing MAC address matching algorithms do not consider differences in network device density near smart devices. Compared to existing MAC address matching algorithms, the technical solution of the present application, by setting different matching strategies for different network device densities, can significantly reduce positioning errors in scenarios with low network device density, thereby improving the positioning accuracy of smart devices.

[0034] Optionally, the target matching strategy corresponding to the current positioning data is determined from a preset hierarchical matching strategy based on the number of media access control addresses in the current positioning data, including: if the number of media access control addresses is less than a first preset threshold, using historical positioning data whose matching degree with the media access control addresses in the current positioning data is greater than or equal to the first matching threshold as the target positioning data; if the number of media access control addresses is greater than or equal to the first preset threshold and less than a second preset threshold, using historical positioning data whose matching degree with the media access control addresses in the current positioning data is greater than or equal to the second matching threshold as the target positioning data; if the number of media access control addresses is greater than or equal to the second preset threshold, using historical positioning data whose matching degree with the media access control addresses in the current positioning data is greater than or equal to a third matching threshold as the target positioning data; wherein the second preset threshold is greater than the first preset threshold; the third matching threshold is greater than the second matching threshold, and the second matching threshold is greater than the first matching threshold.

[0035] In an embodiment of the present application, the second preset threshold is greater than the first preset threshold, the third matching threshold is greater than the second matching threshold, and the second matching threshold is greater than the first matching threshold. If the number of MAC addresses is less than the first preset threshold, it indicates that the network device density near the smart device is low and the original matching threshold has a low matching success rate. In this case, the matching threshold can be appropriately lowered, and historical positioning data with a matching degree greater than or equal to the first matching threshold with the MAC address in the current positioning data is used as the target positioning data. If the number of MAC addresses is greater than or equal to the first preset threshold and less than the second preset threshold, it indicates that the network device density near the smart device is moderate. In this case, the original matching threshold can be maintained, and historical positioning data with a matching degree greater than or equal to the second matching threshold with the MAC address in the current positioning data is used as the target positioning data. If the number of MAC addresses is greater than or equal to the second preset threshold, it indicates that the network device density near the smart device is high and the original matching threshold is prone to overmatching. In this case, the matching threshold can be appropriately increased, and historical positioning data with a matching degree greater than or equal to the third matching threshold with the MAC address in the current positioning data is used as the target positioning data. The first preset threshold, the second preset threshold, the first matching threshold, the second matching threshold, and the third matching threshold can all be set by technicians based on actual conditions and are not limited in this embodiment of the present application.

[0036] S130. According to the target matching strategy, target positioning data matching the current positioning data is determined from the historical positioning data cached by the system, and the longitude and latitude coordinates corresponding to the target positioning data are used as the longitude and latitude coordinates corresponding to the current positioning data to locate the smart device.

[0037] In an embodiment of the present application, after determining the target matching strategy corresponding to the current positioning data, the target positioning data that matches the current positioning data and the latitude and longitude coordinates corresponding to the target positioning data can be determined from the historical positioning data cached by the system based on the target matching strategy. The latitude and longitude coordinates corresponding to the target positioning data can then be used as the latitude and longitude coordinates corresponding to the current positioning data to complete the positioning of the smart device.

[0038] The technical solution of the embodiment of the present application obtains the current positioning data of the smart device; wherein the current positioning data includes at least one media access control address; based on the number of media access control addresses in the current positioning data, a target matching strategy corresponding to the current positioning data is determined from a preset hierarchical matching strategy; based on the target matching strategy, target positioning data matching the current positioning data is determined from historical positioning data cached by the system, and the longitude and latitude coordinates corresponding to the target positioning data are used as the longitude and latitude coordinates corresponding to the current positioning data to locate the smart device. The technical solution of the embodiment of the present application determines the target matching strategy applicable to the current positioning data through a preset hierarchical matching strategy and the number of media access control addresses in the current positioning data, and locates the smart device through the target positioning data determined by the target matching strategy, which can improve the positioning accuracy of smart devices under different network device densities, especially under low network device density.

[0039] Example 2

[0040] Figure 2 This is a flow chart of a method provided in Example 2 of this application. This embodiment of this application is optimized based on the above embodiment. For solutions not fully described in this embodiment of this application, please refer to the above embodiment. Figure 2 As shown, the method includes:

[0041] S210: Acquire current location data of the smart device; wherein the current location data includes at least one media access control address.

[0042] S220: Determine a target matching strategy corresponding to the current positioning data from a preset hierarchical matching strategy according to the number of media access control addresses in the current positioning data.

[0043] S230: According to the target matching strategy, target positioning data that matches the current positioning data is determined from the historical positioning data cached by the system, and the longitude and latitude coordinates corresponding to the target positioning data are used as the longitude and latitude coordinates corresponding to the current positioning data to locate the smart device.

[0044] S240: If there is no target positioning data matching the current positioning data in the historical positioning data cached by the system, obtain the latitude and longitude coordinates corresponding to the current positioning data from a third party to locate the smart device, and add the current positioning data as historical positioning data to the system cache.

[0045] In an embodiment of the present application, when determining target positioning data that matches the current positioning data from the historical positioning data cached by the system according to the target matching strategy, if the target positioning data that matches the current positioning data does not exist in the historical positioning data cached by the system, at this time, the longitude and latitude coordinates corresponding to the current positioning data can be obtained from a third party based on the MAC address in the current positioning data to locate the smart device, and the current positioning data can be added to the system cache as historical positioning data for subsequent smart device positioning.

[0046] Optionally, adding the current positioning data as historical positioning data to the system cache includes: if the amount of historical positioning data in the system cache reaches a preset cache amount threshold, replacing the historical positioning data with the lowest popularity score in the historical positioning data in the system cache according to the current positioning data; wherein the popularity score is used to reflect the frequency with which the historical positioning data is matched as target positioning data.

[0047] In an embodiment of the present application, when the current positioning data is added to the system cache as historical positioning data, if the number of historical positioning data in the system cache reaches a preset cache quantity threshold, it is necessary to calculate the popularity score of the historical positioning data in the system cache to reflect the frequency with which the historical positioning data in the system cache is matched as the target positioning data, and replace the historical positioning data with the lowest popularity score based on the current positioning data. It is understood that the lower the popularity score of the historical positioning data in the system cache, the less frequently the historical positioning data is matched as the target positioning data, that is, the less frequently the smart device is carried to the spatial location corresponding to the historical positioning data. In this case, the historical positioning data can be eliminated, thereby improving the utilization of the system cache and reducing resource consumption.

[0048] Optionally, replacing the historical positioning data with the lowest popularity score in the historical positioning data cached by the system based on the current positioning data includes: calculating the popularity score of the historical positioning data cached by the system based on a preset popularity score model; wherein the popularity score model is an exponential decay model; deleting the historical positioning data with the lowest popularity score from the system cache, and adding the current positioning data as historical positioning data to the system cache.

[0049] The preset popularity scoring model is an exponential decay model, and the time decay factor in the model can be used to control the speed at which the popularity of historical positioning data decays over time. It can be understood that the larger the value of the time decay factor, the faster the popularity of historical positioning data decays over time.

[0050] In an embodiment of the present application, the popularity score of the historical positioning data cached by the system can be calculated according to a preset popularity score model, and the historical positioning data with the lowest popularity score can be deleted from the system cache, and the current positioning data can be added to the system cache as the historical positioning data, thereby completing the replacement of the historical positioning data with the lowest popularity score according to the current positioning data.

[0051] Optionally, calculating the heat score of the historical positioning data cached by the system according to a preset heat score model includes: determining, for each piece of historical positioning data cached by the system, the number of times the historical positioning data is matched as target positioning data, and the time when the historical positioning data was most recently matched as target positioning data; inputting the number and the time into the preset heat score model to obtain the heat score of the historical positioning data.

[0052] In an embodiment of the present application, when calculating the popularity score of the historical positioning data cached by the system according to the preset popularity scoring model, for each piece of historical positioning data cached by the system, it is necessary to determine the number of times the historical positioning data has been matched as the target positioning data, as well as the time when the historical positioning data was most recently matched as the target positioning data, and input the number and time into the preset popularity scoring model to obtain the popularity score of the historical positioning data. Optionally, the preset popularity scoring model can be expressed as:

[0053] a=b*e ^ (-c*(mn));

[0054] Among them, a is the popularity score, b is the number of times the historical positioning data is matched as the target positioning data, and e ^ x is a natural exponential function, c is a time decay factor, m is the current time, and n is the time when the historical positioning data was last matched to the target positioning data.

[0055] Optionally, adding the current positioning data to the system cache further includes: if the amount of historical positioning data in the system cache does not reach a preset cache amount threshold, adding the current positioning data as historical positioning data to the system cache.

[0056] In an embodiment of the present application, when the current positioning data is added to the system cache as historical positioning data, if the amount of historical positioning data in the system cache does not reach the preset cache quantity threshold, at this time, the system's memory usage is not high, and the current positioning data can be directly added to the system cache as historical positioning data.

[0057] The technical solution of the embodiment of the present application obtains the current positioning data of the smart device; wherein the current positioning data includes at least one media access control address; based on the number of media access control addresses in the current positioning data, determines the target matching strategy corresponding to the current positioning data from a preset hierarchical matching strategy; based on the target matching strategy, determines the target positioning data that matches the current positioning data from the historical positioning data cached by the system, and uses the longitude and latitude coordinates corresponding to the target positioning data as the longitude and latitude coordinates corresponding to the current positioning data to locate the smart device; if the target positioning data that matches the current positioning data does not exist in the historical positioning data cached by the system, obtains the longitude and latitude coordinates corresponding to the current positioning data from a third party to locate the smart device, and adds the current positioning data as historical positioning data to the system cache. The technical solution of the embodiment of the present application determines the target matching strategy applicable to the current positioning data through the preset hierarchical matching strategy and the number of media access control addresses in the current positioning data, and determines the target positioning data to locate the smart device through the target matching strategy, which can improve the positioning accuracy of the smart device under different network device densities, especially under low network device density.

[0058] Example 3

[0059] Figure 3 This is a structural diagram of a smart device positioning device provided in Example 3 of the present application.

[0060] like Figure 3 As shown, the device includes:

[0061] The positioning data acquisition module 310 is used to obtain the current positioning data of the smart device; wherein the current positioning data includes at least one media access control address;

[0062] A matching strategy determination module 320 is configured to determine a target matching strategy corresponding to the current positioning data from a preset hierarchical matching strategy based on the number of media access control addresses in the current positioning data;

[0063] The smart device positioning module 330 is used to determine the target positioning data from the historical positioning data cached by the system according to the target matching strategy, and use the longitude and latitude coordinates corresponding to the target positioning data as the longitude and latitude coordinates corresponding to the current positioning data to locate the smart device.

[0064] Optionally, the matching strategy determination module 320 is specifically configured to:

[0065] If the number of the media access control addresses is less than a first preset threshold, using historical positioning data whose matching degree with the media access control addresses in the current positioning data is greater than or equal to the first matching threshold as target positioning data;

[0066] If the number of the media access control addresses is greater than or equal to a first preset threshold and less than a second preset threshold, use historical positioning data whose matching degree with the media access control addresses in the current positioning data is greater than or equal to the second matching threshold as target positioning data;

[0067] If the number of the media access control addresses is greater than or equal to a second preset threshold, using historical positioning data whose matching degree with the media access control addresses in the current positioning data is greater than or equal to a third matching threshold as target positioning data;

[0068] Among them, the second preset threshold is greater than the first preset threshold; the third matching threshold is greater than the second matching threshold, and the second matching threshold is greater than the first matching threshold.

[0069] Optionally, the device further includes:

[0070] A positioning data caching module is used to obtain the latitude and longitude coordinates corresponding to the current positioning data from a third party to locate the smart device if there is no target positioning data matching the current positioning data in the historical positioning data cached by the system, and add the current positioning data as historical positioning data to the system cache.

[0071] Optionally, the positioning data caching module includes:

[0072] The first positioning data caching unit is configured to replace the historical positioning data with the lowest popularity score among the historical positioning data cached by the system according to the current positioning data if the amount of historical positioning data cached by the system reaches a preset cache amount threshold; wherein the popularity score is used to reflect the frequency with which the historical positioning data is matched as target positioning data.

[0073] Optionally, the first positioning data cache unit includes:

[0074] A popularity score calculation subunit, configured to calculate the popularity score of the historical positioning data cached by the system according to a preset popularity score model; wherein the popularity score model is an exponential decay model;

[0075] The positioning data cache subunit is used to delete the historical positioning data with the lowest popularity score from the system cache, and add the current positioning data as historical positioning data to the system cache.

[0076] Optionally, the heat score calculation subunit is specifically configured to:

[0077] For each piece of historical positioning data cached by the system, determine the number of times the historical positioning data has been matched as target positioning data, and the time when the historical positioning data was most recently matched as target positioning data;

[0078] The number of times and the time are input into a preset popularity rating model to obtain a popularity rating of the historical positioning data.

[0079] Optionally, the positioning data caching module further includes:

[0080] The second positioning data cache unit is configured to add the current positioning data as historical positioning data to the system cache if the amount of historical positioning data cached by the system does not reach a preset cache amount threshold.

[0081] The smart device positioning apparatus provided in the embodiments of the present application can execute the smart device positioning method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.

[0082] Example 4

[0083] Figure 4 A schematic diagram of the structure of an electronic device 10 that can be used to implement an embodiment of the present application is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.

[0084] like Figure 4 As shown, the electronic device 10 includes at least one processor 11 and a memory, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., which is communicatively connected to the at least one processor 11. The memory stores a computer program that can be executed by the at least one processor. The processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 into the random access memory (RAM) 13. Various programs and data required for the operation of the electronic device 10 can also be stored in the RAM 13. The processor 11, ROM 12, and RAM 13 are connected to each other via a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.

[0085] Multiple components in the electronic device 10 are connected to the I / O interface 15, including an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a magnetic disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices via a computer network such as the Internet and / or various telecommunication networks.

[0086] The processor 11 can be any general-purpose and / or specialized processing component with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various specialized artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as the smart device positioning method.

[0087] In some embodiments, the smart device positioning method can be implemented as a computer program that is tangibly contained in a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program can be loaded and / or installed on electronic device 10 via ROM 12 and / or communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more steps of the smart device positioning method described above can be performed. Alternatively, in other embodiments, processor 11 can be configured to perform the smart device positioning method in any other appropriate manner (e.g., by means of firmware).

[0088] Various embodiments of the systems and techniques described herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), system-on-chip systems (SOCs), programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments can include being implemented in one or more computer programs that are executable and / or interpreted on a programmable system that includes at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0089] Computer programs for implementing the methods of the present application may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when the computer program is executed by the processor, the functions / operations specified in the flowcharts and / or block diagrams are implemented. The computer program may be executed entirely on the machine, partially on the machine, as a stand-alone software package, partially on the machine and partially on a remote machine, or entirely on a remote machine or server.

[0090] In the context of the present application, a computer-readable storage medium can be a tangible medium that can contain or store a computer program for use by an instruction execution system, device or equipment or used in combination with an instruction execution system, device or equipment. A computer-readable storage medium can include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium can be a machine-readable signal medium. A more specific example of a machine-readable storage medium can include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0091] To provide interaction with a user, the systems and techniques described herein can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).

[0092] The systems and techniques described herein can be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.

[0093] A computing system may include clients and servers. The clients and servers are typically remote from each other and typically interact via a communication network. This client-server relationship arises through computer programs running on the respective computers, creating a client-server relationship. The server may be a cloud server, also known as a cloud computing server or cloud host. This server is a hosting product within the cloud computing service ecosystem that addresses the management difficulties and limited scalability of traditional physical hosting and VPS services.

[0094] It should be understood that the various forms of the processes shown above can be used to reorder, add, or delete steps. For example, the steps described in this application can be performed in parallel, sequentially, or in a different order, as long as the desired results of the technical solution of the present invention can be achieved. This is not limited herein.

[0095] The above specific embodiments do not constitute a limitation on the scope of protection of this application. Those skilled in the art will appreciate that various modifications, combinations, sub-combinations, and substitutions may be made based on design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of the present invention shall be included within the scope of protection of this application.

Claims

1. A method for positioning a smart device, characterized in that: The method comprises: Acquire current location data of the smart device; wherein the current location data includes at least one media access control address; Determining a target matching strategy corresponding to the current positioning data from a preset hierarchical matching strategy according to the number of media access control addresses in the current positioning data; According to the target matching strategy, target positioning data that matches the current positioning data is determined from the historical positioning data cached by the system, and the longitude and latitude coordinates corresponding to the target positioning data are used as the longitude and latitude coordinates corresponding to the current positioning data to locate the smart device.

2. The method according to claim 1, characterized in that The determining, based on the number of media access control addresses in the current positioning data, a target matching strategy corresponding to the current positioning data from a preset hierarchical matching strategy includes: If the number of the media access control addresses is less than a first preset threshold, using historical positioning data whose matching degree with the media access control addresses in the current positioning data is greater than or equal to the first matching threshold as target positioning data; If the number of the media access control addresses is greater than or equal to a first preset threshold and less than a second preset threshold, use historical positioning data whose matching degree with the media access control addresses in the current positioning data is greater than or equal to the second matching threshold as target positioning data; If the number of the media access control addresses is greater than or equal to a second preset threshold, using historical positioning data whose matching degree with the media access control addresses in the current positioning data is greater than or equal to a third matching threshold as target positioning data; Among them, the second preset threshold is greater than the first preset threshold; the third matching threshold is greater than the second matching threshold, and the second matching threshold is greater than the first matching threshold.

3. The method according to claim 1, characterized in that The method further comprises: If there is no target positioning data matching the current positioning data in the historical positioning data cached by the system, the latitude and longitude coordinates corresponding to the current positioning data are obtained from a third party to locate the smart device, and the current positioning data is added to the system cache as historical positioning data.

4. The method according to claim 3, characterized in that The adding the current positioning data as historical positioning data to the system cache includes: If the number of historical positioning data cached by the system reaches a preset cache number threshold, the historical positioning data with the lowest popularity score in the historical positioning data cached by the system is replaced according to the current positioning data; wherein the popularity score is used to reflect the frequency with which the historical positioning data is matched as the target positioning data.

5. The method according to claim 4, characterized in that The replacing, according to the current positioning data, the historical positioning data with the lowest popularity score in the historical positioning data cached by the system includes: Calculating the popularity score of the historical positioning data cached by the system according to a preset popularity score model; wherein the popularity score model is an exponential decay model; The historical positioning data with the lowest popularity score is deleted from the system cache, and the current positioning data is added to the system cache as the historical positioning data.

6. The method according to claim 5, characterized in that Calculating the popularity score of the historical positioning data cached by the system according to the preset popularity score model includes: For each piece of historical positioning data cached by the system, determine the number of times the historical positioning data has been matched as target positioning data, and the time when the historical positioning data was most recently matched as target positioning data; The number of times and the time are input into a preset popularity rating model to obtain a popularity rating of the historical positioning data.

7. The method according to claim 3, characterized in that The adding the current positioning data to the system cache further includes: If the amount of historical positioning data cached by the system does not reach a preset cache amount threshold, the current positioning data is added to the system cache as historical positioning data.

8. A smart device positioning device, characterized in that: The device comprises: A positioning data acquisition module, configured to acquire current positioning data of the smart device; wherein the current positioning data includes at least one media access control address; a matching strategy determination module, configured to determine, based on the number of media access control addresses in the current positioning data, a target matching strategy corresponding to the current positioning data from a preset hierarchical matching strategy; The smart device positioning module is used to determine the target positioning data from the historical positioning data cached by the system according to the target matching strategy, and use the longitude and latitude coordinates corresponding to the target positioning data as the longitude and latitude coordinates corresponding to the current positioning data to locate the smart device.

9. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program that can be executed by the at least one processor. The computer program is executed by the at least one processor to enable the at least one processor to execute the smart device positioning method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the smart device positioning method according to any one of claims 1 to 7 when executed.

Citation Information

Patent Citations

  • Indoor positioning method based on classified thresholds and signal strength weight

    CN103209478A

  • Positioning method and device, storage medium and mobile terminal

    CN108111971A

  • Positioning method and device, electronic equipment and computer storage medium

    CN110691318A

  • Positioning correction method and system and related equipment

    CN111601232A

  • Method and apparatus of data processing, electronic device and storage medium

    EP4474973A1