Mobile charging vehicle mode switching correction method, electronic device, and storage medium
Patent Information
- Application Number
- CN202410273834.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-11
- Publication Date
- 2026-09-11
- Estimated Expiration
- 2044-03-11
AI Technical Summary
[0002]移动充电车不仅在汽车领域得到应用,还广泛应用于其他自动化的设备和系统中,例如智能家居、机器人以及虚拟助手等;目前,为了简化移动充电车的设计以及节约硬件成本,通常会采用单按钮设计,通过单按钮被按的次数或者两次按压的时间间隔来切换移动充电车的不同模式;然而,不同的用户连续按压的时间间隔是不同的,如果采用固定不变的时间间隔阈值来进行判断,当不同用户按压单按钮时,会导致模式切换判断错误的情况发生
[0014]The mobile charging vehicle mode switching correction method of the present invention obtains the initial time interval between the two press actions corresponding to the user's most recent b double-clicks of a single button, to obtain an initial time interval list LA; based on the time interval difference between two adjacent time intervals in LA, if there is a time interval difference greater than a preset time interval difference threshold, and bd≥WD, it indicates that a change has occurred in the user; then, the LA in LA is updated. d+1 to LA b Each initial time interval is determined as an intermediate time interval to obtain an intermediate time interval list ZD. The third correction time interval threshold HF is determined based on ZD, and HF replaces the preset first time interval threshold. Thus, when the user changes, the original first time interval threshold can also change accordingly, so that the current first time interval threshold can match the current user and avoid the situation where mode switching is incorrect when different users press a single button.
Smart Images

Figure CN118163657B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of mobile charging vehicle technology, and in particular to a mobile charging vehicle mode switching correction method, electronic device, and storage medium. Background Technology
[0002] Mobile charging vehicles are not only used in the automotive field, but also widely applied in other automated devices and systems, such as smart homes, robots, and virtual assistants. Currently, in order to simplify the design of mobile charging vehicles and save hardware costs, a single-button design is usually adopted, and the different modes of the mobile charging vehicle are switched by the number of times the single button is pressed or the time interval between two presses. However, different users have different time intervals for continuous pressing. If a fixed time interval threshold is used for judgment, it will lead to incorrect mode switching judgment when different users press the single button. Summary of the Invention
[0003] To address the aforementioned technical problems, the technical solution adopted by this invention is as follows:
[0004] According to a first aspect of this application, a method for switching modes of a single-button mobile charging vehicle is provided, the method comprising the following steps:
[0005] S100, obtain the initial time interval between the two presses corresponding to each of the user's most recent b double-clicks of a single button, to obtain the initial time interval list LA = (LA1, LA2, ..., LA...). a , ..., LA b ), a = 1, 2, ..., b; where LA a LA is the initial time interval between two presses during the user's most recent double-click of a single button; x The corresponding double-click time is earlier than LA. x+1 The corresponding double-click time; x = 1, 2, ..., b-1.
[0006] S200, Based on LA, determine the time interval difference between two adjacent initial time intervals in LA to obtain a time interval difference list CZ = (CZ1, CZ2, ..., CZ...). d CZ b-1 ), d=1,2,…,b-1; where CZ d For LA d with LA d+1 The time interval difference between them; CZ d =|LA d -LA d+1 |
[0007] S300, if CZ dIf > TU and bd ≥ WD, then LA in LA will be... d+1 to LA b Each initial time interval is determined as an intermediate time interval, and each intermediate time interval is obtained to obtain a list of intermediate time intervals ZD = (ZD1, ZD2, ..., ZD...). e , ..., ZD b-d ), e = 1, 2, ..., bd; where ZD e The e-th intermediate time interval is obtained; bd is the number of intermediate time intervals obtained; TU is the preset time interval difference threshold; and WD is the preset quantity threshold.
[0008] S400, based on ZD, determine the volatility θ of the intermediate time interval corresponding to ZD = (1 / (bd)) × ∑ b-d e=1 (ZD e -((1 / (bd))×∑ b-d e=1 ZD e )) 2 .
[0009] S500, if θ < KT, then according to ZD, determine the third correction time interval threshold HF = (1 / (bd)) × ∑ b-d e= 1ZD e Where KT is the preset volatility threshold for the intermediate time interval.
[0010] S600, replace T1 with HF; where T1 is a preset first time interval threshold, and T1 is used to switch the mode of the mobile charging vehicle according to the time interval of the user pressing the single button of the mobile charging vehicle.
[0011] According to another aspect of this application, a non-transitory computer-readable storage medium is also provided, wherein at least one instruction or at least one program is stored in the storage medium, and the at least one instruction or at least one program is loaded and executed by a processor to implement the above-described mobile charging vehicle mode switching correction method.
[0012] According to another aspect of this application, an electronic device is also provided, including a processor and the aforementioned non-transitory computer-readable storage medium.
[0013] The present invention has at least the following beneficial effects:
[0014] The mobile charging vehicle mode switching correction method of the present invention obtains the initial time interval between the two press actions corresponding to the user's most recent b double-clicks of a single button, to obtain an initial time interval list LA; based on the time interval difference between two adjacent time intervals in LA, if there is a time interval difference greater than a preset time interval difference threshold, and bd≥WD, it indicates that a change has occurred in the user; then, the LA in LA is updated. d+1 to LA b Each initial time interval is determined as an intermediate time interval to obtain an intermediate time interval list ZD. The third correction time interval threshold HF is determined based on ZD, and HF replaces the preset first time interval threshold. Thus, when the user changes, the original first time interval threshold can also change accordingly, so that the current first time interval threshold can match the current user and avoid the situation where mode switching is incorrect when different users press a single button.
[0015] Furthermore, before determining the third correction time interval threshold HF, the volatility of the intermediate time interval corresponding to ZD is first compared with the preset intermediate time interval volatility threshold. Only when the volatility of the intermediate time interval is less than the preset intermediate time interval volatility threshold will the intermediate time interval in ZD be used to determine HF. This can avoid the situation where the intermediate time interval in ZD fluctuates greatly and the roughly determined HF is inaccurate. It can also avoid the situation where different users press a single button and cause the mode switching judgment to be incorrect. Attached Figure Description
[0016] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0017] Figure 1 A flowchart of a mobile charging vehicle mode switching correction method provided in an embodiment of the present invention. Detailed Implementation
[0018] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0019] It should be noted that various aspects of embodiments within the scope of the appended claims are described below. It will be apparent that the aspects described herein can be embodied in a wide variety of forms, and any particular structure and / or function described herein is merely illustrative. Based on this disclosure, those skilled in the art will understand that one aspect described herein can be implemented independently of any other aspect, and two or more of these aspects can be combined in various ways. For example, any number of aspects set forth herein can be used to implement the device and / or practice the method. Additionally, this device and / or method can be implemented using structures and / or functionalities other than one or more of the aspects set forth herein.
[0020] The following will refer to Figure 1 The flowchart shown illustrates a method for correcting mode switching of a mobile charging vehicle. This method may include the following steps:
[0021] S100, obtain the initial time interval between the two presses corresponding to each of the user's most recent b double-clicks of a single button, to obtain the initial time interval list LA = (LA1, LA2, ..., LA...). a , ..., LA b ), a = 1, 2, ..., b; where LA a LA is the initial time interval between two presses during the user's most recent double-click of a single button; x The corresponding double-click time is earlier than LA. x+1 The corresponding double-click time; x = 1, 2, ..., b-1.
[0022] In this embodiment, when a user double-clicks a single button, the time interval between two consecutive presses can be obtained, thereby obtaining the initial time interval corresponding to each of the most recent b double-presses, to obtain the initial time interval list LA; for example, b=5.
[0023] S200, Based on LA, determine the time interval difference between two adjacent initial time intervals in LA to obtain a time interval difference list CZ = (CZ1, CZ2, ..., CZ...). d CZ b-1 ), d=1,2,…,b-1; where CZ d For LA d with LA d+1 The time interval difference between them; CZ d =|LA d -LA d+1 |
[0024] In this embodiment, for example, LA1=0.5s, LA2=0.6s, then CZ1=0.1s; it can be understood that CZ... d It can reflect LA d with LA d+1 The differences between them.
[0025] S300, if CZ d If > TU and bd ≥ WD, then LA in LA will be... d+1 to LA b Each initial time interval is determined as an intermediate time interval, and each intermediate time interval is obtained to obtain a list of intermediate time intervals ZD = (ZD1, ZD2, ..., ZD...). e , ..., ZD b-d ), e = 1, 2, ..., bd; where ZD e The e-th intermediate time interval is obtained; bd is the number of intermediate time intervals obtained; TU is the preset time interval difference threshold; and WD is the preset quantity threshold.
[0026] In this embodiment, it is understood that users' behavioral habits generally do not change significantly, and the time interval between two presses when the same user double-clicks a single button is not significantly different; therefore, if the user's behavior does not change, the time interval difference in CZ should be small; if CZ d >TU, representing LA d with LA d+1 A sudden change occurs in the time interval difference between the two values, indicating a change in the user. For more accurate judgment and calculation of the third corrected time interval threshold HF, bd ≥ WD must be satisfied, for example, WD = 5, meaning that in CZ... d After a mutation occurs, multiple time intervals are obtained to obtain an intermediate time interval list ZD. At this point, the intermediate time intervals in ZD are likely the time intervals corresponding to the changed users.
[0027] Furthermore, after step S300, the method may further include the following steps:
[0028] S310, if the difference between each time interval in CZ is less than or equal to TU, then exit the current processing.
[0029] This indicates that the current user has not changed, and no further processing is required.
[0030] S320, if CZ d If > TU and bd < WD, then wait for the user to double-click the single button.
[0031] This situation indicates LA d with LAd+1 The time interval difference between the two intervals changed abruptly, but the number of subsequent time intervals did not meet the preset conditions. In order to improve the accuracy of the calculation, it is necessary to wait for the user to double-click the single button.
[0032] S330, in response to the user double-clicking a single button, proceed to step T100.
[0033] It is understandable that if bd < WD, then continue to step T100 until bd ≥ WD, and obtain ZD.
[0034] S400, based on ZD, determine the volatility θ of the intermediate time interval corresponding to ZD = (1 / (bd)) × ∑ b-d e=1 (ZD e -((1 / (bd))×∑ b-d e=1 ZD e )) 2 .
[0035] In this embodiment, if the intermediate time intervals in ZD correspond to the same user, then the size of all intermediate time intervals in ZD should be relatively uniform and there should be no sudden changes. Therefore, the volatility θ of the intermediate time intervals corresponding to ZD can be determined, and the uniformity of the size of the intermediate time intervals in ZD can be judged by θ.
[0036] S500, if θ < KT, then according to ZD, determine the third correction time interval threshold HF = (1 / (bd)) × ∑ b-d e= 1ZD e Where KT is the preset volatility threshold for the intermediate time interval.
[0037] In this embodiment, if θ < KT, it means that the size of all intermediate time intervals in ZD is relatively uniform, and it can be determined that they are time intervals corresponding to the same user. Therefore, the third correction time interval threshold HF can be determined based on ZD. This avoids the problem of inaccurate determination of the third correction time interval threshold HF due to abrupt intermediate time intervals in ZD, i.e., subsequent changes in users, which further improves the accuracy of the judgment.
[0038] Furthermore, after step S500, the method may include the following steps:
[0039] S510, if θ≥KT, then wait for the user to double-click the single button.
[0040] S520, in response to the user double-clicking a single button, proceed to step S100.
[0041] In this embodiment, if θ≥KT, it means that there is an intermediate time interval with a sudden change in ZD. Then, wait for the user to double-click the single button. In response to the user double-clicking the single button, enter step T100 and continue to execute the loop steps until θ<KT. Then, determine the third correction time interval threshold HF according to ZD.
[0042] S600, replace T1 with HF; where T1 is a preset first time interval threshold, and T1 is used to switch the mode of the mobile charging vehicle according to the time interval of the user pressing the single button of the mobile charging vehicle.
[0043] The mobile charging vehicle mode switching correction method in this embodiment obtains the initial time interval between the two press actions corresponding to the user's most recent b double-clicks of a single button, to obtain an initial time interval list LA; based on the time interval difference between two adjacent time intervals in LA, if there is a time interval difference greater than a preset time interval difference threshold, and bd≥WD, it indicates a change has occurred in the user; then, the LA in LA is... d+1 to LA b Each initial time interval is determined as an intermediate time interval to obtain an intermediate time interval list ZD. The third correction time interval threshold HF is determined based on ZD, and HF replaces the preset first time interval threshold. Thus, when the user changes, the original first time interval threshold can also change accordingly, so that the current first time interval threshold can match the current user and avoid the situation where mode switching is incorrect when different users press a single button.
[0044] Furthermore, before determining the third correction time interval threshold HF, the volatility of the intermediate time interval corresponding to ZD is first compared with the preset intermediate time interval volatility threshold. Only when the volatility of the intermediate time interval is less than the preset intermediate time interval volatility threshold will the intermediate time interval in ZD be used to determine HF. This can avoid the situation where the intermediate time interval in ZD fluctuates greatly and the roughly determined HF is inaccurate. It can also avoid the situation where different users press a single button and cause the mode switching judgment to be incorrect.
[0045] In an exemplary embodiment, based on the third correction time interval threshold HF determined in the above embodiments, a single-button mobile charging vehicle mode switching method is provided; before step S100, the method may include the following steps:
[0046] S010, in response to the user's single button press action on the mobile charging vehicle, obtain the number of presses N and the current time t. now .
[0047] In this embodiment, the mobile charging vehicle is equipped with a single button, allowing users to switch between different modes by varying the number of times the button is pressed. The system can obtain the number of times the user pressed the button (N) and the current time (t). now It can be set to the time when a single button is triggered.
[0048] Furthermore, after step S010 and before step S020, the method may include the following steps:
[0049] S011, obtain the total vehicle running time TZ of the mobile charging vehicle; where TZ is the duration of the mobile charging vehicle from the activation time to the current time.
[0050] In this embodiment, after the mobile charging vehicle hardware is assembled, the corresponding software needs to be flashed and then activated. TZ is the time elapsed from the time the mobile charging vehicle is activated after the software is flashed until the current time.
[0051] S012, if N=1, TZ<TY and the mobile charging vehicle has not entered the preset coolant filling mode, then control the mobile charging vehicle to enter the coolant filling mode; where TY is the preset vehicle running time threshold.
[0052] In this embodiment, after the mobile charging vehicle is activated, coolant needs to be added first to facilitate subsequent testing and use; N=1 indicates that the user only pressed a single button once; TY can be determined by obtaining the time taken for each mobile charging vehicle from activation to coolant addition in history.
[0053] Furthermore, when entering the coolant filling mode, the screen will display a notification to the user indicating the mode to be entered, with a threshold time delay. Since the coolant filling mode has certain requirements regarding external conditions, this notification allows the user time to prepare. If the user did not intend to add coolant or pressed the button accidentally, they can press the button again to cancel.
[0054] S013, if N=1 and the mobile charging vehicle has already entered the coolant filling mode, then control the mobile charging vehicle to enter the preset test mode.
[0055] It should be noted that the test mode is entered after the mobile charging vehicle has been filled with coolant. Pressing a single button will immediately enter the test mode, and the screen will display a notification to the user that the test mode has been entered. The test mode is used to test various performance and indicators of the mobile charging vehicle to confirm whether it meets the design standards.
[0056] S014. If N=1 and the mobile charging vehicle has entered the test mode, then obtain the current state of the mobile charging vehicle.
[0057] It should be noted that the coolant filling mode and the test mode are only entered once before the mobile charging vehicle is officially used. Therefore, if N=1 and the mobile charging vehicle has entered the test mode, it means that the mobile charging vehicle is already in the state of official use. At this time, the current state of the mobile charging vehicle can be obtained by obtaining the status of the corresponding flag bit.
[0058] S015, if the current state of the mobile charging vehicle is the end of discharge, then control the mobile charging vehicle to enter the preset automatic home mode.
[0059] In this embodiment, the screen displays a notification to the user that the automatic home mode has been entered.
[0060] S016, If the current state of the mobile charging vehicle is discharging, then control the mobile charging vehicle to enter the stop charging mode and control the mobile charging vehicle to enter the automatic home mode.
[0061] It should be noted that users may change their minds about stopping charging. Therefore, there will be a preset delay after entering the stop charging mode, giving users time to consider whether they really want to stop charging.
[0062] S020, if N=2 and the mobile charging vehicle has entered the preset test mode, then obtain the time interval ΔT0 between the two press actions when the user double-clicks a single button.
[0063] In this embodiment, under normal circumstances, double-clicking, i.e., pressing the single button twice in succession, indicates that the user wants to switch the mobile charging vehicle's mode to V2L mode, which provides 220V AC voltage to power external devices; triple-clicking, i.e., pressing the single button three times in succession, indicates that the user wants to switch the mobile charging vehicle's mode to V2G mode, which feeds power to the grid through the mobile charging vehicle.
[0064] S030, if T1≤ΔT0<T2 and t now Within a preset first time period, the mobile charging vehicle is controlled to enter a preset V2L mode; where T1 is a preset first time interval threshold and T2 is a preset second time interval threshold.
[0065] In this embodiment, under normal circumstances, when a user double-clicks a single button, the time interval between the two presses is longer than when the user triple-clicks a single button; the first time period can be the period of normal daytime activity for the user, for example, 7:00-21:00; T1 can be determined through the following steps:
[0066] S031, obtain the third time interval between two presses when h different users double-click a single button, to obtain a list of third time intervals D = (D1, D2, ..., D...).k D h ), k=1,2,…,h; where, D k The third time interval between two presses when the k-th user double-clicks a single button.
[0067] S032, According to D, determine the time interval fluctuation rate η = (1 / h) × ∑ when h different users double-click a single button, corresponding to the third time interval between the two pressing actions. h k=1 (D k -((1 / h)×∑ h k=1 D k )) 2 .
[0068] S033, if η < HY, then determine T1 = (1 / h) × ∑ h k=1 D k -FJ; otherwise, delete the largest p third time intervals and the smallest p third time intervals in D to obtain the target time interval list E = (E1, E2, ..., E r , ..., E s ), r=1,2,…,s; where, E r is the r-th target time interval obtained; s is the number of target time intervals obtained; HY is the preset third time interval volatility threshold; FJ is the preset duration.
[0069] In this embodiment, the time interval fluctuation rate η is first determined. If η < HY, it means that the third time interval in D is relatively balanced, and the mean value of the third time interval in D can be directly subtracted from FJ to determine T1. Otherwise, it means that the third time intervals in D are significantly different. In this case, the larger or smaller third time intervals in D need to be removed to improve the rationality and accuracy of the determined T1.
[0070] S034, Based on E, determine T1 = (1 / s) × ∑ s r=1 E r -FJ.
[0071] Furthermore, FJ can be determined in the following ways:
[0072] In step S031, the third time interval between two presses when h different users double-click a single button is obtained, and the fourth time interval corresponding to each user's three button presses is also obtained; the fourth time interval can be the average of the two time intervals corresponding to three consecutive button presses; using (1 / s) × ∑ s r=1 E rSubtract the mean of h fourth time intervals to get the target value, then divide the target value by 2 to get FJ.
[0073] The T1 determined by the above method is based on a large amount of user behavior. Therefore, the determined T1 is more reasonable and accurate, thereby further improving the accuracy of mobile charging vehicle mode switching.
[0074] S040, if ΔT0 < T1 and t now Within a preset second time period, a preset prompt message for entering V2G mode is generated; wherein, the prompt message for entering V2G mode is used to prompt the user whether they want to enter V2G mode; the first time period and the second time period do not overlap.
[0075] In this embodiment, based on user behavior, when a user wants to press a single button three times consecutively, the frequency of pressing the button is higher than when pressing it twice consecutively; that is, the time interval between two consecutive presses is smaller during the three-press process. The second time period can be the peak and off-peak electricity consumption period, for example, 21:00 one day to 7:00 the next day. Therefore, although N=2, ΔT0 < T1 and t now During the preset second time period, it can be determined that the user pressed the single button one less time. The user's true intention is to switch the mobile charging vehicle to V2G mode. To make it more reasonable, a preset prompt message for entering V2G mode is generated so that the user can confirm entering V2G mode.
[0076] S050, if N=3 and the mobile charging vehicle has entered the preset test mode, then obtain the time intervals ΔT1 and ΔT2 between two adjacent presses when the user triple-clicks a single button.
[0077] S060, if ΔT1<T1, ΔT2<T1 and t now During the preset second time period, the mobile charging vehicle is controlled to enter the preset V2G mode.
[0078] In this embodiment, when N=3, ΔT1<T1, ΔT2<T1 and t now Within the preset second time period, it can be determined that the user wants to switch the mobile charging vehicle to V2G mode, and therefore, the mobile charging vehicle is controlled to enter the preset V2G mode.
[0079] Furthermore, after step S060, the method may include the following steps:
[0080] S070, obtain the number of times the mobile charging vehicle enters V2L mode (QY1) and the number of times it enters V2G mode (QY2).
[0081] S071, if QY1+QY2≥NUM0, then obtain the first time interval between the two press actions of the user's most recent q double-clicks on a single button, so as to obtain the first time interval list B=(B1, B2, ..., B... j B q ), j=1,2,…,q; where, B j The first time interval between two presses when the user double-clicks a single button for the jth time most recently; NUM0 is a preset threshold number of times.
[0082] S072, According to B, determine the first correction time interval threshold WR = ((1 / q) × ∑ q j=1 B j -T1)×λ+T1; where λ is the preset first weight, 0<λ<1.
[0083] In this embodiment, λ can be 0.8.
[0084] S073, obtain T1=WR.
[0085] In this embodiment, by using the above method, T1 can be corrected according to the time interval corresponding to the user's multiple double-clicks of a single button, so that T1 can also change when the user's behavior changes, thereby improving the accuracy of mode switching judgment.
[0086] Furthermore, after step S060, the method may further include the following steps:
[0087] S080, if ΔT1≥T1 or ΔT2≥T1 or t now Within a preset first time period, preset prompts for entering V2L mode and preset prompts for entering V2G mode are generated; among them, the prompt for entering V2L mode is used to prompt the user whether they want to enter V2L mode.
[0088] In this embodiment, if ΔT1≥T1 or ΔT2≥T1 or t now During the preset first time period, it is very likely that the user pressed the single button once more. Therefore, preset prompts for entering V2L mode and V2G mode are generated at this time, allowing the user to decide whether to enter V2L mode or V2G mode, thereby avoiding mode switching errors.
[0089] In one exemplary embodiment, the same mobile charging vehicle may be used by different users, and different users have different behavioral habits. Therefore, corresponding changes need to be made for different users to improve the accuracy of mode switching when different users operate the mobile charging vehicle. Based on this, after step S060, the method further includes the following steps:
[0090] S090, if the mobile charging vehicle generates a prompt message indicating entry into V2G mode every time the user double-clicks the single button in the last m times, then obtain the operation result corresponding to each V2G mode prompt message generated when the user double-clicks the single button every m times.
[0091] S091, if the result of each operation is that the user has not entered V2G mode, then obtain the second time interval between the two press actions corresponding to each of the user's most recent m double-clicks of a single button, so as to obtain a list of second time intervals A = (A1, A2, ..., A...). i A m ), i=1, 2,...,m; among them, A i The second time interval between the two presses during the user's most recent i-th double-click of a single button.
[0092] In this embodiment, when the user double-clicks a single button, a prompt message to enter V2G mode is generated. However, the user does not confirm entering V2G mode, indicating that the mobile charging vehicle has made an error in judgment. This can be understood as a change in the user's behavior. Furthermore, the current user presses the single button at a relatively high rate when double-clicking. Therefore, the current T1 is not suitable and needs to be adjusted to adapt to the current user's behavior.
[0093] S092, Based on A and T1, determine the second correction time interval threshold QT = (1 / m) × ∑ m i=1 A i -(T1-(1 / m)×∑ m i=1 A i )×α; where α is the preset second weight, 0<α<1.
[0094] In this embodiment, α can be 0.5.
[0095] S093, obtain T1=QT.
[0096] In this embodiment, T1 is redefined by the second time interval between the two press actions during each of the current user's most recent m double-clicks of a single button. This allows the modified T1 to match the current user's behavioral habits, thus accurately determining the mode the user wants to switch to when the user changes.
[0097] The single-button mobile charging vehicle mode switching method in this embodiment determines the mode the user actually wants to switch to based on the number of times the user presses the single button and the duration of the button press. When the number of times the user presses the single button N=2 or 3, the method determines the mode the user actually wants to switch to based on the time interval between two adjacent presses and the size of a preset first time interval threshold, as well as the duration of the button press being within a first time period or a second time period. This allows the method to accurately identify the user's true intention even when the user wants to switch to V2G mode but only presses the single button twice, thus avoiding errors in mobile charging vehicle mode switching.
[0098] In addition, the switching time between V2G mode and V2L mode differs significantly under normal circumstances. Therefore, time judgment is added when the user presses the single button twice or three times to further improve the accuracy of mobile charging vehicle mode switching.
[0099] Furthermore, although the steps of the method in this disclosure are described in a specific order in the accompanying drawings, this does not require or imply that the steps must be performed in that specific order, or that all the steps shown must be performed to achieve the desired result. Additional or alternative steps may be omitted, multiple steps may be combined into one step, and / or a step may be broken down into multiple steps.
[0100] Embodiments of the present invention also provide a non-transitory computer-readable storage medium that can be disposed in an electronic device to store at least one instruction or at least one program related to implementing a method in the method embodiments, wherein the at least one instruction or the at least one program is loaded and executed by the processor to implement the method provided in the above embodiments.
[0101] The program product may employ any combination of one or more readable media. A readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of readable storage media (a non-exhaustive list) include: an electrical connection having one or more wires, a portable disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.
[0102] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, carrying readable program code. Such propagated data signals may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A readable signal medium may also be any readable medium other than a readable storage medium, capable of sending, propagating, or transmitting programs for use by or in conjunction with an instruction execution system, apparatus, or device.
[0103] The program code contained on the readable medium may be transmitted using any suitable medium, including but not limited to wireless, wired, optical fiber, RF, etc., or any suitable combination thereof.
[0104] Program code for performing the operations of this application can be written in any combination of one or more programming languages, including object-oriented programming languages such as Java and C++, and conventional procedural programming languages such as C or similar languages. The program code can execute entirely on the user's computing device, partially on the user's device, as a standalone software package, partially on the user's computing device and partially on a remote computing device, or entirely on a remote computing device or server. In cases involving remote computing devices, the remote computing device can be connected to the user's computing device via any type of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computing device (e.g., via the Internet using an Internet service provider).
[0105] Embodiments of the present invention also provide an electronic device, including a processor and the aforementioned non-transitory computer-readable storage medium.
[0106] An electronic device according to this embodiment of the present application. The electronic device is merely an example and should not be construed as limiting the functionality and scope of use of the embodiments of this application.
[0107] Electronic devices are manifested in the form of general-purpose computing devices. Components of an electronic device may include, but are not limited to: at least one processor, at least one memory, and buses connecting different system components (including memory and processor).
[0108] The storage device stores program code that can be executed by the processor to perform the steps described in the "Exemplary Methods" section above, according to various exemplary embodiments of this application.
[0109] The storage may include readable media in the form of volatile storage, such as random access memory (RAM) and / or cache memory, and may further include read-only memory (ROM).
[0110] The storage may also include programs / utilities having a set (at least one) of program modules, including but not limited to: an operating system, one or more applications, other program modules, and program data, each or some combination of these examples may include an implementation of a network environment.
[0111] A bus can represent one or more of several bus architectures, including a memory bus or memory controller, a peripheral bus, a graphics acceleration port, a processor, or a local bus that uses any of the various bus architectures.
[0112] The electronic device can also communicate with one or more external devices (e.g., keyboards, pointing devices, Bluetooth devices, etc.), one or more devices that enable a user to interact with the electronic device, and / or any device that enables the electronic device to communicate with one or more other computing devices (e.g., routers, modems, etc.). This communication can be performed via input / output (I / O) interfaces. Furthermore, the electronic device can communicate with one or more networks (e.g., local area networks (LANs), wide area networks (WANs), and / or public networks, such as the Internet) via a network adapter. The network adapter communicates with other modules of the electronic device via a bus. It should be understood that, although not shown in the figures, other hardware and / or software modules can be used in conjunction with the electronic device, including but not limited to: microcode, device drivers, redundant processors, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.
[0113] From the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein can be implemented by software or by combining software with necessary hardware. Therefore, the technical solutions according to the embodiments of this disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (such as a CD-ROM, USB flash drive, external hard drive, etc.) or on a network, including several instructions to cause a computing device (such as a personal computer, server, terminal device, or network device, etc.) to execute the methods according to the embodiments of this disclosure.
[0114] Embodiments of the present invention also provide a computer program product including program code, which, when the program product is run on an electronic device, causes the electronic device to perform the steps of the methods described above in various exemplary embodiments of the present invention.
[0115] While specific embodiments of the invention have been described in detail by way of examples, those skilled in the art should understand that the examples are for illustrative purposes only and are not intended to limit the scope of the invention. Those skilled in the art should also understand that various modifications can be made to the embodiments without departing from the scope and spirit of the invention.
Claims
1. A method for correcting mode switching of a mobile charging vehicle, characterized in that, The method includes the following steps: S100, obtain the initial time interval between the two presses corresponding to each of the user's most recent b double-clicks of a single button, to obtain the initial time interval list LA = (LA1, LA2, ..., LA...). a , ..., LA b ), a = 1, 2, ..., b; where LA a LA is the initial time interval between two presses during the user's most recent double-click of a single button; x The corresponding double-click time is earlier than LA. x+1 The corresponding double-click time; x = 1, 2, ..., b-1; S200, Based on LA, determine the time interval difference between two adjacent initial time intervals in LA to obtain a time interval difference list CZ = (CZ1, CZ2, ..., CZ...). d CZ b-1 ), d=1,2,…,b-1; where CZ d For LA d with LA d+1 The time interval difference between them; CZ d =|LA d -LA d+1 |; S300, if CZ d If > TU and bd ≥ WD, then LA in LA will be... d+1 to LA b Each initial time interval is determined as an intermediate time interval, and each intermediate time interval is obtained to obtain a list of intermediate time intervals ZD = (ZD1, ZD2, ..., ZD...). e , ..., ZD b-d ), e = 1, 2, ..., bd; where ZD e The e-th intermediate time interval is obtained; bd is the number of intermediate time intervals obtained; TU is the preset time interval difference threshold, and WD is the preset number threshold. S400, based on ZD, determine the volatility θ of the intermediate time interval corresponding to ZD = (1 / (bd)) × ∑ b-d e=1 (ZD e -((1 / (bd))×∑ b-d e=1 ZD e )) 2 ; S500, if θ < KT, then according to ZD, determine the third correction time interval threshold HF = (1 / (bd)) × ∑ b-d e=1 ZD e Where KT is the preset volatility threshold for the intermediate time interval; S600, replace T1 with HF; where T1 is a preset first time interval threshold, and T1 is used to switch the mode of the mobile charging vehicle according to the time interval of the user pressing the single button of the mobile charging vehicle.
2. The mobile charging cart mode switch revision method of claim 1, wherein, After step S300, the method includes the following steps: S310, If the difference of each time interval in CZ is less than or equal to TU, then exit the current processing; S320, if CZ d If TU > WD and bd < WD, then wait for the user to double-click the single button. S330, in response to the user double-clicking a single button, proceed to step S100.
3. The mobile charging vehicle mode switching correction method according to claim 1, characterized in that, After step S500, the method includes the following steps: S510, if θ≥KT, then wait for the user to double-click the single button; S520, in response to the user double-clicking a single button, proceed to step S100.
4. The mobile charging vehicle mode switching correction method according to claim 1, characterized in that, Prior to step S100, the method includes the following steps: S010, in response to the user's single button press action on the mobile charging vehicle, obtain the number of presses N and the current time t. now ; S020, if N=2 and the mobile charging vehicle has entered the preset test mode, then obtain the time interval ΔT0 between the two press actions when the user double-clicks a single button; S030, if T1≤ΔT0<T2 and t now Within a preset first time period, the mobile charging vehicle is controlled to enter a preset V2L mode; where T1 is a preset first time interval threshold and T2 is a preset second time interval threshold. S040, if ΔT0 < T1 and t now During the preset second time period, a preset prompt message for entering V2G mode is generated; wherein, the prompt message for entering V2G mode is used to prompt the user whether they want to enter V2G mode; the first time period and the second time period do not overlap. S050, if N=3 and the mobile charging vehicle has entered the preset test mode, then obtain the time intervals ΔT1 and ΔT2 between two adjacent presses when the user presses the single button three times. S060, if ΔT1<T1, ΔT2<T1 and t now During the preset second time period, the mobile charging vehicle is controlled to enter the preset V2G mode.
5. The mobile charging vehicle mode switching correction method according to claim 4, characterized in that, After step S010 and before step S020, the method includes the following steps: S011, obtain the total vehicle running time TZ of the mobile charging vehicle; where TZ is the duration of the mobile charging vehicle from the activation time to the current time; S012, if N=1, TZ<TY and the mobile charging vehicle has not entered the preset coolant filling mode, then control the mobile charging vehicle to enter the coolant filling mode; where TY is the preset vehicle running time threshold. S013, If N=1 and the mobile charging vehicle has already entered the coolant filling mode, then control the mobile charging vehicle to enter the preset test mode. S014, If N=1 and the mobile charging vehicle has entered the test mode, then obtain the current discharge state of the mobile charging vehicle. S015, if the current discharge state of the mobile charging vehicle is the end of discharge state, then control the mobile charging vehicle to enter the preset automatic home mode. S016, if the current discharge state of the mobile charging vehicle is in the discharge state, then control the mobile charging vehicle to enter the stop charging mode and control the mobile charging vehicle to enter the automatic home mode.
6. The mobile charging cart mode switch revision method of claim 4, wherein, After step S060, the method includes the following steps: S070, obtain the number of times the mobile charging vehicle enters V2L mode QY1 and the number of times it enters V2G mode QY2; S071, if QY1+QY2≥NUM0, then obtain the first time interval between the two press actions of the user's most recent q double-clicks on a single button, so as to obtain the first time interval list B=(B1, B2, ..., B... j B q ), j=1,2,…,q; where, B j This represents the first time interval between two presses during the user's most recent j-th double-click of a single button; NUM0 is a preset threshold number of presses. S072, According to B, determine the first correction time interval threshold WR = ((1 / q) × ∑ q j=1 B j -T1)×λ+T1; where λ is the preset first weight, 0<λ<1; S073, obtain T1=WR.
7. The mobile charging vehicle mode switching correction method according to claim 4, characterized in that, After step 060, the method includes the following steps: S080, if ΔT1≥T1 or ΔT2≥T1 or t now Within a preset first time period, preset prompts for entering V2L mode and preset prompts for entering V2G mode are generated; among them, the prompt for entering V2L mode is used to prompt the user whether they want to enter V2L mode.
8. The mobile charging vehicle mode switching correction method according to claim 4, characterized in that, T1 is determined through the following steps: S031, obtain the third time interval between two consecutive button presses by h different users to obtain a list of third time intervals D = (D1, D2, ..., D...). k D h ), k=1,2,…,h; where, D k The third time interval between two consecutive button presses by the k-th user; S032, According to D, determine the time interval volatility η = (1 / h) × ∑ for the third time interval between two consecutive button presses by h different users. h k=1 (D k -((1 / h)×∑ h k=1 D k )) 2 ; S033, if η < HY, then determine T1 = (1 / h) × ∑ h k=1 D k Otherwise, delete the largest p third time intervals and the smallest p third time intervals in D to obtain the target time interval list E = (E1, E2, ..., E...). r , ..., E s ), r=1,2,…,s; where, E r The r-th target time interval is obtained; s is the number of target time intervals obtained; HY is the preset volatility threshold for the third time interval; S034, Based on E, determine T1 = (1 / s) × ∑ s r=1 E r .
9. A non-transitory computer-readable storage medium, wherein the storage medium stores at least one instruction or at least one program segment, characterized in that, The at least one instruction or the at least one program segment is loaded and executed by the processor to implement the mobile charging vehicle mode switching correction method as described in any one of claims 1-8.
10. An electronic device, comprising: Includes a processor and the non-transitory computer-readable storage medium as described in claim 9.
Citation Information
Patent Citations
Coordinated control system and method for timing charging and instant charging of vehicle
CN113696770A
Charging pile abnormal use detection method, electronic equipment and storage medium
CN115100598A