GNSS tracker flow consumption value calculation method, electronic equipment and storage medium
By constructing the daily positioning strategy of the GNSS tracker and calculating the total flow consumption value, the problem of inaccurate evaluation of the flow consumption value of the GNSS tracker is solved, and the accuracy of battery capacity design and the satisfaction of user needs is achieved.
Patent Information
- Application Number
- CN202510121087.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-24
- Publication Date
- 2025-05-06
AI Technical Summary
In the prior art, the evaluation of the current consumption value of the GNSS tracker is not accurate enough, resulting in insufficient or over-design of battery capacity, affecting user experience and product costs.
By obtaining the user input GNSS tracker product requirements, a daily positioning strategy is built, including the daily startup times for cold starts, hot starts, and ephemeris updates, and the total flow consumption value is calculated based on these strategies and preset flow consumption values.
Accurately calculating the current consumption value of the GNSS tracker solves the problems of inaccurate estimation of current consumption value and large deviations in the results in traditional methods, ensuring the rationality of battery capacity design and the satisfaction of user needs.
Smart Images

Figure CN119936476A_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present invention relate to the field of GNSS technology, and in particular to a method for calculating current consumption of a GNSS tracker, an electronic device, and a storage medium. Background Art
[0002] GNSS (Global Navigation Satellite System) is a technology that achieves positioning by receiving satellite signals and is widely used in tracker products. After being installed on the object to be located, this type of product uses a built-in battery to continuously perform the positioning function until the battery is exhausted. Due to the differences in usage scenarios and needs of different users, the requirements for battery capacity are also different. Therefore, during the product design stage, it is necessary to accurately evaluate the current consumption value of the product throughout its life cycle so as to equip it with a battery of appropriate capacity.
[0003] However, current evaluation of tracker current consumption usually relies on experience, and the evaluation results are often not accurate enough, which may result in the designed battery capacity being insufficient to support the expected usage time, or incurring additional cost waste due to excessive capacity. Summary of the invention
[0004] The purpose of the embodiments of the present invention is to provide a method for calculating the current consumption value of a GNSS tracker, an electronic device, and a storage medium, so as to solve the problem that the evaluation result of the current consumption value of the GNSS tracker is not accurate enough.
[0005] To solve the above technical problems, an embodiment of the present invention provides a method for calculating the current consumption of a GNSS tracker, comprising: obtaining a GNSS tracker product requirement input by a user; wherein the product requirement includes the number of daily positioning times of the product, product usage scenarios and product life; based on the daily positioning times and product usage scenarios, constructing a daily positioning strategy for the GNSS tracker; wherein the daily positioning strategy includes the number of daily starts in three operating states: cold start positioning, hot start positioning and ephemeris update; based on the daily positioning strategy, the preset current consumption values of the three operating states and the product life, calculating the total current consumption of the GNSS tracker.
[0006] An embodiment of the present invention also provides an electronic device, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the GNSS tracker current consumption value calculation method as described above.
[0007] An embodiment of the present invention further provides a computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the method for calculating the current consumption value of a GNSS tracker as described above in the claims.
[0008] In an embodiment of the present invention, the number of times the three GNSS positioning states are activated is accurately calculated by judging user needs, thereby obtaining a daily current consumption value, and based on the daily current consumption value, the total current consumption value of the GNSS tracker for normal operation throughout its entire life cycle is calculated, effectively solving the problem of inaccurate estimation of the current consumption value of the GNSS tracker and large deviation in the results in traditional methods. BRIEF DESCRIPTION OF THE DRAWINGS
[0009] One or more embodiments are exemplarily described by pictures in the corresponding drawings, and these exemplified descriptions do not constitute limitations on the embodiments. Elements with the same reference numerals in the drawings represent similar elements, and unless otherwise stated, the figures in the drawings do not constitute proportional limitations.
[0010] Figure 1 is a schematic diagram of a method for calculating current consumption of a GNSS tracker provided in an embodiment of the present application;
[0011] Figure 2 It is a schematic diagram of the Japanese positioning strategy judgment process in the method for calculating the current consumption value of the GNSS tracker provided in the embodiment of the present application;
[0012] Figure 3 It is a schematic diagram of the total current consumption value calculation process in the current consumption value calculation method of the GNSS tracker provided in an embodiment of the present application;
[0013] Figure 4 It is a schematic diagram of the positioning state switching logic of the GNSS tracker product in the GNSS tracker current consumption value calculation method provided in the embodiment of the present application;
[0014] Figure 5 It is a structural diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0015] GNSS (Global Navigation Satellite System) is a technology that achieves positioning by receiving satellite signals. It is widely used in various positioning and tracking products including trackers. GNSS trackers are widely used in scenarios such as item anti-lost, vehicle management, personnel positioning, and asset tracking due to their portability and high precision. Its core function is to continuously run the positioning function through the built-in battery after being installed on the target to be located, so as to achieve real-time monitoring of the target position and historical track recording. In actual use, the work of GNSS trackers mainly includes three operating states:
[0016] 1. Cold start positioning: Without any prior information, the tracker searches and connects to satellite signals from scratch and obtains positioning information. This process usually takes a long time (tens of seconds to minutes) and consumes high power.
[0017] 2. Hot start positioning: By using some of the saved satellite information (such as ephemeris or time data), the tracker can quickly restore the positioning state and obtain positioning information. Compared with cold start, hot start takes less time and consumes less power, and is the main mode in most daily use scenarios.
[0018] 3. Almanac update: The tracker regularly receives and stores almanac data from satellites, but does not update the positioning information, only maintaining the accuracy of subsequent positioning. Although a single almanac update takes a short time, its update frequency has a significant impact on the overall power consumption of the tracker.
[0019] The operating frequency and power consumption distribution of the three operating states directly determine the current consumption of the tracker, which in turn affects the battery life of the device. However, GNSS trackers do not only consume current during the positioning process, but also consume a certain amount of current in standby or sleep mode between positioning. These factors together constitute the current consumption structure of the tracker. Due to the significant differences in the needs and usage scenarios of different users, the requirements of trackers for battery capacity are also different:
[0020] 1. Number of positioning times per day: High-frequency positioning (e.g. once per minute) is suitable for logistics or high-value asset tracking, which have high requirements for power consumption. Low-frequency positioning (e.g. several times a day) is more suitable for personal item loss prevention or long-term monitoring, which has relatively low power consumption.
[0021] 2. Usage scenarios: In an environment with good satellite signals (such as open areas), the tracker has a short positioning lock time and low power consumption; in an environment with poor signals (such as a high-rise building area or underground parking lot), the positioning time will be significantly extended and the power consumption will increase significantly. In addition, special environments such as extreme weather or complex terrain may further increase power consumption.
[0022] 3. Product life: Users’ expectations of the tracker’s service life directly affect the battery capacity design. For example, the battery life requirements for short-term tracking needs (such as one month) and long-term monitoring needs (such as more than one year) are completely different.
[0023] At present, a single standard battery capacity design is difficult to meet the above diverse needs. When the current consumption value is not evaluated enough, the battery capacity may not be able to support the device to reach the expected usage time, resulting in a damaged user experience; while overestimating the current consumption value may lead to excessive battery capacity design, increase product cost, volume and weight, and thus affect portability and market competitiveness. Therefore, the core of customized battery capacity design for different user needs lies in accurately evaluating the current consumption value of the tracker.
[0024] Most of the existing current consumption evaluation methods rely on empirical methods, inferring the current consumption of new products by referring to the current consumption data of historical products. However, this method usually ignores the actual needs of users and the dynamic changes in power consumption in usage scenarios, and it is difficult to fully reflect personalized usage patterns. For example, the power consumption of cold start, hot start and ephemeris update in different scenarios varies significantly, and complex factors such as positioning frequency, environmental signal strength and target service life further increase the difficulty of evaluation. The limitations of existing methods often lead to deviations in evaluation results, which in turn affects the rationality of battery capacity design.
[0025] The deviation in current consumption assessment may lead to two consequences: underestimating the current consumption will lead to insufficient battery capacity and fail to meet users' expectations for device endurance; while overestimating the current consumption may cause excessive battery capacity design, which will not only increase product costs, but also increase device size and weight, weakening portability and market competitiveness.
[0026] Therefore, in order to better meet the needs of different users and optimize the battery capacity design of GNSS tracker products, it is urgent to develop a GNSS tracker current consumption value evaluation method for different user needs.
[0027] To make the purpose, technical scheme and advantages of the embodiments of the present invention clearer, the embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings. However, it will be appreciated by those skilled in the art that in the embodiments of the present invention, many technical details are proposed in order to enable the reader to better understand the present application. However, even without these technical details and various changes and modifications based on the following embodiments, the technical scheme claimed in the present application can be implemented. The division of the following embodiments is for the convenience of description, and should not constitute any limitation on the specific implementation of the present invention. The various embodiments can be combined and referenced with each other without contradiction.
[0028] An embodiment of the present invention relates to a method for calculating the current consumption of a GNSS tracker, which can be applied to electronic devices including memory and processor structures, such as mid-end devices such as servers, mobile phones, and computers. The method includes: obtaining the GNSS tracker product requirements input by the user; wherein the product requirements include the number of daily positioning times of the product, the product usage scenarios, and the product life; based on the daily positioning times and the product usage scenarios, constructing the daily positioning strategy of the GNSS tracker; wherein the daily positioning strategy includes the number of daily startups of the three operating states of cold start positioning, hot start positioning, and ephemeris update; based on the daily positioning strategy, the preset current consumption values of the three operating states, and the product life, calculating the total current consumption of the GNSS tracker. By judging the user's needs, the number of startups of the three GNSS positioning states is accurately calculated to obtain the daily current consumption value, and the total current consumption value of the GNSS tracker for normal operation throughout the life cycle is calculated based on the daily current consumption value, which effectively solves the problem of inaccurate estimation of the current consumption value of the GNSS tracker and large deviation in the results in traditional methods.
[0029] The following is a detailed description of the implementation details of a method for calculating the current consumption value of a GNSS tracker according to an embodiment of the present invention. The following content is only provided for the convenience of understanding the implementation details and is not necessary for the implementation of this solution.
[0030] like Figure 1 As shown, an embodiment of the present invention provides a method for calculating the current consumption value of a GNSS tracker. The method obtains the GNSS tracker product requirements input by the user, constructs a daily positioning strategy, and calculates the total current consumption value of the GNSS tracker based on the daily positioning strategy and the current consumption characteristics of three operating states, so as to achieve accurate evaluation of the battery capacity.
[0031] In step 110, the GNSS tracker product requirements input by the user are obtained. The product requirements include the following:
[0032] 1. Number of daily positioning: The number of daily positioning is the number of valid positioning tasks that the user specifies that the GNSS tracker needs to complete every day. This value includes the number of cold start positioning and hot start positioning, but does not include the number of ephemeris updates. The number of daily positioning directly determines the operating frequency and current consumption distribution of the device, affecting the subsequent current consumption value calculation and battery capacity evaluation. For example, in a warehousing environment, due to the low frequency of positioning tasks, the number of daily positioning can be set to 6 times, with a longer average interval; in a transportation environment, in order to meet high-frequency tracking needs, the number of daily positioning can be set to 24 times, with a shorter average interval; in a field environment, in order to balance accuracy and power consumption, the number of daily positioning can be set to 12 times, with a moderate interval.
[0033] 2. Product usage scenarios: The product usage scenarios entered by the user are used to describe the actual operating environment of the GNSS tracker, thereby determining the cold start probability. Product usage scenarios include but are not limited to signal quality, occlusion conditions, and movement frequency. Different usage scenarios will affect the trigger probability of cold starts and hot starts, and have an important impact on the current consumption distribution. For example, in a warehousing environment, the signal is severely blocked and the cold start probability is high, set to 50%; in a transportation environment, the signal is relatively stable and the cold start probability is low, set to 20%; in a field environment, the signal fluctuates greatly and the cold start probability is medium. Set to 30%.
[0034] 3. Product life: Product life is the time that a GNSS tracker can operate normally without replacing the battery, usually in years, such as 3 or 5 years. This parameter determines the cumulative time range of the current consumption value, and together with the daily current consumption value, determines the total current consumption value of the device, thus affecting the choice of battery capacity. For example, GNSS trackers in transportation environments are usually designed with a life of 1 year to reduce battery replacement costs; GNSS trackers in storage environments can be designed with a life of 5 years to meet the needs of long-term continuous operation.
[0035] In step 120, the system constructs a daily positioning strategy for the GNSS tracker based on the daily positioning times in the product requirements and the product usage scenarios. The daily positioning strategy includes the daily start times of three operating states: cold start positioning, hot start positioning, and ephemeris update.
[0036] In the above step 120, the specific method of constructing the daily positioning strategy of the GNSS tracker is as follows: Figure 2 Said, including:
[0037] Step 121, calculating the positioning interval time based on the number of positioning times per day.
[0038] In the embodiment of the present application, the calculation of the positioning interval time is an important part of optimizing the power consumption of the GNSS tracker. The positioning interval time is used to indicate the time interval between each cold start or hot start positioning and the most recent positioning, which directly affects the triggering frequency of cold start, hot start and ephemeris update, thereby having an important impact on the total power consumption of the device. It should be noted that in this embodiment, in order to simplify the calculation and optimize resource allocation, it is assumed that the interval time between all positioning tasks is equal. Through equalization processing, the average positioning interval time T can be directly calculated based on the number of daily positioning times N input by the user. avg , the formula is as follows:
[0039]
[0040] Where N is the number of positioning times per day.
[0041] The length of the positioning interval directly affects the distribution of cold starts and hot starts. The shorter the interval, the higher the proportion of hot starts; the longer the interval, the greater the probability of triggering cold starts. For example, when positioning 6 times a day, the average interval is 4 hours; when positioning 12 times a day, the average interval is 2 hours; when positioning 24 times a day, the average interval is 1 hour.
[0042] Step 122, based on the product usage scenario and the number of daily positioning, the number of cold start positioning and the number of hot start positioning are calculated respectively.
[0043] In the embodiment of the present application, the trigger conditions for cold start mainly include two situations: the positioning interval time is greater than the ephemeris validity time (usually 2 hours) or the signal is interrupted. In different product usage scenarios, there are significant differences in the environmental conditions and trigger frequencies when starting positioning. Therefore, it is necessary to comprehensively consider the user's daily positioning times, specific usage scenarios, and cold start trigger conditions to reasonably determine the trigger times of cold start and hot start.
[0044] In order to achieve a rapid assessment of the cold start trigger probability, a cold start probability mapping table is pre-constructed in this embodiment to map the product usage scenario input by the user with the cold start trigger probability. Several typical usage scenarios and their corresponding cold start probabilities are pre-defined in the mapping table. For example: Warehousing environment: Due to severe signal obstruction, the cold start probability is set to 50%; Transportation environment: The signal is relatively stable and the positioning tasks are frequent, and the cold start probability is set to 20%; Field environment: The signal coverage may be interrupted, but it is generally stable, and the cold start probability is set to 30%. When the user selects a predefined usage scenario in step 110, the system will automatically extract the corresponding cold start probability from the mapping table. In this way, users are supported to select predefined scenarios to determine the cold start probability, thereby enhancing the applicability of the system.
[0045] Optionally, based on the preset cold start probability mapping table, this embodiment also introduces an artificial intelligence algorithm for dynamically predicting the cold start probability from the scenario description input by the user. When the user does not select a predefined usage scenario, but describes the usage scenario through text (such as "the equipment will be used alternately in warehouse and field environments"). The system first analyzes the scenario description input by the user through the NLP model to extract key features (such as "warehouse", "signal interruption", "moving frequency", etc.). Then, based on a machine learning model (such as a regression model or a neural network), combined with the extracted scenario features and historical cold start probability data, a cold start probability value suitable for the scenario is output. By using an artificial intelligence algorithm to predict the cold start probability, it is possible to adapt to complex scenario changes and further optimize the energy consumption assessment accuracy of the GNSS tracker.
[0046] Then, based on the cold start probability value obtained above, the number of cold starts N can be calculated cold , the calculation formula is as follows:
[0047] N cold =N×P cold
[0048] Among them, P cold is the cold start probability, which is determined by the product usage scenario. Number of hot starts N hot It is the number of daily positioning times minus the number of cold starts, and the formula is as follows:
[0049] N hot =N×P hot
[0050] For example, the number of daily positioning times entered by the user is N=6, and the usage scenario is a warehouse environment. At this time, the cold start probability P corresponding to the field condition in the mapping table is cold is 50%. Therefore, we know that the number of cold starts is N cold =6×50%=3, the number of hot starts is N hot =6-3=3.
[0051] Through the above step 120, the number of cold starts and hot starts is dynamically calculated, and the system can more accurately evaluate the current consumption values in different operating states.
[0052] Step 123: Calculate the number of ephemeris update startup times based on the positioning interval.
[0053] In the embodiments of the present application, the triggering conditions and functions of the ephemeris update are different from those of the cold start and hot start. Both cold start and hot start will update the positioning information, but the ephemeris update only refers to the GNSS tracker receiving and storing ephemeris data from the satellite without performing the positioning operation. Therefore, the main function of the ephemeris update is to ensure that the hot start conditions are met by updating the ephemeris data when the positioning interval between the cold start or hot start is too long, resulting in the expiration of the ephemeris data, thereby avoiding unnecessary cold starts.
[0054] The currently known information only includes the trigger times of cold start and hot start, and it is impossible to determine the next positioning method. Therefore, to simplify the calculation, it is assumed that all next positioning methods are hot start. Under this assumption, it is only necessary to combine the daily positioning interval time T avg , to determine whether the triggering conditions for ephemeris update are met, thereby counting the number of ephemeris updates. In addition, it should be noted that if the number of hot starts is 0 (for example, all positioning tasks are completed by cold starts), there is no need to perform ephemeris update, so the number of ephemeris updates is directly set to 0.
[0055] Based on the above principle, the triggering condition for ephemeris update is that the positioning interval time exceeds the ephemeris validity time (usually 2 hours) but does not meet the cold start condition. Therefore, the ephemeris update judgment rule constructed in the embodiment of the present application is as follows: avg If the positioning interval is greater than 2 hours and the next positioning method is hot start, it is considered that the ephemeris needs to be updated; and the positioning interval time T avg If the time is less than 2 hours, no ephemeris update is needed, because the hot start can complete the positioning. Based on the above judgment rules, the number of triggers that meet the ephemeris update conditions can be counted to determine the number of ephemeris update starts per day.
[0056] In step 130, the total current consumption of the GNSS tracker is calculated based on the daily positioning strategy, the preset current consumption values of the three operating states, and the product life. The specific method for calculating the total current consumption of the GNSS tracker is as follows: Figure 3 As shown, including:
[0057] Step 131 , weighted calculation is performed on the daily start times of the three operating states in the daily positioning strategy and the preset current consumption values of the three operating states to obtain the daily current consumption value.
[0058] In step 131, that is, when specifically calculating the current consumption values of the three operating states, it is first necessary to clarify the device structure of the GNSS tracker, the working mode when performing positioning, and the working current. The GNSS tracker used in the embodiment of the present application, the device structure related to the three positioning states includes at least a GNSS positioning module and a main control chip. The GNSS positioning module is mainly used for positioning and ephemeris update, and the main control chip will also generate a certain amount of current consumption when the device is running. Among them, the specific type of the main control chip is determined based on the actual GNSS tracker product used, including but not limited to MCU, Bluetooth low-power chip, etc.
[0059] In the embodiment of the present application, the actual working current of the GNSS positioning module applied to the above tracker structure is 27mA@1.8V. Combined with the DCDC 3.6V input and 80% conversion efficiency, the actual working current I module The calculation is 27×1.8 / 0.8 / 3.6=16.875mA. However, in actual applications, when the main control chip is a Bluetooth low-power chip, it is measured that the Bluetooth low-power chip I bluetooth During operation, an additional 3mA current will be consumed. Therefore, the actual operating current of the above tracker is I module +I bluetooth =16.875+3=19.875mA.
[0060] When the device needs to start positioning or update the ephemeris data, the system will power on the GNSS positioning module and the Bluetooth low-power chip at the same time to start the corresponding function. The main difference between the working modes of the three positioning states is the power-on time: during cold start, the GNSS positioning module and the Bluetooth low-power chip in the device will be powered on for up to 60 seconds to ensure the successful execution of the function; during hot start, the power-on time is up to 10 seconds, and the total power consumption of the corresponding GNSS positioning module and Bluetooth low-power chip will be relatively reduced; when the ephemeris is updated, the power-on time is further shortened to a maximum of 5 seconds, and the corresponding power consumption is the lowest.
[0061] Then, based on the above processing results, the daily current consumption value is calculated from the energy consumption of the three operating states: cold start, hot start, and ephemeris update. Specifically, according to the daily start times of the three operating states in the daily positioning strategy and their corresponding current consumption characteristics, the daily current consumption value is calculated one by one. The specific formula is as follows:
[0062] 1. Cold start current consumption: Cold start is the operating state with the highest energy consumption in the GNSS tracker. Its current consumption is determined by the operating current of the GNSS positioning module and the Bluetooth low energy chip and the cold start time. cold The calculation formula is as follows:
[0063] I cold =(I module +I bluetooth )×t cold ×N cold
[0064] Among them, N cold is the number of cold starts per day, calculated in step 122; t cold is the average running time of cold start, defined as 60 seconds, or 1 / 60 hour; I module is the operating current of the GNSS positioning module, defined as 16.875mA; I bluetooth It is the operating current of the Bluetooth low energy chip, defined as 3mA.
[0065] 2. Hot start current consumption: The hot start current consumption is lower than the cold start current consumption. The current consumption is determined by the running time of the GNSS positioning module and the Bluetooth chip during the hot start. hot The calculation formula is as follows:
[0066] I hot =(I module +I bluetooth )×t hot ×N hot
[0067] Among them, N hot is the number of hot starts per day, calculated in step 122; thot is the average running time of a hot start, defined as 10 seconds, or 1 / 600 hours.
[0068] 3. Ephemeris update current consumption: Ephemeris update is a low current consumption state of GNSS tracker, which is only used to synchronize ephemeris data to ensure the effectiveness of hot start. Its current consumption value is I update The calculation formula is as follows:
[0069] I update =(I module +I bluetooth )×t update ×N update
[0070] Among them, N update is the number of hot starts per day, calculated in step 123; t update is the average running time of a hot start, defined as 5 seconds, or 1 / 1200 hours.
[0071] The calculated current consumption values of the above three operating states are summed up to get the total daily current consumption value of the GNSS tracker. daily The calculation formula is:
[0072] I daily =I cold +I hot +I update
[0073] In addition, during the non-operating period of the GNSS tracker, the device usually enters sleep mode to save energy. In the embodiment of the present application, the average working current of the device when in sleep mode is about 0.0573 mA, so the daily current consumption value of the device when in sleep mode is calculated by multiplying the standby current of the device by the sleep time, specifically I sleep =0.00573×24≈1.376mA.
[0074] Therefore, the daily current consumption value of the sleep mode needs to be added to the daily current consumption value to improve the accuracy of the total current consumption value calculation. daily,opt The calculation formula is:
[0075] I daily,opt =I daily +I sleep
[0076] Step 132 , multiply the daily current consumption value by the service life to obtain the total current consumption value of the GNSS tracker.
[0077] Specifically, the total current consumption value I total It is calculated by multiplying the daily current consumption value by the product life, and the formula is as follows:
[0078] I total =I daily,opt ×T life
[0079] Where T life The user-entered product lifespan of the GNSS tracker in days.
[0080] Optionally, to further optimize the distribution of current consumption, the total current consumption of the GNSS tracker can be refined by allocating specific startup times for cold start, hot start, and ephemeris update. Specifically, the startup times of the three operating states are calculated based on the daily positioning strategy and product requirements. The daily current consumption is optimized through the startup times of the three operating states, and the total current consumption of the GNSS tracker is corrected.
[0081] Specifically, according to the number of startups of the three operating states obtained in step 120 and the product requirements input by the user, the startup time of the three operating states will be set in the order of cold start, hot start and ephemeris update. First, cold start will be preferentially arranged in long interval periods or periods with severe consumption and occlusion. For example, in a storage environment, the cold start time can be allocated in the morning period after the device is reactivated (such as 08:00 to 09:00); while in a field environment, the cold start time can be allocated in a long interval period at night (such as 02:00 to 04:00). Secondly, hot start is preferentially allocated in periods with high positioning frequency. For example, in a transportation environment, the trigger time of hot start should be concentrated in the daytime (such as 09:00 to 18:00) to ensure the real-time performance of the device; and in a storage scenario, hot start is preferentially arranged in the effective working time period when the device is activated. Finally, it is necessary to insert ephemeris update in the long interval between cold start and hot start, for example, insert ephemeris update operation in a low frequency period (such as 20:00 to 22:00 in the evening) after the end of a high-frequency task every day. After constructing the startup schedules for the three operating states based on the above principles, the schedules are fed back to the user for review and processing, and the startup schedule adjusted by the user is used as the final result to correct the daily current consumption value.
[0082] Based on the startup time of the three operating states obtained above, the corrected startup times of the three operating states are obtained, and step 131 and step 132 are re-executed to finally obtain a more accurate total current consumption value of the GNSS tracker, thereby improving the evaluation accuracy of the battery current consumption value required by the GNSS tracker throughout its life cycle.
[0083] Finally, after calculating the battery current consumption required by the GNSS tracker throughout its life cycle through the above steps, in order to more accurately evaluate the battery capacity that needs to be configured, it is also necessary to consider the performance degradation of the battery in actual use. Specifically, since the battery will gradually decay due to chemical properties during long-term use, the actual available capacity will be lower than the nominal value. During actual execution, a battery attenuation degree will be preset according to the characteristics of the battery material, and the battery capacity value that the GNSS tracker actually needs to provide can be calculated based on the battery attenuation degree. The specific calculation formula for the actual battery capacity C required is as follows:
[0084]
[0085] Among them, D derating By reasonably evaluating the battery demand after attenuation, the reliability and accuracy of the total current consumption value actually required by the GNSS tracker can be significantly improved, providing guarantee for subsequent battery capacity design.
[0086] Optionally, when determining the start time of the three operating states in the above embodiment, reference may be made to the actual operating logic of the GNSS tracker product (e.g. Figure 4 ). Figure 4 The complete logic flow of the GNSS tracker's startup mode switching according to the status of the positioning task and the operating conditions during actual operation is demonstrated. This process is the basis for the GNSS tracker to perform cold start, hot start and ephemeris update. By dynamically judging the signal status, positioning interval and positioning success rate, it ensures efficient operation of the device and reduces current consumption. Figure 4 , explain each key logical node:
[0087] After the tracker is started, it first enters the initial state and immediately checks the current ephemeris data status. If the ephemeris data has expired (exceeded the validity period), the system will try to complete the ephemeris update operation within 10 seconds. If the update is successful, the GNSS state directly switches to hot start and enters the subsequent positioning task; if the update fails, the system switches to cold start. This design prioritizes the use of low-current ephemeris update operations to reduce the possibility of cold start triggering and improve the energy efficiency of the device.
[0088] If the ephemeris update is not completed or does not need to be updated, the system attempts to locate the task and determines whether the positioning is successful within 8 seconds. If the positioning is successful, the GNSS state is directly switched to hot start, the current positioning task is completed and the task success information is recorded. If the positioning fails, the system enters the next logic to check the signal status and positioning interval time. This process prioritizes reducing the triggering of high-energy-consuming operations through the strategy of rapid positioning within a short time limit.
[0089] Table 1
[0090]
[0091] In the case of positioning failure, the system further checks the current signal status and the interval time of the last positioning task to determine whether a cold start needs to be triggered. First, the system determines whether the signal is normal: if the signal is normal, it continues to try hot start; if the signal is lost, it checks whether the time interval between the last positioning task exceeds 2 hours. If the interval time exceeds 2 hours, the cold start operation is triggered; otherwise, the system continues to try hot start or ephemeris update. This design delays the cold start trigger condition and uses signal recovery or other low-power operations to complete the positioning task as much as possible, reducing overall energy consumption.
[0092] When a cold start is triggered, the system will further check the conditions for the cold start execution to optimize its operating efficiency. For example, the system first determines whether the number of positioning timeouts in the past 24 hours exceeds 4 times: if it exceeds 4 times, the cold start directly attempts to complete the positioning task in up to 60 seconds; if it does not exceed 4 times, the cold start attempts to complete the positioning task within 52 seconds. If the cold start task is successfully completed, the GNSS state switches to hot start; if it fails, the error information is recorded and prepared to restart. This logic effectively controls the frequency of high-energy-consuming operations by limiting the time and triggering times of cold starts.
[0093] Based on the complete logic of the GNSS tracker startup state switching described above, combined with the current consumption value evaluation method described in the embodiment, the schedules for cold start, hot start and ephemeris update can be accurately allocated and fed back to the user for adjustment.
[0094] In addition, Table 1 provides an example of calculating the current consumption value of the GNSS tracker in the entire life cycle based on the current consumption value calculation method of the embodiment of the present application. Specifically, Table 1 lists the energy consumption parameters, daily behavior characteristics and battery performance indicators of the GNSS tracker in typical application scenarios. The following is a detailed description of each item in the table in combination with the embodiment of the present application: 1. Battery related parameters:
[0095] 1.1Battery voltage: 3.6V. The rated voltage of the battery used in the GNSS tracker is 3.6V, which is the common operating voltage range of lithium batteries.
[0096] 1.2Battery capacity with 100% full: 6900mAh. This value indicates the capacity of the battery when it is fully charged, which is the basic parameter for calculating the operating life of the device.
[0097] 1.3Battery capacity with 72% (28% attenuation assumption): 4968mAh. The battery will gradually decay due to chemical properties during long-term use, and the actual available capacity is lower than the nominal value. Considering the performance attenuation of the battery in actual use, it is assumed that the attenuation ratio is 28%, and the remaining effective capacity is 4968mAh, which is used to more accurately evaluate the actual working life of the GNSS tracker.
[0098] 2. Daily behavior and current consumption characteristics
[0099] 2.1 Working hours per day: 24 hours. The device is designed to operate around the clock, which means the tracker is always in working state 24 hours a day, covering positioning tasks and low-power sleep mode.
[0100] 2.2Some users wake up tracker 6times each day (daily positioning times): 6 times. The daily positioning times is one of the core input parameters of the daily positioning strategy, which directly affects the total daily power consumption. This parameter indicates the frequency at which users want to wake up the device for positioning every day. This frequency directly determines the cold start and hot start, and indirectly determines the number of times the ephemeris update is triggered.
[0101] 3. Energy consumption in low power mode
[0102] 3.1Device power current in sleep mode: 0.057mA. Indicates the average current consumption of the device in low-power sleep mode. This mode mainly occurs when the device has no positioning task and the MCU enters a low-power operation state.
[0103] 3.2Device power consumption in sleep mode (daily power consumption in sleep mode): 1.376mAh. This value is the total daily power consumption of the device in sleep mode, calculated as 0.057mA×24 hours=1.376mAh.
[0104] 4. Energy consumption in positioning mode
[0105] 4.1 Cold Start Mode
[0106] 4.1.1Device power current with cold start: 19.875mA. This includes the sum of the operating currents of the GNSS positioning module (16.875mA) and the Bluetooth low energy chip (3mA). The current consumption of the GNSS module in cold start mode is calculated here in combination with the maximum timeout of 60 seconds.
[0107] 4.1.2Device power consumption with cold start (daily power consumption in cold start mode): 0.99375mAh. Daily total power consumption in cold start mode. Assuming the number of cold starts is 3, and the duration of each cold start is 60 seconds (i.e. 1 / 60 hour), the calculation formula is: 3×(19.875mA×1 / 60 hour)=0.99375mAh.
[0108] 4.2 Hot Start Mode
[0109] 4.2.1Device power current with hot start: 19.875mA. This indicates the operating current of the GNSS module during hot start, and the power consumption is calculated based on the maximum positioning timeout of 10 seconds.
[0110] 4.2.2Device power consumption with hot start (daily power consumption in hot start mode): 0.166mAh Total power consumption in hot start mode per day. Assuming the number of hot starts is 3 and the duration of each hot start is 10 seconds (i.e. 1 / 360 hour), the calculation formula is: 3×(19.875mA×1 / 360 hour)=0.166mAh.
[0111] 4.3 Ephemeris Update Mode
[0112] 4.3.1Device power current with special hot start to refresh almanacdata (current consumption in ephemeris update mode): 19.875m. It indicates the working current of the GNSS module in the ephemeris update mode, and the power consumption is calculated in combination with the maximum update timeout of 5 seconds.
[0113] 4.3.2Device power consumption with special hot start to refreshalmanac data (daily power consumption in almanac update mode): 0.166mAh. The total power consumption in daily almanac update mode. Assuming that the number of almanac updates is 6 and the duration of each almanac update is 5 seconds (i.e. 1 / 720 hour), the calculation formula is: 6×(19.875mA×1 / 720 hour)=0.166mAh.
[0114] 5. Calculation of total current consumption and battery life
[0115] 5.1Total current consumption each day: 2.701 mAh. The total current consumption per day is the sum of all operating modes and sleep modes, and the formula is: 1.376+0.99375+0.166+0.166=2.701 mAh.
[0116] 5.2Total battery lifetime: 1839.48 days (5.04 years). The device life is calculated based on the total daily current consumption and the effective battery capacity.
[0117] 5.3Total Device Power Consumption (Total Power Consumption): The total power consumption of the product during its entire life cycle is calculated based on user needs and used as a reference for battery capacity design. The specific calculation formula is: 2.701mAh×1839.48days=4968mAh.
[0118] In an embodiment of the present invention, the number of times the three GNSS positioning states are activated is accurately calculated by judging user needs, thereby obtaining a daily current consumption value, and based on the daily current consumption value, the total current consumption value of the GNSS tracker for normal operation throughout its entire life cycle is calculated, effectively solving the problem of inaccurate estimation of the current consumption value of the GNSS tracker and large deviation in the results in traditional methods.
[0119] The steps of the above method are divided only for the purpose of clear description. When implemented, they can be combined into one step or some steps can be split and decomposed into multiple steps. As long as they include the same logical relationship, they are all within the scope of protection of this patent; adding insignificant modifications to the algorithm or process or introducing insignificant designs without changing the core design of the algorithm and process are all within the scope of protection of this patent.
[0120] In addition, the examples mentioned in the above embodiments can be freely combined, and any combination can be understood as an embodiment. The "embodiment" or "example" appearing in various positions in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It can be understood by those skilled in the art that the embodiments described herein can be combined with other embodiments.
[0121] Another embodiment of the present invention relates to an electronic device, such as Figure 5 As shown, it includes at least one processor 501; and a memory 502 that is communicatively connected to the at least one processor; wherein the memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the GNSS tracker current consumption value calculation method as described above.
[0122] Among them, the memory and the processor are connected in a bus manner, and the bus may include any number of interconnected buses and bridges, and the bus connects various circuits of one or more processors and memories together. The bus can also connect various other circuits such as peripherals, voltage regulators, and power management circuits, which are well known in the art and are therefore not further described herein. The bus interface provides an interface between the bus and the transceiver. The transceiver can be one element or multiple elements, such as multiple receivers and transmitters, providing a unit for communicating with various other devices on a transmission medium. The data processed by the processor is transmitted on a wireless medium via an antenna, and further, the antenna also receives data and transmits the data to the processor.
[0123] The processor is responsible for managing the bus and general processing, and can also provide various functions, including timing, peripheral interfaces, voltage regulation, power management, and other control functions. Memory can be used to store data used by the processor when performing operations.
[0124] Another embodiment of the present invention relates to a computer-readable storage medium storing a computer program, which implements the above method embodiment when executed by a processor.
[0125] That is, those skilled in the art can understand that all or part of the steps in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a program, and the program is stored in a storage medium, including several instructions to enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.
[0126] Those skilled in the art will appreciate that the above embodiments are specific embodiments for implementing the present invention, and that in actual applications, various changes may be made in form and detail without departing from the spirit and scope of the present invention.
Claims
1. A method for calculating the current consumption value of a GNSS tracker, characterized in that: include: Obtaining GNSS tracker product requirements input by the user; wherein the product requirements include the number of daily positioning times of the product, product usage scenarios and product lifespan; Based on the daily positioning times and product usage scenarios, a daily positioning strategy for the GNSS tracker is constructed; wherein the daily positioning strategy includes the daily start times of three operating states: cold start positioning, hot start positioning, and ephemeris update; Based on the daily positioning strategy, the preset current consumption values of the three operating states and the product life, the total current consumption value of the GNSS tracker is calculated.
2. A method for calculating current consumption of a GNSS tracker according to claim 1, characterized in that: The daily positioning strategy of the GNSS tracker is constructed based on the daily positioning times and product usage scenarios, specifically including: Calculate the positioning interval time based on the daily positioning times; Based on the product usage scenario and the daily positioning times, the times of cold start positioning and hot start positioning are calculated respectively; The number of ephemeris update initiation starts is calculated based on the positioning interval time.
3. A method for calculating current consumption of a GNSS tracker according to claim 2, characterized in that: After calculating the total current consumption value of the GNSS tracker based on the daily positioning strategy, the preset current consumption values of the three operating states, and the product life, the method further includes: Based on the daily positioning strategy and the product demand, calculating the start time of the three operating states; The daily current consumption value is optimized by the start-up time of the three operating states, and the total current consumption value of the GNSS tracker is corrected.
4. A method for calculating current consumption of a GNSS tracker according to claim 1, characterized in that: The calculating the total current consumption value of the GNSS tracker based on the daily positioning strategy, the preset current consumption values of the three operating states, and the service life specifically includes: The daily start-up times of the three operating states in the daily positioning strategy and the preset current consumption values of the three operating states are weighted to obtain the daily current consumption value; The total current consumption of the GNSS tracker is obtained by multiplying the daily current consumption by the service life.
5. A method for calculating current consumption of a GNSS tracker according to claim 4, characterized in that: Before multiplying the daily current consumption value by the service life, the method further includes: The daily current consumption value is added to the daily sleep current consumption value of the GNSS tracker to obtain an optimized daily current consumption value.
6. A method for calculating current consumption of a GNSS tracker according to claim 2, characterized in that: The calculation methods of the preset current consumption values of the three operating states include: The preset current consumption value of cold start positioning is the product of the operating current of the GNSS tracker and the cold start positioning time; The preset current consumption value of the hot start positioning is the product of the operating current of the GNSS tracker and the hot start positioning time; The preset current consumption value of the ephemeris update is the product of the operating current of the GNSS tracker and the ephemeris update duration.
7. A method for calculating current consumption of a GNSS tracker according to claim 6, characterized in that: The operating current of the GNSS tracker includes the operating current of the positioning module and the operating current of the main control chip.
8. A method for calculating current consumption of a GNSS tracker according to any one of claims 1 to 7, characterized in that: After calculating the total current consumption value of the GNSS tracker based on the daily positioning strategy, the preset current consumption values of the three operating states, and the product life, the method further includes: Get the input battery attenuation; Based on the battery attenuation, the total current consumption value of the GNSS tracker is corrected.
9. An electronic device, characterized in that: include: at least one processor; as well as, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the GNSS tracker current consumption value calculation method as described in any one of claims 1 to 8.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method for calculating the current consumption value of a GNSS tracker according to any one of claims 1 to 8 is implemented.