Vehicle power supply limit setting method and electronic device
By obtaining the real-time battery power level in the power supply limit setting interface and limiting the movement of the slider, the power supply problem caused by user setting errors is solved, ensuring that the vehicle battery has sufficient power to supply power and achieving accurate setting of the power supply limit.
Patent Information
- Application Number
- CN202411904749.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-23
- Publication Date
- 2026-02-10
- Estimated Expiration
- 2044-12-23
AI Technical Summary
In existing technologies, users are prone to making mistakes when setting vehicle power supply limits, which can cause the battery's real-time charge to fall below the power supply limit and prevent it from supplying power, thus affecting the vehicle's ability to supply power to external systems.
By obtaining the real-time battery charge percentage of the vehicle, the power supply limit setting interface and slider are displayed. The limit movement position of the slider is determined based on the charge level, and the stop position of the slider is limited when the contact is released, so that the power supply limit does not exceed the real-time battery charge level and avoids setting errors.
It enables accurate setting of power supply limits, avoiding power failures due to errors and ensuring that the vehicle battery has sufficient charge for normal operation.
Smart Images

Figure CN119734611B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of vehicle-related technologies, and in particular to a method for setting vehicle power supply limits, electronic devices, storage media, and computer program products. Background Technology
[0002] Vehicles, especially electric vehicles, can provide power to external devices, making it convenient for users to use electrical appliances outdoors, which is suitable for scenarios such as camping.
[0003] The vehicle's power supply comes from its battery. To ensure normal vehicle operation, not all the battery power can be used for external power generation. Therefore, existing technology provides a power supply limit setting. Users can set this limit, and when the vehicle is supplying power, it will continuously monitor the relationship between the battery's real-time charge and the limit. If the battery's real-time charge falls below the limit, power supply will cease.
[0004] Current power supply limit settings are relatively simple, typically requiring the user to input a percentage of the battery capacity, which is then converted into a power supply limit. However, the power supply limit cannot actually exceed the battery's real-time charge level. Since users cannot accurately know the battery's real-time charge level, they might set the power supply limit higher than the battery's real-time charge level. In this case, because the battery's real-time charge level is lower than the power supply limit, it cannot actually supply power, preventing the user from using the vehicle's external power supply function. Summary of the Invention
[0005] Therefore, it is necessary to provide a vehicle power supply limit setting method, electronic device, storage medium, and computer program product to address the technical problem that existing technologies fail to prevent user errors when setting power supply limits.
[0006] This invention provides a method for setting vehicle power supply limits, comprising:
[0007] In response to a power supply limit setting request, obtain the real-time battery charge percentage of the vehicle battery;
[0008] The power supply limit setting interface is displayed, which includes a movable area and a power supply limit setting slider located within the movable area;
[0009] The limit movement position of the power supply limit setting slider is determined based on the real-time power level of the vehicle battery.
[0010] The movement of the contact with the power supply limit setting slider is detected, and the power supply limit setting slider is moved within the movement area to follow the contact. When the contact is detected to be disengaged, the movement of the power supply limit setting slider is stopped, and the stop position of the power supply limit setting slider is determined. The distance between the stop position and the start position is less than or equal to the distance between the limit movement position and the start position. The start position represents the minimum percentage of charge that the vehicle battery is allowed to retain.
[0011] Based on the stopping position, a power supply limit is determined, which is used to restrict the power supply to the vehicle.
[0012] Further, the step of stopping the movement of the power supply limit setting slider when the contact disengagement is detected, and determining the stop position of the power supply limit setting slider, includes:
[0013] When the contact stops moving, the movement of the power supply limit setting slider is stopped;
[0014] If the distance between the current position and the starting position of the power supply limit setting slider is less than or equal to the distance between the limit movement position and the starting position, then the stop position of the power supply limit setting slider is determined to be the current position.
[0015] If the distance between the current position and the starting position of the power supply limit setting slider is greater than the distance between the extreme movement position and the starting position, then the power supply limit setting slider is moved from the current position to the extreme movement position, and the stopping position of the power supply limit setting slider is determined as the extreme movement position.
[0016] Furthermore, moving the power supply limit setting slider from its current position to its limit position includes:
[0017] Move the power supply limit setting slider from its current position to its maximum movement position, display a prompt message, and hide the prompt message after a preset time.
[0018] Further, determining the extreme movement position of the power supply limit setting slider based on the real-time power level of the vehicle battery includes:
[0019] If the real-time battery charge percentage is greater than or equal to the minimum percentage that the battery is allowed to retain, then the maximum distance is calculated based on the real-time battery charge percentage.
[0020] The limit movement position of the slider is set based on the power supply limit calculated according to the limit distance.
[0021] Further, moving the power supply limit setting slider within the moving area to follow the contact includes:
[0022] A first layer and a second layer are stacked vertically in the moving area. The first layer is located below the second layer. The first layer and the second layer have different display effects. The first layer fills the moving area.
[0023] The power supply limit setting slider is moved within the moving area to follow the contact, and the second layer is rendered in real time from the real-time position of the power supply limit setting slider to one end of the moving area.
[0024] Further, moving the power supply limit setting slider within the moving area to follow the contact includes:
[0025] While moving the power supply limit setting slider to follow the contact, the real-time position of the power supply limit setting slider is acquired in real time, and the corresponding real-time power supply limit percentage is calculated based on the real-time position.
[0026] The system displays the percentage of the real-time power supply limit in real time, or displays the real-time power supply limit calculated based on the percentage of the real-time power supply limit.
[0027] Furthermore, moving the power supply limit setting slider within the moving area to follow the contact includes:
[0028] The power supply limit setting slider is moved within the moving area to follow the contact, while the real-time battery power of the vehicle battery is acquired, and the extreme movement position of the power supply limit setting slider is updated according to the real-time battery power.
[0029] This invention provides an electronic device, comprising:
[0030] At least one processor; and,
[0031] A memory communicatively connected to at least one of the processors; wherein,
[0032] The memory stores instructions that can be executed by at least one of the processors to enable the at least one processor to perform the vehicle power supply limit setting method as described above.
[0033] The present invention provides a storage medium that stores computer instructions, which, when executed by a computer, are used to perform all the steps of the vehicle power supply limit setting method as described above.
[0034] The present invention provides a computer program product, including a computer program / instruction, which, when executed by a processor, implements the vehicle power supply limit setting method as described above.
[0035] This invention presents a power supply limit setting slider. The limit movement position is determined based on the real-time battery charge percentage of the vehicle. The slider moves within a specific movement area according to the user's contact with it, thus visually displaying the user-set power supply limit. Furthermore, upon disengagement, the slider's stopping position is limited to not exceeding the limit movement position, and the power supply limit is determined based on this stopping position. This ensures that the power supply limit will not exceed the vehicle battery's real-time charge level, preventing power supply failure due to incorrect settings. Attached Figure Description
[0036] Figure 1 This is a flowchart illustrating a method for setting vehicle power supply limits according to an embodiment of the present invention.
[0037] Figure 2 This is a flowchart illustrating a method for setting vehicle power supply limits according to another embodiment of the present invention.
[0038] Figure 3 This is a schematic diagram of the power supply limit setting interface according to the preferred embodiment of the present invention;
[0039] Figure 4 A flowchart illustrating a method for setting vehicle power supply limits according to a preferred embodiment of the present invention;
[0040] Figure 5 This is a schematic diagram of the hardware structure of an electronic device according to the present invention. Detailed Implementation
[0041] The specific embodiments of the present invention will be further described below with reference to the accompanying drawings. Identical components are indicated by the same reference numerals. It should be noted that the terms "front," "rear," "left," "right," "up," and "down" used in the following description refer to directions in the accompanying drawings, while the terms "inner" and "outer" refer to directions toward or away from the geometric center of a specific component, respectively.
[0042] like Figure 1 The diagram shown is a flowchart of a vehicle power supply limit setting method according to an embodiment of the present invention, including:
[0043] Step S101: In response to the power supply limit setting request, obtain the real-time battery charge percentage of the vehicle battery;
[0044] Step S102: Display the power supply limit setting interface, which includes a movable area and a power supply limit setting slider located within the movable area.
[0045] Step S103: Determine the extreme movement position of the power supply limit setting slider based on the real-time power level of the vehicle battery;
[0046] Step S104: Detect movement of the contact with the power supply limit setting slider, move the power supply limit setting slider within the movement area to follow the contact, stop the movement of the power supply limit setting slider when the contact is detected to be disengaged, and determine the stop position of the power supply limit setting slider. The distance between the stop position and the start position is less than or equal to the distance between the limit movement position and the start position. The start position represents the minimum percentage of charge that the vehicle battery is allowed to retain.
[0047] Step S105: Determine a power supply limit based on the stop position. The power supply limit is used to restrict the power supply to the vehicle.
[0048] Specifically, this invention can be applied to electronic devices with processing capabilities, such as vehicle controllers. For example, the Electronic Control Unit (ECU) of a vehicle.
[0049] When the user sets a power supply limit, step S101 is triggered, and in response to the power supply limit setting request, the real-time battery charge percentage of the vehicle battery is obtained.
[0050] The power supply limit setting is used to set power supply limits. A power supply limit setting request is generated when a user opens the power supply limit setting interface. Users can open the power supply limit setting interface by tapping the vehicle's infotainment screen or via voice commands. The power supply limit is the maximum amount of electricity the vehicle can supply to external systems. The power supply limit can be expressed as a percentage, meaning that the vehicle will stop supplying electricity to external systems when the vehicle's real-time battery charge percentage is less than the percentage represented by the power supply limit. The charge percentage can be the State of Charge (SOC). The power supply limit can also be expressed as the actual battery charge level, meaning that the vehicle will stop supplying electricity to external systems when the vehicle's real-time battery charge is less than the power supply limit.
[0051] When the user needs to set a power supply limit, step S101 is triggered to obtain the real-time battery charge percentage of the vehicle battery.
[0052] Then, step S102 is executed to display the power supply limit setting interface, which includes a movable area and a power supply limit setting slider located within the movable area.
[0053] Specifically, the power supply limit settings interface is displayed on the vehicle's infotainment screen. For example... Figure 2 The image shows the power supply limit setting interface, which includes a movable area 1 and a power supply limit setting slider 2.
[0054] In some embodiments, when the power supply limit setting slider 2 is located at one end of the moving area 1, the position of the preset mark point of the power supply limit setting slider 2 is the starting position, and when the power supply limit setting slider 2 is located at the other end of the moving area 1, the position of the preset mark point of the power supply limit setting slider 2 is the ending position.
[0055] The power supply limit can be represented by battery capacity. When the power supply limit setting slider 2 is in the starting position, it indicates that the power supply limit is set to the minimum percentage of battery capacity that the battery can retain. The more capacity available for external power supply, the higher the minimum percentage of battery capacity. This minimum percentage is calculated by multiplying the minimum allowed battery capacity by the total battery capacity. When the power supply limit setting slider 2 is in the ending position, it indicates that the power supply limit is set to the maximum percentage of battery capacity that the battery can retain. This maximum percentage is calculated by multiplying the maximum allowed battery capacity by the total battery capacity. Generally, the maximum allowed battery capacity is set to 100% or 99%.
[0056] Since the vehicle cannot use its entire battery charge to supply power to the outside world, a portion of the battery charge needs to be reserved to ensure normal vehicle operation. Therefore, to prevent user errors, the system pre-sets a minimum percentage of battery charge that can be retained, and sets a corresponding starting position. The power supply limit setting slider 2 must not exceed this starting position.
[0057] like Figure 3 As shown, the minimum percentage of battery that can be retained is 20%, and the maximum percentage of battery that can be retained is 99% in the mobile area 1.
[0058] Since the power supply limit setting slider 2 has a certain length, a predetermined mark point on the power supply limit setting slider 2 is used as the position of the power supply limit setting slider 2. The predetermined mark point can be the left end point, center, or right end point of the power supply limit setting slider 2.
[0059] by Figure 2 For example, when the power supply limit setting slider 2 is located at the leftmost end of the moving area 1, the position of the predetermined mark point on the power supply limit setting slider 2 on the moving area 22 is the starting position; when the power supply limit setting slider 2 is located at the rightmost end of the moving area 1, the position of the predetermined mark point on the power supply limit setting slider 2 on the moving area 22 is the ending position.
[0060] Then, step S103 is executed to determine the extreme movement position of the power supply limit setting slider based on the real-time power level of the vehicle battery.
[0061] Because vehicle battery levels fluctuate in real time during use, the battery is typically not fully charged when setting power supply limits. The battery percentage will usually be lower than the maximum allowed percentage, such as less than 100% or 99%. Users may not be aware of the battery level when setting power supply limits. Therefore, to avoid errors, the power supply limit setting slider is set to its maximum position based on the real-time battery level. This maximum position corresponds to the vehicle's real-time battery level; when the power supply limit setting slider reaches its maximum position, the set power supply limit is the real-time battery level.
[0062] Then, step S104 is executed, detecting the movement of the contact with the power supply limit setting slider, moving the power supply limit setting slider within the movement area to follow the contact, stopping the movement of the power supply limit setting slider when the contact is detected to disengage, and determining the stop position of the power supply limit setting slider. The distance between the stop position and the start position is less than or equal to the distance between the limit movement position and the start position, where the start position represents the minimum percentage of charge that the vehicle battery is allowed to retain.
[0063] Specifically, when a user operates the power supply limit setting slider on the vehicle's infotainment screen, they will come into contact with the slider. This contact can be made by the user using one or more fingers to touch the screen, or by the user using any suitable object or accessory to make contact with the screen.
[0064] When contact with the power supply limit setting slider is detected, the system continuously monitors the user's movement while maintaining contact with the vehicle's infotainment screen, and controls the movement of the power supply limit setting slider based on the position of the contact movement, so that the power supply limit setting slider follows the contact movement.
[0065] When, for example, a user's finger or other object that triggers contact leaves the vehicle's infotainment screen, the system detects the loss of contact, stops the movement of the power supply limit setting slider, and determines the stop position.
[0066] In some embodiments, when a contact is detected again, the power supply limit setting slider is moved again within the movement area to follow the contact, and when the contact is detected to disengage again, the movement of the power supply limit setting slider is stopped, and the stop position of the power supply limit setting slider is determined.
[0067] When the slider stops moving, the relationship between its position when it stops and its limit position is detected. If the position when the slider stops moving does not exceed the limit position, the stop position is the same as the position when the slider stops moving. If the position when the slider stops moving exceeds the limit position, the stop position is set to the limit position.
[0068] Finally, step S105 is executed, in which a power supply limit is determined based on the stop position, and the power supply limit is used to restrict the power supply to the vehicle.
[0069] Specifically, the user confirms the power supply limit settings, including but not limited to:
[0070] The user clicks the confirmation button on the vehicle's infotainment screen; or
[0071] User disconnection power supply limit setting slider; or
[0072] Users confirm power supply restrictions via voice.
[0073] When the user confirms the power supply limit setting, step S105 is executed, calculating the power supply limit percentage based on the stop position. If the power supply limit is expressed in terms of electricity consumption, the power supply limit percentage is multiplied by the total battery capacity to obtain the power supply limit. When the vehicle is supplying power to external systems, power supply is stopped when the real-time battery capacity is less than the power supply limit.
[0074] If the power supply limit is expressed directly as a percentage of battery charge, then that percentage will be used as the power supply limit. When the vehicle is supplying power to external systems, power supply will stop when the real-time battery charge percentage falls below the power supply limit.
[0075] This invention presents a power supply limit setting slider. The limit movement position is determined based on the real-time battery charge percentage of the vehicle. The slider moves within a specific movement area according to the user's contact with it, thus visually displaying the user-set power supply limit. Furthermore, upon disengagement, the slider's stopping position is limited to not exceeding the limit movement position, and the power supply limit is determined based on this stopping position. This ensures that the power supply limit will not exceed the vehicle battery's real-time charge level, preventing power supply failure due to incorrect settings.
[0076] like Figure 2 The diagram shown is a flowchart of a vehicle power supply limit setting method according to another embodiment of the present invention, including:
[0077] Step S201: In response to the power supply limit setting request, obtain the real-time battery charge percentage of the vehicle battery.
[0078] Step S202: Display the power supply limit setting interface, which includes a movable area and a power supply limit setting slider located within the movable area.
[0079] Step S203: If the real-time battery charge percentage is greater than or equal to the minimum percentage that the battery is allowed to retain, then calculate the maximum distance based on the real-time battery charge percentage.
[0080] The limit movement position of the slider is set based on the power supply limit calculated according to the limit distance.
[0081] Step S204: Detect the movement of the contact of the slider with respect to the power supply limit setting.
[0082] Step S205: Set a first layer and a second layer stacked vertically in the moving area. The first layer is located below the second layer. The first layer and the second layer have different display effects. The first layer fills the moving area.
[0083] The power supply limit setting slider is moved within the moving area to follow the contact, and the second layer is rendered in real time from the real-time position of the power supply limit setting slider to one end of the moving area.
[0084] Step S206: While moving the power supply limit setting slider to follow the contact, the real-time position of the power supply limit setting slider is obtained in real time, and the corresponding real-time power supply limit percentage is calculated based on the real-time position.
[0085] The system displays the percentage of the real-time power supply limit in real time, or displays the real-time power supply limit calculated based on the percentage of the real-time power supply limit.
[0086] In one embodiment, moving the power supply limit setting slider within the movement area to follow the contact includes:
[0087] The power supply limit setting slider is moved within the moving area to follow the contact, while the real-time battery power of the vehicle battery is acquired, and the extreme movement position of the power supply limit setting slider is updated according to the real-time battery power.
[0088] Step S207: When the contact stops moving, stop the movement of the power supply limit setting slider;
[0089] If the distance between the current position and the starting position of the power supply limit setting slider is less than or equal to the distance between the limit movement position and the starting position, then the stop position of the power supply limit setting slider is determined to be the current position.
[0090] If the distance between the current position and the starting position of the power supply limit setting slider is greater than the distance between the extreme movement position and the starting position, then the power supply limit setting slider is moved from the current position to the extreme movement position, and the stopping position of the power supply limit setting slider is determined as the extreme movement position. The distance between the stopping position and the starting position is less than or equal to the distance between the extreme movement position and the starting position. The starting position represents the minimum percentage of battery power that the vehicle battery is allowed to retain.
[0091] In one embodiment, moving the power supply limit setting slider from its current position to its limit position includes:
[0092] Move the power supply limit setting slider from its current position to its maximum movement position, display a prompt message, and hide the prompt message after a preset time.
[0093] Step S208: Determine a power supply limit based on the stop position. The power supply limit is used to restrict the power supply to the vehicle.
[0094] Specifically, when the user sets a power supply limit, step S201 is triggered, and in response to the power supply limit setting request, the real-time battery charge percentage of the vehicle battery is obtained.
[0095] Specifically, the real-time battery charge percentage, i.e., the real-time battery SOC, can be obtained directly from the vehicle's controller. Alternatively, the real-time battery charge can be obtained first, and then the ratio of the real-time battery charge to the total battery charge can be used as the real-time battery charge percentage.
[0096] Then, step S202 is executed to display the power supply limit setting interface, which includes a movable area and a power supply limit setting slider located within the movable area.
[0097] Then, step S203 is executed: if the real-time battery charge percentage is greater than or equal to the minimum percentage that the battery is allowed to retain, the limit distance is calculated based on the real-time battery charge percentage.
[0098] The limit movement position of the slider is set based on the power supply limit calculated according to the limit distance.
[0099] Specifically, step S203 calculates the limit movement.
[0100] If the real-time battery percentage is lower than the preset minimum allowed battery percentage, the power supply limit setting will be rejected. The system can then alert the user that the vehicle's battery is too low to provide power.
[0101] If the real-time battery charge percentage is greater than or equal to the minimum percentage that the battery is allowed to retain, then the maximum distance is calculated based on the real-time battery charge percentage.
[0102] Then, the limit movement position of the slider is set according to the power supply limit distance.
[0103] In some embodiments, calculating the maximum distance based on the real-time battery charge percentage includes:
[0104] If 1% of the electricity is expressed as a unit length, then the maximum distance is:
[0105] Limit distance = [(real-time battery percentage - minimum battery percentage allowed to remain) * 100 - 1] * unit length.
[0106] In some embodiments, calculating the limit movement position of the slider based on the limit distance includes:
[0107] Within the movement area, the position obtained by adding the limit distance to the starting position is taken as the limit movement position, that is, the limit movement position = starting position + limit distance.
[0108] After determining the limit movement position, step S204 is executed to detect the movement of the contact of the slider with respect to the power supply limit setting.
[0109] like Figure 4 As shown, when finger 3 comes into contact with the power supply limit setting slider, it will be detected and the movement of the contact will be tracked.
[0110] When the contact moves, step S205 is executed, in which a first layer and a second layer are set up vertically in the moving area, the first layer is located below the second layer, the display effect of the first layer and the second layer are different, and the first layer fills the moving area;
[0111] The power supply limit setting slider is moved within the moving area to follow the contact, and the second layer is rendered in real time from the real-time position of the power supply limit setting slider to one end of the moving area.
[0112] like Figure 3 and Figure 4 As shown, a first layer 11 is set at the bottom as the background and a second layer 12 is set at the top in the moving area 1. The first layer 11 and the second layer 12 have different display effects. For example, the first layer 11 and the second layer 12 can be displayed with different colors, different gray levels, and / or different transparency.
[0113] The first layer 11 serves as the background, filling the entire moving area 1. Meanwhile, the power limit setting slider 2 moves with the contact, simultaneously filling the left end of the moving area 1 with the second layer 12.
[0114] Simultaneously, step S206 is executed, in which the power supply limit setting slider is moved to follow the contact, the real-time position of the power supply limit setting slider is obtained in real time, and the corresponding real-time power supply limit percentage is calculated based on the real-time position.
[0115] The system displays the percentage of the real-time power supply limit in real time, or displays the real-time power supply limit calculated based on the percentage of the real-time power supply limit.
[0116] Step S206 is used to display the real-time power supply limit percentage or the real-time power supply limit amount calculated based on the real-time power supply limit percentage.
[0117] Specifically, the power supply limit slider displays the real-time power supply limit percentage, or the real-time power supply limit calculated by multiplying the real-time power supply limit percentage by the total battery capacity. Figure 4 The power supply limit percentage is displayed in real time on the power supply limit slider.
[0118] In some embodiments, the method further includes: calculating the real-time power supply limit percentage as: real-time power supply limit percentage = (current position of power supply limit slider - starting position) ÷ unit length ÷ 100.
[0119] Specifically, a unit length is determined to correspond to 1% of the electricity percentage.
[0120] The starting position is set to 20 units in length, corresponding to a minimum battery percentage that can be retained of 20%.
[0121] The endpoint position is set to 99 units in length, corresponding to a maximum battery percentage that can be retained of 99%.
[0122] Set the position step value to 1 unit length, that is: 20+1+1+1+…+1=99;
[0123] The real-time power supply limit percentage is then equal to (current position of the power supply limit slider - starting position) ÷ unit length ÷ 100.
[0124] In one embodiment, moving the power supply limit setting slider within the movement area to follow the contact includes:
[0125] The power supply limit setting slider is moved within the moving area to follow the contact, while the real-time battery power of the vehicle battery is acquired, and the extreme movement position of the power supply limit setting slider is updated according to the real-time battery power.
[0126] Specifically, since the battery charge changes in real time during vehicle use, this embodiment obtains the real-time battery charge percentage while moving the power supply limit setting slider, and updates the limit movement position of the power supply limit setting slider, making the power supply limit setting more accurate.
[0127] Then, when the contact stops moving, step S207 is executed, in which the movement of the power supply limit setting slider is stopped when the contact stops moving;
[0128] If the distance between the current position and the starting position of the power supply limit setting slider is less than or equal to the distance between the limit movement position and the starting position, then the stop position of the power supply limit setting slider is determined to be the current position.
[0129] If the distance between the current position and the starting position of the power supply limit setting slider is greater than the distance between the extreme movement position and the starting position, then the power supply limit setting slider is moved from the current position to the extreme movement position, and the stopping position of the power supply limit setting slider is determined as the extreme movement position. The distance between the stopping position and the starting position is less than or equal to the distance between the extreme movement position and the starting position. The starting position represents the minimum percentage of battery power that the vehicle battery is allowed to retain.
[0130] Specifically, upon contact with the stop movement, the movement of the power supply limit setting slider is stopped, and the current position of the power supply limit setting slider is determined. If the distance between the current position and the starting position is less than or equal to the distance between the limit movement position and the starting position, i.e., the current position has not exceeded the limit movement position, then the stop position of the power supply limit setting slider is determined as the current position. Figure 3 and Figure 4 For example, when the finger is released, if the current position of the power supply limit setting slider 2 is to the left of the limit movement position, then the current position has not exceeded the limit movement position, and the stop position of the power supply limit setting slider 2 is determined as the current position.
[0131] If the distance between the current position and the starting position is greater than the distance between the extreme movement position and the starting position, meaning the current position exceeds the extreme movement position, then the power supply limit setting slider is moved from the current position to the extreme movement position, creating an effect of rebounding from the current position of the stop power supply limit setting slider to the extreme movement position. Simultaneously, the stop position of the power supply limit setting slider is determined as the extreme movement position.
[0132] by Figure 4 For example, when the finger is released, if the current position of the power supply limit setting slider 2 is to the right of the limit movement position, then the current position exceeds the limit movement position, and the power supply limit setting slider 2 will bounce back from the current position when the finger is released to the limit movement position.
[0133] As an example, we determine that one unit of length corresponds to 1% of the electricity percentage.
[0134] The starting position is set to 20 units in length, corresponding to a minimum battery percentage that can be retained of 20%.
[0135] The endpoint position is set to 99 units in length, corresponding to a maximum battery percentage that can be retained of 99%.
[0136] Set the position step value to 1 unit length, that is: 20+1+1+1+…+1=99;
[0137] Then the power supply limit percentage = location value / 100;
[0138] Limit distance = [(real-time battery percentage - percentage corresponding to the starting position value) * 100 - 1] * unit length;
[0139] Limit position = Starting position + Limit distance;
[0140] When the finger releases the power supply limit setting slider 2, the system determines whether the current position of the slider 2 is greater than or equal to the limit movement position calculated by the real-time battery level. If so, the slider will automatically bounce back to the limit movement position - 1 * unit length. For example, if the current battery level is 64%, the slider will bounce back to the position corresponding to 63%.
[0141] In one embodiment, moving the power supply limit setting slider from its current position to its limit position includes:
[0142] Move the power supply limit setting slider from its current position to its maximum movement position, display a prompt message, and hide the prompt message after a preset time.
[0143] In this embodiment, when the power supply limit setting slider is moved from its current position to its maximum position, a prompt message is displayed to remind the user not to set an excessively high power supply limit. The prompt message is hidden after a period of time. The prompt message is displayed as a bubble, and the bubble disappears after a certain period of time.
[0144] Finally, step S208 is executed to determine a power supply limit based on the stop position. The power supply limit is used to restrict the power supply to the vehicle.
[0145] When the user confirms the power supply limit setting, step S208 is executed, calculating the power supply limit percentage based on the stop position. If the power supply limit is expressed in terms of electricity consumption, the power supply limit percentage is multiplied by the total battery capacity to obtain the power supply limit. When the vehicle is supplying power to external systems, power supply is stopped when the real-time battery capacity is less than the power supply limit.
[0146] If the power supply limit is expressed directly as a percentage of battery charge, then that percentage will be used as the power supply limit. When the vehicle is supplying power to external systems, power supply will stop when the real-time battery charge percentage falls below the power supply limit.
[0147] This embodiment uses a power supply limit setting slider that moves in sync with the user's touch to reflect the user's setting needs in real time. Simultaneously, the real-time display of the power supply limit allows the user to intuitively understand their set limit. Furthermore, two layers are used to clearly show the user's adjustment direction. Finally, when the power supply limit setting slider is stopped, it automatically compares the stopped position with the limit movement position. If the user sets an excessively large value, it automatically rebounds, preventing situations where power supply is unavailable due to incorrect settings and providing a clear visual representation of the final power supply limit set, facilitating external power supply for the user.
[0148] like Figure 4 The diagram shown is a flowchart of a vehicle power supply limit setting method according to a preferred embodiment of the present invention, including:
[0149] In step S401, the user touches the power supply limit setting slider 2 with their finger, and the real-time power supply limit percentage is displayed as 40% on the power supply limit setting slider 2. At the same time, the minimum percentage of battery allowed to be retained is displayed as 20% and the maximum percentage of battery allowed to be retained is displayed as 99% at both ends of the moving area 1.
[0150] Step S402: The user drags the power supply limit setting slider 2 to the right until the real-time power supply limit percentage is 70%.
[0151] In step S403, the user releases their finger. Since the power supply limit percentage corresponding to the extreme movement position is 63%, the power supply limit setting slider 2 bounces back to the extreme movement position. At the same time, the real-time power supply limit percentage displayed on the power supply limit setting slider 2 is 63%, and a pop-up message "Limit cannot exceed the maximum power" appears.
[0152] In step S404, after a period of time, the bubbles disappear automatically.
[0153] It should be understood that the sequence number of each step in the above embodiments does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention.
[0154] like Figure 5 The diagram shown is a hardware structure schematic of an electronic device according to the present invention, comprising:
[0155] At least one processor 501; and,
[0156] A memory 502 is communicatively connected to at least one of the processors 501; wherein,
[0157] The memory 502 stores instructions that can be executed by at least one of the processors to enable the at least one processor to perform the vehicle power supply limit setting method as described above.
[0158] Figure 5 Take a processor 501 as an example.
[0159] The electronic device may also include an input device 503 and a display device 504.
[0160] The processor 501, memory 502, input device 503 and display device 504 can be connected by a bus or other means. The figure shows an example of connection by bus.
[0161] The memory 502, as a non-volatile computer-readable storage medium, can be used to store non-volatile software programs, non-volatile computer-executable programs, and modules, such as the program instructions / modules corresponding to the vehicle power supply limit setting method in this application embodiment, for example, Figure 1 , Figure 2 The method flow is shown. The processor 501 executes various functional applications and data processing by running non-volatile software programs, instructions, and modules stored in the memory 502, thereby implementing the vehicle power supply limit setting method in the above embodiment.
[0162] Memory 502 may include a program storage area and a data storage area. The program storage area may store an operating system and an application program required for at least one function. The data storage area may store data created based on the use of the vehicle power supply limit setting method. Furthermore, memory 502 may include high-speed random access memory and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other non-volatile solid-state storage device. In some embodiments, memory 502 may optionally include memory remotely located relative to processor 501, and this remote memory may be connected via a network to the apparatus performing the vehicle power supply limit setting method. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
[0163] The input device 503 can receive user clicks and generate signal inputs related to user settings and function control of the vehicle power supply limit setting method. The display device 504 may include a display screen or other display equipment.
[0164] When one or more modules are stored in the memory 502, and are run by one or more processors 501, the vehicle power supply limit setting method in any of the above method embodiments is executed.
[0165] This invention presents a power supply limit setting slider. The limit movement position is determined based on the real-time battery charge percentage of the vehicle. The slider moves within a specific movement area according to the user's contact with it, thus visually displaying the user-set power supply limit. Furthermore, upon disengagement, the slider's stopping position is limited to not exceeding the limit movement position, and the power supply limit is determined based on this stopping position. This ensures that the power supply limit will not exceed the vehicle battery's real-time charge level, preventing power supply failure due to incorrect settings.
[0166] One embodiment of the present invention provides a storage medium that stores computer instructions, which, when executed by a computer, are used to perform all the steps of the vehicle power supply limit setting method as described above.
[0167] In the context of this disclosure, a storage medium can be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device. The storage medium can be a machine-readable signal medium or a machine-readable storage medium. Optionally, the storage medium can be a non-transitory computer-readable storage medium, such as a ROM, random access memory (RAM), compact disc ROM (CD-ROM), magnetic tape, floppy disk, and optical data storage device.
[0168] One embodiment of the present invention provides a computer program product, including a computer program / instruction, which, when executed by a processor, implements the vehicle power supply limit setting method as described above.
[0169] The embodiments described above are merely illustrative of several implementations of the present invention, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of the present invention. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of the present invention, and these modifications and improvements all fall within the scope of protection of the present invention. Therefore, the scope of protection of this patent should be determined by the appended claims.
Claims
1. A method for setting power supply limits for vehicles, characterized in that, include: In response to a power supply limit setting request, obtain the real-time battery charge percentage of the vehicle battery; The power supply limit setting interface is displayed, which includes a movable area and a power supply limit setting slider located within the movable area; The limit movement position of the power supply limit setting slider is determined based on the real-time battery power level. The movement of the contact with the power supply limit setting slider is detected, and the power supply limit setting slider is moved within the movement area to follow the contact. When the contact is detected to be disengaged, the movement of the power supply limit setting slider is stopped, and the stop position of the power supply limit setting slider is determined. The distance between the stop position and the start position is less than or equal to the distance between the limit movement position and the start position. The start position represents the minimum percentage of charge that the vehicle battery is allowed to retain. Based on the stopping position, a power supply limit is determined, which is used to restrict the power supply to the vehicle. The step of stopping the movement of the power supply limit setting slider when the contact disengagement is detected, and determining the stop position of the power supply limit setting slider, includes: When the contact stops moving, the movement of the power supply limit setting slider is stopped; If the distance between the current position and the starting position of the power supply limit setting slider is less than or equal to the distance between the limit movement position and the starting position, then the stop position of the power supply limit setting slider is determined to be the current position. If the distance between the current position and the starting position of the power supply limit setting slider is greater than the distance between the extreme movement position and the starting position, then the power supply limit setting slider is moved from the current position to the extreme movement position, and the stopping position of the power supply limit setting slider is determined as the extreme movement position. The step of determining the limit movement position of the power supply limit setting slider based on the real-time battery power includes: If the real-time battery charge percentage is greater than or equal to the minimum percentage that the battery is allowed to retain, then the maximum distance is calculated based on the real-time battery charge percentage. The limit movement position of the slider is set based on the power supply limit calculated according to the limit distance.
2. The vehicle power supply limit setting method according to claim 1, characterized in that, Moving the power supply limit setting slider from its current position to its maximum movement position includes: Move the power supply limit setting slider from its current position to its maximum movement position, display a prompt message, and hide the prompt message after a preset time.
3. The vehicle power supply limit setting method according to claim 1, characterized in that, Moving the power supply limit setting slider within the moving area to follow the contact includes: A first layer and a second layer are stacked vertically in the moving area. The first layer is located below the second layer. The first layer and the second layer have different display effects. The first layer fills the moving area. The power supply limit setting slider is moved within the moving area to follow the contact, and the second layer is rendered in real time from the real-time position of the power supply limit setting slider to one end of the moving area.
4. The vehicle power supply limit setting method according to claim 1, characterized in that, Moving the power supply limit setting slider within the moving area to follow the contact includes: While moving the power supply limit setting slider to follow the contact, the real-time position of the power supply limit setting slider is acquired in real time, and the corresponding real-time power supply limit percentage is calculated based on the real-time position. The system displays the percentage of the real-time power supply limit in real time, or displays the real-time power supply limit calculated based on the percentage of the real-time power supply limit.
5. The vehicle power supply limit setting method according to any one of claims 1 to 4, characterized in that, Moving the power supply limit setting slider within the moving area to follow the contact includes: The power supply limit setting slider is moved within the moving area to follow the contact, while the real-time battery power of the vehicle battery is acquired, and the extreme movement position of the power supply limit setting slider is updated according to the real-time battery power.
6. An electronic device, characterized in that, include: At least one processor; as well as, A memory communicatively connected to at least one of the processors; wherein, The memory stores instructions executable by at least one of the processors, which enable the at least one processor to perform the vehicle power supply limit setting method as described in any one of claims 1 to 5.
7. A storage medium, characterized in that, The storage medium stores computer instructions, which, when executed by the computer, are used to perform all the steps of the vehicle power supply limit setting method as described in any one of claims 1 to 5.
8. A computer program product comprising a computer program / instructions, characterized in that, When the computer program / instruction is executed by the processor, it implements the vehicle power supply limit setting method as described in any one of claims 1 to 5.
Citation Information
Patent Citations
Displaying charging options for electric vehicle
CN112867628A
Ascertaining the state of health of a vehicle battery
US20240361397A1