A method, device and related apparatus for customizing endurance control of a functional electronic device
By customizing the battery life control method for outdoor electronic devices, identifying battery specifications and generating updated battery life logic configurations, the problems of low device battery life performance and insufficient scene adaptability are solved, and battery type matching and scene adaptation are achieved to optimize battery life.
Patent Information
- Application Number
- CN202611350638.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-01
- Publication Date
- 2026-11-24
AI Technical Summary
The fixed battery life logic of outdoor electronic devices results in low battery performance, making it impossible to personalize the battery life according to different battery types and usage scenarios. Furthermore, existing devices cannot recognize different battery specifications, leading to poor battery life.
By customizing the battery life control method of functional electronic devices, the current control logic of the device is obtained and modified, standard battery specifications are identified, and updated battery life logic configuration is generated by combining battery parameters and usage scenarios to achieve battery type matching and scenario adaptation for battery life optimization.
It improves the battery life and applicability of outdoor electronic devices, and enables personalized control logic adjustments based on different battery types and usage scenarios, ensuring optimal battery life under various conditions.
Smart Images

Figure CN123157288A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of outdoor electronic equipment technology, and in particular to a method, device and related apparatus for controlling the battery life of a custom-function electronic device. Background Technology
[0002] In existing similar products, the load drive circuit of outdoor electronic devices typically operates with a fixed voltage bus and several preset power levels. The relationship between the estimated battery life and the power level mapping is fixed at the factory, resulting in outdoor electronic devices operating with a single battery life logic. However, using the same battery life logic for different battery types allows for potential improvements in battery life. Furthermore, users have a need to customize the control logic of outdoor electronic devices based on their actual usage scenarios.
[0003] Inventors in this field have discovered that different batteries in outdoor electronic devices have problems such as low battery performance and inability to reconfigure device control logic in their fixed battery life logic, making them unsuitable for complex outdoor application scenarios. Summary of the Invention
[0004] This application provides a method, device, and related apparatus for controlling the battery life of customized electronic devices, which can match the corresponding battery life logic according to different batteries and set the control logic of outdoor electronic devices, thereby improving the battery life performance and applicability of outdoor electronic devices.
[0005] In a first aspect, this application provides a method for controlling the battery life of a custom-function electronic device, comprising the following steps: S1. Obtain the control logic configuration currently being executed by the device; S2. Modify the control logic configuration to generate a corrected updated control logic configuration; S3. Determine whether the battery in the device is a recognizable standard battery; S4. If the battery in the device is a recognizable standard battery, then obtain the first battery specification that matches the recognizable standard battery. S5. Based on the current remaining battery power, the specifications of the first battery, and the update control logic configuration, an update range logic configuration is formed; S6. Send the update control logic configuration and the update battery life logic configuration to the device for execution.
[0006] Optionally, step S5 includes: S5a. Extract the set power of each i-th gear in the update control logic configuration logic; S5b: Obtain the remaining capacity of the battery and the set battery voltage from the first battery specification; S5c: Calculate the estimated range of the i-th power setting based on the set power, the remaining capacity, and the battery voltage. S5d: Integrate each of the i-th gears and the estimated battery life matching the i-th gear into a battery life logic to be determined, and determine whether a confirmation message matching the battery life logic to be determined is received. S5e. If a confirmation message matching the pending battery life logic is received, the pending battery life logic is recorded as the updated battery life logic configuration.
[0007] Optionally, after step S5b, the method further includes: S5h, Obtain the current battery temperature of the battery; S5i, Match the corresponding temperature correction coefficient according to the battery temperature; S5j. Based on the set power, the remaining capacity, the battery voltage, and the temperature correction coefficient, calculate the estimated range of the i-th gear. After updating the estimated battery life in step S5k, return to step S5d.
[0008] Optionally, after step S5b, the method further includes: S5l: Obtain the preset drive loss coefficient of the battery; S5m, based on the set power, the remaining capacity, the battery voltage and the drive loss coefficient, calculate the estimated range of the i-th gear; After updating the estimated battery life in step S5n, return to step S5d.
[0009] Optionally, after step S5b, the method further includes: S5o, Obtain the battery usage time; S5p, Match the corresponding battery aging coefficient according to the usage time; S5q: Calculate the estimated range of the i-th gear based on the set power, the remaining capacity, the battery voltage, and the battery aging coefficient. After updating the estimated battery life in step S5r, return to step S5d.
[0010] Optionally, after step S5a, the method further includes: S5f: Determine whether the set power exceeds the set threshold. S5g: If the set power exceeds the set threshold, a corresponding reminder message will be issued to remind the user to modify the set power.
[0011] Optionally, the method further includes the following steps: S7. If the battery in the device is not a recognizable standard battery, then obtain a second battery specification that matches the battery. S8. Replace the second battery specification with the first battery specification, and return to step S5.
[0012] Secondly, this application provides a custom-function electronic device, including: The control module is used to execute the steps of the methods described in the above aspects; The input terminal of the control module is electrically connected to a battery power supply system and a memory. The battery power supply system is used to provide power to the device and to allow the control module to read the battery voltage; The memory establishes a communication connection with an external device through a communication module. The external device is used to convert the user's settings into configuration data packets and transmit and store them in the memory. The output terminal of the control module is electrically connected to a load drive module; The load driving module is used to drive the load according to the target value output by the control module.
[0013] Thirdly, this application provides a customizable electronic device configuration system, including: An external device, the external device comprising: The configuration interface module is used to present users with adjustable operation parameter options and receive users' custom settings parameters; A configuration generation module is used to encode the custom setting parameters into a configuration data packet; The battery life calculation module is used to calculate the estimated battery life of the target device at each power level based on battery parameters and power level. A target device, the target device comprising: The communication module is used to establish a communication connection with the external device and receive the configuration data packet; A memory for storing the configuration data packet; The control module is used to read and parse the configuration data packet from the memory, and control the operation of the target device according to the parsed operation parameters; A load drive module is used to drive the load of the target device in response to the input of the control module.
[0014] Fourthly, this application provides a battery life control device for a custom-function electronic device, implementing the functions of the methods described in the above aspects. The device can be implemented in hardware or by executing corresponding software within hardware. The hardware or software includes one or more modules corresponding to the above functions, and these modules can be software and / or hardware.
[0015] In one possible design, the battery life control device for customized electronic devices includes: The receiving module is used to obtain the control logic configuration currently being executed by the device; The control logic module is used to modify the control logic configuration and generate a corrected updated control logic configuration. The battery identification module is used to determine whether the battery in the device is an identifiable standard battery; A battery specification module is used to obtain a first battery specification that matches the identifiable standard battery when the battery in the device is an identifiable standard battery. The battery life logic module is used to generate an updated battery life logic configuration based on the current remaining battery power, the specifications of the first battery, and the update control logic configuration. The sending module is used to send the update control logic configuration and the update battery life logic configuration to the device for execution.
[0016] Compared to existing technologies, the solution provided in this application obtains the control logic configuration currently in operation of the device and can modify and update this configuration to generate an updated control logic configuration. Users can manually adjust the device's control logic, increasing the freedom of device function settings. Simultaneously, based on the updated control logic configuration and the obtained battery parameters, the device automatically updates its battery life logic configuration. This allows the device to automatically generate a battery life logic with a higher degree of matching to the current system settings based on the battery status and the user-defined control logic, thus improving the device's battery life. Furthermore, this enables secondary setting of the outdoor electronic device's control logic and matching corresponding battery life logic to different batteries, improving the battery life performance and applicability of outdoor electronic devices. Attached Figure Description
[0017] Figure 1 This is a main structural block diagram of a custom-function electronic device according to an embodiment of this application; Figure 2 This is a schematic flowchart illustrating the main process of a battery life control method for a custom-function electronic device according to an embodiment of this application. Figure 3 This is another schematic flowchart illustrating a battery life control method for a custom-function electronic device according to an embodiment of this application; Figure 4 This is a schematic diagram of the interaction process of a custom-function electronic device according to an embodiment of this application; Figure 5 This is a flowchart illustrating the key event mapping of a custom-function electronic device according to an embodiment of this application; Figure 6 This is a schematic diagram of the structure of a battery life control device for a custom-function electronic device according to an embodiment of this application; Figure 7 This is a schematic diagram of the structure of a computer device according to an embodiment of this application; Figure 8 This is a schematic diagram of the structure of a computer storage medium according to an embodiment of this application; Figure 9 This is a schematic diagram of the structure of a computer program product according to an embodiment of this application. Detailed Implementation
[0018] The terms "first," "second," etc., in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments described herein can be implemented in a sequence other than that illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or device that includes a series of steps or modules is not necessarily limited to those explicitly listed, but may include other steps or modules not explicitly listed or inherent to these processes, methods, products, or devices. The division of modules in the embodiments of this application is merely a logical division; in actual applications, there may be other division methods. For example, multiple modules may be combined into or integrated into another system, or some features may be ignored or not performed. Additionally, the shown or discussed mutual coupling or direct coupling or communication connection may be through some interface, and the indirect coupling or communication connection between modules may be electrical or other similar forms, none of which are limited in the embodiments of this application. Furthermore, the modules or sub-modules described as separate components may or may not be physically separated, may or may not be physical modules, or may be distributed among multiple circuit modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the embodiments of this application.
[0019] Most outdoor electronic devices have parameters such as the number of power levels, power / brightness / wind speed for each level, button operation logic, and available modes (such as SOS and strobe) pre-defined in the MCU firmware. Users can only operate according to the manufacturer's preset methods and cannot adjust these parameters according to personal preferences or usage scenarios. Although some products support stepless adjustment (such as continuously adjusting brightness or wind speed by pressing and holding a button), users cannot know the actual power consumption corresponding to the current power level, making it impossible to predict the remaining battery life, which causes inconvenience during long outdoor activities.
[0020] Furthermore, outdoor electronic devices only support specific battery models, such as Bluetooth headlamps with built-in rechargeable batteries like REACTIK+ and NAO+. Since outdoor electronic devices are used in various scenarios, they often require diverse power sources. Therefore, the design can adopt a detachable battery compartment or a universal battery clip structure to be compatible with different types of batteries such as 18650, 21700, AA (size 5), and AAA (size 7).
[0021] Outdoor electronic devices also do not support custom button operation logic (such as function mapping for short press / long press / double press), do not support custom number of gears and specific parameters for each gear, and cannot meet users' personalized setting needs.
[0022] Furthermore, the existing battery life configuration logic cannot be used across product categories for electronic devices such as flashlights, camping lights, fans, and blowers. It does not support exporting / importing / sharing configuration files with other users of the same model, nor does it support switching between multiple custom configuration schemes according to scenarios.
[0023] In summary, the existing technology has the following drawbacks: 1. Fixed user interface: The button operation logic, number of gears, and parameters of each gear are all determined by the factory firmware. Users cannot adjust them according to usage habits or changes in scenarios. All users face the same operating experience and cannot personalize it. 2. Lack of transparency in battery life information: Even for devices that support stepless adjustment, users cannot know the power consumption and estimated battery life corresponding to the current setting, which poses uncertainties and safety hazards in outdoor environments; 3. Does not support personalized battery matching: For devices that use standard replaceable batteries (18650, 21700, AA, AAA, etc.), there are significant differences in discharge capacity, capacity, internal resistance, etc. between batteries of different brands and in different conditions. Existing devices cannot allow users to input battery information to achieve accurate range calculation and power limitation. 4. Configuration cannot be migrated or reused: Custom configuration schemes cannot be shared between different users of the same model of device, and each user needs to complete a tedious setup process independently; 5. Existing APP solutions have limited product categories and functions: Existing software solutions such as Petzl MyPetzl Light only support a limited number of products from specific brands and models, have limited customization depth, and cannot cover a variety of outdoor electronic devices such as headlamps, flashlights, camping lights, fans, and blowers across categories.
[0024] Outdoor electronic devices have their control and battery life logic pre-set at the factory, preventing users from customizing these logics later. This results in limited flexibility in device functionality and an inability to reconfigure the control logic based on usage scenarios. Furthermore, because the devices cannot identify the type and specifications of the installed batteries, different battery types cannot achieve optimal battery life using a single battery life logic. Therefore, designing a method for customizing device functionality with customizable control and battery life logic has become a pressing issue.
[0025] Therefore, this application provides a method, device, and related apparatus for controlling the battery life of a customizable electronic device. By allowing customization of the device's control logic and battery life logic, the device can achieve better battery life when various types of power supply batteries are installed. At the same time, the self-defined control logic can meet different usage scenarios, thereby improving the battery life performance and applicability of outdoor electronic devices.
[0026] The following is a detailed explanation.
[0027] This application provides a custom-function electronic device, including: The control module is used to execute the steps of any battery life control method for a custom-function electronic device; The input terminal of the control module is electrically connected to a battery power supply system and a memory. The battery power supply system is used to provide power to the device and to allow the control module to read the battery voltage; The memory establishes a communication connection with an external device through a communication module. The external device is used to convert the user's settings into configuration data packets and transmit and store them in the memory. The output terminal of the control module is electrically connected to a load drive module; The load driving module is used to drive the load according to the target value output by the control module.
[0028] Reference Figure 1 Specifically, electronic devices include, but are not limited to, headlamps, flashlights, camping lights, portable fans, etc., which typically have one or more buttons, one or more light / motion loads, a battery-powered system, and an embedded microcontroller (MCU). These electronic devices can be outdoor electronic devices with multi-level operation capabilities.
[0029] In use, users establish a communication connection with a custom-function electronic device via an external device, such as a mobile phone, tablet, or personal computer. This connection typically includes a graphical configuration interface on the external device, allowing users to customize the operating parameters of the target outdoor electronic device. The external device then converts these user settings into a configuration data packet and transmits it to the target outdoor electronic device.
[0030] The graphical configuration interface is a mobile application or web page running on the external device. The graphical configuration interface visually displays the configuration interface module and the configuration generation module.
[0031] The configuration interface module presents users with adjustable parameter options, including but not limited to graphical controls for button function mapping, number of gears and parameters, mode switches, and battery information input. The configuration interface module can run as an app or webpage on mobile phones, tablets, or personal computers.
[0032] The configuration generation module is used to convert the user's settings in the graphical configuration interface into a structured configuration data package, such as JSON, Protocol Buffers, or binary encoding. This configuration data package includes all the parameters required for the target outdoor electronic device to parse and execute.
[0033] The graphical configuration interface also includes a battery information management module.
[0034] The battery information management module is used when the target device uses a standard replaceable battery. It receives standard battery parameters input by the user through an external device, including but not limited to battery type 18650 / 21700 / AA / AAA, nominal capacity (mAh), maximum continuous discharge current (A), internal resistance (mΩ), etc. If the target device uses a built-in rechargeable battery, it can automatically report battery information (calibrated capacity, cycle count, etc.) to the external device through the communication module.
[0035] The graphical configuration interface also includes a battery life calculation module.
[0036] The range calculation module is used to calculate the estimated range for each power setting based on the user-input battery parameters, the current power setting (W), the battery discharge curve model, and the temperature compensation coefficient, and displays the result in real time through the configuration interface module.
[0037] External devices can communicate with the target outdoor electronic device via Bluetooth, USB, WiFi, or NFC.
[0038] The communication module of the target outdoor electronic device is responsible for receiving configuration data packets from external devices and supports at least one communication method such as Bluetooth BLE / classic Bluetooth, USB HID / serial port / mass storage, WiFi, and NFC.
[0039] The target outdoor electronic device stores configuration data packets in its memory. This memory can be non-volatile, utilizing the MCU's internal Flash memory or an external EEPROM to store the configuration data packets, ensuring data is not lost even when power is off. The memory can store multiple configuration schemes, each organized in an independent storage area or indexed manner.
[0040] In one embodiment, the input terminal of the control module is also electrically connected to a key detection module; The button detection module is used to detect the physical button event types of electronic devices in real time and report them to the control module.
[0041] The button detection module detects physical button events such as short press, long press, and double press in real time, and reports the event type to the control module. The control module then determines the response action based on the button mapping table in the configuration data, such as switching instructions for switching control logic.
[0042] The control module reads the currently active configuration data from the memory, parses it into operating parameters (button event mapping table, gear parameter table, mode enable flag, etc.), and drives the load drive module and responds to button operations accordingly. The load drive module drives the light-emitting element (LED), motor or other load according to the target value (PWM duty cycle, constant current setting value, etc.) output by the control module, thereby achieving the purpose of controlling the operating behavior of the target outdoor electronic equipment.
[0043] The battery-powered system provides power to electronic devices and can accommodate standard replaceable batteries or built-in rechargeable batteries. The control module reads the battery voltage for range correction and low-battery protection.
[0044] Reference Figure 2 This application also provides a method for controlling the battery life of a custom-function electronic device, including: S1. Obtain the control logic configuration currently being executed by the device; S2. Modify the control logic configuration to generate a corrected updated control logic configuration; S3. Determine whether the battery in the device is a recognizable standard battery; S4. If the battery in the device is a recognizable standard battery, then obtain the first battery specification that matches the recognizable standard battery. S5. Based on the current remaining battery power, the specifications of the first battery, and the update control logic configuration, an update range logic configuration is formed; S6. Send the update control logic configuration and the update battery life logic configuration to the device for execution.
[0045] Reference Figure 3 The step S3 is followed by: S7. If the battery in the device is not a recognizable standard battery, then obtain a second battery specification that matches the battery. S8. Replace the second battery specification with the first battery specification, and return to step S5.
[0046] Specifically, using the aforementioned custom-function electronic device as an application platform, and by executing the aforementioned battery life control method for custom-function electronic devices, battery life optimization under different battery types and personalized adaptation of control logic for different usage scenarios are achieved. The specific implementation process is as follows: Reference Figure 4 After the device is powered on, the configuration interface for the external device will be launched.
[0047] Establish a communication connection between an external device and a custom-function electronic device (target device). The external device and the target device establish a communication link through methods such as Bluetooth pairing, USB physical connection, WiFi LAN discovery, or NFC touch.
[0048] After the communication link is established, the external device can read the target device's model, firmware version, supported configuration item types, and currently stored configuration scheme list to obtain the control logic configuration currently being executed by the device, such as gear parameters, button function mapping relationships, and mode enable flags. The gear parameters include at least: the number of custom gears, and the load power value, brightness value, or wind speed value corresponding to each gear. The button function mapping relationship defines the operation actions corresponding to the physical buttons on the target device under different triggering methods. The triggering methods include at least two of short press, long press, and double-click. The mode enable flag selectively enables or disables the device's special modes.
[0049] In this embodiment, the control logic is configured with a set of basic operating parameters preset by the device at the factory, such as the communication module uploading data once every 15 minutes (each upload lasts 5 seconds and consumes 4W), and the overall power consumption allocation follows the principle of "power supply from the device is prioritized, followed by communication", which is suitable for the basic usage requirements of conventional outdoor electronic devices.
[0050] The acquired control logic configuration is synchronously displayed on the configuration interface of the external device for easy viewing and confirmation by the user.
[0051] Based on the current usage scenario requirements, the user inputs control logic parameters, modifies the control logic configuration, generates a corrected updated control logic configuration, and stores it in the temporary cache area of the external device. At the same time, the configuration interface displays "Control logic update complete".
[0052] For example, a user inputs a modification command for a "nighttime" scenario: adjust the data upload frequency of the communication module to once every 30 minutes (the duration of each upload remains unchanged, and the power consumption remains unchanged).
[0053] Determine if the battery in the device is a recognizable standard battery. This is done by reading the target device's battery's built-in identification code, such as an NFC tag or specifications stored in EEPROM, and comparing it with a pre-set list of standard batteries to determine if the target device's battery is a recognizable standard battery.
[0054] In this embodiment, the identifiable standard battery can be a third-party compatible battery that does not have the aforementioned identification information built-in or whose identification information cannot be read. In this case, the user manually inputs the standard battery parameters to the external device. The non-standard battery can be a battery supplied by the device manufacturer and has the aforementioned identification information built-in, including parameters such as battery capacity, rated voltage, discharge rate, and remaining capacity decay characteristics. This information can be reported to the external device via its own communication link. Alternatively, identification can be performed through identification contacts within the battery compartment; if identification contacts are present, the battery is determined to be non-standard.
[0055] During testing, if the battery's built-in identification code is not successfully read or the identification information is invalid (no built-in identification information), it is determined to be an identifiable standard battery. This means the battery in the device is an identifiable standard battery, and the target device is using a replaced standard battery. In this case, the first battery specification matching the identifiable standard battery, manually entered by the user using an external device, is obtained. This includes one or more of the following: battery type, nominal capacity, nominal voltage, maximum continuous discharge current, internal resistance, etc. The recommended input range for battery capacity is 500–50000mAh. This provides data support for the generation of subsequent battery life logic configurations.
[0056] If the built-in identification code is successfully read and matches the standard battery parameters in the standard battery list, it is determined to be a non-standard battery. The target device uses a built-in battery, meaning that the battery in the device is not a recognizable standard battery. At this time, the external device receives the second battery specification reported by the target device that matches the battery and updates it to the first battery specification.
[0057] The user can manually input battery parameters, including capacity / discharge capability / internal resistance, and customize battery life operation parameters in the graphical configuration interface to obtain the first battery specification corresponding to the identifiable standard battery. Alternatively, when the battery in the device is not a replaceable identifiable standard battery, but a built-in battery whose battery parameters can be directly obtained, the device can receive the second battery specification reported by the built-in battery and replace the second battery specification with the first battery specification.
[0058] Manually inputting the first battery specification that matches the identifiable standard battery is suitable for unknown outdoor scenarios with diverse power sources, avoiding situations where the collected data is empty, making it more applicable, and eliminating the need for complex interfaces and real-time network connectivity, resulting in lower costs.
[0059] An updated battery life logic configuration is formed based on the battery's current remaining charge, the first battery specifications, and the update control logic configuration. In this embodiment, a preset battery life calculation model is used as input. The battery's current remaining charge, the first battery specifications, and the update control logic configuration parameters are input. The battery life is predicted using the first battery specification parameters and load power, and the estimated battery life is output as the basis for the target device's battery life configuration. The updated battery life logic configuration is formed by setting the power consumption limit, sleep strategy, and power warning threshold for each functional module of the target device.
[0060] Determine if the user is satisfied with the updated logic configuration. If the user modifies the control logic configuration or replaces the battery, the target device will automatically trigger the re-execution of the above steps to regenerate an adapted control logic configuration and battery life logic configuration.
[0061] Finally, after user confirmation, the configuration generation module packages and integrates all configuration logic, and sends the update control logic configuration and the update battery life logic configuration to the target device in the form of a configuration data packet.
[0062] After receiving the configuration data packet, the target device can perform an integrity check, and write the data into the memory after the check is successful.
[0063] After successful writing, the execution module of the target device reads the new configuration logic from the memory, runs the updated control logic configuration and the updated battery life logic configuration, and realizes the secondary setting of the outdoor electronic device control logic and the matching of the corresponding battery life logic according to different batteries.
[0064] The target device's graphical interface can calculate and display the device's current remaining power, estimated battery life for each power level, and power consumption status of each module in real time. This allows users to see changes in battery life immediately while adjusting parameters, aiding in decision-making and ensuring that the device achieves optimal battery life under the current battery specifications.
[0065] If the remaining battery power triggers the warning threshold, the target device can issue a warning.
[0066] Understandably, after establishing a communication connection with the target device via an external device, users can intuitively observe and modify the target device's control logic configuration and battery life logic configuration through the external device's graphical user interface. At the same time, the graphical user interface can intuitively display the predicted results of updating the control logic configuration and battery life logic configuration.
[0067] In one embodiment, after step S5, the method further includes: Save the updated battery life logic configuration and export it to other devices for use in updating battery life logic on those devices.
[0068] Users can save and share the updated battery life logic configuration separately, so that other devices can import it to execute the same updated battery life logic as the user's current target device, enabling other similar or different types of devices to quickly update battery life settings.
[0069] In one embodiment, to quickly generate an updated battery life logic configuration adapted to the current control logic and battery type, step S5 includes: S5a. Extract the set power of each i-th gear in the update control logic configuration logic. ; S5b: Obtain the remaining capacity of the battery from the first battery specification. and the set battery voltage ; S5c, according to the set power The remaining capacity and the battery voltage Calculate the estimated range for the i-th gear. The calculation formula is as follows:
[0070] S5d, The estimated battery life of each of the i-th gears and the corresponding i-th gear. The system integrates the remaining battery life logic into a conditional logic and determines whether a confirmation message matching the conditional battery life logic has been received. S5e. If a confirmation message matching the pending battery life logic is received, the pending battery life logic is recorded as the updated battery life logic configuration.
[0071] Specifically, read the set power of each gear i of the target device. This serves as the data basis for calculating the target device's battery life, where i is the gear index, i=1,…,N, and N is the number of user-defined gears. In this embodiment, N can be 10, setting the power... For the power consumed by the i-th load, P i >0, the unit is watt (W).
[0072] Obtain the remaining capacity of the battery from the first battery specification. and the set battery voltage As the primary data basis for calculating the target device's battery life, remaining capacity This refers to the battery's nominal capacity, measured in milliampere-hours (mAh). This refers to the nominal voltage of the battery, measured in volts (V), such as 3.7V (lithium battery) or 1.5V (AA).
[0073] The formula: Estimated battery life = (remaining capacity × battery voltage) ÷ corresponding power setting is used to accurately calculate the battery life, which is simple and efficient.
[0074] Then, each gear position and its estimated range, i.e. the i-th gear position and its corresponding estimated range, are packaged together to obtain the range to be determined logic, and it is determined whether a confirmation message matching the range to be determined logic is received.
[0075] A confirmation interface for the pending battery life logic is displayed on an external device, prompting the user to "confirm whether to adopt this battery life logic configuration," while simultaneously monitoring whether a confirmation command is received from the user via the external device.
[0076] If a confirmation message matching the pending battery life logic is received, the pending battery life logic is recorded as the updated battery life logic configuration, thus achieving accurate generation of the battery life logic configuration. At this time, the updated battery life logic configuration can be sent to an external device for display. Users can further supplement and improve the relevant supporting parameters and update them again, so that users can adjust the estimated battery life of the corresponding level by adjusting the output power of each level.
[0077] The updated battery life logic configuration can be stored in the target device's temporary cache area, and then sent to the target device's execution module for execution.
[0078] During execution, the target device's functional modules operate according to the updated control logic configuration, and the target device's power consumption control module operates according to the updated battery life logic configuration, ensuring that the target device achieves optimal battery life under the current battery specifications.
[0079] In one embodiment, to accurately generate an updated battery life logic configuration that adapts to the current control logic and battery type, after step S5b, the following is further included: S5h, Obtain the current battery temperature of the battery; S5i, Match the corresponding temperature correction coefficient according to the battery temperature. ; S5j, according to the set power The remaining capacity The battery voltage and the temperature correction coefficient Calculate the estimated range of the i-th gear. The calculation formula is as follows:
[0080] S5k, the estimated battery life Replace with the estimated battery life. Then, return to step S5d.
[0081] Specifically, the target device can have a temperature detection module fixedly installed on the surface of its battery. During setup, it can be mounted flush against the battery surface to accurately collect the battery's current temperature in real time. The target device then reads the battery's current temperature.
[0082] Next, based on the pre-stored temperature-correction coefficient mapping table, the corresponding temperature correction coefficient is matched using the battery type and battery temperature. At low temperatures, battery activity decreases and discharge efficiency declines; at high temperatures, battery wear and capacity decay accelerate. Temperature correction factor. That is, the temperature compensation coefficient, α(T)≤1, is dimensionless, and is determined by looking up the temperature-correction coefficient mapping table from the current ambient temperature T.
[0083] For example, when the temperature is ≤0℃, the correction factor is 0.7; when 0℃ < temperature ≤10℃, the correction factor is 0.85; when 10℃ < temperature ≤30℃, the correction factor is 1.0, and there is no correction; when 30℃ < temperature ≤45℃, the correction factor is 0.9; and when the temperature >45℃, the correction factor is 0.8. Specifically, at 25°C, α(25°C) = 1.00; at 0°C, α(0°C) = 0.7; and at -10°C, α(-10°C) = 0.70.
[0084] Furthermore, based on the set power, remaining capacity, battery voltage, and temperature correction coefficient, the estimated range time = (remaining capacity × battery voltage × temperature correction coefficient) ÷ corresponding set power is used. By introducing the temperature correction coefficient, the impact of actual temperature conditions on the range is quantified, replacing the original estimated range time. This achieves the goal of taking temperature factors into account and accurately generating an updated range logic configuration that adapts to the current control logic and battery type.
[0085] In one embodiment, to more accurately generate an updated battery life logic configuration that adapts to the current control logic and battery type, after step S5b, the following is also included: S51. Obtain the preset drive loss coefficient of the battery. ; S5m, according to the set power The remaining capacity The battery voltage and the driving loss coefficient Calculate the estimated range of the i-th gear. The specific calculation formula is as follows:
[0086] S5n, the estimated battery life Replace with the estimated battery life. Then, return to step S5d.
[0087] Specifically, by pre-storing a table of drive loss coefficients corresponding to different battery types within the target device, and for example, obtaining the loss coefficients based on characteristics such as the battery's internal drive circuit loss and wiring impedance loss through testing. Loss coefficient The average efficiency of the drive circuit can be preset according to the circuit topology. In this embodiment, it represents the average efficiency of the drive circuit. Drive losses have been deducted. ∈(0,1], dimensionless, in this embodiment it is taken as 0.8-0.95, such as =0.9, to reflect the proportion of energy loss generated by the battery's own driving process during power supply.
[0088] Based on the battery type and a drive loss factor table, the target device determines the drive loss factor of its battery. For example, the drive loss factor for a identifiable standard battery is preset to 0.05, meaning 5% of the energy is used for drive loss; the drive loss factor for an unidentifiable non-standard battery is preset to 0.08, meaning 8% of the energy is used for drive loss.
[0089] Based on the set power, remaining capacity, battery voltage, and drive loss coefficient, the estimated range time is calculated as (remaining capacity × battery voltage × drive loss coefficient) ÷ corresponding set power. By introducing the battery drive loss coefficient, the impact of drive loss on range is quantified, replacing the original estimated range time. This achieves the goal of considering the drive loss factor and generating a more accurate updated range logic configuration that adapts to the current control logic and battery type.
[0090] In one embodiment, to more accurately generate an updated battery life logic configuration that adapts to the current control logic and battery type, after step S5b, the following is also included: S5o, Obtain the battery usage time; S5p, Match the corresponding battery aging coefficient according to the usage duration. ; S5q, according to the set power The remaining capacity The battery voltage and the battery aging coefficient Calculate the estimated range for the i-th gear. The specific calculation formula is as follows:
[0091] S5r, the estimated battery life Replace with the estimated battery life. Then, return to step S5d.
[0092] Specifically, the target device can have a built-in battery usage time tracking unit in its storage module. This unit starts timing from the moment the battery is first connected to the target device, accumulating the total battery usage time in real time. The target device's control module reads the battery usage time from the storage module.
[0093] Based on a pre-defined usage time-aging factor mapping table, the target device matches the corresponding battery aging factor according to the usage time. Battery aging coefficient Also known as the battery aging correction factor. ∈(0,1], dimensionless.
[0094] The usage time-aging coefficient mapping table is designed based on the aging characteristics of batteries. The longer the usage time, the more significant the battery capacity degradation and the lower the discharge efficiency. For example, if the usage time is ≤500 hours, the aging coefficient is 1.0, meaning there is no aging degradation; if the usage time is 500 hours < 1000 hours, the aging coefficient is 0.95; if the usage time is 1000 hours < 2000 hours, the aging coefficient is 0.9; and if the usage time is >2000 hours, the aging coefficient is 0.8. In this embodiment, the value is taken as [0.5, 1], with a default value of 1. Users can modify the preset range according to their actual needs.
[0095] Based on the set power, remaining capacity, battery voltage, and battery aging factor, the estimated range time is calculated as (remaining capacity × battery voltage × aging factor) ÷ corresponding set power. By introducing the aging factor, the impact of battery aging on range is quantified, replacing the original estimated range time. This achieves the goal of considering the degree of battery aging and generating an updated range logic configuration that is more accurate and adapted to the current control logic and battery type.
[0096] In one embodiment, to comprehensively consider factors affecting battery life during actual use, after step S5b, the method further includes: S5h, Obtain the current battery temperature of the battery; S5i, Match the corresponding temperature correction coefficient according to the battery temperature. ; S51. Obtain the preset drive loss coefficient of the battery. ; S5o, Obtain the battery usage time; S5p, Match the corresponding battery aging coefficient according to the usage duration. ; S5s, according to the set power The remaining capacity The battery voltage and the temperature correction coefficient The driving loss coefficient and the battery aging coefficient Calculate the estimated range of the i-th gear. The specific calculation formula is as follows:
[0097] S5t, update the estimated battery life Then, return to step S5d.
[0098] In the formula, Cbat×Vbat×n×α(T)×b represents the effective usable energy (Wh) of the battery, and Cbat×Vbat is the nominal energy. The power consumption of a gear is represented by W. The unit is hours (h), so you need to divide by 1000 to convert the unit when calculating.
[0099] By combining the battery aging coefficient, the drive loss coefficient, and the temperature correction coefficient, and comprehensively considering the factors affecting battery life during actual use, the prediction of battery life is made more accurate, further improving the accuracy of battery life prediction. This is conducive to generating battery life logic that is more compatible with the current system settings, thereby increasing the device's battery life.
[0100] In one embodiment, step S5a is followed by: S5f: Determine whether the set power exceeds the set threshold. S5g: If the set power exceeds the set threshold, a corresponding reminder message will be issued to remind the user to modify the set power.
[0101] Specifically, in practical application scenarios, if the power setting set by the user exceeds the set threshold Plimit, direct application may easily lead to over-discharge of the battery. Therefore, when the power setting set by the user exceeds the set threshold, a corresponding prompt can be displayed through the graphical user interface of the external device to remind the user that the power setting exceeds the set threshold and needs to be modified in order to protect the battery from overcurrent discharge.
[0102] Where Plimit = Imax × Vbat × n, Plimit is the upper limit of the battery's discharge capacity in watts (W), and Imax is the maximum continuous discharge current of the battery input by the user, the value of which depends on the specific battery model and is in amperes (A). For example, for a 18650 battery: Cbat = 3500mAh, Vbat = 3.7V, Imax = 10A.
[0103] In one embodiment, step S6 is followed by: S6a. Determine whether a switching instruction for the switching control logic has been obtained; S6b. If no switching instruction for the switching control logic is obtained, the device continues to execute the preset control logic configuration. S6c. If a switching instruction for the switching control logic is obtained, then the corresponding update control logic configuration is switched and executed according to the switching instruction.
[0104] Specifically, the user can choose whether or not to use the update control logic configuration in order to avoid the device forcing the update control logic configuration to run, which may cause upgrade problems or affect the user experience.
[0105] In one embodiment, the device supports multiple configuration logic schemes. Users can switch between multiple configuration logic schemes on the device by pressing buttons, or activate a scheme through an external device.
[0106] Specifically, each configuration logic scheme corresponds to a complete set of operating parameters. After receiving a scheme switching command from its physical buttons or the external device, the target device switches from the currently active configuration scheme to another configuration scheme and runs it. Users can switch the currently executing control logic configuration or update the control logic configuration through buttons set on the target device, or activate a certain control logic scheme through an external device, making the configuration more flexible.
[0107] In one embodiment, to meet the user's personalized configuration, a battery life control method for a customizable electronic device further includes: When the device is powered on / detects a button to wake it up, obtain the currently active logic configuration data; Based on the configuration data, the button mapping table, gear parameter table, and mode enable flag are parsed. When the device enters standby mode, it waits for key press events to occur; If a key event occurs, detect the key event type; Based on the key event type, look up the key mapping table and determine the corresponding action, which includes switching gears, switching configuration schemes, powering on / off, and entering a special mode. When the corresponding action is to switch gears, set the load output of the device according to the gear parameter table; When the corresponding action is to switch configuration schemes, another set of logical configuration schemes is loaded; When the corresponding action is power on / off, the device executes the power on / off logic. When the corresponding action is to enter a special mode, the preset function logic is determined based on the mode enable flag.
[0108] Specifically, refer to Figure 5 When the target device is powered on / detected to be woken up by a key press, the currently active logical configuration data is read from the memory.
[0109] Based on the configuration data, the button mapping table, gear parameter table, and mode enable flag are parsed.
[0110] When the target device enters standby mode, it waits for key press events to occur.
[0111] If a button event occurs, the button event type is detected. The button event types include short press, long press, and double press. In this embodiment, a short press can represent switching gears, a long press can represent switching configuration schemes and powering on / off, and a double press can represent entering a special mode. If the long press duration is within a first preset range, it is determined to be switching configuration schemes; if the long press duration is within a second preset range, it is determined to be powering on / off.
[0112] Based on the key event type, look up the key mapping table and determine the corresponding action, which includes switching gears, switching configuration schemes, powering on / off, and entering a special mode. When the corresponding action is to switch gears, set the load output of the device according to the gear parameter table; When the corresponding action is to switch configuration schemes, another set of logical configuration schemes is loaded; When the corresponding action is power on / off, the target device executes the power on / off logic; When the corresponding action is to enter a special mode, it is determined whether the mode enable flag meets the preset enable conditions. If the mode enable flag is 1, the target device executes the preset function logic, such as SOS / strobe.
[0113] If no key press event occurs, continue waiting for a key press event to occur.
[0114] By designing a key event mapping mechanism, diverse functions of the target device can be achieved without complex structures or designs, thereby meeting users' personalized needs, and achieving simplicity and lower cost.
[0115] In one embodiment, after step S5, the method further includes: Save and export the update control logic configuration or the update battery life logic configuration to other devices for use in updating logic configuration on other devices.
[0116] For example, the configuration data packet for updating the battery life logic configuration can be exported as a configuration file through an external device, and the configuration file can be sent to another external device through a communication network or near-field transmission. The other external device can then import the configuration file and transmit it to a target device of the same model connected to it, thereby realizing the migration and reuse of the logic configuration, improving the configuration efficiency of other users, and reducing the trial and error costs of other users.
[0117] This application does not limit the type of equipment and is applicable to all outdoor electronic devices with speed-controlled operation capabilities, such as headlamps, flashlights, camping lights, fans, and blowers; it also does not limit the communication method (Bluetooth / USB / WiFi / NFC) or external device platform (iOS / Android / Web / desktop), making it highly versatile.
[0118] An exemplary embodiment for custom configuration of a headlamp: Application scenario: Lightweight hiking user A and night running user B use the same model of headlamp, but their needs for operation and power settings are completely different; Configuration process: User A opens the mobile app and connects the headlamp via Bluetooth; User A inputs the parameters of the 18650 battery used (capacity 3500mAh, maximum discharge 10A, nominal voltage 3.7V). User A set the brightness level to 4 levels: Moonlight level 1lm (approximately 300 hours of battery life), Low brightness level 30lm (approximately 15 hours of battery life), Medium brightness level 100lm (approximately 5 hours of battery life), and High brightness level 300lm (approximately 1.8 hours of battery life). Set the button operation as follows: short press to switch gears, long press for 0.5 seconds to turn the device on or off, and double-click to switch to the pre-stored "camp mode" configuration. Turn off SOS and strobe mode (not commonly used); Save the configuration as "Hiking Mode" and export it to share with your teammates; User B switches between "Hiking Mode" and "Night Running Mode" by double-clicking the button. The latter sets the power level to 4 (highlight + flashing warning) and adjusts the button operation to switch between high and low with a single press and power off with a long press. Same hardware, different experiences for different users.
[0119] An exemplary embodiment, applied to a custom configuration of a wind turbine: Application scenario: Industrial inspection users use portable high-speed fans for equipment dust removal and localized cooling; Configuration process: Users connect the fan to a computer web management interface via USB; Enter the parameters of the power battery pack used (such as 5S 21700 battery pack); Customizable 3-speed settings: Low speed 30W (approx. 45 minutes of runtime), Medium speed 80W (approx. 18 minutes of runtime), High speed 150W (limited by battery discharge capacity, approx. 8 minutes of runtime). Set the two buttons as follows: a short press of button A switches gears, a short press of button B activates the pulse mode (stops when released), and a long press turns the device on or off. Unnecessary LED lights are disabled. This optimizes the battery life logic, improving device endurance. Simultaneously, for high-power devices, the upper limit is safely set based on the battery's actual discharge capacity to avoid overcurrent risks.
[0120] Compared to existing technologies, this application, through the aforementioned method, obtains the control logic configuration currently in operation of the device and can modify and update this configuration to generate an updated control logic configuration. This allows users to manually adjust the device's control logic, increasing the freedom of device function settings and meeting users' personalized configuration needs. Simultaneously, based on the updated control logic configuration and the obtained battery parameters, the device automatically updates its battery life logic configuration. This enables the device to automatically generate a battery life logic with a higher degree of matching to the current system settings based on the battery status and user-defined control logic, thereby improving the device's battery life and enhancing its applicability.
[0121] In summary, a battery life control method for customizable electronic devices transforms the device's operating parameters from "factory-fixed" to "fully customizable by the user," and achieves accurate battery life prediction through battery information input and compensation mechanisms. It can accurately calculate and display the estimated battery life for each setting, solving the problems of existing devices that "cannot be steppedly adjusted but do not know the battery life" and "have a uniform nominal battery life without considering individual battery differences." This method has significant safety value in outdoor scenarios.
[0122] Based on the user-input maximum battery discharge current, the system automatically limits the maximum settable power level to prevent overcurrent, overheating, or even damage to the battery caused by users setting excessively high power levels due to a lack of understanding of battery characteristics.
[0123] A battery life control method for customizable electronic devices allows users to customize button functions, gear parameters, and operation logic according to personal preferences and different usage scenarios. The configuration is flexible and comprehensive, and suitable for in-depth configuration.
[0124] Full customization allows users to freely arrange device behavior according to their own usage habits and scenarios through comprehensive customization of button function mapping (short press / long press / double press), number of gears and parameters of each gear, and mode switch (hide / disable / enable), achieving "one hardware, a thousand faces".
[0125] A battery life control method for custom-function electronic devices supports the storage of multiple custom configuration schemes. Users can quickly switch between different scenario schemes (such as "hiking mode" / "camp mode" / "work mode") via button operation without having to reconnect external devices each time, making it convenient and efficient to use.
[0126] A method for controlling the battery life of custom-function electronic devices supports the export / import / sharing of configuration files, enhancing migration and reusability. This allows users of the same model of device to share optimized configuration schemes, reducing the time and trial-and-error costs for each user to explore independently.
[0127] A battery life control method for custom-function electronic devices addresses three major pain points in existing technologies: monotonous user experience, unpredictable battery life, and non-transferable configurations.
[0128] It should be understood that although the steps in the flowcharts of the embodiments of this application are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and these steps can be executed in other orders. Moreover, at least some of the steps in the figures may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least a portion of the sub-steps or stages of other steps.
[0129] The embodiments disclosed in this application describe in detail a battery life control method for a custom function electronic device. The above-disclosed method can be implemented using various types of devices, such as the custom function electronic device disclosed above that is applied to the above method, which will not be described again here.
[0130] This application also provides a custom function electronic device configuration system, including: An external device, the external device comprising: The configuration interface module is used to present users with adjustable operation parameter options and receive users' custom settings parameters; A configuration generation module is used to encode the custom setting parameters into a configuration data packet; The battery life calculation module is used to calculate the estimated battery life of the target device at each power level based on battery parameters and power level. A target device, the target device comprising: The communication module is used to establish a communication connection with the external device and receive the configuration data packet; A memory for storing the configuration data packet; The control module is used to read and parse the configuration data packet from the memory, and control the operation of the target device according to the parsed operation parameters; A load drive module is used to drive the load of the target device in response to the input of the control module.
[0131] It is worth noting that the estimated battery life calculation can be performed on the target device or on an external device.
[0132] For a configuration system for a custom-function electronic device, please refer to a method for controlling the battery life of a custom-function electronic device and a limitation of a custom-function electronic device, which will not be repeated here.
[0133] Reference Figure 6 This application also provides a battery life control device for a custom-function electronic device, comprising: The receiving module is used to obtain the control logic configuration currently being executed by the device; The control logic module is used to modify the control logic configuration and generate a corrected updated control logic configuration. The battery identification module is used to determine whether the battery in the device is an identifiable standard battery; A battery specification module is used to obtain a first battery specification that matches the identifiable standard battery when the battery in the device is an identifiable standard battery. The battery life logic module is used to generate an updated battery life logic configuration based on the current remaining battery power, the specifications of the first battery, and the update control logic configuration. The sending module is used to send the update control logic configuration and the update battery life logic configuration to the device for execution.
[0134] In one embodiment, the battery specification module further includes, when the battery in the device is not an identifiable standard battery, obtaining a second battery specification that matches the battery and replacing the second battery specification with the first battery specification.
[0135] Each module in the aforementioned device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in the processor of the server in hardware form or independent of it, or stored in the memory of the server in software form, so that the processor can call and execute the operations corresponding to each module.
[0136] For specific limitations regarding a power-endurance control device for a custom-function electronic device, please refer to the limitations of the method above, which will not be repeated here.
[0137] A battery life control device for a custom-function electronic device achieves the effect of any of the above-mentioned battery life control methods for custom-function electronic devices, which will not be elaborated further here.
[0138] Reference Figure 7This application also provides a computer device, including at least one processor, a memory, and a transceiver; wherein the memory is used to store program code, and the processor is used to call the program code stored in the memory to execute any of the above-described battery life control methods for a custom-function electronic device.
[0139] A processor may include one or more processing cores. The processor connects to various parts of the computer device using various interfaces and lines, and performs various functions and processes data by running or executing instructions, programs, code sets, or instruction sets stored in memory, and by accessing data stored in memory.
[0140] Optionally, the processor can be implemented using at least one of the following hardware forms: Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA). The processor can integrate one or a combination of several of the following: Central Processing Unit (CPU), Graphics Processing Unit (GPU), and modem. The CPU primarily handles the operating system, user interface, and applications; the GPU is responsible for rendering and drawing the displayed content; and the modem handles wireless communication. It is understood that the modem can also be implemented separately as a dedicated communication chip, without being integrated into the processor.
[0141] The memory may include random access memory (RAM) or read-only memory (ROM). The memory can be used to store instructions, programs, code, code sets, or instruction sets. The memory may include a program storage area and a data storage area. The program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as touch functionality, sound playback functionality, image playback functionality, etc.), and instructions for implementing the various method embodiments described below. The data storage area may also store data created during the use of the computer device.
[0142] Those skilled in the art will understand that the structure shown in the figure is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. The specific computer device may include more or fewer components than shown in the figure, or combine certain components, or have different component arrangements.
[0143] Reference Figure 8 This application also provides a computer storage medium including instructions that, when run on a computer, cause the computer to execute any of the above-described battery life control methods for a custom-function electronic device.
[0144] Computer storage media can be computer-readable storage media. Computer-readable storage media can be any usable medium that a computer can store, or a data storage device such as a server or data center that integrates one or more usable media. The usable medium can be magnetic media (e.g., floppy disks, hard disks, magnetic tapes), optical media (e.g., DVDs), or semiconductor media (e.g., solid-state drives (SSDs)). Computer-readable storage media can be electronic storage devices such as flash memory, EEPROM (Electrically Erasable Programmable Read-Only Memory), EPROM, hard disks, or ROM.
[0145] Optionally, computer-readable storage media include non-transitory computer-readable storage media.
[0146] The computer-readable storage medium has storage space for instructions to perform any of the method steps described above. These instructions can be read from or written to one or more computer program products. The instructions can be stored in the computer-readable storage medium or transmitted from one computer-readable storage medium to another, for example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means.
[0147] Reference Figure 9 This application also provides a computer program product, including a computer program that, when executed by a processor, implements the steps of any of the above-described battery life control methods for a custom-function electronic device.
[0148] The computer program product includes one or more computer programs. When the computer program is loaded and executed on a computer, it produces, in whole or in part, the processes or functions described in the embodiments of this application. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer program code may be compressed in an appropriate form.
[0149] In the above embodiments, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions in other embodiments.
[0150] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and modules described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.
[0151] In the embodiments provided in this application, it should be understood that the disclosed systems, apparatuses, and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of modules is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple modules or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be indirect coupling or communication connection through some interfaces, apparatuses, or modules, and may be electrical, mechanical, or other forms.
[0152] The modules described as separate components may or may not be physically separate. The components shown as modules may or may not be physical modules; that is, they may be located in one place or distributed across multiple network modules. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs.
[0153] Furthermore, the functional modules in the various embodiments of this application can be integrated into one processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The integrated module can be implemented in hardware or as a software functional module. If the integrated module is implemented as a software functional module and sold or used as an independent product, it can be stored in a computer-readable storage medium.
[0154] In the above embodiments, implementation can be achieved, in whole or in part, through software, hardware, firmware, or any combination thereof. When implemented in software, it can be implemented, in whole or in part, as a computer program product.
[0155] Furthermore, the term "and / or" in this article is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, or B existing alone. Unless otherwise specified, the character " / " in this article generally indicates that the related objects before and after it have an "or" relationship.
[0156] The technical solutions provided in the embodiments of this application have been described in detail above. Specific examples have been used in the embodiments of this application to illustrate the principles and implementation methods of the embodiments of this application. The description of the above embodiments is only for the purpose of helping to understand the methods and core ideas of the embodiments of this application. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of the embodiments of this application. Therefore, the content of this specification should not be construed as a limitation on the embodiments of this application.
Claims
1. A method for controlling the battery life of a custom-function electronic device, characterized in that, Includes the following steps: S1. Obtain the control logic configuration currently being executed by the device; S2. Modify the control logic configuration to generate a corrected updated control logic configuration; S3. Determine whether the battery in the device is a recognizable standard battery; S4. If the battery in the device is a recognizable standard battery, then obtain the first battery specification that matches the recognizable standard battery. S5. Based on the current remaining battery power, the specifications of the first battery, and the update control logic configuration, an update range logic configuration is formed; S6. Send the update control logic configuration and the update battery life logic configuration to the device for execution.
2. The method according to claim 1, characterized in that, Step S5 includes: S5a. Extract the set power of each i-th gear in the update control logic configuration logic; S5b: Obtain the remaining capacity of the battery and the set battery voltage from the first battery specification; S5c: Calculate the estimated range of the i-th power setting based on the set power, the remaining capacity, and the battery voltage. S5d: Integrate each of the i-th gears and the estimated battery life matching the i-th gear into a battery life logic to be determined, and determine whether a confirmation message matching the battery life logic to be determined is received. S5e. If a confirmation message matching the pending battery life logic is received, the pending battery life logic is recorded as the updated battery life logic configuration.
3. The method according to claim 2, characterized in that, Following step S5b, the method further includes: S5h, Obtain the current battery temperature of the battery; S5i, Match the corresponding temperature correction coefficient according to the battery temperature; S5j. Based on the set power, the remaining capacity, the battery voltage, and the temperature correction coefficient, calculate the estimated range of the i-th gear. After updating the estimated battery life in step S5k, return to step S5d.
4. The method according to claim 2, characterized in that, Following step S5b, the method further includes: S5l: Obtain the preset drive loss coefficient of the battery; S5m, based on the set power, the remaining capacity, the battery voltage and the drive loss coefficient, calculate the estimated range of the i-th gear; After updating the estimated battery life in step S5n, return to step S5d.
5. The method according to claim 2, characterized in that, Following step S5b, the method further includes: S5o, Obtain the battery usage time; S5p, Match the corresponding battery aging coefficient according to the usage time; S5q: Calculate the estimated range of the i-th gear based on the set power, the remaining capacity, the battery voltage, and the battery aging coefficient. After updating the estimated battery life in step S5r, return to step S5d.
6. The method according to claim 2, characterized in that, The step S5a is followed by: S5f: Determine whether the set power exceeds the set threshold. S5g: If the set power exceeds the set threshold, a corresponding reminder message will be issued to remind the user to modify the set power.
7. The method according to claim 1, characterized in that, It also includes the following steps: S7. If the battery in the device is not a recognizable standard battery, then obtain a second battery specification that matches the battery. S8. Replace the second battery specification with the first battery specification, and return to step S5.
8. A customizable electronic device, characterized in that, include: A control module is configured to perform the steps of the method according to any one of claims 1 to 7; The input terminal of the control module is electrically connected to a battery power supply system and a memory. The battery power supply system is used to provide power to the device and to allow the control module to read the battery voltage; The memory establishes a communication connection with an external device through a communication module. The external device is used to convert the user's settings into configuration data packets and transmit and store them in the memory. The output terminal of the control module is electrically connected to a load drive module; The load driving module is used to drive the load according to the target value output by the control module.
9. A customizable electronic device configuration system, characterized in that, include: An external device, the external device comprising: The configuration interface module is used to present users with adjustable operation parameter options and receive users' custom settings parameters; A configuration generation module is used to encode the custom setting parameters into a configuration data packet; The battery life calculation module is used to calculate the estimated battery life of the target device at each power level based on battery parameters and power level. A target device, the target device comprising: The communication module is used to establish a communication connection with the external device and receive the configuration data packet; A memory for storing the configuration data packet; The control module is used to read and parse the configuration data packet from the memory, and control the operation of the target device according to the parsed operation parameters; A load drive module is used to drive the load of the target device in response to the input of the control module.
10. A battery life control device for a custom-function electronic device, characterized in that, include: The receiving module is used to obtain the control logic configuration currently being executed by the device; The control logic module is used to modify the control logic configuration and generate a corrected updated control logic configuration. The battery identification module is used to determine whether the battery in the device is an identifiable standard battery; A battery specification module is used to obtain a first battery specification that matches the identifiable standard battery when the battery in the device is an identifiable standard battery. The battery life logic module is used to generate an updated battery life logic configuration based on the current remaining battery power, the specifications of the first battery, and the update control logic configuration. The sending module is used to send the update control logic configuration and the update battery life logic configuration to the device for execution.
