Vehicle power supply limit value setting method and electronic equipment
By using sliders to set the power supply limit in the vehicle power supply limit setting interface and determining the limit moving position based on the real-time battery power, the problem of inability to supply power is solved, and reasonable power supply limit setting and normal vehicle power supply function are achieved.
Patent Information
- Application Number
- CN202411904749.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-23
- Publication Date
- 2025-04-01
- Estimated Expiration
- 2044-12-23
AI Technical Summary
In the prior art, users are prone to errors when setting vehicle power supply limits, resulting in the power supply limits being greater than the real-time battery power and unable to supply power.
By obtaining the real-time power percentage of the vehicle battery, the power supply limit setting interface is displayed, including the mobile area and the power supply limit setting slider. Determine the limit movement position of the slider based on the real-time power, and when the user operates, detect the contact movement of the slider until the contact is disengaged, and determine its stop position. Determine the power supply limit based on the stop position to ensure that it is not greater than the real-time battery power.
It effectively avoids the problem of power supply caused by user errors, ensures that the power supply limit is reasonable and does not exceed the real-time battery power, and realizes the normal use of the vehicle's external power supply.
Smart Images

Figure CN119734611A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of vehicle-related technologies, and in particular to a method for setting a vehicle power supply limit, an electronic device, a storage medium and a computer program product. Background Art
[0002] Vehicles, especially electric vehicles, can provide external power, making it convenient for users to use electrical appliances outside, which is suitable for scenarios such as camping.
[0003] The power supplied by the vehicle to the outside comes from the battery. In order to ensure the normal use of the vehicle, not all the power can be used for power supply. To this end, the prior art provides the setting of power supply limit. The user can set the power supply limit. When the vehicle supplies power to the outside, it will judge the relationship between the real-time battery power and the power supply limit in real time. When the real-time battery power of the vehicle is less than the power supply limit, it will stop supplying power.
[0004] The power supply limit setting of the prior art is relatively simple. Generally, the user inputs the corresponding power limit percentage, and then converts it into the power supply limit according to the power limit percentage. However, the power supply limit cannot actually be greater than the real-time battery power. However, the user cannot actually know the real-time battery power accurately. Therefore, when setting, the user may set the power supply limit to be greater than the real-time battery power. At this time, since the real-time battery power is less than the power supply limit, it is actually unable to supply power, resulting in the user being unable to use the vehicle's external power supply function. Summary of the invention
[0005] Based on this, 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 the prior art fails to avoid user errors when the user sets the power supply limit.
[0006] The present invention provides a method for setting a vehicle power supply limit, comprising:
[0007] In response to a power supply limit setting request, obtaining a real-time battery power percentage of a vehicle battery;
[0008] Displaying a power supply limit setting interface, wherein the power supply limit setting interface includes a moving area and a power supply limit setting slider located in the moving area;
[0009] Determining the limit movement position of the power supply limit setting slider according to the real-time power level of the vehicle battery;
[0010] Detecting movement of the contact with respect to the power supply limit setting slider, moving the power supply limit setting slider within the movement area to follow the contact, and when the contact is detected to be disengaged, stopping the movement of the power supply limit setting slider, and determining a stop position of the power supply limit setting slider, wherein the distance between the stop position and the starting position is less than or equal to the distance between the limit movement position and the starting position, and the starting position represents the minimum percentage of power allowed to be retained by the vehicle battery;
[0011] A power supply limit value is determined according to the stop position, and the power supply limit value is used to limit the power supply of the vehicle.
[0012] Further, when the contact is detected to be released, the movement of the power supply limit setting slider is stopped, and the stop position of the power supply limit setting slider is determined, including:
[0013] When the contact stops moving, stopping the movement of the power supply limit setting slider;
[0014] If the distance between the current position of the power supply limit setting slider and the starting position is less than or equal to the distance between the limit moving position and the starting position, determining the stop position of the power supply limit setting slider as the current position;
[0015] If the distance between the current position of the power supply limit setting slider and the starting position is greater than the distance between the limit movement position and the starting position, the power supply limit setting slider is moved from the current position to the limit movement position, and the stop position of the power supply limit setting slider is determined to be the limit movement position.
[0016] Furthermore, the step of moving the power supply limit setting slider from a current position to a limit movement position includes:
[0017] The power supply limit setting slider is moved from the current position to the limit moving position, prompt information is displayed, and the prompt information is hidden after a preset time.
[0018] Further, the step of determining the limit movement position of the power supply limit setting slider according to the real-time power level of the vehicle battery includes:
[0019] If the real-time battery power percentage is greater than or equal to the minimum percentage allowed to be retained by the battery, calculating the limit distance according to the real-time battery power percentage;
[0020] The limit moving position of the power supply limit setting slider is calculated according to the limit distance.
[0021] Further, the step of moving the power supply limit setting slider within the moving area to follow the contact includes:
[0022] A first layer and a second layer stacked one above the other are set in the moving area, the first layer is located below the second layer, the first layer and the second layer have different display effects, and the first layer covers the entire 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, the step of 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, acquiring a real-time position of the power supply limit setting slider in real time, and calculating a corresponding real-time power supply limit percentage according to the real-time position;
[0026] The real-time power supply limit percentage is displayed in real time, or the real-time power supply limit power quantity calculated according to the real-time power supply limit percentage is displayed in real time.
[0027] Further, the moving the power supply limit setting slider in 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, and the real-time battery power of the vehicle battery is obtained in real time, and the extreme movement position of the power supply limit setting slider is updated according to the real-time battery power of the vehicle.
[0029] The present 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. The instructions are executed by at least one of the processors to enable the at least one of the processors to perform the vehicle power supply limit setting method as described above.
[0033] The present invention provides a storage medium, wherein the storage medium stores computer instructions. When a computer executes the computer instructions, the storage medium is used to execute all steps of the vehicle power supply limit setting method as described above.
[0034] The present invention provides a computer program product, comprising a computer program / instruction, which implements the vehicle power supply limit setting method as described above when the computer program / instruction is executed by a processor.
[0035] The present invention displays a power supply limit setting slider, determines the limit moving position according to the real-time battery power percentage of the vehicle battery, and moves the power supply limit setting slider in a moving area to follow the contact according to the user's movement of the power supply limit setting slider, and intuitively displays the power supply limit set by the user through the movement of the power supply limit setting slider. At the same time, when the contact is disengaged, the stop position of the power supply limit setting slider is limited to not exceed the limit moving position, and the power supply limit is determined according to the stop position, so that the power supply limit will not be greater than the real-time battery power of the vehicle, thereby avoiding the situation where power cannot be supplied due to setting errors. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] Figure 1 A flowchart of a method for setting a vehicle power supply limit value according to an embodiment of the present invention;
[0037] Figure 2 This is a working flow chart of a method for setting a vehicle power supply limit value according to another embodiment of the present invention;
[0038] Figure 3 A schematic diagram of a power supply limit setting interface of a preferred embodiment of the present invention;
[0039] Figure 4 A flowchart of a method for setting a vehicle power supply limit value according to a preferred embodiment of the present invention;
[0040] Figure 5 The figure is a schematic diagram of the hardware structure of an electronic device of the present invention. DETAILED DESCRIPTION
[0041] The specific embodiments of the present invention are further described below in conjunction with the accompanying drawings. The same components are represented by the same reference numerals. It should be noted that the words "front", "rear", "left", "right", "upper" and "lower" used in the following description refer to directions in the accompanying drawings, and the words "inner" and "outer" refer to directions toward or away from the geometric center of a specific component, respectively.
[0042] like Figure 1 The flowchart of a method for setting a vehicle power supply limit value according to an embodiment of the present invention is shown, comprising:
[0043] Step S101, in response to a power supply limit setting request, obtaining a real-time battery power percentage of a vehicle battery;
[0044] Step S102, displaying a power supply limit setting interface, wherein the power supply limit setting interface includes a moving area and a power supply limit setting slider located in the moving area;
[0045] Step S103, determining the limit moving position of the power supply limit setting slider according to the real-time power level of the vehicle battery;
[0046] Step S104, detecting movement of the contact with the power supply limit setting slider, moving the power supply limit setting slider within the moving area to follow the contact, and stopping the movement of the power supply limit setting slider when it is detected that the contact is disengaged, and determining a stop position of the power supply limit setting slider, wherein the distance between the stop position and the starting position is less than or equal to the distance between the limit moving position and the starting position, and the starting position represents the minimum percentage of power allowed to be retained by the vehicle battery;
[0047] Step S105: determining a power supply limit value according to the stop position, wherein the power supply limit value is used to limit the power supply to the vehicle.
[0048] Specifically, the present invention can be applied to electronic devices with processing capabilities, such as a controller of a vehicle, such as an electronic control unit (ECU) of a vehicle.
[0049] When the user sets the power supply limit, step S101 is triggered to execute, and in response to the power supply limit setting request, the real-time battery power percentage of the vehicle battery is obtained.
[0050] Among them, the power supply limit setting is used to set the power supply limit. When the user opens the power supply limit setting interface, a power supply limit setting request is generated. Among them, the user can open the power supply limit setting interface by clicking on the vehicle screen or through voice and other methods. Among them, the power supply limit is the maximum value of the vehicle's external power supply. The power supply limit can be expressed in percentage, that is, when the real-time battery percentage of the vehicle is less than the percentage represented by the power supply limit, the vehicle stops supplying power to the outside. The power percentage can be the state of charge (State Of Charge, SOC). The power supply limit can also be expressed in real power, that is, when the real-time battery of the vehicle is less than the power supply limit, the vehicle stops supplying power to the outside.
[0051] When the user needs to set the power supply limit, step S101 is triggered to obtain the real-time battery power percentage of the vehicle battery.
[0052] Then, step S102 is executed to display a power supply limit setting interface, wherein the power supply limit setting interface includes a moving area and a power supply limit setting slider located in the moving area.
[0053] Specifically, the power supply limit setting interface is displayed on the vehicle screen. Figure 2 The figure shows a power supply limit setting interface, including a moving 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 end position.
[0055] Among them, the power supply limit can be expressed in terms of power. When the power supply limit setting slider 2 is at the starting position, it means that the power supply limit is set to the minimum percentage of power that the battery can retain. The more power that can be used for external power supply, the minimum percentage of power can be obtained by multiplying the minimum percentage allowed by the battery by the total battery power. When the power supply limit setting slider 2 is at the end position, it means that the power supply limit is set to the maximum percentage of power that the battery can retain. The maximum percentage of power can be obtained by multiplying the maximum percentage allowed by the battery by the total battery power. Generally, the maximum percentage allowed by the battery is set to 100% or 99%.
[0056] Since the vehicle cannot use all the battery power to supply power to the outside, it needs to retain some power to ensure the normal use of the vehicle. Therefore, in order to avoid user setting errors, the system pre-sets the minimum percentage allowed by the battery to be retained, and sets the corresponding position as the starting position. The power supply limit setting slider 2 cannot exceed the starting position.
[0057] like Figure 3 As shown, the minimum percentage of the battery remaining allowed is 20% and the maximum percentage of the battery remaining allowed is 99% on the moving area 1.
[0058] Since the power supply limit setting slider 2 has a certain length, the predetermined mark point of 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, and 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 end position.
[0060] Then, step S103 is executed to determine the extreme moving position of the power supply limit setting slider according to the real-time power level of the vehicle battery.
[0061] Since the battery power changes in real time when the vehicle is in use, the vehicle's battery is generally not fully charged when setting the power limit, that is, the battery power percentage is generally less than the maximum percentage allowed by the battery, such as less than 100% or 99%. When setting the power limit, the user does not necessarily pay attention to the battery power. Therefore, in order to avoid setting errors, the extreme movement position of the power limit setting slider is set according to the real-time battery power. The extreme movement position corresponds to the real-time battery power of the vehicle, that is, when the power limit setting slider moves to the extreme movement position, the set power limit is the real-time battery power.
[0062] Then, step S104 is executed to detect the movement of the contact with the power supply limit setting slider, move the power supply limit setting slider within the moving area to follow the contact, and when it is detected that the contact is disengaged, stop the movement of the power supply limit setting slider, and determine the stop position of the power supply limit setting slider, the distance between the stop position and the starting position is less than or equal to the distance between the limit movement position and the starting position, and the starting position represents the minimum percentage of power allowed to be retained by the vehicle battery.
[0063] Specifically, when the user operates the power supply limit setting slider on the vehicle screen, the power supply limit setting slider is touched. The touch may be one or more fingers of the user touching the vehicle screen, or any appropriate object or accessory of the user touching the vehicle screen.
[0064] When contact with the power limit setting slider is detected, the user's movement while maintaining contact with the vehicle screen is continuously detected, and the movement of the power limit setting slider is controlled according to the position of the contact movement so that the power limit setting slider follows the contact movement.
[0065] When, for example, the user's finger or other contact-triggering object leaves the vehicle screen, the system detects that the contact is released, stops the movement of the power supply limit setting slider, and determines the stop position.
[0066] In some embodiments, when contact is detected again, the power supply limit setting slider is moved within the moving area to follow the contact according to the movement of the contact, and when the contact is detected to be disengaged 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 movement stops, the relationship between the position of the power supply limit setting slider when it stops moving and the limit movement position is detected. When the position of the power supply limit setting slider when it stops moving does not exceed the limit movement position, the stop position is the position of the power supply limit setting slider when it stops moving. If the position of the power supply limit setting slider when it stops moving exceeds the limit movement position, the stop position is set to the limit movement position.
[0068] Finally, step S105 is executed to determine a power supply limit value according to the stop position, wherein the power supply limit value is used to limit the power supply of the vehicle.
[0069] Specifically, the user confirms the setting of the power supply limit, including but not limited to:
[0070] The user clicks the confirmation button on the vehicle screen; or
[0071] The user disengages the power supply limit setting slider; or
[0072] The user confirms the power supply limit by voice.
[0073] When the user confirms the setting of the power supply limit, step S105 is executed to calculate the power supply limit percentage according to the stop position. If the power supply limit is expressed in terms of power consumption, the power supply limit percentage is multiplied by the total battery power to obtain the power supply limit. When the vehicle is supplying power to the outside, if the real-time battery power is less than the power supply limit, the power supply is stopped.
[0074] If the power supply limit is directly expressed as a percentage of power, the power supply limit percentage is used as the power supply limit. When the vehicle supplies power to the outside, when the real-time battery power percentage is less than the power supply limit, the power supply is stopped.
[0075] The present invention displays a power supply limit setting slider, determines the limit moving position according to the real-time battery power percentage of the vehicle battery, and moves the power supply limit setting slider in a moving area to follow the contact according to the user's movement of the power supply limit setting slider, and intuitively displays the power supply limit set by the user through the movement of the power supply limit setting slider. At the same time, when the contact is disengaged, the stop position of the power supply limit setting slider is limited to not exceed the limit moving position, and the power supply limit is determined according to the stop position, so that the power supply limit will not be greater than the real-time battery power of the vehicle, thereby avoiding the situation where power cannot be supplied due to setting errors.
[0076] like Figure 2 FIG. 1 is a flowchart of a method for setting a vehicle power supply limit in another embodiment of the present invention, comprising:
[0077] Step S201, in response to a power supply limit setting request, obtaining a real-time battery power percentage of a vehicle battery.
[0078] Step S202: displaying a power supply limit setting interface, wherein the power supply limit setting interface includes a moving area and a power supply limit setting slider located in the moving area.
[0079] Step S203, if the real-time battery power percentage is greater than or equal to the minimum percentage allowed to be retained by the battery, calculating the limit distance according to the real-time battery power percentage;
[0080] The limit moving position of the power supply limit setting slider is calculated according to the limit distance.
[0081] Step S204: detecting the movement of the contact with respect to the power supply limit setting slider.
[0082] Step S205, setting a first layer and a second layer stacked one above the other in the moving area, wherein the first layer is located below the second layer, the first layer and the second layer have different display effects, and the first layer covers the entire 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, acquiring the real-time position of the power supply limit setting slider in real time, and calculating the corresponding real-time power supply limit percentage according to the real-time position;
[0085] The real-time power supply limit percentage is displayed in real time, or the real-time power supply limit power quantity calculated according to the real-time power supply limit percentage is displayed in real time.
[0086] In one of the embodiments, 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, and the real-time battery power of the vehicle battery is obtained in real time, and the extreme movement position of the power supply limit setting slider is updated according to the real-time battery power of the vehicle.
[0088] Step S207, when the contact stops moving, stopping the movement of the power supply limit setting slider;
[0089] If the distance between the current position of the power supply limit setting slider and the starting position is less than or equal to the distance between the limit moving position and the starting position, determining the stop position of the power supply limit setting slider as the current position;
[0090] If the distance between the current position of the power supply limit setting slider and the starting position is greater than the distance between the extreme moving position and the starting position, the power supply limit setting slider is moved from the current position to the extreme moving position, and the stop position of the power supply limit setting slider is determined to be the extreme moving position, and the distance between the stop position and the starting position is less than or equal to the distance between the extreme moving position and the starting position, and the starting position represents the minimum percentage of power allowed to be retained by the vehicle battery.
[0091] In one embodiment, moving the power supply limit setting slider from a current position to a limit movement position includes:
[0092] The power supply limit setting slider is moved from the current position to the limit moving position, prompt information is displayed, and the prompt information is hidden after a preset time.
[0093] Step S208: determining a power supply limit value according to the stop position, wherein the power supply limit value is used to limit the power supply to the vehicle.
[0094] Specifically, when the user sets the power supply limit, step S201 is triggered to execute, and in response to the power supply limit setting request, the real-time battery power percentage of the vehicle battery is obtained.
[0095] Specifically, the real-time battery power percentage, that is, the real-time battery SOC, can be directly obtained from the vehicle controller. Alternatively, the real-time battery power of the vehicle can be first obtained, and then the ratio of the real-time battery power of the vehicle to the total battery power is used as the real-time battery power percentage of the vehicle battery.
[0096] Then, step S202 is executed to display a power supply limit setting interface, where the power supply limit setting interface includes a moving area and a power supply limit setting slider located in the moving area.
[0097] Then, step S203 is executed, if the real-time battery power percentage is greater than or equal to the minimum percentage allowed to be retained by the battery, the limit distance is calculated according to the real-time battery power percentage;
[0098] The limit moving position of the power supply limit setting slider is calculated according to the limit distance.
[0099] Specifically, step S203 calculates the limit movement.
[0100] If the real-time battery power percentage is less than the preset minimum percentage allowed to be retained by the battery, the power supply limit setting is rejected. The user can be prompted that the real-time battery power of the vehicle is too low to supply power to the outside.
[0101] If the real-time battery power percentage is greater than or equal to the minimum percentage allowed to be retained by the battery, the limit distance is calculated according to the real-time battery power percentage.
[0102] Then, the limit moving position of the power supply limit setting slider is calculated according to the limit distance.
[0103] In some embodiments, calculating the limit distance according to the real-time battery power percentage includes:
[0104] If 1% of the charge is expressed as a unit length, the limit distance is:
[0105] Limit distance = [(battery real-time power percentage - battery minimum percentage allowed) * 100 - 1] * unit length.
[0106] In some embodiments, calculating the limit movement position of the power supply limit setting slider according to the limit distance includes:
[0107] In the moving area, the position obtained by adding the limit distance to the starting position is used as the limit moving position, that is, the limit moving position = starting position + limit distance.
[0108] After the limit movement position is determined, step S204 is executed to detect the movement of the contact with respect to the power supply limit setting slider.
[0109] like Figure 4 As shown, when the finger 3 contacts 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 to set a first layer and a second layer stacked one above the other in the moving area, wherein the first layer is located below the second layer, the first layer and the second layer have different display effects, and the first layer covers the entire 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 located at the bottom as a background and a second layer 12 located at the top are set in the moving area 1. The display effects of the first layer 11 and the second layer 12 are different. For example, the first layer 11 and the second layer 12 can be displayed in different colors, different grayscales, and / or different transparencies.
[0113] The first layer 11 is used as a background to cover the moving area 1. The power supply limit setting slider 2 follows the movement of the contact, and the power supply limit setting slider 2 is covered to the left end of the moving area 1 by the second layer 12.
[0114] At the same time, executing step S206, while moving the power supply limit setting slider to follow the contact, obtaining the real-time position of the power supply limit setting slider in real time, and calculating the corresponding real-time power supply limit percentage according to the real-time position;
[0115] The real-time power supply limit percentage is displayed in real time, or the real-time power supply limit power quantity calculated according to the real-time power supply limit percentage is displayed in real time.
[0116] Step S206 is used to display the real-time power supply limit percentage in real time, or to display the real-time power supply limit power calculated according to the real-time power supply limit percentage in real time.
[0117] Specifically, the real-time power supply limit percentage is displayed in real time on the power supply limit slider, or the real-time power supply limit power calculated by multiplying the real-time power supply limit percentage by the total battery power is displayed in real time. Figure 4 The power limit percentage is displayed in real time on the power limit slider.
[0118] In some embodiments, it also includes: calculating the real-time power supply limit percentage as: real-time power supply limit percentage = (current position of the power supply limit slider - starting position) ÷ unit length ÷ 100.
[0119] Specifically, it is determined that one unit length corresponds to a power percentage of 1%.
[0120] Set the starting position to 20 units in length, and the minimum percentage of battery retention allowed is 20%;
[0121] Set the end point to 99 units in length, corresponding to a maximum battery retention percentage of 99%;
[0122] Set the position step value to 1 unit length, that is: 20+1+1+1+…+1=99;
[0123] Then the real-time power supply limit percentage == (current position of the power supply limit slider - starting position) ÷ unit length ÷ 100.
[0124] In one of the embodiments, 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, and the real-time battery power of the vehicle battery is obtained in real time, and the extreme movement position of the power supply limit setting slider is updated according to the real-time battery power of the vehicle.
[0126] Specifically, since the battery power changes in real time during the use of the vehicle, this embodiment obtains the real-time battery power percentage in real time while moving the power limit setting slider, and updates the extreme moving position of the power limit setting slider, so that the power limit setting is more accurate.
[0127] Then, when the contact stops moving, step S207 is executed, and when the contact stops moving, the movement of the power supply limit setting slider is stopped;
[0128] If the distance between the current position of the power supply limit setting slider and the starting position is less than or equal to the distance between the limit moving position and the starting position, determining the stop position of the power supply limit setting slider as the current position;
[0129] If the distance between the current position of the power supply limit setting slider and the starting position is greater than the distance between the extreme moving position and the starting position, the power supply limit setting slider is moved from the current position to the extreme moving position, and the stop position of the power supply limit setting slider is determined to be the extreme moving position, and the distance between the stop position and the starting position is less than or equal to the distance between the extreme moving position and the starting position, and the starting position represents the minimum percentage of power allowed to be retained by the vehicle battery.
[0130] Specifically, when the contact stops moving, the movement of the power supply limit setting slider stops, 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 moving position and the starting position, that is, the current position does not exceed the limit moving position, then the stop position of the power supply limit setting slider is determined to be 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 located on the left side of the limit movement position, the current position does not exceed the limit movement position, and the stop position of the power supply limit setting slider 2 is determined to be the current position.
[0131] If the distance between the current position and the starting position is greater than the distance between the limit movement position and the starting position, that is, the current position exceeds the limit movement position, the power supply limit setting slider is moved from the current position to the limit movement position, forming an effect of rebounding from the current position of the stop power supply limit setting slider to the limit movement position. At the same time, the stop position of the power supply limit setting slider is determined as the limit 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 located to the right of the limit movement position, the current position exceeds the limit movement position, and the power supply limit setting slider 2 is rebounded from the current position when the finger is released to the limit movement position.
[0133] As an example, determine that one unit length corresponds to a 1% charge percentage.
[0134] Set the starting position to 20 units in length, and the minimum percentage of battery retention allowed is 20%;
[0135] Set the end point to 99 units in length, corresponding to a maximum battery retention percentage 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 = position value / 100;
[0138] Limit distance = [(battery real-time power percentage - percentage corresponding to the starting position value) * 100-1] * unit length;
[0139] Limit moving position = starting position + limit distance;
[0140] When the finger releases the power supply limit setting slider 2, it is judged that if the current position of the power supply limit setting slider 2 is greater than or equal to the limit movement position calculated by the real-time power, it will automatically rebound to the limit movement position - 1*unit length. For example, if the current power is 64%, it will rebound to the position corresponding to 63%.
[0141] In one embodiment, moving the power supply limit setting slider from a current position to a limit movement position includes:
[0142] The power supply limit setting slider is moved from the current position to the limit moving position, prompt information is displayed, and the prompt information is hidden after a preset time.
[0143] In this embodiment, when the power supply limit setting slider is moved from the current position to the limit movement position, a prompt message is displayed to remind the user not to set an excessive power supply limit, and the prompt message is hidden after a period of time. The prompt message is displayed in a bubble, and the bubble disappears after a period of time.
[0144] Finally, step S208 is executed to determine a power supply limit value according to the stop position, wherein the power supply limit value is used to limit the power supply to the vehicle.
[0145] When the user confirms the setting of the power supply limit, step S208 is executed to calculate the power supply limit percentage according to the stop position. If the power supply limit is expressed in terms of power consumption, the power supply limit percentage is multiplied by the total battery power to obtain the power supply limit. When the vehicle is supplying power to the outside, if the real-time battery power is less than the power supply limit, the power supply is stopped.
[0146] If the power supply limit is directly expressed as a percentage of power, the power supply limit percentage is used as the power supply limit. When the vehicle supplies power to the outside, when the real-time battery power percentage is less than the power supply limit, the power supply is stopped.
[0147] In this embodiment, the power supply limit setting slider follows the user's touch and movement to reflect the user's setting requirements in real time, and at the same time, the power supply limit is displayed in real time so that the user can intuitively understand the power supply limit set by the user. In addition, two layers are used to make the user clear about the direction of adjustment. Finally, when the power supply limit setting slider is stopped, the position at the time of stop can be automatically compared with the extreme movement position. When the user sets it too large, it automatically rebounds. On the one hand, it avoids the situation where power supply cannot be supplied due to setting errors, and on the other hand, it can intuitively let the user understand the power supply limit set by the user in the end, so that the user can supply power to the outside.
[0148] like Figure 4 The flowchart of a method for setting a vehicle power supply limit value according to a preferred embodiment of the present invention is shown, comprising:
[0149] Step S401, the user touches the power limit setting slider 2 with a finger, and the real-time power limit percentage is displayed on the power limit setting slider 2 as 40%. At the same time, the minimum percentage allowed to be retained by the battery is displayed at both ends of the moving area 1 as 20%, and the maximum percentage allowed to be retained by the battery is displayed as 99%;
[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] Step S403, the user releases his finger, and since the power supply limit percentage corresponding to the limit moving position is 63%, the power supply limit setting slider 2 rebounds to the limit moving position, and the real-time power supply limit percentage on the power supply limit setting slider 2 is displayed as 63%, and a bubble prompt "the limit value cannot exceed the maximum power" pops up;
[0152] Step S404: After a period of time, the bubbles disappear automatically.
[0153] It should be understood that the order of execution of the steps in the above embodiment does not necessarily mean 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 embodiment of the present invention.
[0154] like Figure 5 The figure shows a hardware structure diagram of an electronic device of the present invention, including:
[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. The instructions are executed by at least one of the processors so that the at least one of the processors can execute the vehicle power supply limit setting method as described above.
[0158] Figure 5 A processor 501 is taken as an example.
[0159] The electronic device may further include: an input device 503 and a display device 504 .
[0160] The processor 501, the memory 502, the input device 503 and the display device 504 may be connected via a bus or other means, and the figure takes the connection via a bus as an example.
[0161] The memory 502 is a non-volatile computer-readable storage medium that can be used to store non-volatile software programs, non-volatile computer executable programs and modules, such as program instructions / modules corresponding to the vehicle power supply limit setting method in the embodiment of the present application, for example, Figure 1 , Figure 2 The processor 501 executes various functional applications and data processing by running the non-volatile software programs, instructions and modules stored in the memory 502, that is, the vehicle power supply limit setting method in the above embodiment is implemented.
[0162] The memory 502 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and an application required by at least one function; the data storage area may store data created according to the use of the vehicle power supply limit setting method, etc. In addition, the memory 502 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some embodiments, the memory 502 may optionally include a memory remotely arranged relative to the processor 501, and these remote memories may be connected to the device for executing the vehicle power supply limit setting method via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, 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 can include display devices such as a display screen.
[0164] The one or more modules are stored in the memory 502 , and when executed by the one or more processors 501 , the vehicle power supply limit setting method in any of the above method embodiments is executed.
[0165] The present invention displays a power supply limit setting slider, determines the limit moving position according to the real-time battery power percentage of the vehicle battery, and moves the power supply limit setting slider in a moving area to follow the contact according to the user's movement of the power supply limit setting slider, and intuitively displays the power supply limit set by the user through the movement of the power supply limit setting slider. At the same time, when the contact is disengaged, the stop position of the power supply limit setting slider is limited to not exceed the limit moving position, and the power supply limit is determined according to the stop position, so that the power supply limit will not be greater than the real-time battery power of the vehicle, thereby avoiding the situation where power cannot be supplied due to setting errors.
[0166] An embodiment of the present invention provides a storage medium, wherein the storage medium stores computer instructions. When a computer executes the computer instructions, the storage medium is used to execute all steps of the vehicle power supply limit setting method as described above.
[0167] In the context of the present disclosure, a storage medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or apparatus. The storage medium may be a machine-readable signal medium or a machine-readable storage medium. Alternatively, the storage medium may be a non-temporary computer-readable storage medium, for example, a non-temporary computer-readable storage medium may be a ROM, a random access memory (Random Access Memory, RAM), a compact disc read-only memory (Compact Disc ROM, CD-ROM), a magnetic tape, a floppy disk, and an optical data storage device, etc.
[0168] An embodiment of the present invention provides a computer program product, including a computer program / instruction, which implements the vehicle power supply limit setting method as described above when executed by a processor.
[0169] The above-mentioned embodiments only express several implementation methods of the present invention, and the description thereof is relatively specific and detailed, but it cannot be understood as limiting the scope of the patent of the present invention. It should be pointed out that, for ordinary technicians in this field, several variations and improvements can be made without departing from the concept of the present invention, which all belong to the protection scope of the present invention. Therefore, the protection scope of the patent of the present invention shall be subject to the attached claims.
Claims
1. A method for setting a vehicle power supply limit, characterized in that: include: In response to a power supply limit setting request, obtaining a real-time battery power percentage of a vehicle battery; Displaying a power supply limit setting interface, wherein the power supply limit setting interface includes a moving area and a power supply limit setting slider located in the moving area; Determining the limit moving position of the power supply limit setting slider according to the real-time battery power; Detecting movement of the contact with respect to the power supply limit setting slider, moving the power supply limit setting slider within the movement area to follow the contact, and when the contact is detected to be disengaged, stopping the movement of the power supply limit setting slider, and determining a stop position of the power supply limit setting slider, wherein the distance between the stop position and the starting position is less than or equal to the distance between the limit movement position and the starting position, and the starting position represents the minimum percentage of power allowed to be retained by the vehicle battery; A power supply limit value is determined according to the stop position, and the power supply limit value is used to limit the power supply of the vehicle.
2. The vehicle power supply limit setting method according to claim 1, characterized in that: When the contact is detected to be released, stopping the movement of the power supply limit setting slider and determining the stop position of the power supply limit setting slider comprises: When the contact stops moving, stopping the movement of the power supply limit setting slider; If the distance between the current position of the power supply limit setting slider and the starting position is less than or equal to the distance between the limit moving position and the starting position, determining the stop position of the power supply limit setting slider as the current position; If the distance between the current position of the power supply limit setting slider and the starting position is greater than the distance between the limit movement position and the starting position, the power supply limit setting slider is moved from the current position to the limit movement position, and the stop position of the power supply limit setting slider is determined to be the limit movement position.
3. The vehicle power supply limit setting method according to claim 2, characterized in that: The step of moving the power supply limit setting slider from the current position to the limit movement position comprises: The power supply limit setting slider is moved from the current position to the limit moving position, prompt information is displayed, and the prompt information is hidden after a preset time.
4. The vehicle power supply limit setting method according to claim 1, characterized in that: The step of determining the limit movement position of the power supply limit setting slider according to the real-time power level of the vehicle battery includes: If the real-time battery power percentage is greater than or equal to the minimum percentage allowed to be retained by the battery, calculating the limit distance according to the real-time battery power percentage; The limit moving position of the power supply limit setting slider is calculated according to the limit distance.
5. The vehicle power supply limit setting method according to claim 1, characterized in that: The step of moving the power supply limit setting slider within the movement area to follow the contact comprises: A first layer and a second layer stacked one above the other are set in the moving area, the first layer is located below the second layer, the first layer and the second layer have different display effects, and the first layer covers the entire 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.
6. The vehicle power supply limit setting method according to claim 1, characterized in that: The step of moving the power supply limit setting slider within the movement area to follow the contact comprises: While moving the power supply limit setting slider to follow the contact, acquiring a real-time position of the power supply limit setting slider in real time, and calculating a corresponding real-time power supply limit percentage according to the real-time position; The real-time power supply limit percentage is displayed in real time, or the real-time power supply limit power quantity calculated according to the real-time power supply limit percentage is displayed in real time.
7. The vehicle power supply limit setting method according to any one of claims 1 to 6, characterized in that: The step of moving the power supply limit setting slider within the movement area to follow the contact comprises: The power supply limit setting slider is moved within the moving area to follow the contact, and the real-time battery power of the vehicle battery is obtained in real time, and the extreme movement position of the power supply limit setting slider is updated according to the real-time battery power of the vehicle.
8. 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 that can be executed by at least one of the processors, and the instructions are executed by at least one of the processors to enable at least one of the processors to execute the vehicle power supply limit setting method according to any one of claims 1 to 7.
9. A storage medium, characterized in that: The storage medium stores computer instructions, and when a computer executes the computer instructions, it is used to execute all steps of the vehicle power supply limit setting method according to any one of claims 1 to 7.
10. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instruction is executed by a processor, the vehicle power supply limit setting method as claimed in any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Displaying charging options for electric vehicle
CN112867628A
Ascertaining the state of health of a vehicle battery
US20240361397A1