Device positioning method and apparatus, electronic device, and computer storage medium

By acquiring and comparing the latest and historical network interface identification information in the device, and sending a location request only when the information does not match, the problem of high device location costs is solved, and accurate device location updates and cost optimization are achieved.

CN122120708APending Publication Date: 2026-05-29GUANGDONG STARTHING TECH CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
GUANGDONG STARTHING TECH CO LTD
Filing Date
2024-11-28
Publication Date
2026-05-29

AI Technical Summary

Technical Problem

When there are a large number of devices, the operational costs incurred by the platform in calling third-party map interfaces are high when the network information of the devices is used regularly to update the location.

Method used

By obtaining the latest network interface identification information of the device after a preset time interval, comparing it with historical information, and only sending a device location request to the server when the identification information does not match, the device location information can be obtained.

Benefits of technology

This effectively reduced the number of calls to third-party map interfaces, lowered operating costs, and ensured accurate updates of device locations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122120708A_ABST
    Figure CN122120708A_ABST
Patent Text Reader

Abstract

The application provides a device positioning method and device, electronic equipment and computer storage medium, and belongs to the technical field of communication. The method comprises the following steps: obtaining the latest network interface identification information of a region after logging in to a server or uploading the network interface identification information of the region to the server within a preset time interval; the network interface identification information comprises one of base station information and device information of a wireless signal device; if the latest network interface identification information does not match the stored historical network interface identification information, it is determined that there is a device position change; sending a device positioning request to the server based on the latest network interface identification information; the device positioning request is used to instruct the server to call a map service interface based on the latest network interface identification information to obtain device position information corresponding to the latest network interface identification information. The application can effectively reduce the operating cost caused by calling a third-party map interface while realizing device positioning.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of communication technology, and in particular to a device positioning method, apparatus, electronic device, and computer storage medium. Background Technology

[0002] Most self-service kiosks are non-mobile devices, typically fixed in certain locations and not frequently moved. They are widely used in banking, retail, and catering, providing convenient services to users. These devices are usually stationary, placed in specific locations. With the development of IoT technology, location management of self-service kiosks is becoming increasingly important.

[0003] The server needs to obtain the approximate location information of the devices for device management and maintenance. Currently, the server can obtain the approximate location information of devices through methods such as GPS positioning, network positioning, or user registration. However, due to the nature of self-service devices, the communication devices generally do not contain GPS modules, and relying on user registration is prone to data lag or inaccurate data.

[0004] Therefore, the current solution is to periodically update the location using the device's network information. However, this positioning usually requires calling a third-party map interface to convert network information into geographic location. With a large number of devices, the cost of calling third-party map interfaces represents a significant operational expense for the platform. Summary of the Invention

[0005] This application provides a device positioning method, apparatus, electronic device, and computer storage medium to solve the problem of high operating costs caused by the platform calling third-party map interfaces when the number of devices is large, which is a problem with current device positioning technology that uses network information of devices to update their location periodically.

[0006] This application provides a device positioning method, the method comprising: After a preset time interval between logging into the server or uploading the network interface identification information of the area to the server, the latest network interface identification information of the area is obtained; the network interface identification information includes one of base station information and device information of the device where the wireless signal is located; If the latest network interface identification information does not match the stored historical network interface identification information, it is determined that there has been a change in the device location. The device location request is sent to the server based on the latest network interface identification information; the device location request is used to instruct the server to call the map service interface based on the latest network interface identification information in order to obtain the device location information corresponding to the latest network interface identification information.

[0007] According to the device positioning method provided in this application, after obtaining the latest network interface identification information of the area, if the latest network interface identification information of the area is the latest base station information of the area, and the latest base station information of the area includes a base station identifier, the method further includes: If the most recent base station information in the stored historical base station information contains the identifier of the base station in the latest base station information of the area, determine that the latest network interface identification information matches the stored historical network interface identification information. If the most recent base station information in the stored historical base station information does not contain the base station identifier from the latest base station information for the area, it is determined that the latest network interface identification information does not match the stored historical network interface identification information.

[0008] According to the device positioning method provided in this application, after obtaining the latest network interface identification information of the current area, if the latest network interface identification information of the current area is the latest base station information of the current area, and the latest base station information of the current area includes identifiers of multiple base stations, the method further includes: If the ratio of the number of target identifiers to the total number of identifiers in the most recent base station information in the stored historical base station information is greater than or equal to a first preset threshold, then the latest network interface identification information is determined to match the stored historical network interface identification information; wherein, the target identifier is the same as the identifier of the base station in the latest base station information of the region. If the ratio of the number of target identifiers to the total number of identifiers in the most recent base station information stored in the historical base station information is less than a first preset threshold, it is determined that the latest network interface identification information does not match the stored historical network interface identification information.

[0009] According to the device positioning method provided in this application, after obtaining the latest network interface identification information of the current area, if the latest network interface identification information of the current area is the device information of the device where the latest wireless signal is located in the current area, and the device information of the device where the latest wireless signal is located in the current area includes multiple device identifiers, it further includes: If the ratio of the number of target device identifiers to the total number of device identifiers in the device information of the device where the most recent wireless signal is located is greater than or equal to a second preset threshold, then the latest network interface identification information is determined to match the stored historical network interface identification information; wherein, the target device identifier is the same as the device identifier in the device information of the device where the latest wireless signal is located in the area. If the ratio of the number of target device identifiers to the total number of device identifiers in the device information of the device where the most recent wireless signal was located is less than a second preset threshold, it is determined that the latest network interface identification information does not match the stored historical network interface identification information.

[0010] According to the device positioning method provided in this application, after obtaining the latest network interface identification information of the area, it further includes: Based on the preset storage path, historical network interface identification information is obtained from the memory.

[0011] According to the device positioning method provided in this application, after obtaining historical network interface identification information from the memory based on a preset storage path, the method further includes: If the historical network interface identification information is empty, a device location request is sent to the server based on the latest network interface identification information; If the historical network interface identification information is not empty, the latest network interface identification information is compared with the historical network interface identification information, and the step of determining that there is a change in device location if the latest network interface identification information does not match the stored historical network interface identification information is executed.

[0012] According to the device positioning method provided in this application, the method further includes: Upon receiving the information reporting instruction from the logged-in server, the system obtains the latest network interface identification information for its location and sends it to the logged-in server.

[0013] This application also provides a device positioning apparatus, comprising: The acquisition module is used to acquire the latest network interface identification information of the current area after a preset time interval between logging into the server or uploading the network interface identification information of the current area to the server; the network interface identification information includes one of base station information and device information of the device where the wireless signal is located; The determination module is used to determine that if the latest network interface identification information matches the stored historical network interface identification information, there is no change in the device location. The sending module is used to send a device location request to the server based on the latest network interface identification information; the device location request is used to instruct the server to call the map service interface based on the latest network interface identification information to obtain the device location information corresponding to the latest network interface identification information.

[0014] This application also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement any of the device positioning methods described above.

[0015] This application also provides a computer storage medium having a computer program stored thereon, which, when executed by a processor, implements the device positioning method as described above.

[0016] The device positioning method, apparatus, electronic device, and computer storage medium provided in this application, after logging into a server or uploading network interface identification information of the area to the server at a preset time interval, obtains the latest network interface identification information of the area, including base station information and device information of the device where the wireless signal is located. Further, it can determine whether the latest network interface identification information matches the stored historical network interface identification information. If it is determined that the latest network interface identification information does not match the stored historical network interface identification information, it is determined that there has been a change in device location. Then, based on the latest network interface identification information, a device positioning request can be sent to the server, allowing the server to call a map service interface based on the latest network interface identification information to obtain the device location information corresponding to the latest network interface identification information. Because the device location information is obtained through the server only when a change in device location is determined based on the network interface identification information, the operating costs incurred by calling third-party map interfaces can be effectively reduced while achieving device positioning. Attached Figure Description

[0017] To more clearly illustrate the technical solutions in 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.

[0018] Figure 1 This is a flowchart illustrating the device positioning method provided in this application.

[0019] Figure 2 This is a schematic diagram of a scenario for the device positioning method provided in this application.

[0020] Figure 3This is a schematic diagram of the structure of the electronic device provided in this application. Detailed Implementation

[0021] To make the objectives, technical solutions, and advantages of this application clearer, the technical solutions 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.

[0022] It should be noted that, in the description of this application, the terms "comprising," "including," or any other variations thereof are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element. The terms "upper," "lower," etc., indicating orientation or positional relationships based on the orientation or positional relationships shown in the accompanying drawings, are used only for the convenience of describing this application and for simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be construed as a limitation of this application. Unless otherwise expressly specified and limited, the terms "installed," "connected," and "linked" should be interpreted broadly, for example, as a fixed connection, a detachable connection, or an integral connection; a mechanical connection or an electrical connection; a direct connection or an indirect connection through an intermediate medium; or a connection within two elements. Those skilled in the art can understand the specific meaning of the above terms in this application according to the specific circumstances.

[0023] The terms "first," "second," etc., used in this application are used to distinguish similar objects and not to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that embodiments of this application can be implemented in orders other than those illustrated or described herein, and the objects distinguished by "first," "second," etc., are generally of the same class, without limiting the number of objects; for example, a first object can be one or more. Furthermore, "and / or" indicates at least one of the connected objects, and the character " / " generally indicates that the preceding and following objects have an "or" relationship.

[0024] The following is combined Figures 1-3 This application describes the device positioning method, apparatus, electronic equipment, and medium.

[0025] Figure 1 This is a flowchart illustrating the device positioning method provided in this application, such as... Figure 1 As shown, the method includes the following steps 100 to 400.

[0026] Step 100: After logging into the server or uploading the network interface identification information of the area to the server at a preset time interval, obtain the latest network interface identification information of the area; the network interface identification information includes one of the base station information and the device information of the device where the wireless signal is located.

[0027] Step 200: If the latest network interface identification information does not match the stored historical network interface identification information, it is determined that there has been a change in the device location.

[0028] Step 300: Send a device location request to the server based on the latest network interface identification information; the device location request is used to instruct the server to call the map service interface based on the latest network interface identification information in order to obtain the device location information corresponding to the latest network interface identification information.

[0029] It should be noted that the device positioning method provided in this application can be applied to self-service devices in industries including but not limited to banking, retail, and catering. For example, it can be used for self-service ordering machines, vending machines, self-service checkout machines, self-service receipt dispensers, ATMs, etc. The communication device of the self-service device in this application may not include a GPS module. In some embodiments, the self-service device may be equipped with a Wireless Fidelity (WIFI) module.

[0030] In this application, the self-service device can obtain the latest network interface identification information for its location after logging into the server. Alternatively, it can obtain the latest network interface identification information for its location after a preset time interval each time it uploads the network interface identification information for its location to the server.

[0031] Specifically, logging into the server from the self-service device refers to the process of logging into the device after it is powered on and initialized. This process is completed automatically by the self-service device according to the set program. The self-service device will send specific information to the server. After receiving the information, the server will confirm the device login and change the device status to online. After receiving the response from the server, the self-service device will confirm that it has logged in and will not retry.

[0032] The network interface identification information includes either base station information or device information of the device where the wireless signal is located. Furthermore, the preset time interval can be set and adjusted according to actual location acquisition needs; this application does not impose specific limitations on it.

[0033] In this application, base station information or device information of the device where the wireless signal is located can be selected as network interface identification information according to actual needs.

[0034] Specifically, in this application, the self-service device can obtain the latest base station identifier (ID) in the area or obtain the device identifier of the device (i.e., router) where the WIFI is located through the WIFI module. The device identifier can be, for example, a Media Access Control (MAC) address.

[0035] It should be noted that, in this application, after the self-service device obtains the latest network interface identification information of its location each time, it will store the obtained information in a designated area of ​​the memory according to a pre-set storage path. Thus, the memory can store historical network interface identification information such as historical base station information or historical device information.

[0036] Furthermore, after obtaining the latest network interface identification information for the area, it also includes: Based on the preset storage path, historical network interface identification information is obtained from the memory.

[0037] Specifically, after obtaining the latest network interface identification information for the area, the self-service device can retrieve historical network interface identification information from the memory based on the preset storage conditions of the network interface identification information, so as to facilitate the comparison between the latest network interface identification information and the historical network interface identification information.

[0038] By acquiring historical network interface identification information, the latest network interface identification information can be matched with the historical information. This allows for the determination of a device location change when a mismatch is found between the latest and stored historical network interface identification information. Furthermore, a device location request can be sent to the server based on the latest network interface identification information. The server can then invoke the map service interface to obtain the corresponding device location information. Since device location information is only obtained through the server when a change in device location is confirmed based on network interface identification information, the operational costs associated with calling third-party map interfaces can be effectively reduced while still achieving device location tracking.

[0039] Furthermore, after retrieving historical network interface identification information from the memory based on a preset storage path, the process also includes: If the historical network interface identification information is empty, send a device location request to the server based on the latest network interface identification information; If the historical network interface identification information is not empty, compare the latest network interface identification information with the historical network interface identification information, and if the latest network interface identification information does not match the stored historical network interface identification information, determine that there has been a change in the device location.

[0040] Specifically, after retrieving historical network interface identification information from the memory based on a preset storage path, if it is determined that the historical network interface identification information is empty, that is, the historical network interface identification information cannot be retrieved from the memory based on the preset storage path, the self-service device can determine that no device positioning has been performed. Therefore, it can send a device positioning request to the server based on the latest network interface identification information, thereby requesting the server to call the map service interface based on the latest network interface identification information to obtain the device location information (i.e., the location information of the self-service device) corresponding to the latest network interface identification information.

[0041] If it is determined that the historical network interface identification information is not empty, the self-service device can compare the latest network interface identification information with the historical network interface identification information to determine whether the latest network interface identification information matches the stored historical network interface identification information.

[0042] If the latest network interface identification information is determined to match the stored historical network interface identification information, the self-service device can determine that its location has not changed and therefore does not send a device location request to the server.

[0043] When there is no change in device location, this application does not require sending a device location request to the server, thereby reducing the number of times the server calls the map service interface for device location. This effectively reduces the operating costs incurred by calling third-party map interfaces while achieving device location.

[0044] Furthermore, if the latest network interface identification information does not match the stored historical network interface identification information, the self-service device can determine that its location has changed. Therefore, the self-service device can send a device location request to the server based on the latest network interface identification information, thereby requesting the server to call the map service interface based on the latest network interface identification information to obtain the device location information corresponding to the latest network interface identification information.

[0045] It should be noted that this application determines whether the self-service equipment has changed location by matching the latest network interface identification information with the stored historical network interface identification information. This is a rough judgment of location change, which can identify whether the equipment location has changed significantly.

[0046] After receiving a device location request, the server can call a third-party map service interface (Application Programming Interface, API) to query the detailed geographic location information corresponding to the latest network interface identification information in the device location request, and use this information as the device location information of the self-service device, thereby updating the location information of the self-service device. The specific location information query process is not limited in this application.

[0047] The device positioning method provided in this application, after logging into the server or uploading network interface identification information of the area to the server at a preset time interval, obtains the latest network interface identification information of the area, including base station information and device information of the device where the wireless signal is located. It further determines whether the latest network interface identification information matches the stored historical network interface identification information. If the latest network interface identification information does not match the stored historical network interface identification information, it determines that there has been a change in device location. Then, it sends a device positioning request to the server based on the latest network interface identification information, enabling the server to call a map service interface based on the latest network interface identification information to obtain the device location information corresponding to the latest network interface identification information. Since the device location information is obtained through the server only when a change in device location is determined based on the network interface identification information, the operational costs incurred by calling third-party map interfaces can be effectively reduced while achieving device positioning.

[0048] In one embodiment, after obtaining the latest network interface identification information for the area, if the latest network interface identification information for the area is the latest base station information for the area, and the latest base station information for the area includes a base station identifier, the method further includes: If the most recent base station information in the stored historical base station information contains the identifier of the base station in the latest base station information of the area, determine that the latest network interface identification information matches the stored historical network interface identification information. If the most recent base station information in the stored historical base station information does not contain the base station identifier from the latest base station information for the area, it is determined that the latest network interface identification information does not match the stored historical network interface identification information.

[0049] Specifically, if the comparison determines that the latest network interface identification information of the area is the latest base station information of the area, and the latest base station information of the area includes a base station identifier, the self-service device can compare the identifier of the latest base station obtained in the area with the identifier of the base station in the most recent base station information in the historical base station information.

[0050] If the most recent base station information in the stored historical base station information contains the base station identifier from the latest base station information for the current area, it indicates that the location of the self-service device has not changed significantly. Therefore, the self-service device can determine that the latest network interface identification information matches the stored historical network interface identification information. Since the location of the self-service device has not changed significantly, device positioning is not required, and no device positioning request is sent to the server.

[0051] If, after comparison, it is determined that the most recent base station information in the stored historical base station information does not contain the base station identifier from the latest base station information in the area, it indicates that the location of the self-service device may have changed significantly. Therefore, the self-service device can determine that the latest network interface identification information does not match the stored historical network interface identification information. Consequently, it can send a device location request to the server based on the latest network interface identification information, thereby requesting the server to call the map service interface based on the latest network interface identification information to obtain the device location information corresponding to the latest network interface identification information.

[0052] This application, based on the comparison of the latest network interface identification information with historical network interface identification information, can determine whether there is a change in device location. Only when a change in device location is determined will the device location information be obtained through the server. This can effectively reduce the operating costs incurred by calling third-party map interfaces while achieving device positioning.

[0053] In one embodiment, after obtaining the latest network interface identification information for the area, if the latest network interface identification information for the area is the latest base station information for the area, and the latest base station information for the area includes identifiers of multiple base stations, the method further includes: If the ratio of the number of target identifiers to the total number of identifiers in the most recent base station information stored in the historical base station information is greater than or equal to a first preset threshold, the latest network interface identification information is determined to match the stored historical network interface identification information; wherein, the target identifier is the same as the identifier of the base station in the latest base station information of the area. If the ratio of the number of target identifiers to the total number of identifiers in the most recent base station information stored in the historical base station information is less than a first preset threshold, it is determined that the latest network interface identification information does not match the stored historical network interface identification information.

[0054] Specifically, if it is determined that the latest network interface identification information of the area is the latest base station information of the area, and the latest base station information of the area includes the identifiers of multiple base stations, the self-service device can query the identifiers of each base station in the most recent base station information of the historical base station information to see if there is a target identifier that is the same as the identifiers of each base station recently obtained in the area.

[0055] Furthermore, if, after querying and confirming the most recent stored historical base station information, the ratio of the number of target identifiers to the total number of identifiers in the most recent base station information is greater than or equal to a first preset threshold, it indicates that the location of the self-service device has not changed significantly. Therefore, the self-service device can determine that the latest network interface identification information matches the stored historical network interface identification information. Since the location of the self-service device has not changed significantly, device positioning is not required, and no device positioning request is sent to the server. The first preset threshold is a ratio value that is set and adjusted according to actual needs.

[0056] If, after querying, the ratio of the number of target identifiers to the total number of identifiers in the most recent historical base station information is less than a first preset threshold, it indicates that the location of the self-service device may have changed significantly. Therefore, the self-service device can determine that the latest network interface identification information does not match the stored historical network interface identification information. Consequently, it can send a device location request to the server based on the latest network interface identification information, thereby requesting the server to call the map service interface based on the latest network interface identification information to obtain the device location information corresponding to the latest network interface identification information.

[0057] This application, based on the comparison of the latest network interface identification information with historical network interface identification information, can determine whether there is a change in device location. Only when a change in device location is determined will the device location information be obtained through the server. This can effectively reduce the operating costs incurred by calling third-party map interfaces while achieving device positioning.

[0058] In one embodiment, after obtaining the latest network interface identification information for the current area, if the latest network interface identification information for the current area is the device information of the device where the latest wireless signal is located, and the device information of the device where the latest wireless signal is located includes multiple device identifiers, the system further includes: If the ratio of the number of target device identifiers to the total number of device identifiers in the device information of the device where the most recent wireless signal is located in the stored historical device information is greater than or equal to a second preset threshold, then the latest network interface identification information is determined to match the stored historical network interface identification information; wherein, the target device identifier is the same as the device identifier in the device information of the device where the latest wireless signal is located in the area. If the ratio of the number of target device identifiers to the total number of device identifiers in the device information of the device where the most recent wireless signal was located is less than a second preset threshold, it is determined that the latest network interface identification information does not match the stored historical network interface identification information.

[0059] Specifically, if the latest network interface identification information of the area is determined to be the device information of the device where the latest wireless signal is located, and the device information of the device where the latest wireless signal is located includes multiple device identifiers, the self-service device can query the device information of the device where the most recent wireless signal is located in the historical device information to see if there is a target device identifier that is the same as the latest device identifiers obtained in the area.

[0060] If, after querying and confirming the most recent wireless signal location information of the stored historical device information, the ratio of the number of target device identifiers to the total number of device identifiers in the most recent wireless signal location information is greater than or equal to a second preset threshold, it indicates that the location of the self-service device has not changed significantly. Therefore, the self-service device can determine that the latest network interface identification information matches the stored historical network interface identification information. Since the location of the self-service device has not changed significantly, device positioning is not required, and no device positioning request is sent to the server. The second preset threshold is a ratio value that is set and adjusted according to actual needs.

[0061] If, after querying and confirming the most recent wireless signal information of the stored historical device information, the ratio of the number of target device identifiers to the total number of device identifiers in the device information of the most recent wireless signal is less than a second preset threshold, it indicates that the location of the self-service device may have changed significantly. Therefore, the self-service device can determine that the latest network interface identification information does not match the stored historical network interface identification information, and can then send a device location request to the server based on the latest network interface identification information. This request will then request the server to call the map service interface based on the latest network interface identification information to obtain the device location information corresponding to the latest network interface identification information.

[0062] This application, based on the comparison of the latest network interface identification information with historical network interface identification information, can determine whether there is a change in device location. Only when a change in device location is determined will the device location information be obtained through the server. This can effectively reduce the operating costs incurred by calling third-party map interfaces while achieving device positioning.

[0063] In one embodiment, the method further includes: Upon receiving the information reporting instruction from the logged-in server, the system obtains the latest network interface identification information for its location and sends it to the logged-in server.

[0064] Specifically, in this application, the server can proactively send information reporting instructions to the self-service device based on the actual location acquisition needs, requesting the self-service device to report the latest network interface identification information of the current area, so that the server can call the map service interface based on the latest network interface identification information to obtain the device location information corresponding to the latest network interface identification information.

[0065] Therefore, after receiving the information reporting instruction from the logged-in server, the self-service device can obtain the latest network interface identification information for its area.

[0066] Furthermore, the latest network interface identification information of the current location is sent to the logged-in server.

[0067] This application obtains the latest network interface identification information of the area when it receives an information reporting instruction from the logged-in server and sends it to the logged-in server, thereby meeting the need to obtain the location information of self-service devices and realizing the positioning of self-service devices.

[0068] Figure 2 This is a schematic diagram illustrating a scenario of the device positioning method provided in this application, such as... Figure 2 As shown, in one embodiment, after the self-service device is powered on and initialized, it can send a login request to the server. After receiving the login request, the server confirms that the device has successfully logged in and changes the status of the self-service device to online. After receiving the response from the server, the self-service device confirms that it has completed the login and will not retry.

[0069] Furthermore, this application includes an active reporting mechanism. Specifically, the self-service device can continuously monitor changes in the core base station information. When a change in base station information is detected, the device reports the base station information to the server. The server can then request the smart hardware positioning API, specifically by calling the map service API, to obtain the detailed geographical location information corresponding to the base station information returned by the map service API, and update and store the location information.

[0070] This application also includes a passive query mechanism. Specifically, the server can send a location query request to the self-service device. After receiving the location query request, the self-service device obtains the current base station information and reports the base station information to the server.

[0071] The server can request the smart hardware positioning API, specifically by calling the map service API, to obtain the detailed geographical location information corresponding to the base station information returned by the map service API, and then update and store the location information.

[0072] The device positioning apparatus provided in this application is described below. The device positioning apparatus described below and the device positioning method described above can be referred to in correspondence.

[0073] Furthermore, this application also provides a device positioning apparatus.

[0074] The equipment positioning device includes: The acquisition module is used to acquire the latest network interface identification information of the current area after a preset time interval between logging into the server or uploading the network interface identification information of the current area to the server; the network interface identification information includes one of base station information and device information of the device where the wireless signal is located; The determination module is used to determine that if the latest network interface identification information matches the stored historical network interface identification information, there is no change in the device location. The sending module is used to send a device location request to the server based on the latest network interface identification information; the device location request is used to instruct the server to call the map service interface based on the latest network interface identification information to obtain the device location information corresponding to the latest network interface identification information.

[0075] In one embodiment, the sending module is further configured to: Upon receiving the information reporting instruction from the logged-in server, the system obtains the latest network interface identification information for its location and sends it to the logged-in server.

[0076] In one embodiment, after acquiring the latest network interface identification information of the area, if the latest network interface identification information of the area is the latest base station information of the area, and the latest base station information of the area includes a base station identifier, the acquisition module is further configured to: If the most recent base station information in the stored historical base station information contains the identifier of the base station in the latest base station information of the area, determine that the latest network interface identification information matches the stored historical network interface identification information. If the most recent base station information in the stored historical base station information does not contain the base station identifier from the latest base station information for the area, it is determined that the latest network interface identification information does not match the stored historical network interface identification information.

[0077] In one embodiment, after acquiring the latest network interface identification information of the area, if the latest network interface identification information of the area is the latest base station information of the area, and the latest base station information of the area includes identifiers of multiple base stations, the acquisition module is further configured to: If the ratio of the number of target identifiers to the total number of identifiers in the most recent base station information in the stored historical base station information is greater than or equal to a first preset threshold, then the latest network interface identification information is determined to match the stored historical network interface identification information; wherein, the target identifier is the same as the identifier of the base station in the latest base station information of the region. If the ratio of the number of target identifiers to the total number of identifiers in the most recent base station information stored in the historical base station information is less than a first preset threshold, it is determined that the latest network interface identification information does not match the stored historical network interface identification information.

[0078] In one embodiment, after acquiring the latest network interface identification information of the area, if the latest network interface identification information of the area is the device information of the device where the latest wireless signal is located, and the device information of the device where the latest wireless signal is located includes multiple device identifiers, the acquisition module is further configured to: If the ratio of the number of target device identifiers to the total number of device identifiers in the device information of the device where the most recent wireless signal is located is greater than or equal to a second preset threshold, then the latest network interface identification information is determined to match the stored historical network interface identification information; wherein, the target device identifier is the same as the device identifier in the device information of the device where the latest wireless signal is located in the area. If the ratio of the number of target device identifiers to the total number of device identifiers in the device information of the device where the most recent wireless signal was located is less than a second preset threshold, it is determined that the latest network interface identification information does not match the stored historical network interface identification information.

[0079] In one embodiment, the acquisition module is further configured to: Based on the preset storage path, historical network interface identification information is obtained from the memory.

[0080] In one embodiment, the acquisition module is further configured to: If the historical network interface identification information is empty, a device location request is sent to the server based on the latest network interface identification information; If the historical network interface identification information is not empty, the latest network interface identification information is compared with the historical network interface identification information, and the step of determining that there is a change in device location if the latest network interface identification information does not match the stored historical network interface identification information is executed.

[0081] The device positioning device provided in this application embodiment, after logging into a server or uploading network interface identification information of its location to the server at a preset time interval, obtains the latest network interface identification information of the location, including base station information and device information of the device where the wireless signal is located. It further determines whether the latest network interface identification information matches stored historical network interface identification information. If the latest network interface identification information does not match the stored historical network interface identification information, it determines that there has been a change in device location. Then, it sends a device positioning request to the server based on the latest network interface identification information, enabling the server to call a map service interface based on the latest network interface identification information to obtain the device location information corresponding to the latest network interface identification information. Since the device location information is obtained through the server only when a change in device location is determined based on the network interface identification information, the operating costs incurred by calling third-party map interfaces can be effectively reduced while achieving device positioning.

[0082] Figure 3 An example is a schematic diagram of the physical structure of an electronic device, such as... Figure 3 As shown, the electronic device may include a processor 310, a communications interface 320, a memory 330, and a communication bus 340, wherein the processor 310, communications interface 320, and memory 330 communicate with each other via the communication bus 340. The processor 310 can call logical instructions in the memory 330 to execute a device positioning method, which includes: after a preset time interval of logging into a server or uploading network interface identification information of the area to the server, obtaining the latest network interface identification information of the area; the network interface identification information includes one of base station information and device information of the device where the wireless signal is located. If the latest network interface identification information does not match the stored historical network interface identification information, it is determined that there has been a change in the device location. The device location request is sent to the server based on the latest network interface identification information; the device location request is used to instruct the server to call the map service interface based on the latest network interface identification information in order to obtain the device location information corresponding to the latest network interface identification information.

[0083] Furthermore, the logical instructions in the aforementioned memory 330 can be implemented as software functional units and, when sold or used as independent products, can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0084] In another aspect, this application also provides a non-transitory computer storage medium storing a computer program thereon. When executed by a processor, the computer program implements the device positioning method provided by the above methods. The method includes: after a preset time interval of logging into a server or uploading network interface identification information of the area to the server, obtaining the latest network interface identification information of the area; the network interface identification information includes one of base station information and device information of the device where the wireless signal is located. If the latest network interface identification information does not match the stored historical network interface identification information, it is determined that there has been a change in the device location. The device location request is sent to the server based on the latest network interface identification information; the device location request is used to instruct the server to call the map service interface based on the latest network interface identification information in order to obtain the device location information corresponding to the latest network interface identification information.

[0085] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate. The components shown as units 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 achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement this without any creative effort.

[0086] Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus necessary general-purpose hardware platforms, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solutions, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in the various embodiments or some parts of the embodiments.

[0087] 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 of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application.

Claims

1. A method for positioning equipment, characterized in that, The method includes: After a preset time interval between logging into the server or uploading the network interface identification information of the area to the server, the latest network interface identification information of the area is obtained; the network interface identification information includes one of base station information and device information of the device where the wireless signal is located; If the latest network interface identification information does not match the stored historical network interface identification information, it is determined that there has been a change in the device location. The device location request is sent to the server based on the latest network interface identification information; the device location request is used to instruct the server to call the map service interface based on the latest network interface identification information in order to obtain the device location information corresponding to the latest network interface identification information.

2. The equipment positioning method according to claim 1, characterized in that, After obtaining the latest network interface identification information for the area, if the latest network interface identification information for the area is the latest base station information for the area, and the latest base station information for the area includes a base station identifier, it also includes: If the most recent base station information in the stored historical base station information contains the identifier of the base station in the latest base station information of the area, determine that the latest network interface identification information matches the stored historical network interface identification information. If the most recent base station information in the stored historical base station information does not contain the base station identifier from the latest base station information for the area, it is determined that the latest network interface identification information does not match the stored historical network interface identification information.

3. The equipment positioning method according to claim 2, characterized in that, After obtaining the latest network interface identification information for the area, if the latest network interface identification information for the area is the latest base station information for the area, and the latest base station information for the area includes identifiers for multiple base stations, it also includes: If the ratio of the number of target identifiers to the total number of identifiers in the most recent base station information stored in the historical base station information is greater than or equal to a first preset threshold, the latest network interface identification information is determined to match the stored historical network interface identification information; wherein, the target identifier is the same as the identifier of the base station in the latest base station information of the region. If the ratio of the number of target identifiers to the total number of identifiers in the most recent base station information stored in the historical base station information is less than a first preset threshold, it is determined that the latest network interface identification information does not match the stored historical network interface identification information.

4. The equipment positioning method according to claim 1, characterized in that, After obtaining the latest network interface identification information for the area, if the latest network interface identification information for the area is the device information of the device where the latest wireless signal is located, and the device information of the device where the latest wireless signal is located includes multiple device identifiers, it also includes: If the ratio of the number of target device identifiers to the total number of device identifiers in the device information of the device where the most recent wireless signal is located is greater than or equal to a second preset threshold, then the latest network interface identification information is determined to match the stored historical network interface identification information; wherein, the target device identifier is the same as the device identifier in the device information of the device where the latest wireless signal is located in the area. If the ratio of the number of target device identifiers to the total number of device identifiers in the device information of the device where the most recent wireless signal was located is less than a second preset threshold, it is determined that the latest network interface identification information does not match the stored historical network interface identification information.

5. The equipment positioning method according to claim 1, characterized in that, After obtaining the latest network interface identification information for the area, it also includes: Based on the preset storage path, historical network interface identification information is obtained from the memory.

6. The equipment positioning method according to claim 5, characterized in that, After retrieving historical network interface identification information from the memory based on a preset storage path, the process also includes: If the historical network interface identification information is empty, a device location request is sent to the server based on the latest network interface identification information; If the historical network interface identification information is not empty, the latest network interface identification information is compared with the historical network interface identification information, and the step of determining that there is a change in device location if the latest network interface identification information does not match the stored historical network interface identification information is executed.

7. The equipment positioning method according to claim 1, characterized in that, The method further includes: Upon receiving the information reporting instruction from the logged-in server, the system obtains the latest network interface identification information for its location and sends it to the logged-in server.

8. A device positioning apparatus, characterized in that, include: The acquisition module is used to acquire the latest network interface identification information of the current area after a preset time interval between logging into the server or uploading the network interface identification information of the current area to the server; the network interface identification information includes one of base station information and device information of the device where the wireless signal is located; The determination module is used to determine that if the latest network interface identification information matches the stored historical network interface identification information, there is no change in the device location. The sending module is used to send a device location request to the server based on the latest network interface identification information; the device location request is used to instruct the server to call the map service interface based on the latest network interface identification information to obtain the device location information corresponding to the latest network interface identification information.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the device positioning method as described in any one of claims 1 to 7.

10. A computer storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the device positioning method as described in any one of claims 1 to 7.