Charging and discharging control method and device, electronic equipment and storage medium

文档序号:1209177 发布日期:2020-09-04 浏览:26次 中文

阅读说明:本技术 一种充电放电控制方法、装置、电子设备及存储介质 (Charging and discharging control method and device, electronic equipment and storage medium ) 是由 刘伟 于 2020-04-10 设计创作,主要内容包括:本申请涉及一种充电放电控制方法、装置、电子设备及存储介质,该方法包括:获取车辆插头接口的开关状态;若开关状态为断开状态,则根据车辆插头接口中的调节电阻对应的电学参数的数值确定车辆与外接设备之间的工作模式;若电池管理模块的当前电能参数与工作模式对应的预设电能参数相匹配,则向电池管理模块发送充电工作指令,充电工作指令用于指示电池管理模块向外接设备充电。如此,在车辆上可以只设置一个连接设备,例如该车辆插头接口,车辆基于该连接设备和实际应用场景选择相应的操作,可以达到操作简单和提高用户体验感的目的。(The application relates to a charging and discharging control method, a charging and discharging control device, electronic equipment and a storage medium, wherein the method comprises the following steps: acquiring the on-off state of a vehicle plug interface; if the switch state is the disconnection state, determining the working mode between the vehicle and the external equipment according to the value of the electrical parameter corresponding to the regulating resistor in the vehicle plug interface; and if the current electric energy parameter of the battery management module is matched with the preset electric energy parameter corresponding to the working mode, sending a charging working instruction to the battery management module, wherein the charging working instruction is used for indicating the battery management module to charge the external equipment. Therefore, only one connecting device, such as the vehicle plug interface, can be arranged on the vehicle, and the vehicle can select corresponding operation based on the connecting device and the actual application scene, so that the purposes of simple operation and improvement of user experience can be achieved.)

1. A charge-discharge control method, characterized by comprising:

acquiring the on-off state of a vehicle plug interface;

if the switch state is the off state, determining a working mode between the vehicle and the external equipment according to the value of the electrical parameter corresponding to the regulating resistor in the vehicle plug interface;

and if the current electric energy parameter of the battery management module is matched with the preset electric energy parameter corresponding to the working mode, sending a charging working instruction to the battery management module, wherein the charging working instruction is used for indicating the battery management module to charge the external equipment.

2. The method of claim 1, wherein the value of the electrical parameter comprises a first value, a second value, or a third value;

the electrical parameter comprises a voltage, a current or a resistance.

3. The method according to claim 2, wherein the determining a working mode between the vehicle and the external device according to the value of the electrical parameter corresponding to the adjusting resistance in the vehicle plug interface, and if the current power parameter of the battery management module matches the preset power parameter corresponding to the working mode, sending a charging working instruction to the battery management module comprises:

determining a first working mode between the vehicle and the first type of external equipment according to the first numerical value;

if the current electric energy parameter of the battery management module is matched with the preset electric energy parameter corresponding to the first working mode, sending a first charging working instruction to the battery management module;

determining a second working mode between the vehicle and the second kind of external equipment according to the second numerical value;

if the current electric energy parameter of the battery management module is matched with the preset electric energy parameter corresponding to the second working mode, sending a second charging working instruction to the battery management module;

determining a third working mode between the vehicle and a third type of external equipment according to the third numerical value;

and if the current electric energy parameter of the battery management module is matched with the preset electric energy parameter corresponding to the third working mode, sending a third charging working instruction to the battery management module.

4. The method of claim 1, further comprising;

if the switch state is a closed state, determining a fourth working mode between the vehicle and a fourth type of external equipment;

if the current electric energy parameter of the battery management module is matched with the preset electric energy parameter corresponding to the fourth working mode, sending a fourth charging working instruction to the battery management module;

and the fourth charging work instruction is used for indicating the battery management module to receive the charging operation of the fourth type of external equipment.

5. The method of claim 4, further comprising:

detecting the residual electric quantity or the input current of the battery management module in a charging state;

if the residual electric quantity is greater than or equal to a preset cut-off electric quantity, or the input current is smaller than a preset current;

and sending a charging completion signal.

6. A charge-discharge control apparatus, characterized in that the apparatus comprises:

the first acquisition unit is used for acquiring the on-off state of the vehicle plug interface;

the first confirming unit is used for determining a working mode between the vehicle and the external equipment according to the value of the electrical parameter corresponding to the regulating resistor in the vehicle plug interface if the switch state is the off state;

and the first sending unit is used for sending a charging working instruction to the battery management module if the current electric energy parameter of the battery management module is matched with the preset electric energy parameter corresponding to the working mode, wherein the charging working instruction is used for indicating the battery management module to charge the external equipment.

7. An electronic device, comprising a processor and a memory, wherein the memory stores at least one instruction, at least one program, a set of codes, or a set of instructions, which is loaded and executed by the processor to implement the charge-discharge control method according to any one of claims 1-5.

8. A computer-readable storage medium, having stored therein at least one instruction, at least one program, a set of codes, or a set of instructions, which is loaded and executed by a processor to implement the charge-discharge control method according to any one of claims 1-5.

Technical Field

The present disclosure relates to the field of vehicle control, and in particular, to a charging and discharging control method and apparatus, an electronic device, and a storage medium.

Background

With the development of new energy vehicles, external equipment charges the vehicle gradually, and more functions are derived from the new energy vehicles at present, for example, the vehicle can charge the external equipment.

At present, when a vehicle charges different external devices and the external devices charge the vehicle, different connection interface devices need to be selected to connect the vehicle and the external devices. A plurality of different connection interface devices are required to be arranged on the vehicle, and the corresponding connection interface devices are required to be selected according to different application requirements, so that the operation is complex, and the user experience is poor.

Disclosure of Invention

The technical problems that a plurality of different connecting devices need to be arranged on a vehicle, and corresponding connecting devices need to be selected according to different application requirements, so that operation is complex and user experience is poor are solved.

In order to solve the foregoing technical problem, in one aspect, an embodiment of the present application provides a charge and discharge control method, including:

acquiring the on-off state of a vehicle plug interface;

if the switch state is the disconnection state, determining the working mode between the vehicle and the external equipment according to the value of the electrical parameter corresponding to the regulating resistor in the vehicle plug interface;

and if the current electric energy parameter of the battery management module is matched with the preset electric energy parameter corresponding to the working mode, sending a charging working instruction to the battery management module, wherein the charging working instruction is used for indicating the battery management module to charge the external equipment.

Another aspect provides a charge-discharge control apparatus, including:

the first acquisition unit is used for acquiring the on-off state of the vehicle plug interface;

the first confirming unit is used for determining a working mode between the vehicle and the external equipment according to the value of the electrical parameter corresponding to the regulating resistor in the vehicle plug interface if the switch state is the off state;

and the first sending unit is used for sending a charging working instruction to the battery management module if the current electric energy parameter of the battery management module is matched with the preset electric energy parameter corresponding to the working mode, wherein the charging working instruction is used for indicating the battery management module to charge the external equipment.

Another aspect provides an electronic device, which includes a processor and a memory, where the memory stores at least one instruction, at least one program, a code set, or a set of instructions, and the at least one instruction, the at least one program, the code set, or the set of instructions is loaded and executed by the processor to implement the charge and discharge control method as described above.

Another aspect provides a computer-readable storage medium having at least one instruction, at least one program, a set of codes, or a set of instructions stored therein, the at least one instruction, the at least one program, the set of codes, or the set of instructions being loaded and executed by a processor to implement the charge-discharge control method as described above.

By adopting the technical scheme, the charging and discharging control method, the device, the electronic equipment and the storage medium provided by the embodiment of the application have the following beneficial effects:

acquiring the on-off state of a vehicle plug interface; if the switch state is the disconnection state, determining the working mode between the vehicle and the external equipment according to the value of the electrical parameter corresponding to the regulating resistor in the vehicle plug interface; and if the current electric energy parameter of the battery management module is matched with the preset electric energy parameter corresponding to the working mode, sending a charging working instruction to the battery management module, wherein the charging working instruction is used for indicating the battery management module to charge the external equipment. Therefore, only one connecting device, such as the vehicle plug interface, can be arranged on the vehicle, and the vehicle can select corresponding operation based on the connecting device and the actual application scene, so that the purposes of simple operation and improvement of user experience can be achieved.

Drawings

In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.

FIG. 1 is a schematic diagram of an application environment provided by an embodiment of the present application;

FIG. 2 is a schematic structural diagram of a vehicle plug interface in an application environment according to an embodiment of the present disclosure;

FIG. 3 is a schematic diagram of an application environment provided by an embodiment of the present application;

FIG. 4 is a schematic diagram of an application environment provided by an embodiment of the present application;

fig. 5 is a schematic flowchart of a charging and discharging control method according to an embodiment of the present application;

fig. 6 is a schematic flowchart of a charging and discharging control method according to an embodiment of the present application;

fig. 7 is a schematic flowchart of a charging and discharging control method according to an embodiment of the present application;

fig. 8 is a schematic flowchart of a charging and discharging control method according to an embodiment of the present application;

fig. 9 is a schematic flowchart of a charging and discharging control method according to an embodiment of the present application;

fig. 10 is a schematic flowchart of a charging and discharging control method according to an embodiment of the present application;

fig. 11 is a schematic flowchart of a charging and discharging control method according to an embodiment of the present application;

fig. 12 is a schematic structural diagram of a charge and discharge control device according to an embodiment of the present application.

Detailed Description

The technical solutions in the embodiments of the present application will be described clearly and completely with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.

It should be noted that the terms "first," "second," and the like in the description and claims of this application and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application described herein are capable of operation in other sequences than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover non-exclusive inclusions, such that a process, method, system, article, or server that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.

Referring to fig. 1, fig. 1 is a schematic diagram of an application environment provided by an embodiment of the present application, including a vehicle plug interface 1 and an external device 5, where the vehicle plug interface 1 includes a vehicle plug interface body 11, an adjusting knob 12 and a button switch 13, the adjusting knob 12 and the switch 15 are respectively disposed on the vehicle plug interface 1, the adjusting knob 12 is provided with a first indicator 121, the vehicle plug interface body 11 is provided with at least one function mark 111, the function mark 111 may indicate different working modes between a vehicle and the external device 5, the indicator 121 is used for indicating the function mark 111 in a process of rotating the adjusting knob 12, and after the external device 5 is plugged into the vehicle plug interface 1, and after the button switch 13 is turned on, a charging and discharging control method is executed.

Referring to fig. 2, fig. 2 is a schematic structural diagram of a vehicle plug interface 1 in an application environment provided in an embodiment of the present application, where the vehicle plug interface 1 includes an adjusting resistor 14 and a switch 15, the adjusting resistor 14 and the switch 15 are respectively connected to an adjusting knob 12, in a process of rotating the adjusting knob 12, a moving contact of the adjusting resistor 14 moves along with rotation of the adjusting knob 12, a resistance value of the adjusting resistor 14 in a circuit connected to the vehicle plug interface 1 changes, and the switch 15 may be in an open state or a closed state, in the embodiment of the present application, the switch 15 corresponding to charging the vehicle by the external device 5 is in the open state, the switch 15 corresponding to charging the external device 5 by the vehicle is in the closed state, a resistance value of the adjusting resistor 14 in the circuit connected to the vehicle plug interface 1 matches an operating mode between the vehicle and the external device 5, and may even be in a one-to-one correspondence.

Referring to fig. 3, fig. 3 is a schematic diagram of an application environment according to an embodiment of the present disclosure, including a vehicle plug interface 1, a vehicle electronic control unit 2, and a battery management module 3;

the vehicle electronic control unit 2 acquires the state of the switch 15 of the vehicle plug interface 1;

if the state of the switch 15 is an off state, the vehicle electronic control unit 2 determines the working mode between the vehicle and the external equipment 5 according to the value of the electrical parameter corresponding to the adjusting resistor 14 in the vehicle plug interface 1;

if the current electric energy parameter of the battery management module 3 is matched with the preset electric energy parameter corresponding to the working mode, the vehicle electronic control unit 2 sends a charging working instruction to the battery management module 3, and the charging working instruction is used for indicating the battery management module 3 to charge the external device 5.

Alternatively, data between the vehicle plug interface 1 and the vehicle electronic control unit 2 and data between the vehicle electronic control unit 2 and the battery management module 3 may be transmitted through a wired link or may be transmitted through a wireless link. The choice of the type of communication link may depend on the actual application and application environment.

Referring to fig. 4, fig. 4 is a schematic diagram of an application environment provided in the embodiment of the present application, including a vehicle plug interface 1, an on-board charger 4, a vehicle electronic control unit 2, and a battery management module 3;

the vehicle-mounted charger 4 acquires the state of a switch 15 of the vehicle plug interface 1 and transmits the acquired state of the switch 15 to the vehicle electronic control unit 2;

if the state of the switch 15 is an off state, the vehicle electronic control unit 2 determines the working mode between the vehicle and the external equipment 5 according to the value of the electrical parameter corresponding to the adjusting resistor 14 in the vehicle plug interface 1;

if the current electric energy parameter of the battery management module 3 is matched with the preset electric energy parameter corresponding to the working mode, the vehicle electronic control unit 2 sends a charging working instruction to the battery management module 3, and the charging working instruction is used for indicating the battery management module 3 to charge the external device 5.

Alternatively, data between the vehicle plug interface 1 and the vehicle-mounted charger 4, data between the vehicle-mounted charger 4 and the vehicle electronic control unit 2, and data between the vehicle electronic control unit 2 and the battery management module 3 may be transmitted through a wired link or a wireless link. The choice of the type of communication link may depend on the actual application and application environment.

The following describes a specific embodiment of a charge and discharge control method according to the present application, and fig. 5 is a schematic flow chart of a charge and discharge control method according to the embodiment of the present application, and the present specification provides the method operation steps according to the embodiment or the flow chart, but may include more or less operation steps based on conventional or non-inventive labor. The order of steps recited in the embodiments is merely one manner of performing the steps in a multitude of orders and does not represent the only order of execution. In actual system or server product execution, sequential execution or parallel execution (e.g., parallel processor or multi-threaded environment) may be performed according to the embodiments or methods shown in the figures. Specifically, as shown in fig. 5, the method may include:

s501, acquiring the on-off state of a vehicle plug interface;

s502, if the switch state is the off state, determining the working mode between the vehicle and the external equipment according to the value of the electrical parameter corresponding to the regulating resistor in the vehicle plug interface;

and S503, if the current electric energy parameter of the battery management module is matched with the preset electric energy parameter corresponding to the working mode, sending a charging working instruction to the battery management module, wherein the charging working instruction is used for indicating the battery management module to charge the external equipment.

Acquiring the on-off state of a vehicle plug interface; if the switch state is the disconnection state, determining the working mode between the vehicle and the external equipment according to the value of the electrical parameter corresponding to the regulating resistor in the vehicle plug interface; and if the current electric energy parameter of the battery management module is matched with the preset electric energy parameter corresponding to the working mode, sending a charging working instruction to the battery management module, wherein the charging working instruction is used for indicating the battery management module to charge the external equipment. Therefore, only one connecting device, such as the vehicle plug interface, can be arranged on the vehicle, and the vehicle can select corresponding operation based on the connecting device and the actual application scene, so that the purposes of simple operation and improvement of user experience can be achieved.

In this embodiment, the electric energy parameter may be a remaining amount of the battery pack in the battery management module.

In the embodiment of the present application, the value of the electrical parameter may include a first value, a second value or a third value; the electrical parameter may be voltage, current or resistance. Optionally, the value of the electrical parameter may be a first voltage value, a second voltage value, or a third voltage value corresponding to a regulating resistor in the vehicle plug interface. Optionally, the value of the electrical parameter may be a first current value, a second current value, or a third current value corresponding to the adjustment current in the vehicle plug interface. Optionally, the value of the electrical parameter may be a first resistance value, a second resistance value, or a third resistance value corresponding to an adjustment resistance in the vehicle plug interface.

In an alternative implementation manner, please refer to fig. 6, where fig. 6 is a schematic flowchart of a charging and discharging control method provided in an embodiment of the present application;

in S502, determining a working mode between the vehicle and the external device according to the value of the electrical parameter corresponding to the adjustment resistor in the vehicle plug interface includes:

s601: determining a first working mode between the vehicle and the first type of external equipment according to the first numerical value;

in S503, if the current power parameter of the battery management module matches the preset power parameter corresponding to the operating mode, a charging operation instruction is sent to the battery management module, which includes:

s602: and if the current electric energy parameter of the battery management module is matched with the preset electric energy parameter corresponding to the first working mode, sending a first charging working instruction to the battery management module.

In the embodiment of the application, the first external device can be an electric device, a vehicle or a power grid; the first working mode can be a vehicle-to-vehicle appliance discharging mode, a vehicle-to-vehicle discharging mode or a vehicle-to-power grid discharging mode and the like; the preset power parameter may be a threshold of the percentage of the current power and the inherent power of the battery management module, may also be the current remaining power of the battery management module, may also be the voltage values of the positive electrode and the negative electrode of the current remaining power of the battery management module during normal operation, and may be any reference value of the battery management module in a normal state, but is not limited thereto.

Optionally, the electrical appliance discharge mode is explained for the vehicle based on the first operating mode.

Determining that the first working mode is a vehicle-to-electric-appliance discharging mode according to the first value of two kilohms; then, the vehicle electronic control unit detects whether a corresponding line in the vehicle is faulty, for example, whether a broken line or a short-circuited line exists in a vehicle plug interface, if the line is faulty, the vehicle electronic control unit sends an alarm signal, if the line is not faulty, the vehicle electronic control unit determines whether the current electric quantity of a battery pack of the battery management module is less than fifteen percent of the inherent electric quantity, if the vehicle electronic control unit determines that the current electric quantity of the battery pack of the battery management module is less than fifteen percent of the inherent electric quantity, the vehicle electronic control unit sends the alarm signal, and if the vehicle electronic control unit determines that the current electric quantity of the battery pack of the battery management module is more than fifteen percent of the inherent electric quantity, the vehicle electronic control unit sends a vehicle discharge instruction to the electrical equipment to the battery management module.

In an alternative implementation manner, please refer to fig. 7, fig. 7 is a schematic flowchart of a charging and discharging control method provided in an embodiment of the present application;

in S502, determining a working mode between the vehicle and the external device according to the value of the electrical parameter corresponding to the adjustment resistor in the vehicle plug interface includes:

s701: determining a second working mode between the vehicle and the second kind of external equipment according to the second numerical value;

in S503, if the current power parameter of the battery management module matches the preset power parameter corresponding to the operating mode, a charging operation instruction is sent to the battery management module, which includes:

s702: and if the current electric energy parameter of the battery management module is matched with the preset electric energy parameter corresponding to the second working mode, sending a second charging working instruction to the battery management module.

In the embodiment of the application, the second type of external device may be an electric device, a vehicle or a power grid; the second working mode can be a vehicle-to-vehicle appliance discharging mode, a vehicle-to-vehicle discharging mode or a vehicle-to-power grid discharging mode and the like; the preset power parameter may be a threshold of the percentage of the current power and the inherent power of the battery management module, may also be the current remaining power of the battery management module, may also be the voltage values of the positive electrode and the negative electrode of the current remaining power of the battery management module during normal operation, and may be any reference value of the battery management module in a normal state, but is not limited thereto.

Optionally, the vehicle discharge mode is explained below for the vehicle based on the second operating mode.

Determining the second working mode as a vehicle-to-vehicle discharging mode according to the second value being one kilohm; then, the vehicle electronic control unit detects whether a corresponding line in the vehicle is faulty, for example, whether a broken line or a short-circuited line exists in a vehicle plug interface, if the line is faulty, the vehicle electronic control unit sends an alarm signal, if the line is not faulty, the vehicle electronic control unit determines whether the current electric quantity of a battery pack of the battery management module is less than thirty percent of the inherent electric quantity, the vehicle electronic control unit sends the alarm signal, if the vehicle electronic control unit determines that the current electric quantity of the battery pack of the battery management module is less than thirty percent of the inherent electric quantity, and if the vehicle electronic control unit determines that the current electric quantity of the battery pack of the battery management module is more than thirty percent of the inherent electric quantity, the vehicle electronic control unit sends a vehicle discharge instruction to the electrical equipment to the battery management module.

In an alternative embodiment, please refer to fig. 8, fig. 8 is a schematic flowchart of a charging and discharging control method provided in an embodiment of the present application;

in S502, determining a working mode between the vehicle and the external device according to the value of the electrical parameter corresponding to the adjustment resistor in the vehicle plug interface includes:

s801: determining a third working mode between the vehicle and the third type of external equipment according to the third numerical value;

in S503, if the current power parameter of the battery management module matches the preset power parameter corresponding to the operating mode, a charging operation instruction is sent to the battery management module, which includes:

s802: and if the current electric energy parameter of the battery management module is matched with the preset electric energy parameter corresponding to the third working mode, sending a third charging working instruction to the battery management module.

In the embodiment of the application, the third type of external device may be an electric device, a vehicle or a power grid; the third working mode can be a vehicle-to-vehicle electric appliance discharging mode, a vehicle-to-vehicle discharging mode or a vehicle-to-power grid discharging mode and the like; the preset power parameter may be a threshold of the percentage of the current power and the inherent power of the battery management module, may also be the current remaining power of the battery management module, may also be the voltage values of the positive electrode and the negative electrode of the current remaining power of the battery management module during normal operation, and may be any reference value of the battery management module in a normal state, but is not limited thereto.

Optionally, the grid discharge mode is explained below for the vehicle based on the third operating mode.

Determining that the third working mode is a power grid discharging mode of the vehicle according to the third numerical value of two-point seven kilohms; then, the vehicle electronic control unit detects whether a corresponding line in the vehicle is faulty, for example, whether a broken line or a short-circuited line exists in a vehicle plug interface, if the line is faulty, the vehicle electronic control unit sends an alarm signal, if the line is not faulty, the vehicle electronic control unit judges whether the current electric quantity of a battery pack of the battery management module is less than fifty percent of the inherent electric quantity, the vehicle electronic control unit sends the alarm signal, if the vehicle electronic control unit judges that the current electric quantity of the battery pack of the battery management module is less than fifty percent of the inherent electric quantity, if the vehicle electronic control unit judges that the current electric quantity of the battery pack of the battery management module is more than fifty percent of the inherent electric quantity, the vehicle electronic control unit sends a vehicle command for discharging the electric appliance to the battery management module.

In the embodiment of the present application, please refer to fig. 9, and fig. 9 is a schematic flowchart of a charging and discharging control method provided in the embodiment of the present application; the method may further comprise:

s901: if the switch state is the closed state, determining a fourth working mode between the vehicle and the fourth type of external equipment;

s902: if the current electric energy parameter of the battery management module is matched with the preset electric energy parameter corresponding to the fourth working mode, sending a fourth charging working instruction to the battery management module;

and the fourth charging work instruction is used for indicating the battery management module to receive the charging operation of the fourth type of external equipment.

In this embodiment of the application, the fourth type of external device may be a charging pile, and the preset power parameter may be a threshold of a percentage between a current power and an inherent power of the battery management module, may also be a current remaining power of the battery management module, may also be a voltage value of a positive electrode and a voltage value of a negative electrode of the current remaining power of the battery management module during normal operation, and may be any reference value of the battery management module in a normal state, but is not limited thereto.

In the embodiment of the present application, please refer to fig. 10, where fig. 10 is a schematic flowchart of a charging and discharging control method provided in the embodiment of the present application; the method may further comprise:

s1001: detecting the residual electric quantity or the input current of the battery management module in a charging state;

s1002: if the residual electric quantity is greater than or equal to the preset cut-off electric quantity, or the current is smaller than the preset current; and sending a charging completion signal.

In this application embodiment, input current can be the current that external device flowed into battery management module through the switch, and the residual electric quantity can be the electric quantity in the battery package in the battery management module.

Based on the above description, an alternative embodiment is described below, please refer to fig. 11, and fig. 11 is a schematic flowchart of a charging and discharging control method provided in the embodiment of the present application; the method may include:

s1101: the method comprises the steps that a vehicle electronic control unit obtains the on-off state of a vehicle plug interface;

s1102: the vehicle electronic control unit judges whether the switch state is an off state; if yes, go to step S1103; if not, go to step S1110;

s1103: the vehicle electronic control unit determines that a fourth working mode exists between the vehicle and the fourth type of external equipment;

s1104: the vehicle electronic control unit judges whether the current electric energy parameter of the battery management module is matched with a preset electric energy parameter corresponding to the fourth working mode; if not, executing step S1105; if yes, go to step S1106;

s1105: the vehicle electronic control unit sends out an alarm signal that the fourth charging work instruction cannot be executed;

s1106: the vehicle electronic control unit sends a fourth charging work instruction to the battery management module;

s1107: the vehicle electronic control unit detects the residual electric quantity or current of the battery management module in a charging state;

s1108: the vehicle electronic control unit judges whether the residual electric quantity is greater than or equal to a preset cut-off electric quantity or the current is smaller than a preset current, if so, the step is switched to step S1109; if not, go to step S1107;

s1109: the vehicle electronic control unit sends a signal of charging completion;

s1110: the vehicle electronic control unit determines a working mode between the vehicle and the external equipment according to the value of the electrical parameter corresponding to the adjusting resistor in the vehicle plug interface;

s1111: judging whether the value of the electrical parameter corresponding to the adjusting resistor is a first value, a second value or a third value, if so, turning to step S1112; if yes, go to step S1116; if yes, go to step S1120;

s1112: the vehicle electronic control unit determines that a first working mode exists between the vehicle and the first type of external equipment according to the first numerical value;

s1113: the vehicle electronic control unit judges whether the current electric energy parameter of the battery management module is matched with a preset electric energy parameter corresponding to the first working mode, if not, the step goes to step S1114; if yes, go to step S1115;

s1114: the vehicle electronic control unit sends out an alarm signal that the first charging work instruction cannot be executed;

s1115: the vehicle electronic control unit sends a first charging work instruction to the battery management module;

s1116: the vehicle electronic control unit determines that a second working mode exists between the vehicle and the second type of external equipment according to the second numerical value;

s1117: the vehicle electronic control unit judges whether the current electric energy parameter of the battery management module is matched with the preset electric energy parameter corresponding to the second working mode, if not, the step is switched to step S1118; if yes, go to step S1119;

s1118: the vehicle electronic control unit sends out an alarm signal that the second charging work instruction cannot be executed;

s1119: the vehicle electronic control unit sends a second charging work instruction to the battery management module;

s1120: the vehicle electronic control unit determines that a third working mode exists between the vehicle and the third type of external equipment according to the third numerical value;

s1121: the vehicle electronic control unit judges whether the current electric energy parameter of the battery management module is matched with the preset electric energy parameter corresponding to the third working mode, if not, the step goes to step S1122; if yes, go to step S1123;

s1122: the vehicle electronic control unit sends out an alarm signal that the third charging work instruction cannot be executed;

s1123: and the vehicle electronic control unit sends a third charging work instruction to the battery management module.

And if the current electric energy parameter of the battery management module is matched with the preset electric energy parameter corresponding to the working mode, sending a charging working instruction to the battery management module, wherein the charging working instruction is used for indicating the battery management module to charge the external equipment.

An embodiment of the present application further provides a charging and discharging control device, and fig. 12 is a schematic structural diagram of the charging and discharging control device provided in the embodiment of the present application, and as shown in fig. 12, the device includes:

the first acquisition unit is used for acquiring the on-off state of the vehicle plug interface;

the first confirming unit is used for determining a working mode between the vehicle and the external equipment according to the value of the electrical parameter corresponding to the regulating resistor in the vehicle plug interface if the switch state is the off state;

and the first sending unit is used for sending a charging working instruction to the battery management module if the current electric energy parameter of the battery management module is matched with the preset electric energy parameter corresponding to the working mode, wherein the charging working instruction is used for indicating the battery management module to charge the external equipment.

The device and method embodiments in the embodiments of the present application are based on the same application concept.

An embodiment of the present application further provides an electronic device, where the electronic device includes a processor and a memory, where the memory stores at least one instruction, at least one program, a code set, or an instruction set, and the at least one instruction, the at least one program, the code set, or the instruction set is loaded and executed by the processor to implement the above charging and discharging control method.

Embodiments of the present application further provide a storage medium, where the storage medium may be disposed in a server to store at least one instruction, at least one program, a code set, or an instruction set related to implementing a picture identification method in the method embodiments, and the at least one instruction, the at least one program, the code set, or the instruction set is loaded and executed by the processor to implement the charging and discharging control method.

Alternatively, in this embodiment, the storage medium may be located in at least one network server of a plurality of network servers of a computer network. Optionally, in this embodiment, the storage medium may include, but is not limited to: a U-disk, a Read-only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk.

As can be seen from the embodiments of the charging and discharging control method, device, electronic device, and storage medium provided in the present application, the on-off state of the vehicle plug interface is obtained; if the switch state is the disconnection state, determining the working mode between the vehicle and the external equipment according to the value of the electrical parameter corresponding to the regulating resistor in the vehicle plug interface; and if the current electric energy parameter of the battery management module is matched with the preset electric energy parameter corresponding to the working mode, sending a charging working instruction to the battery management module, wherein the charging working instruction is used for indicating the battery management module to charge the external equipment. Therefore, only one connecting device such as the vehicle plug interface can be arranged on the vehicle, and the vehicle can select corresponding operation according to actual application requirements, so that the purposes of simple operation and improvement of user experience can be achieved.

It should be noted that: the sequence of the embodiments of the present application is only for description, and does not represent the advantages and disadvantages of the embodiments. And specific embodiments thereof have been described above. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.

The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the apparatus embodiment, since it is substantially similar to the method embodiment, the description is relatively simple, and for the relevant points, reference may be made to the partial description of the method embodiment.

It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing associated hardware, and the program may be stored in a computer-readable storage medium, where the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk.

The present application is intended to cover any variations, uses, or adaptations of the invention using its general principles and with the understanding that these specific details are merely exemplary of the invention and are not intended to limit the scope of the invention.

17页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:单元模块以及用于运行单元模块的方法

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!