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

Through the physical address and signal strength of the wireless access point, the precise positioning of the battery swap battery is achieved, solving the problems of high hardware complexity and large resource consumption caused by satellite positioning, and is suitable for complex environments such as indoors.

CN119110390AActive Publication Date: 2024-12-10铁塔能源有限公司 +1
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
CN202411215750.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-30
Publication Date
2024-12-10
Estimated Expiration
2044-08-30

AI Technical Summary

Technical Problem

In the existing battery swap battery tracking technology, satellite positioning methods lead to high hardware complexity, high resource consumption, and the inability to accurately locate in indoor and other environments with shading.

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 wireless access point is determined, and the geographical location information is obtained in combination with the physical address, the precise positioning of the battery is achieved and the wireless access point avoids Use of satellite positioning module.

Benefits of technology

It simplifies hardware design, reduces resource consumption, and can accurately locate batteries in complex environments such as indoors, without relying on satellite positioning, covers a wide range of coverage and stable signal.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119110390A_ABST
    Figure CN119110390A_ABST
Patent Text Reader

Abstract

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

Description

Technical Field

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

[0002] In the battery swap application scenario, operation and maintenance personnel often need to find swap batteries scattered at various sites, used by users or left aside in their daily operation and maintenance work. At present, the battery swap battery tracking technology usually uses satellite positioning. The battery swap battery reports its current location to the operation and maintenance supervision platform, and the operation and maintenance personnel track and find the battery based on the satellite positioning information of the battery.

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

[0004] The purpose of the embodiments of the present application is to provide a battery positioning method, tracking method, system and storage medium, which are used to solve the problems of high hardware complexity, large resource consumption and inaccurate positioning in the current process of positioning batteries through satellites.

[0005] In order to achieve the above objectives, the present application embodiment adopts the following technical solutions:

[0006] In a first aspect, an embodiment of the present application provides a battery positioning method, comprising: obtaining a physical address and a signal strength of a target wireless access point scanned by a target battery;

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

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

[0009] In a second aspect, an embodiment of the present application provides a battery tracking method, applied to a mobile device, comprising: based on geographic location information of a target battery, scanning a signal strength broadcast by the target battery, wherein the geographic location information of the target battery is determined based on the method of the first aspect;

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

[0011] Based on the distance change information, a target moving direction of the mobile device is updated, where the target moving direction is used to guide the mobile device to move toward the target battery.

[0012] In a third aspect, an embodiment of the present application provides 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 Internet of Things 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] In a fourth aspect, an embodiment of the present application provides a battery positioning device, including: an acquisition unit, configured to acquire a physical address and a signal strength of a target wireless access point scanned by a target battery;

[0016] A first determining unit, configured to determine a distance between the target battery and the target wireless access point based on the signal strength;

[0017] The second determining unit is configured 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] In a fifth aspect, an embodiment of the present application provides a battery tracking device, applied to a mobile device, comprising: a scanning unit, configured to scan a signal strength broadcast by a target battery based on geographic location information of the target battery, wherein the geographic location information of the target battery is determined by a method performed by the device of the fourth aspect or the method of the first aspect;

[0019] a determining unit, configured to determine distance change information between the mobile device and the target battery based on the scanned signal strength;

[0020] An updating unit is used to update a target moving direction of the mobile device based on the distance change information, wherein the target moving direction is used to guide the mobile device to move toward the target battery.

[0021] In a sixth aspect, an embodiment of the present application provides an electronic device, comprising: a processor; and a memory for storing instructions executable by the processor; wherein the processor is configured to execute the instructions to implement the method described in the first aspect or the second aspect.

[0022] In a seventh aspect, an embodiment of the present application provides a computer-readable storage medium. When instructions in the storage medium are executed by a processor of an electronic device, the electronic device can execute the method described in the first aspect or the second aspect.

[0023] At least one of the above technical solutions adopted in the embodiments of the present application can achieve the following beneficial effects: by acquiring 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, and 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, that is, the geographical location information of the target wireless access point, the geographical location information of the target battery is determined to achieve accurate positioning of the battery, wherein the battery is positioned using the target wireless access point without the need for additional equipment or infrastructure support, and in addition, the wireless access point has wide coverage and stable signals, and the battery can easily scan the access point signal even in an indoor or other sheltered environment, and thus there is no need to rely on satellite positioning, and the addition of a satellite positioning module to the battery is avoided, thereby simplifying hardware design and reducing resource consumption. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0025] Figure 1 A schematic flow chart of a battery positioning method provided for one embodiment of the present application;

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

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

[0028] Figure 3B A second schematic diagram of an application scenario of a battery tracking method provided by an embodiment of the present application;

[0029] Figure 3C A third schematic diagram of an application scenario of a battery tracking method provided by an embodiment of the present application;

[0030] Figure 3D A fourth schematic diagram of an application scenario of a battery tracking method provided by an embodiment of the present application;

[0031] Figure 3E One of the schematic diagrams of an application scenario of a battery positioning method provided by an embodiment of the present application;

[0032] Figure 3F A second schematic diagram of an application scenario of a battery positioning method provided by an embodiment of the present application;

[0033] Figure 4 A schematic diagram of the structure of a battery positioning system provided for one embodiment of the present application;

[0034] Figure 5 A schematic diagram of the structure of a battery replacement provided for one embodiment of the present application;

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

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

[0037] Figure 8 A schematic diagram of the structure of an electronic device provided for one embodiment of the present application. DETAILED DESCRIPTION

[0038] In order to make the purpose, technical solution and advantages of the present application clearer, the technical solution of the present application will be clearly and completely described below in combination with the specific embodiments of the present application and the corresponding drawings. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present application.

[0039] The terms "first", "second", etc. in this specification and claims are used to distinguish similar objects, and are not used to describe a particular order or precedence. It should be understood that the terms used in this way can be interchanged where appropriate so that the embodiments of the present application are implemented in a sequence other than those illustrated or described herein. In addition, "and / or" in this specification and claims means at least one of the connected objects, and the character " / " generally means that the objects associated with each other are in an "or" relationship.

[0040] In the battery swap application scenario, operation and maintenance personnel often need to find swap batteries scattered at various sites, used by users or left aside in their daily operation and maintenance work. At present, the battery swap battery tracking technology usually uses satellite positioning. The battery swap battery reports its current location to the operation and maintenance supervision platform, and the operation and maintenance personnel track and find the battery based on the satellite positioning information of the battery.

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

[0042] In view of this, an embodiment of the present 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 according to the signal strength, and 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, that is, the geographical location information of the target wireless access point, the geographical location information of the target battery is determined to achieve accurate positioning of the battery, wherein the battery is positioned using the target wireless access point without the need for additional equipment or infrastructure support, and in addition, the wireless access point has wide coverage and stable signals, and the battery can easily scan the access point signal even in an obstructed environment such as indoors, and thus there is no need to rely on satellite positioning, avoiding the need to add a satellite positioning module to the battery, thereby simplifying hardware design and reducing resource consumption.

[0043] Specifically, see Figure 1 , is a flow chart of a battery positioning method provided by an embodiment of the present application. Figure 1 As shown, an embodiment of the present application provides a battery positioning method, which may include the following steps:

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

[0045] Among them, the target battery refers to a battery device with positioning requirements, such as a lost replacement battery.

[0046] The target wireless access point refers to the wireless device scanned by the target battery device, such as a wifi router. The physical address refers to the Media Access Control address, or MAC address, of the wireless access point, which is the unique identifier of the wireless device. The signal strength refers to the received signal strength measured by the target battery when the target wireless access point sends a signal.

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

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

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

[0050] Determine a wireless access point whose signal strength meets a preset condition from among the multiple wireless access points as a target wireless access point;

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

[0052] The 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] Among them, the preset condition can be a preset value or a preset range. For example: when the signal strength of the wireless access point scanned by the battery meets the preset value, or when the signal strength meets the preset range, the wireless access point is determined as the target wireless access point. As an example, N (N is an integer greater than or equal to 1) wireless access points with the strongest signal strength can also be determined from multiple wireless access points as target wireless access points, for example: three wireless access points with the strongest signal strength are determined from multiple wireless access points 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 determines the target wireless access point that meets the preset conditions, and then reports the physical address and signal strength of the target wireless access point to the Internet of Things platform. The Internet of Things platform performs battery location based on the received physical address and signal strength. This method can reduce data transmission and improve the efficiency of data transmission.

[0054] The embodiment of the present application can perform more accurate positioning calculation by selecting a target wireless access point whose signal strength meets preset conditions from multiple wireless access points and obtaining its physical address and signal strength, thereby reducing positioning errors, improving the efficiency and reliability of battery positioning, and enhancing the adaptability to positioning accuracy in complex environments. It uses richer wireless access point information to achieve better positioning, and is suitable for application scenarios that require high-precision positioning.

[0055] As another implementation, the physical address and signal strength of the target wireless access point can also be obtained in the following manner in S102: obtaining a 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 can ensure the security of the data transmission process and the accuracy and reliability of subsequent positioning.

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

[0057] The present 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 the first preset signal strength and the signal strength of the target wireless access point;

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

[0060] Among them, the first preset signal strength is used to characterize the received signal strength measured within the 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, and the absolute value of the signal strength of the wireless access point received by the signal scanning device is the first preset signal strength. The first preset signal strength can also be obtained based on the average value of multiple received signal strengths measured within the 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, and the absolute value of the average value of multiple signal strengths of the wireless access point received by the signal scanning device is taken to obtain the first preset signal strength to ensure the accuracy of battery positioning. Usually, the first preset signal strength can be used as the factory indicator data of the wireless access point, which is tested by the manufacturer and written into the wireless device program.

[0061] In the embodiment of the present application, 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, the first preset signal strength RSSI0=40dB, the signal strength of the target wireless access point scanned by the battery is RSSI=-70dB, and 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, which is used to calibrate and adjust the relationship between the signal strength and the actual distance, and is usually completed by testing the wireless device before it leaves the factory. The first preset calibration distance can be set according to actual needs, such as 5 meters, 10 meters, etc., and this embodiment of the present application does not specifically limit this. The embodiment of the present application 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 manner, the 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] Based on the difference between the first value and the first preset calibration distance, a distance between the target battery and the target wireless access point is determined.

[0065] The first exponential operation performed on the first difference is an operation with the first difference as the exponent, for example: b , wherein b represents the first difference, a is the base, and is a constant. The embodiment of the present application determines the distance between the target battery and the target wireless access point 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 by formula (1);

[0067]

[0068] Wherein 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 with 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=40 dB; if the acquired signal strength RSSI of the target battery scanning the target wireless access point is -70 dB, then the distance between the target battery and the target wireless access point is calculated to be D=27.28 meters.

[0070] The embodiment of the present application determines a first difference by comparing the signal strength measured by the target battery with the first preset signal strength, and calculates the distance between the target battery and the target wireless access point based on the first difference and the first preset calibration distance. By effectively utilizing the signal strength difference and the calibration distance, high-precision positioning of the target battery position is achieved, and it can cope with complex environmental conditions and signal changes, and provide reliable positioning technology support.

[0071] As another implementation, the above S104 may include: based on the signal strength of the target wireless access point scanned by the target battery, querying the signal strength interval corresponding to the signal strength from the mapping table, determining the preset signal strength most similar to the signal strength based on the signal strength interval, and obtaining the distance between the target battery and the target wireless access point based on the distance corresponding to the preset signal strength. 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 value of multiple received signal strengths is 40dB, at a distance of 10 meters from the target wireless access point, the average value of multiple received signal strengths is 36dB, and at a distance of 15 meters from the target wireless access point, the average value of multiple received signal strengths is 28dB. Assuming that the transmitted signal strength of the target wireless access point is 60dB, the corresponding relationship between the distance and the signal strength interval in the mapping table is: the signal strength interval corresponding to 5 meters is 40-60dB, the signal strength interval corresponding to 10 meters is 36-40dB, and the signal strength interval corresponding to 15 meters is 28-36dB; assuming that the signal strength of the target battery to the target wireless access point is 30dB, the corresponding signal strength interval is 28-36dB, and 30 is closer to 28, so the distance between the target battery and the target wireless access point can be roughly determined as 15 meters. Obviously, this method has a large error, resulting in inaccurate positioning. Therefore, the embodiment of the present application preferentially adopts the method of using the signal strength difference and calibration distance to realize the positioning of the target battery.

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

[0073] The geographic location information refers to the location coordinates of the target on the surface of the earth, which are usually described using longitude and latitude (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 the target battery can be described using longitude and latitude, or by specifying a reference origin and describing its geographic location based on the location of the specified reference origin, for example: with A as the specified reference origin, B is 50.43 meters north of A and 65.16 meters east of A.

[0074] Among them, the geographical location information corresponding to the physical address is the geographical location information of the target wireless access point. As an optional method, the above S106 includes: determining the geographical location information of the target wireless access point based on the physical address, and determining the geographical location information of the target battery based on the distance and the geographical location information of the target wireless access point. Specifically, the geographical location information of the target wireless access point can be queried from the database according to the physical address of the target wireless access point scanned by the target battery, and the geographical location information corresponding to the physical address can be obtained. The wireless access point is usually fixed in position, and the physical address and corresponding location geographical information of the wireless access point are pre-collected into the database. When the physical address of the target wireless access point scanned by the target battery is obtained, the geographical location information of the target wireless access point can be found from the database, and then the geographical location characteristics of the wireless access point can be effectively utilized without relying on additional positioning equipment or satellite information, thereby realizing accurate positioning of the target battery. Of course, some embodiments of the above-mentioned determination of the geographical location information of the target wireless access point based on the physical address can also be implemented in other ways, and the embodiments of the present application do not specifically limit this.

[0075] The embodiment of the present application obtains the physical address and signal strength of the target wireless access point scanned by the target battery, and can determine the distance between the target battery and the target wireless access point 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, that is, the geographical location information of the target wireless access point, the geographical location information of the target battery is determined to achieve accurate positioning of the battery. The battery is positioned 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 signals. Even in an indoor or other obstructed environment, the battery can easily scan the signal of the access point, and thus does not need to rely on satellite positioning, avoiding the need to add a satellite positioning module to the battery, thereby simplifying hardware design and reducing resource consumption.

[0076] As an optional method, when the number of target wireless access points is 1, the geographical location information corresponding to the physical address, that is, the point determined by the geographical location information of the target wireless access point, is used as the center of the circle, and the distance between the target wireless access point and the target battery is used as the radius to obtain a circular area, and the target battery is on the circumference of the circular area. In order to accurately determine the location of the target battery, multiple target wireless access points are used to locate the target battery.

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

[0078] S160, combining the 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, determining a distance between target wireless access points in the access point pair based on geographic location information corresponding to a physical address of the target wireless access point in the access point pair to obtain a first distance;

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

[0081] S166, determining geographic location information of the target battery based on the first distance and the second distance.

[0082] Wherein, multiple target wireless access points are combined to obtain multiple access point pairs. For example, the number of target wireless access points is 3, namely A, B, and C. The access point pairs obtained after the combination include AB, AC, and BC.

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

[0084] Based on the sum of the squares of the distance on the X-axis and the distance on the Y-axis, the distance between the target wireless access points in the access point pair is determined to obtain a 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 longitude 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 X-axis can be calculated by formula (2);

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

[0087] Where X2-X1 represents the distance between the target wireless access points in the access point pair on the X axis, ln g1 represents the longitude of one target wireless access point in the access point pair, ln g2 represents the longitude of the other target wireless access point in the access point pair, (ln g2-ln g1) represents the difference in longitudes of the target wireless access points in the access point pair, and lat1 represents the latitude of one target wireless access point in the access point pair. Subscripts 1 and 2 are used to distinguish different target wireless access points, such as (ln g1, lat1) are the longitude and latitude coordinates of one target wireless access point, and (ln g2, lat2) are the longitude and latitude coordinates of another target wireless access point. The formulas involved in the following content are also expressed in a similar manner, so this description 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 dimension 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 by formula (3);

[0089]

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

[0091] Wherein, based on the sum of the squares of the distance on the X-axis and the distance on the Y-axis, the distance between the target wireless access point in the access point pair is determined to obtain a first distance, which can be calculated by formula (4);

[0092]

[0093] Where D MAC12 Indicates the distance between the target wireless access points in the access point pair, X2-X1 indicates the distance between the target wireless access points in the access point pair on the X-axis, and Y2-Y1 indicates the distance between the target wireless access points in the access point pair on the Y-axis.

[0094] Here, an example is used to illustrate the process of determining the distance between the target wireless access points in the access point pair based on the geographic location information corresponding to the physical address of the target wireless access point in the access point pair in the above S162 to obtain the first distance. Example: The access point pair AB includes two target wireless access points A and B. The geographic 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: The first distance is then obtained as 221.43 meters.

[0099] In the embodiment of the present application, multiple target wireless access points are combined to obtain multiple access point pairs, each access point pair includes two target wireless access points, and the target battery is positioned by using the multiple target access points, so that the position of the target battery can be determined, and the positioning uncertainty caused by a single access point can be reduced. For each access point pair, the distance between the two target wireless access points in the access point 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 geographic location information of the target battery is determined, so that the position of the target battery can be determined more accurately, and the ability to locate the battery in a complex environment is improved. The embodiment of the present application is suitable for application scenarios that require high-precision geographic 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, calculating a ratio of the second distance to the first distance, and determining geographic location information of the target battery based on the ratio and the distance between the target wireless access points in the access point pair on the X axis and the Y axis respectively;

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

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

[0103] Determine the Y coordinate of the target battery relative to the specified reference origin based on the product of the ratio and the distance on the Y axis between the target wireless access points in the access point pair;

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

[0105] Wherein, 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] Where X bt1represents the X coordinate of the target battery relative to the specified reference origin, X2-X1 represents the distance between the target wireless access points in the access point pair on the X axis, D1 represents the distance between one of the target wireless access points in the access point pair and the target battery, D2 represents the distance between another target wireless access point in the access point pair and the target battery, D1+D2 represents the second distance, D MAC12 represents the first distance. Represents the ratio of the second distance to the first distance.

[0108] Wherein, 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] Where Y bt1 represents the Y coordinate of the target battery relative to the specified reference origin, Y2-Y1 represents the distance between the target wireless access points in the access point pair on the Y axis, D1 represents the distance between one target wireless access point in the access point pair and the target battery, D2 represents the distance between another target wireless access point in the access point pair and the target battery, D1+D2 represents the second distance, D MAC12 represents the first distance. Represents the ratio of the second distance to the first distance.

[0111] In the case where the second distance is less than the first distance, the above-mentioned determining the geographic location information of the target battery may include the following steps: determining the X coordinate of the target battery relative to the specified reference origin based on the product of the ratio and the distance on the X axis between the target wireless access points in the access point pair;

[0112] Determine the Y coordinate of the target battery relative to the specified reference origin based on the product of the ratio and the distance on the Y axis between the target wireless access points in the access point pair;

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

[0114] Wherein, when 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] Where X bt1represents the X coordinate of the target battery relative to the specified reference origin, X2-X1 represents the distance between the target wireless access points in the access point pair on the X axis, D1 represents the distance between one of the target wireless access points in the access point pair and the target battery, D2 represents the distance between another of the target wireless access points in the access point pair and the target battery, and D1+D2 represents the second distance.

[0117] Wherein, when 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] Where Y bt1 represents the Y coordinate of the target battery relative to the specified reference origin, Y2-Y1 represents the distance between the target wireless access points in the access point pair on the Y axis, D1 represents the distance between one of the target wireless access points in the access point pair and the target battery, D2 represents the distance between another of the target wireless access points in the access point pair and the target battery, and D1+D2 represents the second distance.

[0120] It should be understood that according to the above embodiment, for each access point pair, the X coordinate and Y coordinate of the target battery are calculated, which are the position components 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 position 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 position components of the target battery are at least 3.

[0121] As an optional manner, when there are multiple access point pairs, the above S166 may also include: determining a 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 batteries corresponding to the multiple access points, calculate the average X-coordinate and the average Y-coordinate of the target battery relative to the specified reference origin;

[0123] Based on the average X-coordinate value and the average Y-coordinate value, the geographic location information of the target battery is determined.

[0124] Among them, the average value of the X coordinate of the target battery relative to the specified reference origin can be calculated by formula (9);

[0125]

[0126] Where X bt Represents the average X coordinate of the target battery relative to the specified reference origin, X bt1 , X bt2 , Xbt3 …X btN It represents the position component of the target battery corresponding to each of the N access point pairs, where N is the number of access point pairs.

[0127] Among them, the average Y coordinate of the target battery relative to the specified reference origin can be calculated by formula (10);

[0128]

[0129] Where Y bt Represents the average Y coordinate of the target battery relative to the specified reference origin, Y bt1 , Y bt2 , Y bt3 …Y btN It represents the position component of the target battery corresponding to each of the N access point pairs, where N is the number of access point pairs.

[0130] For example, the 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. A is the designated reference origin. For AB, the distance between A and B, i.e., the first distance D MACAB =221.43, the distance between A and the target battery D A =27.28, the distance between B and the target battery D 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 between A and B on the X axis is X 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 smaller than the first distance, so

[0131]

[0132] The same is true for AC, and we can calculate

[0133] Similarly, BC can be calculated as follows:

[0134]

[0135] Then calculate the average X coordinate of the standard battery relative to the specified reference origin The average Y coordinate of the labeled battery relative to the specified reference origin The geographical location information of the target battery is obtained as A as the origin, 50.43 meters north and 65.16 meters east.

[0136] In the embodiment of the present application, when the second distance is greater than the first distance, the ratio of the second distance to the first distance is calculated, and the geographical location information of the target battery is determined based on the ratio and the distance difference between the target wireless access point on the X-axis and the Y-axis; 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, and then the specific geographical location information of the target battery is determined by the ratio and the position difference between the target wireless access point on the X-axis and the Y-axis. By comparing and calculating the relationship between the first distance and the second distance, and combining the position information of the target wireless access point, the geographical location of the target battery can be determined more accurately, and the positioning accuracy and reliability are improved. The present application is suitable for application scenarios that require real-time or dynamic tracking of the real-time location of the target battery, and reliable location information output is provided.

[0137] After determining the geographic location information of the target battery, the geographic location information of the target battery needs to be sent to a mobile device, and the operation and maintenance personnel use the mobile device to track and retrieve the target battery under the instruction of the mobile device. Therefore, the present application also provides a battery tracking method for tracking the target battery.

[0138] Specifically, see Figure 2 , is a flow chart of a battery tracking method provided by an embodiment of the present application. Figure 2 As shown, an embodiment of the present application provides a battery tracking method, which is applied to a mobile device. The method 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 geographic location information of the target battery is obtained by the battery positioning method provided by any of the above embodiments. Based on the geographic location information of the target battery, the approximate area where the target battery is located is determined, and the mobile device scans the signal strength broadcast by the target battery in the area, and tracks the target battery based on the scanned signal strength of the target battery.

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

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

[0143] The distance change information refers to the information about the distance between the mobile device and the target battery changing with time or position, which can reflect the real-time distance between the mobile device and the target battery, as well as the trend of the distance change, such as increase, decrease or maintenance. The embodiment of the present application determines the distance between the mobile device and the target battery at each moment by the signal strength of the target battery scanned by the mobile device. As an example, the distance change trend 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, thereby obtaining the distance change information.

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

[0145] determining a distance between the target battery and the mobile device based on the second difference and the second preset calibration distance;

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

[0147] Among them, the second preset signal strength is used to characterize the received signal strength measured within the 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, and the absolute value of the signal strength of the battery 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 value of multiple received signal strengths measured within the 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, and the absolute value of the average value of the multiple signal strengths of the battery received by the signal scanning device is taken to obtain the second preset signal strength to ensure the accuracy of battery positioning. Usually the second preset signal strength can be used as the factory indicator data of the battery, tested by the manufacturer and written into the battery.

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

[0149] Among them, the second preset calibration distance refers to a reference distance value set within the preset distance range of the target battery, which is used to calibrate and adjust the relationship between the signal lightness and the actual distance, and is usually completed by testing before the battery leaves the factory. The second preset calibration distance can be set according to actual needs, such as 5 meters, 10 meters, etc., and this embodiment of the application does not specifically limit this. The embodiment of the application 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] The second exponential operation is performed on the first difference based on the second preset calibration distance, which 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 by formula (11);

[0153]

[0154] Wherein 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] The embodiment of the present application obtains a second difference based on the difference between the signal strength of the scanned target battery and the second preset signal strength, and determines the distance between the target battery and the mobile device based on the second difference and the second preset calibration distance, thereby providing a more accurate distance estimation between the target battery and the mobile device. The present application is suitable for real-time tracking in a dynamic environment, and can monitor and reflect the distance change between the mobile device and the target battery in real time, so as to adjust the movement direction of the mobile device in time to achieve more efficient target-oriented movement. The present application takes into account the difference in signal strength and the calibration process, and can adapt to the signal propagation characteristics under different environmental conditions, and provides a stable and reliable battery tracking service. The distance and distance change information are accurately calculated through signal strength data, thereby achieving a high-precision position tracking function between the mobile device and the target battery.

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

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

[0158] When the distance between the target battery and the mobile device increases, the current moving direction of the mobile device is opposite to the direction of the target battery; when the distance between the target battery and the mobile device decreases, the current moving direction of the mobile device is the same as the direction of the target battery. Therefore, according to the changing trend of the distance between the target battery and the mobile device, it is possible to judge whether the current moving direction of the mobile device is correct, thereby continuously updating the moving direction to get closer to the target battery.

[0159] The embodiment of the present application scans the signal strength broadcast by the target battery in real time based on the geographic location information of the target battery, determines the distance change information between the mobile device and the target battery based on the scanned signal strength, and judges whether the mobile device is approaching or moving away from the target battery based on the change trend of the distance between the mobile device and the target battery, thereby continuously updating the target movement direction of the mobile device and moving toward the target battery, thereby effectively navigating and positioning and ensuring that the target battery can be accurately approached. By combining the geographic location information, signal strength scanning and distance change calculation, the mobile device can accurately track the target battery, thereby improving the intelligence and efficiency of the 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, updating the target moving direction of the mobile device to a direction opposite to the current moving direction of the mobile device;

[0161] When the mobile device moves along the updated target moving direction, if the distance between the mobile device and the target battery increases, the target moving direction of the mobile device is updated to a direction perpendicular to the current moving direction of the mobile device.

[0162] It should be understood that when the mobile device scans the signal strength of the target battery, first, the initial moving direction of the mobile device is an arbitrary direction. There are two situations in which the mobile device is located relative to the target battery. One is that the target battery is on the target straight line. The target straight line is the straight line where the mobile device's moving trajectory is located based on the initial moving direction, such as Figure 3A As shown; the second is that the target battery is not on the target straight line, such as Figure 3B shown. Figure 3A and Figure 3B The dotted line in the figure is the target straight line. In the figure, N is the reference direction north and E is the reference direction north east.

[0163] If the mobile device is located relative to the target battery Figure 3AThe situation shown, for example: assuming that the initial moving direction is west, at this time, the distance between the mobile device and the target battery increases, the target moving direction of the mobile device is updated to the east, which is opposite to the current moving direction of the mobile device. When the distance between the mobile device and the target battery is the smallest 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 For example, assuming that the initial moving direction is west, that is, moving to the left, at this time, the distance between the mobile device and the target battery increases, then the target moving direction of the mobile device is updated to the east, which is opposite to the current moving direction of the mobile device. When the distance between the mobile device and the target battery is the smallest but much greater than 0, it continues to move to the right, such as Figure 3C As shown, the distance between the mobile device and the target battery will begin to increase, and the target moving direction of the mobile device is updated to a direction perpendicular to the current moving direction of the mobile device, north or south, assuming it is north, such as Figure 3D As shown, when the distance between the mobile device and the target battery is the smallest and close to 0, the target battery is reached; assuming it is south, the distance between the mobile device and the target battery increases, then the target moving direction of the mobile device is updated to the north, which is opposite to the current moving direction of the mobile device, and when the distance between the mobile device and the target battery is the smallest and close to 0, the target battery is reached.

[0165] The embodiment of the present application dynamically adjusts the moving direction of the mobile device according to the real-time distance change, which can ensure that the mobile device tracks or approaches the target battery in the most effective way and avoids excessive movement or unnecessary direction changes. By updating in the reverse or vertical direction, the movement direction of the mobile device can be adjusted more quickly, thereby optimizing the tracking effect. It is suitable for application scenarios that require rapid response to changes in target position or dynamic environmental changes. It makes intelligent adjustments based on real-time distance changes, making battery tracking more adaptable and robust, and can stably provide accurate mobile device navigation and location management services under different conditions. By dynamically updating the target movement direction of the mobile device, 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-mentioned battery positioning method will be described below with a complete example, which should not be understood as a limitation on the method of the embodiment of the present application.

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

[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: According to the MAC address scanned by the battery replacement, the longitude and latitude of the location corresponding to the MAC address is queried through the MAC address location database, recorded as MAC (lng, lat). The longitude and latitude of the location corresponding to the three MAC addresses with the strongest signal strength are:

[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] Among them, the MAC address location database is pre-built, and the WIFI device is usually located at a fixed position. The MAC address and corresponding location information of the WIFI device are pre-collected into the MAC address location database.

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

[0177]

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

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

[0180] The longitude and latitude corresponding to the three MAC addresses are known: MAC1 (lng1, lat1), MAC2 (lng2, lat2), and MAC3 (lng3, lat3). The distances between these three locations on the X-axis and Y-axis are calculated by converting the longitude and latitude distances:

[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] Taking the MAC1 position as the reference origin, a coordinate system is established, and the distance between the three MAC positions is calculated according to the distance ratio (i.e., the distance between the two target wireless access points in the access point pair), where D MAC12 is the distance between MAC1 and MAC2, D MAC13 is the distance between MAC1 and MAC3, D MAC23 is the distance between MAC2 and MAC3;

[0186]

[0187] When D1+D2>D MAC12 , two circles drawn with MAC1 and MAC2 as the center and distance as the radius intersect, such as Figure 3E As shown, D MAC13 and D MAC23 Similarly, the battery replacement position (X bt ,Y bt ) components;

[0188]

[0189] When D1+D2<D MAC12 , the two circles drawn with MAC1 and MAC2 as the center and the distance as the radius do not intersect, such as Figure 3F As shown, D MAC13 and D MAC23 Similarly, in this case, D1+D2<D MAC12 , D1+D3<D MAC13 , D2+D3<D MAC23 , calculate the battery replacement position (X bt ,Y bt ) components:

[0190]

[0191] The coordinates of the battery location (X bt , Y bt )Take(X bt1 , Y bt1 ), (X bt2 , Y bt2 ), (X bt3 , Y bt3 )’s average value:

[0192]

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

[0194] S312: The operation and maintenance personnel take a mobile device with a signal scanning function to the location of the battery replacement battery to track the battery replacement battery. The mobile device scans the signal strength broadcast by the battery replacement battery according to the location of the battery replacement battery (50.43, 65.16) obtained from steps S302 to S310, and calculates the distance D between the mobile device and the battery replacement battery based on the signal strength of the battery replacement battery using formula (11);

[0195]

[0196] Based on the changing trend of the distance between the mobile device and the battery replacement battery during movement, the location of the battery replacement battery is reached, and there are several specific situations:

[0197] Case 1: The battery replacement is on the target straight line (the straight line where the mobile device's moving trajectory is located based on the initial moving direction). If the initial moving direction is east, such as Figure 3A As shown, when the mobile device is moving, the distance between the mobile device and the battery replacement battery is constantly decreasing. When the D value is minimum (close to 0), the position of the battery replacement battery can be reached; if the initial moving direction is west, and the D value is constantly increasing during the movement of the mobile device, the moving direction of the mobile device is updated to the opposite direction of the initial moving direction, that is, east. When the D value is minimum (close to 0), the position of the battery replacement battery can be reached.

[0198] Case 2: The battery is not on the target line. If the initial moving direction is east, Figure 3B As shown in the figure, the D value will continue to decrease. When the line connecting the mobile device and the battery replacement is perpendicular to the target straight line, Figure 3CAs shown, if the mobile device continues to move eastward, the D value will begin to increase. At this time, the moving direction of the mobile device is corrected to a direction perpendicular to the initial moving direction; if the initial moving direction is west, at this time, the D value of the mobile device is continuously increasing during the movement of the mobile device, then the moving direction of the mobile device is updated to a direction opposite to the initial moving direction, that is, east, and then the D value will continue to decrease. When the line connecting the mobile device and the battery replacement is perpendicular to the target straight line, the mobile device continues to move, and the D value will begin to increase. At this time, the moving direction of the mobile device is corrected to a direction perpendicular to the initial moving direction;

[0199] Then, assume that the moving direction of the mobile device is corrected to the direction perpendicular to the initial moving direction as north, such as Figure 3D As shown, the distance between the mobile device and the battery swap battery continues to decrease. When the D value is minimum (close to 0), the position of the battery swap battery can be reached; if the moving direction of the mobile device is corrected to a direction perpendicular to the initial moving direction, which is south, the distance between the mobile device and the battery swap battery increases, and the moving direction of the mobile device needs to be updated to the opposite direction of the current moving direction, that is, north. When the D value is minimum (close to 0), the position of the battery swap battery can be reached.

[0200] The above is a description of a specific embodiment of the specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0201] The present application also provides a battery positioning system. Figure 4 , is a schematic diagram of a battery positioning system provided by an embodiment of the present application. Figure 4 As shown, the battery positioning system 400 provided in the embodiment of the application 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 Internet of Things 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 Internet of Things platform 420 obtains the physical address and signal strength of the target wireless access point reported by the battery 410, it can perform the following steps: obtaining wireless signal scanning information of the battery 410, the wireless signal scanning information including the physical addresses and signal strengths of multiple wireless access points scanned by the battery 410;

[0205] Determine, from the multiple wireless access points, a wireless access point whose signal strength meets a preset condition 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 a signal strength of the target wireless access point, wherein the first preset signal strength is used to represent a received signal strength measured within a preset distance range of the target wireless access point;

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

[0209] Optionally, in the case where there are multiple target wireless access points, the Internet of Things platform 420 may perform the following steps when determining the geographical location information of the battery 410 based on the distance and the geographical location information corresponding to the physical address: combining the multiple target wireless access points to obtain multiple access point pairs, each access point pair including two target wireless access points;

[0210] For each of the access point pairs, 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 point in the access point pair to obtain a first distance;

[0211] taking the sum of the distances between the target wireless access point in the access point pair and the battery 410 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 Internet of Things platform 420 may perform the following steps: if the second distance is greater than the first distance, calculating a ratio of the second distance to the first distance, and determining the geographical location information of the battery 410 based on the ratio and the distance between the target wireless access point in the access point pair on the X-axis and the Y-axis respectively;

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

[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 , scanning the signal strength broadcast by the battery 410 ;

[0217] Determine distance change information between the mobile device and the battery 410 based on the signal strength scanned by the mobile device;

[0218] Based on the distance change information, a target moving direction of the mobile device is updated, and the target moving direction is used to guide the mobile device to move toward 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, the mobile device may perform the following steps: determining a second difference between a second preset signal strength and the signal strength scanned by the mobile device, the second preset signal strength being used to represent the received signal strength measured within a preset distance range of the battery 410;

[0220] Determining a distance between the battery 410 and the mobile device based on the second difference and a second preset calibration distance;

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

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

[0223] When the mobile device moves along the updated target moving direction, if the distance between the mobile device and the battery 410 increases, the target moving direction of the mobile device is updated to a direction perpendicular to the current moving direction of the mobile device.

[0224] The present application also provides a battery replacement. Figure 5 , is a schematic diagram of a battery replacement structure provided by an embodiment of the present application. Figure 5 As shown, the battery replacement battery 500 provided in the embodiment of the application 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 a target wireless access point and obtain the physical address of the target wireless access point.

[0228] The Internet of Things communication module is used to communicate with the Internet of Things platform, including reporting the signal strength and physical address of the target wireless access point to the Internet of Things 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 may be Figure 5 The replaceable battery 500 is shown.

[0231] With the above Figure 1 Corresponding to the battery positioning method shown, the present application embodiment also provides a battery positioning device. Figure 6 , is a structural schematic diagram of a battery positioning device 600 provided in an embodiment of the present 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 configured to determine a distance between the target battery and the target wireless access point based on the signal strength.

[0234] The second determining unit 630 is configured 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 acquiring the physical address and signal strength of the target wireless access point scanned by the target battery, the acquiring unit 610 may perform the following steps: acquiring 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;

[0236] Determine, from the multiple wireless access points, a wireless access point whose signal strength meets a preset condition 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 a signal strength of the target wireless access point, where the first preset signal strength is used to characterize a received signal strength measured within a preset distance range of the target wireless access point;

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

[0240] Optionally, in the case where 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 distance and the geographical location information corresponding to the physical address: combining the multiple target wireless access points to obtain multiple access point pairs, each access point pair including two target wireless access points;

[0241] For each of the access point pairs, 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 point in the access point pair to obtain a first distance;

[0242] taking the sum of the distances between the target wireless access point in the access point pair and the target battery as the second distance;

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

[0244] Optionally, when determining the geographical location information of the target battery based on the first distance and the second distance, the second determining unit 630 may perform the following steps: if the second distance is greater than the first distance, calculating a ratio of the second distance to the first distance, and determining the geographical location information of the target battery based on the ratio and the distances between the target wireless access points in the access point pair on the X-axis and the Y-axis respectively;

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

[0246] Obviously, the positioning device provided in the embodiment of the present application can be used as Figure 1 The execution body of the battery positioning method shown, for example Figure 1 In the battery positioning method shown in FIG. 1 , step S102 may be performed by Figure 6 The acquisition unit 610 in the battery positioning device 600 shown in FIG. 1 is executed, and step S104 can be performed by Figure 6 The first determining unit 620 in the battery positioning device 600 shown in FIG. 1 is executed, and step S106 can be performed by Figure 6 The second determination unit 630 in the battery positioning device 600 is shown to execute.

[0247] With the above Figure 2 Corresponding to the battery positioning method shown, the present application embodiment also provides a battery tracking device. Figure 7 , is a structural diagram of a battery tracking device 700 provided in one embodiment of the present 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 moving direction of the mobile device based on the distance change information, and the target moving direction is used to guide the mobile device to move toward the target battery.

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

[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, the second preset signal strength being used to represent a received signal strength measured within a preset distance range of the target battery;

[0253] determining a distance between the target battery and the mobile device based on the second difference and a second preset calibration distance;

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

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

[0256] When the mobile device moves along the updated target moving direction, if the distance between the mobile device and the target battery increases, the target moving direction of the mobile device is updated to a direction perpendicular to the current moving direction of the mobile device.

[0257] Obviously, the tracking device provided in the embodiment of the present application can be used as Figure 2 The execution body of the battery tracking method shown, for example Figure 2 In the battery tracking method shown in FIG. 1 , step S202 may be performed by Figure 7 The scanning unit 710 in the battery tracking device 700 shown in FIG. 1 is executed, and step S204 can be performed by Figure 7 The determination unit 720 in the battery tracking device 700 shown in FIG. 1 is executed, and step S206 can be performed by Figure 7 The updating unit 730 in the battery tracking device 700 is shown to execute.

[0258] According to another embodiment of the present application, Figure 6 The battery positioning device shown or Figure 7The various units in the battery tracking device shown can be individually or completely combined into one or several other units to form, or one (some) of the units can be further divided into multiple functionally smaller units to form, which can achieve the same operation without affecting the realization of the technical effects of the embodiments of the present application. The above-mentioned units are divided based on logical functions. In actual applications, the function of one unit can also be implemented by multiple units, or the functions of multiple units can be implemented by one unit. In other embodiments of the present application, the battery positioning device or the battery tracking device may also include other units. In actual applications, these functions can also be implemented with the assistance of other units, and can be implemented by the collaboration of multiple units.

[0259] According to another embodiment of the present application, the program can be executed on a general computing device such as a computer including a central processing unit (CPU), a random access memory (RAM), a read-only memory (ROM), and other processing elements and storage elements. Figure 1 or 2. A computer program (including program code) for each step involved in the corresponding method shown in FIG. Figure 6 The battery positioning device shown in or the battery tracking device shown in 7 can be used to implement the battery positioning method or battery tracking method of the embodiment of the present application. The computer program can be recorded on, for example, a computer-readable storage medium, and transferred to an electronic device through 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 the present application. Figure 8 At the hardware level, the electronic device includes a processor, and optionally also includes an internal bus, a network interface, and a memory. The memory may include a memory, such as a high-speed random access memory (RAM), and may also include a non-volatile memory (non-volatile memory), such as at least one disk storage. Of course, the electronic device may also include hardware required for other services.

[0261] The processor, network interface and memory can be interconnected through 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. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 8 Only one bidirectional arrow is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0262] The memory is used to store the program. Specifically, the program may include a program code, and the program code includes a computer operation instruction. The memory may include a memory and a non-volatile memory, and provides instructions and data to the processor.

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

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

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

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

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

[0268] Scanning the signal strength broadcast by the target battery based on the geographic location information of the target battery;

[0269] Determining distance change information between the mobile device and the target battery based on the scanned signal strength;

[0270] Based on the distance change information, a target moving direction of the mobile device is updated, where the target moving direction is used to guide the mobile device to move toward the target battery.

[0271] The above application Figure 6The battery positioning device disclosed in the embodiment shown or Figure 7 The method performed by the battery tracking device disclosed in the illustrated embodiment can be applied to a processor or implemented by a processor. The processor may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by an integrated logic circuit of hardware in the processor or instructions in the form of software. The above 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 gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in the embodiments of the present application can be directly embodied as a hardware decoding processor for execution, or a combination of hardware and software modules in the decoding processor for execution. The software module can be located in a storage medium mature in the art such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory, and the processor reads the information in the memory and completes the steps of the above method in combination with its hardware.

[0272] The electronic device may also perform Figure 1 The method and the battery positioning device are implemented in Figure 1 , Figure 6 The functions of the embodiments shown, or the execution Figure 2 The method and the battery tracking device are implemented in Figure 2 , Figure 7 The functions of the illustrated embodiment will not be described in detail in the embodiments of the present application.

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

[0274] The embodiment of the present application also provides a computer-readable storage medium, which stores one or more programs, wherein the one or more programs include instructions, which, when executed by a portable electronic device including a plurality of application programs, enable the portable electronic device to execute Figure 1 The method of the embodiment shown is specifically used to perform the following operations:

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

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

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

[0278] Alternatively, when the instruction is executed by a portable electronic device including a plurality of application programs, the portable electronic device can execute Figure 2 The method of the embodiment shown is specifically used to perform the following operations:

[0279] Scanning the signal strength broadcast by the target battery based on the geographic location information of the target battery;

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

[0281] Based on the distance change information, a target moving direction of the mobile device is updated, where the target moving direction is used to guide the mobile device to move toward the target battery.

[0282] In short, the above description is only a preferred embodiment of the present application and is not intended to limit the protection scope of the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.

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

[0284] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules 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 technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0285] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0286] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

Claims

1. A battery positioning method, characterized in that: include: Obtain the physical address and signal strength of the target wireless access point scanned by the target battery; Based on the signal strength, determining a distance between the target battery and the target wireless access point; The geographical location information of the target battery is determined based on the distance and the geographical location information corresponding to the physical address.

2. The method according to claim 1, characterized in that The obtaining of the physical address and signal strength of the target wireless access point scanned by the target battery includes: Acquire wireless signal scanning information of the target battery, wherein the wireless signal scanning information includes physical addresses and signal strengths of multiple wireless access points; Determine, from the multiple wireless access points, a wireless access point whose signal strength meets a preset condition 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 The determining, based on the signal strength, the distance between the target battery and the target wireless access point comprises: Determine a first difference between a first preset signal strength and a signal strength of the target wireless access point, wherein the first preset signal strength is used to represent a received signal strength measured within a preset distance range of the target wireless access point; Based on the first difference and a first preset calibration distance, a distance between the target battery and the target wireless access point is determined.

4. The method according to claim 1, characterized in that: The number of the target wireless access points is multiple; The determining the geographical location information of the target battery based on the distance and the geographical location information corresponding to the physical address includes: Combining a plurality of the target wireless access points to obtain a plurality of access point pairs, each access point pair including two of the target wireless access points; For each of the access point pairs, 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 point in the access point pair to obtain a first distance; taking the sum of the distances between the target wireless access point in the access point pair and the target battery as the second distance; Based on the first distance and the second distance, the geographic location information of the target battery is determined.

5. The method according to claim 4, characterized in that The determining the geographic location information of the target battery based on the first distance and the second distance includes: If the second distance is greater than the first distance, calculating a ratio of the second distance to the first distance, and determining geographic location information of the target battery based on the ratio and the distances between the target wireless access points in the access point pair on the X-axis and the Y-axis respectively; If the second distance is less than the first distance, a ratio of a distance between any target wireless access point in the access point pair and the target battery to the second distance is calculated, and geographical location information of the target battery is determined based on the ratio and the distances between the target wireless access points in the access point pair on the X-axis and the Y-axis, respectively.

6. A battery tracking method, characterized in that: Applied to a mobile device, the method comprises: Scanning the signal strength broadcast by the target battery based on the geographic location information of the target battery, wherein the geographic location information of the target battery is determined based on the method according to any one of claims 1 to 5; Based on the scanned signal strength, determining distance change information between the mobile device and the target battery; Based on the distance change information, a target moving direction of the mobile device is updated, where the target moving direction is used to guide the mobile device to move toward the target battery.

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

8. The method according to claim 6, characterized in that The updating of the target moving direction of the mobile device based on the distance change information includes: If the distance between the mobile device and the target battery increases, updating the target moving direction of the mobile device to a direction opposite to the current moving direction of the mobile device; When the mobile device moves along the updated target moving direction, if the distance between the mobile device and the target battery increases, the target moving direction of the mobile device is updated to a direction perpendicular to the current moving direction of the mobile device.

9. 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 point to the Internet of Things platform; The Internet of Things 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.

10. A computer-readable storage medium, characterized in that: When the instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the method as described in any one of claims 1 to 5; or, when the instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the method as described in any one of claims 6 to 8.

Citation Information

Patent Citations

  • Autonomous positioning systems

    CN109618290A

  • Target tracking method and device, storage medium and intelligent equipment

    CN111601254A

  • Distance measurement method and device, electronic equipment and storage medium

    CN113466841A

  • Battery use estimation method and device, electronic equipment and readable storage medium

    CN115097320A

  • Battery loss confirmation method and device, electronic equipment and readable storage medium

    CN115188144A