Battery positioning method, tracking method, system, and storage medium

By obtaining the physical address and signal strength of the wireless access point scanned by the battery, the distance and location between the battery and the access point are determined, which solves the problem of increased hardware complexity and resource consumption caused by satellite positioning, and enables accurate positioning in indoor and other environments.

CN119110390BActive Publication Date: 2026-06-23铁塔能源有限公司 +1

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
铁塔能源有限公司
Filing Date
2024-08-30
Publication Date
2026-06-23

AI Technical Summary

Technical Problem

In existing battery swapping tracking technologies, satellite positioning requires increased hardware complexity and resource consumption, and it cannot accurately locate in environments with obstructions, such as indoors.

Method used

By obtaining the physical address and signal strength of the wireless access point scanned by the target battery, the distance between the battery and the access point is determined based on the signal strength, and the geographical location information of the access point is used for positioning, avoiding reliance on satellite positioning.

Benefits of technology

It enables precise battery positioning without the need for additional equipment or infrastructure support, simplifies hardware design and reduces resource consumption, and is suitable for high-precision positioning in complex environments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119110390B_ABST
    Figure CN119110390B_ABST
Patent Text Reader

Abstract

The application discloses a battery positioning method, a tracking method, a system and a storage medium. The battery positioning method comprises the following steps: obtaining a physical address and a signal strength of a target wireless access point scanned by a target battery; determining a distance between the target battery and the target wireless access point based on the signal strength; and determining geographical position information of the target battery based on the distance and geographical position information corresponding to the physical address.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of power application technology, and in particular to a battery positioning method, tracking method, system and storage medium. Background Technology

[0002] In battery swapping applications, maintenance personnel often need to locate batteries scattered across various sites, whether in use or idle. Current battery tracking technologies typically rely on satellite positioning. The batteries report their current location to the maintenance monitoring platform, allowing maintenance personnel to track and locate them based on this satellite positioning information.

[0003] However, satellite positioning requires adding a satellite positioning module to the battery, which increases hardware complexity and resource consumption. Furthermore, satellite signals are easily lost in environments with obstructions, such as indoors, making accurate positioning impossible. Summary of the Invention

[0004] The purpose of this application is to provide a battery positioning method, tracking method, system, and storage medium to solve the problems of high hardware complexity, high resource consumption, and inaccurate positioning in the current process of locating batteries by satellite.

[0005] To achieve the above objectives, the embodiments of this application adopt the following technical solutions:

[0006] In a first aspect, embodiments of this application provide a battery positioning method, including: obtaining the physical address and signal strength of a target wireless access point scanned by the target battery;

[0007] Based on the signal strength, the distance between the target battery and the target wireless access point is determined;

[0008] Based on the distance and the geographical location information corresponding to the physical address, the geographical location information of the target battery is determined.

[0009] Secondly, embodiments of this application provide a battery tracking method applied to a mobile device, comprising: scanning the signal strength broadcast by the target battery based on the geographical location information of the target battery, wherein the geographical location information of the target battery is determined based on the method of the first aspect;

[0010] Based on the scanned signal strength, the distance change information between the mobile device and the target battery is determined;

[0011] Based on the distance change information, the target movement direction of the mobile device is updated, and the target movement direction is used to guide the mobile device to move towards the target battery.

[0012] Thirdly, embodiments of this application provide a battery positioning system, including an Internet of Things platform and a battery;

[0013] The battery is used to report the physical address and signal strength of the scanned target wireless access point to the Internet of Things platform.

[0014] The IoT platform is used to determine the distance between the battery and the target wireless access point based on the signal strength, and to determine the geographical location information of the battery based on the distance and the geographical location information corresponding to the physical address.

[0015] Fourthly, embodiments of this application provide a battery positioning device, including: an acquisition unit, used to acquire the physical address and signal strength of a target wireless access point scanned by the target battery;

[0016] The first determining unit is configured to determine the distance between the target battery and the target wireless access point based on the signal strength.

[0017] The second determining unit is used to determine the geographical location information of the target battery based on the distance and the geographical location information corresponding to the physical address.

[0018] Fifthly, embodiments of this application provide a battery tracking device applied to a mobile device, comprising: a scanning unit, configured to scan the signal strength broadcast by the target battery based on the geographical location information of the target battery, wherein the geographical location information of the target battery is determined based on the method executed by the device of the fourth aspect or the method of the first aspect;

[0019] The determining unit is used to determine the distance change information between the mobile device and the target battery based on the scanned signal strength;

[0020] An update unit is used to update the target movement direction of the mobile device based on the distance change information, the target movement direction being used to guide the mobile device to move towards the target battery.

[0021] In a sixth aspect, embodiments of this application provide an electronic device, including: a processor; and a memory for storing processor-executable instructions; wherein the processor is configured to execute the instructions to implement the method as described in the first or second aspect.

[0022] In a seventh aspect, embodiments of this application provide a computer-readable storage medium that, when instructions in the storage medium are executed by a processor of an electronic device, enables the electronic device to perform the method described in the first or second aspect.

[0023] The above-mentioned at least one technical solution adopted in the embodiments of this application can achieve the following beneficial effects: by obtaining the physical address and signal strength of the target wireless access point scanned by the target battery, the distance between the target battery and the target wireless access point can be determined according to the signal strength. Then, based on the distance between the target battery and the target wireless access point, and the geographical location information corresponding to the physical address, i.e., the geographical location information of the target wireless access point, the geographical location information of the target battery can be determined, thereby achieving accurate positioning of the battery. In this case, the positioning of the battery using the target wireless access point does not require additional equipment or infrastructure support. In addition, the wireless access point has wide coverage and stable signal. Even in environments with obstructions such as indoors, the battery can easily scan the signal of the access point, thus eliminating the need to rely on satellite positioning and avoiding the need to add a satellite positioning module to the battery, thereby simplifying hardware design and reducing resource consumption. Attached Figure Description

[0024] The accompanying drawings, which are included to provide a further understanding of this application and form part of this application, illustrate exemplary embodiments and are used to explain this application, but do not constitute an undue limitation of this application. In the drawings:

[0025] Figure 1 A schematic flowchart of a battery positioning method provided in one embodiment of this application;

[0026] Figure 2 A schematic flowchart of a battery tracking method provided for one embodiment of this application;

[0027] Figure 3A One of the application scenario diagrams of a battery tracking method provided in an embodiment of this application;

[0028] Figure 3B A second schematic diagram illustrating an application scenario of a battery tracking method provided in one embodiment of this application;

[0029] Figure 3C A third schematic diagram illustrating an application scenario of a battery tracking method provided in one embodiment of this application;

[0030] Figure 3D A fourth schematic diagram illustrating an application scenario of a battery tracking method provided in one embodiment of this application;

[0031] Figure 3E This application provides an illustration of one application scenario for a battery positioning method according to an embodiment of the present application.

[0032] Figure 3F A second schematic diagram illustrating an application scenario of a battery positioning method provided in one embodiment of this application;

[0033] Figure 4 A schematic diagram of a battery positioning system provided in one embodiment of this application;

[0034] Figure 5 A schematic diagram of the structure of a battery swapping device is provided for one embodiment of this application;

[0035] Figure 6 A schematic diagram of a battery positioning device provided in one embodiment of this application;

[0036] Figure 7 A schematic diagram of the structure of a battery tracking device provided in one embodiment of this application;

[0037] Figure 8 This is a schematic diagram of the structure of an electronic device provided in one embodiment of this application. Detailed Implementation

[0038] 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 in conjunction with specific embodiments and corresponding drawings. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of them. Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0039] The terms "first," "second," etc., used in this specification and claims 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 sequences other than those illustrated or described herein. Furthermore, in this specification and claims, "and / or" indicates at least one of the connected objects, and the character " / " generally indicates that the preceding and following objects are in an "or" relationship.

[0040] In battery swapping applications, maintenance personnel often need to locate batteries scattered across various sites, whether in use or idle. Current battery tracking technologies typically rely on satellite positioning. The batteries report their current location to the maintenance monitoring platform, allowing maintenance personnel to track and locate them based on this satellite positioning information.

[0041] However, satellite positioning requires adding a satellite positioning module to the battery, which increases hardware complexity and resource consumption. Furthermore, satellite signals are easily lost in environments with obstructions, such as indoors, making accurate positioning impossible.

[0042] In view of this, this application provides a battery positioning method. By obtaining the physical address and signal strength of the target wireless access point scanned by the target battery, the distance between the target battery and the target wireless access point can be determined based on the signal strength. Then, based on the distance between the target battery and the target wireless access point, and the geographical location information corresponding to the physical address, i.e., the geographical location information of the target wireless access point, the geographical location information of the target battery is determined, thereby achieving accurate positioning of the battery. In this way, the battery positioning is achieved using the target wireless access point without the need for additional equipment or infrastructure support. In addition, the wireless access point has wide coverage and stable signal. Even in environments with obstructions such as indoors, the battery can easily scan the signal of the access point, thus eliminating the need to rely on satellite positioning and avoiding the need to add a satellite positioning module to the battery, thereby simplifying hardware design and reducing resource consumption.

[0043] Specifically, please see Figure 1 This is a flowchart illustrating a battery positioning method according to an embodiment of this application. Figure 1 As shown, one embodiment of this application provides a battery positioning method, which may include the following steps:

[0044] S102, obtain the physical address and signal strength of the target wireless access point scanned by the target battery.

[0045] The target battery refers to a battery device that requires location tracking, such as a lost battery for swapping.

[0046] In this context, the target wireless access point refers to a wireless device scanned by the target battery device, such as a Wi-Fi router. The physical address refers to the Media Access Control address (MAC address) of the wireless access point, which is a unique identifier for the wireless device. Signal strength refers to the received signal strength measured by the target battery when the target wireless access point transmits a signal.

[0047] This application embodiment obtains the signal strength and physical address of the wireless access point scanned by the battery. The wireless access point is an inherent facility or device, which does not rely on additional positioning equipment or satellite positioning, thereby achieving accurate positioning of the target battery and reducing resource consumption and satellite resource occupation.

[0048] It should be understood that, due to the wide coverage of wireless access points, the target battery may be scanned by signals from multiple wireless access points. To ensure the accuracy of positioning, the access point with the stronger signal can be selected from multiple wireless access points to locate the battery.

[0049] Specifically, as an optional implementation, the above S102 may include the following steps: obtaining wireless signal scanning information of the target battery, wherein the wireless signal scanning information includes the physical addresses and signal strengths of multiple wireless access points;

[0050] The wireless access point whose signal strength meets the preset conditions is selected from multiple wireless access points and used as the target wireless access point.

[0051] Obtain the physical address and signal strength of the target wireless access point from the wireless signal scanning information.

[0052] Among them, wireless signal scanning information refers to the data obtained after the target battery performs a scanning operation, including but not limited to the physical address and signal strength of the scanned wireless access point.

[0053] The preset condition can be a preset value or a preset range. For example, if the signal strength of a wireless access point scanned by the battery meets the preset value, or if the signal strength meets the preset range, then that wireless access point is identified as the target wireless access point. As an example, the N (N is an integer greater than or equal to 1) wireless access points with the strongest signal strength can also be selected as target wireless access points from multiple wireless access points. For example, the three wireless access points with the strongest signal strength can be selected as target wireless access points. As an example, after the target battery scans the physical addresses and signal strengths of multiple wireless access points, it first identifies the target wireless access points that meet the preset conditions, and then reports the physical addresses and signal strengths of these target wireless access points to the IoT platform. The IoT platform then locates the battery based on the received physical addresses and signal strengths. This method reduces data transmission and improves data transmission efficiency.

[0054] This application embodiment selects a target wireless access point whose signal strength meets preset conditions from multiple wireless access points and obtains its physical address and signal strength. This enables more accurate positioning calculations, reduces positioning errors, improves the efficiency and reliability of battery positioning, enhances the adaptability to positioning accuracy in complex environments, and utilizes richer wireless access point information to achieve better positioning. It is suitable for application scenarios that require high-precision positioning.

[0055] As another implementation, S102 described above can also obtain the physical address and signal strength of the target wireless access point by: acquiring the wireless signal scanning information data packet reported by the target battery; unpacking the data packet to obtain the unpacked wireless signal scanning information; and obtaining the physical address and signal strength of the target wireless access point from the wireless signal scanning information. This ensures the security of data transmission and guarantees the accuracy and reliability of subsequent positioning.

[0056] S104, based on signal strength, determines the distance between the target battery and the target wireless access point.

[0057] This application example determines the distance between the target battery and the target wireless access point based on the signal strength of the target wireless access point scanned by the target battery, and locates the target battery based on the distance between the target battery and the target wireless access point.

[0058] Specifically, as an optional implementation, the above S104 may include the following steps: determining a first difference between a first preset signal strength and the signal strength of the target wireless access point;

[0059] The distance between the target battery and the target wireless access point is determined based on the first difference and the first preset calibration distance.

[0060] The first preset signal strength is used to characterize the received signal strength measured within a preset distance range of the target wireless access point, and is usually taken as an absolute value. For example, when the wireless access point broadcasts a signal, a signal scanning device is used to scan at a distance of 1 meter from the wireless access point. The absolute value of the signal strength received by the signal scanning device from the wireless access point is the first preset signal strength. The first preset signal strength can also be obtained based on the average of multiple received signal strengths measured within a preset distance range of the target wireless access point. For example, when the wireless access point broadcasts a signal, a signal scanning device is used to scan multiple times at a distance of 1 meter from the wireless access point. The absolute value of the average of the multiple signal strengths received by the signal scanning device from the wireless access point is taken to obtain the first preset signal strength, ensuring the accuracy of battery positioning. Typically, the first preset signal strength can be used as the factory specification data of the wireless access point, tested by the manufacturer and written into the wireless device program.

[0061] In this embodiment, the first preset signal strength is subtracted from the signal strength of the target wireless access point to obtain a first difference value. For example, if the first preset signal strength RSSI0 = 40dB and the signal strength of the target wireless access point detected by the battery is RSSI = -70dB, the difference is RSSI0 - RSSI = 111dB, which is the first difference value.

[0062] The first preset calibration distance refers to a reference distance value set within a preset distance range of the target wireless access point. It is used to calibrate and adjust the relationship between signal strength and actual distance, and is typically tested before the wireless device leaves the factory. The first preset calibration distance can be set according to actual needs, such as 5 meters or 10 meters; this embodiment does not specifically limit this. This embodiment determines the distance between the target battery and the target wireless access point based on the first difference and the first preset calibration distance.

[0063] Specifically, as an optional method, the above method of determining the distance between the target battery and the target wireless access point based on the first difference and the first preset calibration distance may include the following steps: performing a first exponential operation on the first difference to obtain a first value;

[0064] The distance between the target battery and the target wireless access point is determined based on the difference between the first value and the first preset calibration distance.

[0065] The first exponentiation operation on the first difference is an operation with the first difference as the exponent, for example: a b Where b represents the first difference, and a is the base, a constant. In this embodiment, the distance between the target battery and the target wireless access point is determined based on the difference between the first value and the first preset calibration distance.

[0066] Specifically, as an example, the distance between the target battery and the target wireless access point can be calculated using formula (1);

[0067]

[0068] In the formula, D represents the distance between the target battery and the target wireless access point; RSSI0 represents the first preset signal strength, usually RSSI0 = 40dB; RSSI represents the signal strength of the target wireless access point; K is the propagation factor, which varies depending on the communication environment, frequency, distance and other influencing factors, usually K = 70; D0 represents the first preset calibration distance, usually D0 = 5 meters or D0 = 10 meters.

[0069] For example: when D0 = 10 meters, K = 70, and RSSI0 = 40dB; if the signal strength RSSI obtained from the target battery scanning the target wireless access point is -70dB, then the distance between the target battery and the target wireless access point is calculated to be D = 27.28 meters.

[0070] This application embodiment compares the signal strength measured by the target battery with a first preset signal strength to determine a first difference. Based on the first difference and a first preset calibration distance, the distance between the target battery and the target wireless access point is calculated. By effectively utilizing the signal strength difference and calibration distance, high-precision positioning of the target battery is achieved. This can cope with complex environmental conditions and signal changes, and provide reliable positioning technology support.

[0071] In another implementation, S104 may include: based on the signal strength of the target wireless access point scanned by the target battery, querying a mapping table for the signal strength interval corresponding to the signal strength; based on the signal strength interval, determining a preset signal strength most similar to the signal strength; and based on the distance corresponding to the preset signal strength, obtaining the distance between the target battery and the target wireless access point. The mapping table includes the correspondence between different distances and different signal strength intervals. For example, at a distance of 5 meters from the target wireless access point, the average received signal strength is measured to be 40 dB; at 10 meters, the average received signal strength is measured to be 36 dB; and at 15 meters, the average received signal strength is measured to be 28 dB. Assuming the transmitted signal strength of the target wireless access point is 60 dB, the correspondence between distance and signal strength ranges in the mapping table is as follows: 5 meters corresponds to a signal strength range of 40–60 dB; 10 meters corresponds to a signal strength range of 36–40 dB; and 15 meters corresponds to a signal strength range of 28–36 dB. Assuming the signal strength from the target battery to the target wireless access point is 30 dB, the corresponding signal strength range is 28–36 dB. Since 30 is closer to 28, the distance between the target battery and the target wireless access point can be roughly determined to be 15 meters. Obviously, this method has a large error, leading to inaccurate positioning. Therefore, this application embodiment preferentially adopts the method described above, which uses signal strength differences and calibration distances to locate the target battery.

[0072] S106, Based on the geographical location information corresponding to the distance and physical address, determine the geographical location information of the target battery.

[0073] Geographic location information refers to the target's position coordinates on the Earth's surface, typically described using latitude and longitude (lng, lat), for example: (113.913559, 22.667521), where 113.913559 represents longitude and 22.667521 represents latitude. As an example, the geographic location information of a target battery can be described using latitude and longitude, or it can be described based on a specified reference origin. For example, with A as the specified reference origin, B is located 50.43 meters north of A and 65.16 meters east of A.

[0074] The physical address corresponds to the geographic location information of the target wireless access point. As an optional method, S106 includes: determining the geographic location information of the target wireless access point based on the physical address, and determining the geographic location information of the target battery based on the distance and the geographic location information of the target wireless access point. Specifically, the geographic location information of the target wireless access point can be obtained by querying the database based on the physical address of the target wireless access point scanned by the target battery. Wireless access points are typically located in fixed positions. By pre-collecting the physical addresses and corresponding geographic information of the wireless access points in the database, when the physical address of the target wireless access point scanned by the target battery is obtained, the geographic location information of the target wireless access point can be retrieved from the database. This allows for the effective utilization of the geographic location characteristics of the wireless access point without relying on additional positioning equipment or satellite information, thereby achieving accurate positioning of the target battery. Of course, the above-described embodiment of determining the geographic location information of the target wireless access point based on the physical address can also be implemented in other ways, and this application does not specifically limit this method.

[0075] This application embodiment obtains the physical address and signal strength of the target wireless access point scanned by the target battery. The distance between the target battery and the target wireless access point can be determined based on the signal strength. Then, based on the distance between the target battery and the target wireless access point, and the geographical location information corresponding to the physical address, i.e., the geographical location information of the target wireless access point, the geographical location information of the target battery is determined, achieving accurate positioning of the battery. In this case, using the target wireless access point to locate the battery does not require additional equipment or infrastructure support. In addition, the wireless access point has wide coverage and stable signal. Even in environments with obstructions such as indoors, the battery can easily scan the signal of the access point, thus eliminating the need to rely on satellite positioning and avoiding the need to add a satellite positioning module to the battery, thereby simplifying hardware design and reducing resource consumption.

[0076] As an alternative approach, when there is only one target wireless access point, a circular area is formed with the point determined by the geographical location information corresponding to the physical address (i.e., the geographical location information of the target wireless access point) as the center and the distance between the target wireless access point and the target battery as the radius. The target battery lies on the circumference of this circular area. To accurately determine the location of the target battery, multiple target wireless access points are used for positioning.

[0077] Specifically, as an optional implementation, when there are multiple target wireless access points, the above-mentioned S106 may include the following steps:

[0078] S160, combine multiple target wireless access points to obtain multiple access point pairs, each access point pair including two target wireless access points;

[0079] S162, for each access point pair, based on the geographical location information corresponding to the physical address of the target wireless access point in the access point pair, determine the distance between the target wireless access points in the access point pair, and obtain the first distance;

[0080] S164, the sum of the distances between the access point and the target wireless access point and the target battery is used as the second distance;

[0081] S166, Based on the first distance and the second distance, determine the geographical location information of the target battery.

[0082] This involves combining multiple target wireless access points to obtain multiple access point pairs. For example, if there are 3 target wireless access points, namely A, B, and C, the resulting access point pairs include AB, AC, and BC.

[0083] As an optional approach, determining the first distance in S162 above may include the following steps: determining the distance between the access point pair and the target wireless access point on the X-axis and the distance between the access point pair and the target wireless access point on the Y-axis based on the geographical location information corresponding to the physical address of the target wireless access point.

[0084] The distance between the access point and the target wireless access point is determined based on the sum of the squares of the distances on the X-axis and Y-axis, thus obtaining the first distance.

[0085] The distance between the target wireless access points in the access point pair on the X-axis can be obtained based on the difference in longitude between the two target wireless access points. As an example, the distance between the target wireless access points in the access point pair on the X-axis can be calculated using formula (2).

[0086] X2-X1=111000×(ln g2-ln g1)×cos(lat1)(2)

[0087] In the formula, X2-X1 represents the distance on the X-axis between the access point and the target wireless access point, ln g1 represents the longitude of one target wireless access point, ln g2 represents the longitude of the other target wireless access point, (ln g2-ln g1) represents the longitude difference between the access point and the target wireless access point, and lat1 represents the latitude of one target wireless access point. The subscripts 1 and 2 are used to distinguish different target wireless access points. For example, (ln g1, lat1) represents the latitude and longitude coordinates of one target wireless access point, and (ln g2, lat2) represents the latitude and longitude coordinates of another target wireless access point. The formulas used in the following content are expressed in a similar way, so this explanation will not be repeated in the following content.

[0088] The distance between the target wireless access points in the access point pair on the Y-axis can be obtained based on the dimensional difference between the two target wireless access points in the access point pair. As an example, the distance between the target wireless access points in the access point pair on the Y-axis can be calculated using formula (3);

[0089]

[0090] In the formula, Y2-Y1 represents the distance between the access point and the target wireless access point on the Y-axis; lat1 represents the latitude of one target wireless access point; lat2 represents the latitude of the other target wireless access point; and lat1-lat2 represents the latitude difference between the access point and the target wireless access point.

[0091] Among them, the distance between the access point and the target wireless access point is determined based on the sum of the squares of the distance on the X-axis and the distance on the Y-axis, and the first distance is obtained, which can be calculated by formula (4);

[0092]

[0093] In the formula D MAC12 X2-X1 represents the distance between the access point and the target wireless access point on the X-axis, and Y2-Y1 represents the distance between the access point and the target wireless access point on the Y-axis.

[0094] Here's an example illustrating the process in S162 above of determining the distance between target wireless access points in an access point pair based on the geographical location information corresponding to the physical addresses of the target wireless access points, thus obtaining the first distance. Example: Access point pair AB includes two target wireless access points, A and B. The geographical location information of A is (113.913559, 22.667521), and that of B is (113.914486, 22.665722). The distance between A and B on the X-axis is:

[0095] X B -X A =111000×(ln g) B -ln g A )×cos(lat A ) = 94.95;

[0096] The distance between A and B on the Y-axis is:

[0097]

[0098] The distance between A and B is: Therefore, the first distance is 221.43 meters.

[0099] This application embodiment combines multiple target wireless access points to obtain multiple access point pairs. Each access point pair contains two target wireless access points. By using multiple target access points to locate the target battery, the location of the target battery can be determined, reducing the positioning uncertainty caused by a single access point. For each access point pair, the distance between the two target wireless access points is used as the first distance, and the distance between the target wireless access point and the target battery is used as the second distance. Based on the first distance and the second distance, the geographical location information of the target battery is determined, which can more accurately determine the location of the target battery and improve the ability to locate the battery in complex environments. It is suitable for application scenarios that require high-precision geographical location information.

[0100] As an optional implementation, the above S166 may include the following steps: if the second distance is greater than the first distance, calculate the ratio of the second distance to the first distance, and determine the geographical location information of the target battery based on the ratio and the distances between the target wireless access points on the X-axis and Y-axis, respectively.

[0101] If the second distance is less than the first distance, the ratio of the distance between any target wireless access point in the access point pair and the target battery to the second distance is calculated. Based on the ratio and the distances between the target wireless access points in the access point pair on the X and Y axes, respectively, the geographical location information of the target battery is determined.

[0102] Specifically, when the second distance is greater than the first distance, the above-mentioned determination of the geographical location information of the target battery may include the following steps: determining the X coordinate of the target battery relative to a specified reference origin based on the product of the ratio and the distance on the X-axis between the access point and the target wireless access point;

[0103] The Y-coordinate of the target battery relative to the specified reference origin is determined by multiplying the ratio by the distance on the Y-axis between the access point and the target wireless access point.

[0104] Based on the X and Y coordinates, the geographical location information of the target battery is determined.

[0105] Among them, when the second distance is greater than the first distance, the X coordinate of the target battery relative to the specified reference origin can be calculated by formula (5);

[0106]

[0107] In the formula X bt1The X-coordinate of the target battery relative to the specified reference origin is represented by X2-X1, which represents the distance between the access point and the target wireless access point on the X-axis. D1 represents the distance between one of the target wireless access points and the target battery, D2 represents the distance between the other target wireless access point and the target battery, and D1+D2 represents the second distance. MAC12 This represents the first distance. In the formula... This represents the ratio of the second distance to the first distance.

[0108] Among them, when the second distance is greater than the first distance, the Y coordinate of the target battery relative to the specified reference origin can be calculated by formula (6);

[0109]

[0110] In the formula Y bt1 This represents the Y-coordinate of the target battery relative to the specified reference origin. Y2-Y1 represents the distance on the Y-axis between the access point and the target wireless access point. D1 represents the distance between one of the target wireless access points and the target battery. D2 represents the distance between the other target wireless access point and the target battery. D1+D2 represents the second distance. MAC12 This represents the first distance. In the formula... This represents the ratio of the second distance to the first distance.

[0111] When the second distance is less than the first distance, the above-mentioned determination of the geographical location information of the target battery may include the following steps: determining the X coordinate of the target battery relative to a specified reference origin based on the product of the ratio and the distance on the X-axis between the access point and the target wireless access point;

[0112] The Y-coordinate of the target battery relative to the specified reference origin is determined by multiplying the ratio by the distance on the Y-axis between the access point and the target wireless access point.

[0113] Based on the X and Y coordinates, the geographical location information of the target battery is determined.

[0114] In the case where the second distance is less than the first distance, the X coordinate of the target battery relative to the specified reference origin can be calculated by formula (7);

[0115]

[0116] In the formula X bt1The X coordinate of the target battery is relative to the specified reference origin. X2-X1 represents the distance between the access point and the target wireless access point on the X-axis. D1 represents the distance between one of the target wireless access points and the target battery. D2 represents the distance between the other target wireless access point and the target battery. D1+D2 represents the second distance.

[0117] In the case where the second distance is less than the first distance, the Y coordinate of the target battery relative to the specified reference origin can be calculated by formula (8);

[0118]

[0119] In the formula Y bt1 Y2 represents the Y-coordinate of the target battery relative to the specified reference origin. Y2-Y1 represents the distance between the access point and the target wireless access point on the Y-axis. D1 represents the distance between one of the target wireless access points and the target battery. D2 represents the distance between the other target wireless access point and the target battery. D1+D2 represents the second distance.

[0120] It should be understood that, according to the above embodiments, for each access point pair, the X and Y coordinates of the target battery are calculated, which are one location component of the target battery. When the number of target wireless access points is 2, the number of combined access point pairs is 1, and at this time, the location component of the target battery is unique; when the number of target wireless access points exceeds 2, the number of combined access point pairs is at least 3, and at this time, the location component of the target battery is at least 3.

[0121] As an alternative approach, when there are multiple access point pairs, the above S166 may further include: determining the position component of the target battery corresponding to each access point pair based on the first distance and the second distance;

[0122] Based on the position components of the target battery at multiple access points, calculate the average X-coordinate and average Y-coordinate of the target battery relative to a specified reference origin.

[0123] The geographical location information of the target battery is determined based on the average values ​​of the X and Y coordinates.

[0124] The average X-coordinate of the target battery relative to the specified reference origin can be calculated using formula (9);

[0125]

[0126] In the formula X bt This represents the average X-coordinate of the target battery relative to a specified reference origin. bt1 X bt2 Xbt3 …X btN This represents the location components of the target battery for each of the N access point pairs, where N is the number of access point pairs.

[0127] The average Y-coordinate of the target battery relative to the specified reference origin can be calculated using formula (10);

[0128]

[0129] In the formula Y bt This represents the average Y-coordinate of the target battery relative to a specified reference origin. bt1 Y bt2 Y bt3 …Y btN This represents the location components of the target battery for each of the N access point pairs, where N is the number of access point pairs.

[0130] For example: an access point pair includes AB, AC, and BC. AB includes two target wireless access points, A and B; AC includes two target wireless access points, A and C; and BC includes two target wireless access points, B and C, with A as the designated reference origin. For AB, the distance between A and B, i.e., the first distance D... MACAB =221.43, the distance D between A and the target battery A =27.28, the distance D between B and the target battery B =77.67, the sum of the distances between the target wireless access point and the target battery in access point pair AB, i.e., the second distance D. A +D B =27.28 + 77.67 = 104.95, the distance X between A and B on the X-axis. B -X A =94.95, the distance Y between A and B on the Y-axis B -Y A =200.04; because (D A +D B ) < D MACAB That is, the second distance is less than the first distance, so

[0131]

[0132] Similarly, AC can be calculated to obtain...

[0133] Similarly, for BC, the calculation yields:

[0134]

[0135] Then, the average X-coordinate of the standard cell relative to the specified reference origin is calculated. The average Y-coordinate of the battery relative to the specified reference origin Thus, the geographical location of the target battery is obtained as follows: with point A as the origin, it is located 50.43 meters north and 65.16 meters east.

[0136] In this embodiment, when the second distance is greater than the first distance, the ratio of the second distance to the first distance is calculated. Based on this ratio and the distance difference between the target wireless access point and the target wireless access point on the X and Y axes, the geographical location information of the target battery is determined. When the second distance is less than the first distance, the ratio of the distance between the target battery and any target wireless access point to the second distance is calculated. Then, the specific geographical location information of the target battery is determined by using this ratio and the position difference between the target wireless access point and the target wireless access point on the X and Y axes. By comparing and calculating the relationship between the first distance and the second distance, and combining it with the location information of the target wireless access point, the geographical location of the target battery can be determined more accurately, improving the positioning accuracy and reliability. This is suitable for application scenarios that require real-time or dynamic tracking of the real-time location of the target battery, providing reliable location information output.

[0137] After determining the geographical location information of the target battery, this information needs to be sent to a mobile device. Maintenance personnel then use this mobile device to track the battery and retrieve it following instructions from the device. Therefore, this application also provides a battery tracking method for tracking a target battery.

[0138] Specifically, please see Figure 2 This is a flowchart illustrating a battery tracking method according to an embodiment of this application. Figure 2 As shown, one embodiment of this application provides a battery tracking method applied to a mobile device, which may include the following steps:

[0139] S202, based on the geographical location information of the target battery, scan the signal strength broadcast by the target battery.

[0140] The geographical location information of the target battery is obtained through the battery positioning method provided in any of the above embodiments. Based on the geographical location information of the target battery, the approximate area where the target battery is located is determined. The mobile device scans the signal strength broadcast by the target battery within this area, and tracks the target battery based on the scanned signal strength.

[0141] The mobile device can be used to scan the signal strength broadcast by the target battery. Based on the signal strength of the target battery scanned by the mobile device, the target battery can be tracked.

[0142] S204, Based on the scanned signal strength, determine the distance change information between the mobile device and the target battery;

[0143] The distance change information refers to the information on how the distance between the mobile device and the target battery changes over time or with location. It reflects the real-time distance between the mobile device and the target battery, as well as the trend of distance change, such as increasing, decreasing, or remaining constant. In this embodiment, the distance between the mobile device and the target battery at each moment is determined by the signal strength of the target battery scanned by the mobile device. As an example, the trend of distance change between the mobile device and the target battery can be determined by comparing the distance at the current moment with the distance at the previous moment, thus obtaining the distance change information.

[0144] As an optional implementation, the above S204 may include the following step: determining a second difference between a second preset signal strength and a scanned signal strength;

[0145] Based on the second difference and the second preset calibration distance, the distance between the target battery and the mobile device is determined;

[0146] Based on the distance between the target battery and the mobile device, determine the distance change information between the mobile device and the target battery.

[0147] The second preset signal strength is used to characterize the received signal strength measured within a preset distance range of the target battery, and is usually taken as an absolute value. For example, when the battery broadcasts a signal, a signal scanning device is used to scan at a distance of 1 meter from the battery. The absolute value of the signal strength received by the signal scanning device is the second preset signal strength. The second preset signal strength can also be obtained based on the average of multiple received signal strengths measured within a preset distance range of the target wireless access point. For example, when the battery broadcasts a signal, a signal scanning device is used to scan multiple times at a distance of 1 meter from the battery. The absolute value of the average of the multiple signal strengths received by the signal scanning device is taken to obtain the second preset signal strength, ensuring the accuracy of battery positioning. Typically, the second preset signal strength can be used as factory specification data for the battery, tested by the manufacturer and written into the battery.

[0148] In this embodiment of the application, the second preset signal strength is subtracted from the signal strength of the target wireless access point to obtain a second difference value.

[0149] The second preset calibration distance refers to a reference distance value set within a preset distance range of the target battery. It is used to calibrate and adjust the relationship between signal strength and actual distance, and is typically tested before the battery leaves the factory. The second preset calibration distance can be set according to actual needs, such as 5 meters or 10 meters; this embodiment does not specifically limit this. This embodiment determines the distance between the target battery and the mobile device based on the second difference and the second preset calibration distance.

[0150] Specifically, as an optional method, the above-mentioned determination of the distance between the target battery and the mobile device based on the second difference and the second preset calibration distance may include the following steps: performing a second exponential operation on the second difference based on the second preset calibration distance, and determining the distance between the target battery and the mobile device based on the operation result.

[0151] Specifically, the second exponential operation on the first difference based on the second preset calibration distance is an operation with the second preset calibration distance as the base and the second difference as the exponent.

[0152] Specifically, as an example, the distance between the target battery and the mobile device can be calculated using formula (11);

[0153]

[0154] In the formula, D represents the distance between the target battery and the mobile device, RSSI0 represents the second preset signal strength, usually RSSI0 = 40dB, RSSI represents the signal strength of the target battery, K is the propagation factor, which varies with the communication environment, frequency, distance and other influencing factors, usually K = 70, and D0 represents the second preset calibration distance, usually D0 = 5 meters or D0 = 10 meters.

[0155] This application embodiment obtains a second difference based on the difference between the signal strength of the scanned target battery and a second preset signal strength. Based on the second difference and the second preset calibration distance, the distance between the target battery and the mobile device is determined, providing a more accurate distance estimation between the target battery and the mobile device. It is suitable for real-time tracking in dynamic environments, and can monitor and reflect the distance changes between the mobile device and the target battery in real time, thereby adjusting the movement direction of the mobile device in a timely manner to achieve more efficient target-guided movement. It takes into account the differences in signal strength and the calibration process, and can adapt to the signal propagation characteristics under different environmental conditions, providing a stable and reliable battery tracking service. It accurately calculates distance and distance change information through signal strength data, thereby realizing a high-precision position tracking function between the mobile device and the target battery.

[0156] S206, Update the target movement direction of the mobile device based on distance change information.

[0157] The target movement direction is used to guide the mobile device toward the target battery.

[0158] When the distance between the target battery and the mobile device increases, the mobile device moves in the opposite direction to the target battery; when the distance between the target battery and the mobile device decreases, the mobile device moves in the same direction as the target battery. Thus, based on the changing trend of the distance between the target battery and the mobile device, the system can determine whether the mobile device's current direction of movement is correct and continuously update its direction of movement to move closer to the target battery.

[0159] This application embodiment scans the signal strength broadcast by the target battery in real time based on the target battery's geographical location information. Based on the scanned signal strength, it determines the distance change information between the mobile device and the target battery. Based on the trend of the distance change between the mobile device and the target battery, it determines whether the mobile device is approaching or moving away from the target battery, and then continuously updates the target movement direction of the mobile device to move towards the target battery. This can effectively perform navigation and positioning, ensuring that it can accurately approach the target battery. By combining geographical location information, signal strength scanning, and distance change calculation, it can achieve accurate tracking of the target battery by the mobile device, thereby improving the intelligence and efficiency of mobile device operation.

[0160] As an optional implementation, the above S206 may include the following steps: if the distance between the mobile device and the target battery increases, the target movement direction of the mobile device is updated to the opposite direction to the current movement direction of the mobile device;

[0161] If the distance between the mobile device and the target battery increases as the mobile device moves along the updated target direction, the target direction of the mobile device will be updated to be perpendicular to the current direction of movement of the mobile device.

[0162] It should be understood that when a mobile device scans the signal strength of a target battery, its initial direction of movement is arbitrary. The position of the mobile device relative to the target battery can be one of two scenarios: either the target battery is on a target straight line (the line along which the mobile device's trajectory lies, relative to its initial direction of movement), or... Figure 3A As shown; secondly, the target battery is not on the target line, such as... Figure 3B As shown. Figure 3A and Figure 3B The dashed line in the diagram represents the target straight line. N in the diagram represents the reference direction North, and E represents the reference direction North East.

[0163] If the position of the mobile device relative to the target battery is Figure 3AIn the scenario shown, for example, assuming the initial direction of movement is west, if the distance between the mobile device and the target battery increases, the target direction of movement of the mobile device is updated to the east, which is opposite to the current direction of movement of the mobile device. When the distance between the mobile device and the target battery is at its minimum and close to 0, the target battery is reached.

[0164] If the position of the mobile device relative to the target battery is Figure 3B In the scenario described, for example: assuming the initial movement direction is west (i.e., moving left), the distance between the mobile device and the target battery increases. Therefore, the target movement direction of the mobile device is updated to east, the opposite direction to the current movement direction. When the distance between the mobile device and the target battery is at its minimum but still significantly greater than 0, the device continues to move right. Figure 3C As shown, the distance between the mobile device and the target battery will begin to increase. Therefore, the target movement direction of the mobile device will be updated to a direction perpendicular to the current movement direction of the mobile device, either north or south. Let's assume it's north. Figure 3D As shown, when the distance between the mobile device and the target battery is at its minimum and close to 0, the target battery's location is reached. Assuming the target is in the south, as the distance between the mobile device and the target battery increases, the target movement direction of the mobile device is updated to the north, which is opposite to the current movement direction of the mobile device. When the distance between the mobile device and the target battery is at its minimum and close to 0, the target battery's location is reached.

[0165] This application's embodiments dynamically adjust the mobile device's movement direction based on real-time distance changes, ensuring the mobile device tracks or approaches the target battery most effectively, avoiding excessive movement or unnecessary directional changes. Through updates in the reverse or vertical direction, the mobile device's movement direction can be adjusted more quickly, thereby optimizing tracking performance. This is suitable for application scenarios requiring rapid response to changes in target location or dynamic environmental changes. Intelligent adjustments based on real-time distance changes make battery tracking more adaptable and robust, stably providing accurate mobile device navigation and location management services under various conditions. By dynamically updating the mobile device's target movement direction, the management and control of the distance between the mobile device and the target battery are optimized, thereby improving overall efficiency and reliability.

[0166] The above battery positioning method will be illustrated below with a complete example, and should not be construed as limiting the method of the embodiments of this application.

[0167] Example: S302: Obtain the MAC address (physical address) and signal strength RSSI of the WIFI device (target wireless access point) scanned by the battery swapping device (target battery), denoted as [MAC, RSSI]. The three sets of MAC addresses and signal strength RSSI of the wireless access point with the strongest signal strength are as follows:

[0168] [MAC1,RSSI1]=[3C:6A:48:FB:31:54,-70];

[0169] [MAC2,RSSI2]=[C2:19:12:DB:C5:22,-96];

[0170] [MAC3,RSSI3]=[7C:10:C9:4E:08:E0,-100];

[0171] S304: Based on the MAC address scanned by the battery swapping unit, query the latitude and longitude of the location corresponding to the MAC address through the MAC address location database, denoted as MAC(lng,lat). The latitude and longitude of the locations corresponding to the three MAC addresses with the strongest signal strength are as follows:

[0172] MAC1(lng1,lat1)=MAC1(113.913559,22.667521);

[0173] MAC2(lng2,lat2)=MAC2(113.914486,22.665722);

[0174] MAC3(lng3,lat3)=MAC3(113.915353,22.668013);

[0175] The MAC address location database is pre-built. Since the location of WIFI devices is usually fixed, the MAC address and corresponding location information of the WIFI devices are pre-collected into the MAC address location database.

[0176] S306: Based on the RSSI signal strength, calculate the distances between the current location of the battery swapping unit and the locations corresponding to the three MAC addresses with the strongest signal strength:

[0177]

[0178] Where D1 represents the distance between the geographical location of MAC1 and the battery swapping station, D2 represents the distance between the geographical location of MAC2 and the battery swapping station, D3 represents the distance between the geographical location of MAC3 and the battery swapping station, RSSI0 = 40dB, D0 = 10 meters, and K = 70.

[0179] S308: Calculate the current location (X) of the battery swapping unit using the distances D1, D2, and D3 between the battery swapping unit and the locations of the wireless access points corresponding to the three MAC addresses with the strongest signal strength. bt ,Y bt ):

[0180] Given the latitude and longitude coordinates of three MAC addresses: MAC1(lng1,lat1), MAC2(lng2,lat2), and MAC3(lng3,lat3), calculate the distance between these three locations on the X and Y axes using latitude and longitude distance conversion.

[0181] X2-X1=111000×(lng2-lng1)×cos(lat1)=94.95;

[0182] X3-X1=111000×(lng3-lng1)×cos(lat1)=183.75;

[0183] X3-X2=111000×(lng3-lng2)×cos(lat2)=88.8;

[0184]

[0185] Establish a coordinate system with MAC1 as the reference origin, and calculate the pairwise distances between the three MAC locations (i.e., the distances between two target wireless access points centered on the access point) based on the distance ratio, where D MAC12 Let D be the distance between MAC1 and MAC2. MAC13 D is the distance between MAC1 and MAC3. MAC23 The distance between MAC2 and MAC3;

[0186]

[0187] When D1+D2>D MAC12 Two circles, centered at MAC1 and MAC2 and with a radius equal to the distance between them, intersect, as shown below. Figure 3E As shown, D MAC13 and D MAC23 Similarly, the location of the swapped battery (X) is calculated. bt ,Y bt The various components of );

[0188]

[0189] When D1+D2<D MAC12 Two circles drawn with MAC1 and MAC2 as centers and the distance between them as radii do not intersect. Figure 3F As shown, D MAC13 and D MAC23 Similarly, in this example, D1 + D2 < D MAC12 D1 + D3 < D MAC13 D2 + D3 < D MAC23 The location of the swapped battery (X) is calculated. bt ,Y bt The components of )

[0190]

[0191] Battery location coordinates (X) bt Y bt Take (X) bt1 Y bt1 ), (X bt2 Y bt2 ), (X bt3 Y bt3 The average value of )

[0192]

[0193] S310: The calculated battery location is 50.43 meters north and 65.16 meters east, with MAC1 (113.913559, 22.667521) as the origin.

[0194] S312: The maintenance personnel use a mobile device with a signal scanning function to track the battery at the location of the battery swapping device. The mobile device scans the signal strength broadcast by the battery swapping device based on the battery swapping device's location (50.43, 65.16) obtained from steps S302 to S310. Based on the battery swapping device's signal strength, the distance D between the mobile device and the battery swapping device is calculated using formula (11).

[0195]

[0196] Based on the changing trend of the distance between the mobile device and the battery during movement, the location of the battery can be determined in the following ways:

[0197] Scenario 1: The battery swapping device is on the target straight line (the straight line along the movement trajectory of the mobile device, based on the initial direction of movement). If the initial direction of movement is eastward, such as... Figure 3A As shown, the distance between the mobile device and the battery swapping device decreases continuously during the movement. When the D value is at its minimum (close to 0), the location of the battery swapping device can be reached. If the initial direction of movement is west, the D value increases continuously during the movement of the mobile device. Therefore, the direction of movement of the mobile device is updated to the opposite direction of the initial direction of movement, i.e., east. When the D value is at its minimum (close to 0), the location of the battery swapping device can be reached.

[0198] Scenario 2: The battery is not on the target straight line. If the initial direction of movement is east, such as... Figure 3B As shown, the D value will continuously decrease when the line connecting the mobile device and the battery swapping station is perpendicular to the target line, such as... Figure 3CAs shown, as the mobile device continues to move eastward, the D value will begin to increase. At this point, the movement direction of the mobile device is corrected to be perpendicular to the initial movement direction. If the initial movement direction is westward, the D value will continue to increase as the mobile device moves. In this case, the movement direction of the mobile device will be updated to the opposite direction of the initial movement direction, i.e., eastward. Then, the D value will continue to decrease. When the line connecting the mobile device and the battery swapping station is perpendicular to the target line, the mobile device continues to move, and the D value will begin to increase. At this point, the movement direction of the mobile device is corrected to be perpendicular to the initial movement direction.

[0199] Then, assuming the mobile device's direction of movement is corrected to north, which is perpendicular to the initial direction of movement, such as... Figure 3D As shown, the distance between the mobile device and the battery swapping device continuously decreases. When the D value is at its minimum (close to 0), the location of the battery swapping device can be reached. If the direction of movement of the mobile device is corrected to be south, which is perpendicular to the initial direction of movement, the distance between the mobile device and the battery swapping device increases. The direction of movement of the mobile device needs to be updated to the opposite direction of the current direction of movement, i.e., north. When the D value is at its minimum (close to 0), the location of the battery swapping device can be reached.

[0200] The foregoing has described specific embodiments of this specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recited in the claims may be performed in a different order than that shown in the embodiments and may still achieve the desired result. Furthermore, the processes depicted in the drawings do not necessarily require the specific or sequential order shown to achieve the desired result. In some embodiments, multitasking and parallel processing are possible or may be advantageous.

[0201] This application also proposes a battery positioning system. Please refer to [link to relevant documentation]. Figure 4 This is a schematic diagram of a battery positioning system provided in one embodiment of this application. Figure 4 As shown, the battery positioning system 400 provided in the application embodiment includes a battery 410 and an Internet of Things platform 420.

[0202] The battery 410 is used to report the physical address and signal strength of the scanned target wireless access point to the Internet of Things platform 420.

[0203] The IoT platform 420 is used to determine the distance between the battery 410 and the target wireless access point based on the signal strength, and to determine the geographical location information of the battery 410 based on the distance and the geographical location information corresponding to the physical address.

[0204] Optionally, when the IoT platform 420 obtains the physical address and signal strength of the target wireless access point reported by the battery 410, it may perform the following steps: obtain the wireless signal scanning information of the battery 410, wherein the wireless signal scanning information includes the physical address and signal strength of multiple wireless access points scanned by the battery 410;

[0205] The wireless access point whose signal strength meets the preset conditions is determined from the plurality of wireless access points and is used as the target wireless access point;

[0206] The physical address and signal strength of the target wireless access point are obtained from the wireless signal scanning information.

[0207] Optionally, when determining the distance between the battery 410 and the target wireless access point based on the signal strength, the IoT platform 420 may perform the following steps: determining a first difference between a first preset signal strength and the signal strength of the target wireless access point, wherein the first preset signal strength is used to characterize the received signal strength measured within a preset distance range of the target wireless access point;

[0208] Based on the first difference and the first preset calibration distance, the distance between the battery 410 and the target wireless access point is determined.

[0209] Optionally, when there are multiple target wireless access points, when the IoT platform 420 determines the geographical location information of the battery 410 based on the geographical location information corresponding to the distance and the physical address, it may perform the following steps: combine multiple target wireless access points to obtain multiple access point pairs, each access point pair including two target wireless access points;

[0210] For each access point pair, based on the geographical location information corresponding to the physical address of the target wireless access point in the access point pair, the distance between the target wireless access points in the access point pair is determined to obtain a first distance;

[0211] The sum of the distances between the target wireless access point and the battery 410 is taken as the second distance;

[0212] Based on the first distance and the second distance, the geographical location information of the battery 410 is determined.

[0213] Optionally, when determining the geographical location information of the battery 410 based on the first distance and the second distance, the IoT platform 420 may perform the following steps: if the second distance is greater than the first distance, calculate the ratio of the second distance to the first distance, and determine the geographical location information of the battery 410 based on the ratio and the distances between the access point and the target wireless access point on the X-axis and Y-axis, respectively.

[0214] If the second distance is less than the first distance, the ratio of the distance between any target wireless access point in the access point pair and the battery 410 to the second distance is calculated. Based on the ratio and the distances between the target wireless access points in the access point pair on the X and Y axes, respectively, the geographical location information of the battery 410 is determined.

[0215] Optionally, the battery positioning system 400 may further include a mobile device.

[0216] The mobile device is configured to perform the following steps: based on the geographical location information of the battery 410, scan the signal strength broadcast by the battery 410;

[0217] Based on the signal strength scanned by the mobile device, the distance change information between the mobile device and the battery 410 is determined;

[0218] Based on the distance change information, the target movement direction of the mobile device is updated, and the target movement direction is used to guide the mobile device to move towards the battery 410.

[0219] Optionally, when the mobile device determines the distance change information between the mobile device and the battery 410 based on the signal strength scanned by the mobile device, it may perform the following steps: determine a second difference between a second preset signal strength and the signal strength scanned by the mobile device, wherein the second preset signal strength is used to characterize the received signal strength measured within a preset distance range of the battery 410;

[0220] Based on the second difference and the second preset calibration distance, the distance between the battery 410 and the mobile device is determined;

[0221] Based on the distance between the battery 410 and the mobile device, the distance change information between the mobile device and the battery 410 is determined.

[0222] Optionally, when the mobile device updates its target movement direction based on the distance change information, it may perform the following steps: if the distance between the mobile device and the battery 410 increases, the target movement direction of the mobile device is updated to the opposite direction to the current movement direction of the mobile device;

[0223] If the distance between the mobile device and the battery 410 increases as the mobile device moves along the updated target direction, the target direction of the mobile device is updated to be perpendicular to the current direction of movement of the mobile device.

[0224] This application also proposes a battery swapping method. Please refer to [link to relevant documentation]. Figure 5 This is a schematic diagram of the structure of a battery swapping device provided in one embodiment of this application. Figure 5 As shown, the battery swapping battery 500 provided in the application embodiment includes a battery body 510 and a battery management system 520.

[0225] The battery body 510 is a carrier for charging or discharging.

[0226] The battery management system 520 includes a wireless signal scanning module, an Internet of Things communication module, and a wireless signal broadcasting module.

[0227] The wireless signal scanning module is used to scan the signal strength of the target wireless access point and obtain the physical address of the target wireless access point.

[0228] The IoT communication module is used to communicate with the IoT platform, including reporting the signal strength and physical address of the target wireless access point to the IoT platform.

[0229] The wireless signal broadcasting module is used to broadcast wireless signals.

[0230] Figure 4 The battery 410 in the battery positioning system 400 shown can be Figure 5 The battery shown is 500.

[0231] With the above Figure 1 Corresponding to the battery positioning method shown, this application also proposes a battery positioning device. Please refer to... Figure 6 This is a schematic diagram of the structure of a battery positioning device 600 provided in one embodiment of this application. The device 600 includes: an acquisition unit 610, a first determination unit 620, and a second determination unit 630.

[0232] The acquisition unit 610 is used to acquire the physical address and signal strength of the target wireless access point scanned by the target battery.

[0233] The first determining unit 620 is used to determine the distance between the target battery and the target wireless access point based on the signal strength.

[0234] The second determining unit 630 is used to determine the geographical location information of the target battery based on the distance and the geographical location information corresponding to the physical address.

[0235] Optionally, when the acquisition unit 610 acquires the physical address and signal strength of the target wireless access point scanned by the target battery, it may perform the following steps: acquire the wireless signal scanning information of the target battery, wherein the wireless signal scanning information includes the physical address and signal strength of multiple wireless access points;

[0236] The wireless access point whose signal strength meets the preset conditions is determined from the plurality of wireless access points and is used as the target wireless access point;

[0237] The physical address and signal strength of the target wireless access point are obtained from the wireless signal scanning information.

[0238] Optionally, when determining the distance between the target battery and the target wireless access point based on the signal strength, the first determining unit 620 may perform the following steps: determining a first difference between a first preset signal strength and the signal strength of the target wireless access point, wherein the first preset signal strength is used to characterize the received signal strength measured within a preset distance range of the target wireless access point;

[0239] Based on the first difference and the first preset calibration distance, the distance between the target battery and the target wireless access point is determined.

[0240] Optionally, when there are multiple target wireless access points, the second determining unit 630 may perform the following steps when determining the geographical location information of the target battery based on the geographical location information corresponding to the distance and the physical address: combining multiple target wireless access points to obtain multiple access point pairs, each access point pair including two target wireless access points;

[0241] For each access point pair, based on the geographical location information corresponding to the physical address of the target wireless access point in the access point pair, the distance between the target wireless access points in the access point pair is determined to obtain a first distance;

[0242] The sum of the distances between the target wireless access point and the target battery is taken as the second distance;

[0243] Based on the first distance and the second distance, the geographical location information of the target battery is determined.

[0244] Optionally, when the second determining unit 630 determines the geographical location information of the target battery based on the first distance and the second distance, it may perform the following steps: if the second distance is greater than the first distance, calculate the ratio of the second distance to the first distance, and determine the geographical location information of the target battery based on the ratio and the distances between the target wireless access points on the X-axis and Y-axis, respectively.

[0245] If the second distance is less than the first distance, the ratio of the distance between any target wireless access point in the access point pair and the target battery to the second distance is calculated. Based on the ratio and the distances between the target wireless access points in the access point pair on the X and Y axes, respectively, the geographical location information of the target battery is determined.

[0246] Obviously, the positioning device provided in this application embodiment can serve as... Figure 1 The execution subject of the battery positioning method shown is, for example, Figure 1 In the battery positioning method shown, step S102 can be performed by... Figure 6 The acquisition unit 610 in the battery positioning device 600 shown executes step S104, which can be performed by... Figure 6 The first determining unit 620 in the battery positioning device 600 shown executes step S106, which can be performed by... Figure 6 The second determining unit 630 in the battery positioning device 600 shown is executed.

[0247] With the above Figure 2 Corresponding to the battery positioning method shown, this application also proposes a battery tracking device. Please refer to... Figure 7 The following is a schematic diagram of the structure of a battery tracking device 700 provided in an embodiment of this application. The device 700 includes: an acquisition unit 710, a determination unit 720, and an update unit 730.

[0248] The scanning unit 710 is used to scan the signal strength broadcast by the target battery based on the geographical location information of the target battery.

[0249] The determining unit 720 is used to determine the distance change information between the mobile device and the target battery based on the scanned signal strength;

[0250] The updating unit 730 is used to update the target movement direction of the mobile device based on the distance change information, and the target movement direction is used to guide the mobile device to move towards the target battery.

[0251] The geographical location information of the target battery is based on, for example, Figure 1 The method shown or Figure 6 The device shown is executed.

[0252] When determining the distance change information between the mobile device and the target battery based on the scanned signal strength, the determining unit 720 may perform the following steps: determining a second difference between a second preset signal strength and the scanned signal strength, wherein the second preset signal strength is used to characterize the received signal strength measured within a preset distance range of the target battery;

[0253] Based on the second difference and the second preset calibration distance, the distance between the target battery and the mobile device is determined;

[0254] Based on the distance between the target battery and the mobile device, information on the change in distance between the mobile device and the target battery is determined.

[0255] Optionally, when updating the target movement direction of the mobile device based on the distance change information, the updating unit 730 may perform the following steps: if the distance between the mobile device and the target battery increases, then update the target movement direction of the mobile device to the opposite direction to the current movement direction of the mobile device;

[0256] If the distance between the mobile device and the target battery increases as the mobile device moves along the updated target direction, the target direction of the mobile device is updated to be perpendicular to the current direction of movement of the mobile device.

[0257] Obviously, the tracking device provided in this application embodiment can serve as... Figure 2 The entity executing the battery tracking method shown, for example Figure 2 In the battery tracking method shown, step S202 can be performed by... Figure 7 The scanning unit 710 in the battery tracking device 700 shown executes step S204, which can be performed by... Figure 7 The determination unit 720 in the battery tracking device 700 shown executes step S206, which can be performed by... Figure 7 The update unit 730 in the battery tracking device 700 shown is executed.

[0258] According to another embodiment of this application, Figure 6 The battery positioning device shown or Figure 7The various units in the battery tracking device shown can be individually or entirely combined into one or more other units, or some of the units can be further divided into multiple functionally smaller units. This achieves the same operation without affecting the technical effects of the embodiments of this application. The above-mentioned units are based on logical function division. In practical applications, the function of one unit can also be implemented by multiple units, or the function of multiple units can be implemented by one unit. In other embodiments of this application, the battery positioning device or battery tracking device may also include other units. In practical applications, these functions can also be implemented with the assistance of other units, and can be implemented collaboratively by multiple units.

[0259] According to another embodiment of this application, a general-purpose computing device, such as a computer, including processing elements and storage elements such as a central processing unit (CPU), random access memory (RAM), and read-only memory (ROM), can run an application capable of performing tasks such as... Figure 1 Or, as shown in Figure 2, the computer program (including program code) for each step involved in the corresponding method, to construct, as Figure 6 The battery positioning device shown in Figure 7 or the battery tracking device shown in Figure 8, and the battery positioning method or battery tracking method for implementing the embodiments of this application. The computer program may be recorded on, for example, a computer-readable storage medium, and may be transferred to an electronic device via a computer-readable storage medium and run therein.

[0260] Figure 8 This is a schematic diagram of the structure of an electronic device according to an embodiment of this application. Please refer to it. Figure 8 At the hardware level, the electronic device includes a processor, and optionally also includes an internal bus, a network interface, and memory. The memory may include main memory, such as high-speed random-access memory (RAM), or non-volatile memory, such as at least one disk drive. Of course, the electronic device may also include other hardware required for other business operations.

[0261] The processor, network interface, and memory can be interconnected via an internal bus, which can be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus, or an EISA (Extended Industry Standard Architecture) bus, etc. This bus can be divided into address bus, data bus, control bus, etc. For ease of representation, Figure 8 The symbol is represented by a single double-headed arrow, but this does not mean that there is only one bus or one type of bus.

[0262] Memory is used to store programs. Specifically, programs may include program code, which includes computer operation instructions. Memory may include main memory and non-volatile memory, and provides instructions and data to the processor.

[0263] The processor reads the corresponding computer program from non-volatile memory into main memory and then runs it, forming a data processing device at the logical level. The processor executes the program stored in memory and specifically performs the following operations:

[0264] Obtain the physical address and signal strength of the target wireless access point detected by the target battery;

[0265] Based on the signal strength, the distance between the target battery and the target wireless access point is determined;

[0266] Based on the distance and the geographical location information corresponding to the physical address, the geographical location information of the target battery is determined.

[0267] Alternatively, the processor reads the corresponding computer program from non-volatile memory into main memory and then runs it, forming a data processing device at the logical level. The processor executes the program stored in memory and specifically performs the following operations:

[0268] Based on the geographical location information of the target battery, scan the signal strength broadcast by the target battery;

[0269] Based on the scanned signal strength, the distance change information between the mobile device and the target battery is determined;

[0270] Based on the distance change information, the target movement direction of the mobile device is updated, and the target movement direction is used to guide the mobile device to move towards the target battery.

[0271] The above is as stated in this application. Figure 6The battery positioning device disclosed in the illustrated embodiment or Figure 7 The battery tracking device method disclosed in the illustrated embodiments can be applied to a processor or implemented by a processor. The processor may be an integrated circuit chip with signal processing capabilities. During implementation, each step of the above method can be completed by integrated logic circuits in the processor's hardware or by instructions in software form. The processor can be a general-purpose processor, including a Central Processing Unit (CPU), a Network Processor (NP), etc.; it can also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field-Programmable Gate Array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. It can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of this application. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the method disclosed in the embodiments of this application can be directly embodied as being executed by a hardware decoding processor, or executed by a combination of hardware and software modules in the decoding processor. The software module can reside in a mature storage medium in the field, such as random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, or registers. This storage medium is located in memory, and the processor reads information from the memory and, in conjunction with its hardware, completes the steps of the above method.

[0272] The electronic device can also perform Figure 1 The method, and realize the battery positioning device in Figure 1 , Figure 6 The functions of the illustrated embodiments, or their execution Figure 2 The method, and implement the battery tracking device in Figure 2 , Figure 7 The functions of the embodiments shown are not described in detail here.

[0273] Of course, in addition to software implementation, the electronic device of this application does not exclude other implementation methods, such as logic devices or a combination of hardware and software, etc. In other words, the execution subject of the following processing flow is not limited to each logic unit, but can also be hardware or logic devices.

[0274] This application also proposes a computer-readable storage medium that stores one or more programs, the programs including instructions that, when executed by a portable electronic device including multiple applications, enable the portable electronic device to perform... Figure 1 The method of the illustrated embodiment is specifically used to perform the following operations:

[0275] Obtain the physical address and signal strength of the target wireless access point detected by the target battery;

[0276] Based on the signal strength, the distance between the target battery and the target wireless access point is determined;

[0277] Based on the distance and the geographical location information corresponding to the physical address, the geographical location information of the target battery is determined.

[0278] Alternatively, when executed by a portable electronic device that includes multiple applications, the instruction can enable the portable electronic device to perform... Figure 2 The method of the illustrated embodiment is specifically used to perform the following operations:

[0279] Based on the geographical location information of the target battery, scan the signal strength broadcast by the target battery;

[0280] Based on the scanned signal strength, the distance change information between the mobile device and the target battery is determined;

[0281] Based on the distance change information, the target movement direction of the mobile device is updated, and the target movement direction is used to guide the mobile device to move towards the target battery.

[0282] In summary, the above description is merely a preferred embodiment of this application and is not intended to limit the scope of protection of this application. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the scope of protection of this application.

[0283] The systems, devices, modules, or units described in the above embodiments can be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, a computer can be, for example, a personal computer, laptop computer, cellular phone, camera phone, smartphone, personal digital assistant, media player, navigation device, email device, game console, tablet computer, wearable device, or any combination of these devices.

[0284] Computer-readable media includes both permanent and non-permanent, removable and non-removable media that can store information using any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other non-transferable medium that can be used to store information accessible by a computing device. As defined herein, computer-readable media does not include transient computer-readable media, such as modulated data signals and carrier waves.

[0285] It should also be noted that the terms "comprising," "including," or any other variations thereof are intended to cover 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. Without further limitation, 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.

[0286] The various embodiments in this specification are described in a progressive manner. Similar or identical parts between embodiments can be referred to interchangeably. Each embodiment focuses on describing the differences from other embodiments. In particular, the system embodiments are basically similar to the method embodiments, so the description is relatively simple; relevant parts can be referred to the descriptions in the method embodiments.

Claims

1. A method of positioning a battery, characterized by, include: The physical address and signal strength of the target wireless access points detected by the target battery are obtained, and the number of target wireless access points is multiple. Based on the signal strength, the distance between the target battery and the target wireless access point is determined; Based on the distance and the geographical location information corresponding to the physical address, the geographical location information of the target battery is determined, specifically including: combining multiple target wireless access points to obtain multiple access point pairs, each access point pair including two target wireless access points; for each access point pair, based on the geographical location information corresponding to the physical address of the target wireless access point in the access point pair, determining the distance between the target wireless access points in the access point pair to obtain a first distance; and using the sum of the distances between the target wireless access points in the access point pair and the target battery as a second distance. If the second distance is greater than the first distance, a corresponding coefficient of the access point pair is calculated, and based on the coefficient and distances between a target wireless access point in the access point pair and a target battery in X axis and Y axis respectively, geographic position information of the target battery is determined, and the coefficient is calculated according to the following formula: wherein represents a distance between a target wireless access point in the access point pair and the target battery, represents a distance between another target wireless access point in the access point pair and the target battery, represents the first distance; If the second distance is less than the first distance, the ratio of the distance between any target wireless access point in the access point pair and the target battery to the second distance is calculated. Based on the ratio and the distances between the target wireless access points in the access point pair on the X and Y axes, respectively, the geographical location information of the target battery is determined.

2. The method according to claim 1, characterized in that, The process of obtaining the physical address and signal strength of the target wireless access point scanned by the target battery includes: Obtain the wireless signal scanning information of the target battery, the wireless signal scanning information including the physical addresses and signal strengths of multiple wireless access points; The wireless access point whose signal strength meets the preset conditions is determined from the plurality of wireless access points and is used as the target wireless access point; The physical address and signal strength of the target wireless access point are obtained from the wireless signal scanning information.

3. The method according to claim 1, characterized in that, Determining the distance between the target battery and the target wireless access point based on the signal strength includes: A first difference is determined between a first preset signal strength and the signal strength of the target wireless access point, wherein the first preset signal strength is used to characterize the received signal strength measured within a preset distance range of the target wireless access point; Based on the first difference and the first preset calibration distance, the distance between the target battery and the target wireless access point is determined.

4. A battery tracking method, characterized in that, Applied to mobile devices, the method includes: Based on the geographical location information of the target battery, the signal strength broadcast by the target battery is scanned, wherein the geographical location information of the target battery is determined based on the method of any one of claims 1 to 3; Based on the scanned signal strength, the distance change information between the mobile device and the target battery is determined; Based on the distance change information, the target movement direction of the mobile device is updated, and the target movement direction is used to guide the mobile device to move towards the target battery.

5. The method according to claim 4, characterized in that, The step of determining the distance change information between the mobile device and the target battery based on the scanned signal strength includes: A second difference is determined between a second preset signal strength and the scanned signal strength, wherein the second preset signal strength is used to characterize the received signal strength measured within a preset distance range of the target battery; Based on the second difference and the second preset calibration distance, the distance between the target battery and the mobile device is determined; Based on the distance between the target battery and the mobile device, information on the change in distance between the mobile device and the target battery is determined.

6. The method according to claim 4, characterized in that, Updating the target movement direction of the mobile device based on the distance change information includes: If the distance between the mobile device and the target battery increases, the target movement direction of the mobile device is updated to the opposite direction to the current movement direction of the mobile device; If the distance between the mobile device and the target battery increases as the mobile device moves along the updated target direction, the target direction of the mobile device is updated to be perpendicular to the current direction of movement of the mobile device.

7. A battery positioning system, characterized in that, Including IoT platforms and batteries; The battery is used to report the physical address and signal strength of the scanned target wireless access points to the IoT platform, and there are multiple target wireless access points. The IoT platform is used to determine the distance between the battery and the target wireless access point based on the signal strength, and to determine the geographical location information of the battery based on the distance and the geographical location information corresponding to the physical address. Specifically, this includes: combining multiple target wireless access points to obtain multiple access point pairs, each access point pair including two target wireless access points; for each access point pair, determining the distance between the target wireless access points in the access point pair based on the geographical location information corresponding to the physical address of the target wireless access points in the access point pair, obtaining a first distance; and using the sum of the distances between the target wireless access points in the access point pair and the battery as a second distance. If the second distance is greater than the first distance, then the coefficient corresponding to the access point pair is calculated. Based on the coefficient and the distances between the target wireless access points in the access point pair on the X and Y axes respectively, the geographical location information of the battery is determined. The formula for calculating the coefficient is as follows: ,in This represents the distance between a target wireless access point and a target battery in an access point pair. This indicates the distance between the other target wireless access point in the access point pair and the target battery. Indicates the first distance; If the second distance is less than the first distance, the ratio of the distance between any target wireless access point in the access point pair and the battery to the second distance is calculated. Based on the ratio and the distances between the target wireless access points in the access point pair on the X and Y axes, respectively, the geographical location information of the battery is determined.

8. A computer-readable storage medium, characterized in that, When the instructions in the storage medium are executed by the processor of the electronic device, the electronic device is able to perform the method as described in any one of claims 1 to 3; or, when the instructions in the storage medium are executed by the processor of the electronic device, the electronic device is able to perform the method as described in any one of claims 4 to 6.