Detailed Description
Reference will now be made in detail to embodiments of the present application, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are exemplary and intended to be used for explaining the present application and should not be construed as limiting the present application.
A control method, an apparatus, a server, and a storage medium of battery charging and discharging according to embodiments of the present application are described below with reference to the accompanying drawings.
Fig. 1 is a schematic flow chart of a method for controlling charging and discharging of a battery according to an embodiment of the present disclosure.
As shown in fig. 1, the method comprises the steps of:
step 101, acquiring state information of a battery of the electric scooter under the condition that the electric quantity of the electric scooter is monitored to be lower than a threshold value and/or a charging and discharging instruction is received.
The electric vehicle is a vehicle and an auxiliary tool aiming at the purpose of replacing the walking, and is different from an electric automobile, and the speed of the electric vehicle is low. For example, the electric scooter can be an electric motorcycle, an electric bicycle, etc., and the type of the electric scooter in the present application is not particularly limited and is within the protection scope of the present application.
In addition, the electric scooter mainly comprises a controller, a motor, a storage battery, a charger and a body part.
The embodiment of the present application exemplifies that the control method for charging and discharging the battery of the electric scooter is applied to the control device for charging and discharging the battery of the electric scooter, the control device for charging and discharging the battery of the electric scooter can be disposed in a server, the server can be a local server or a cloud server, and the control method for charging and discharging the battery of the electric scooter can be executed by the server without limitation in the embodiment.
In this embodiment, the state information is used to represent one or more combinations of the remaining capacity, the driving range, the battery temperature, the ambient temperature, and the geographic location of the electric vehicle.
In one embodiment of the application, the electric scooter is provided with a wireless communication module for carrying out wireless communication with a server, the wireless communication module can be a Wi-Fi internet access module, so that the charger has a Wi-Fi internet access function, can carry out data communication with the internet through Wi-Fi, and transmits data to the internet server and receives data distributed by the internet server. Therefore, the server interacts with the wireless communication module of the electric scooter, and the state information of the battery of the electric scooter is acquired when the electric quantity of the electric scooter is monitored to be lower than a threshold value, namely, under the condition of low power and/or the condition of receiving a charging and discharging instruction, wherein the charging and discharging instruction can be triggered by responding to the operation of a user at the electric scooter end or triggered by responding to the operation of the user at the application program end of the client.
Step 102, determining a control command according to the state information and/or the historical use record of the battery.
The historical usage record of the battery indicates the historical usage habit and the charging habit of the electric vehicle, and the condition of charging the battery each time is recorded and stored, for example, the historical usage record includes the charging times or total starting mileage of the electric vehicle, or the remaining capacity of the electric vehicle during each charging, which is not listed in this embodiment.
In the embodiment, the current state information of the battery of the electric scooter and/or the historical use record of the battery of the electric scooter are obtained, the control instruction of the electric scooter is dynamically generated according to the current state information of the battery and by fully considering the charging behaviors and habits of a user, and compared with a charging mode adopting fixed parameters, the accuracy of the control instruction is improved.
And 103, controlling the electric scooter to charge or discharge the battery according to the control instruction.
The control instruction in this embodiment is used to control the electric scooter to charge or discharge the battery, where the control instruction includes control parameters of battery charging, such as charging current, discharging current, charging upper limit, charging time, starting charging and stopping charging, and the like, so that dynamic management of battery charging and discharging is performed by adjusting the control instruction based on the acquired data, thereby improving safety protection of battery charging and discharging, and increasing service life and service cycle of the battery.
In the control method for charging and discharging the battery, under the condition that the electric quantity of the electric scooter is monitored to be lower than a threshold value and/or a charging and discharging instruction is received, state information of the battery of the electric scooter is acquired, the control instruction is determined according to the state information and/or the historical use record of the battery, the electric scooter is controlled to charge or discharge the battery according to the control instruction, and dynamic management is carried out on charging and discharging of the battery by acquiring battery state data and dynamically matching charging behaviors and habits of a user in the application so as to improve charging and discharging safety protection of the battery and increase service life and service cycle of the battery.
Based on the previous embodiment, this embodiment provides another method for controlling charging and discharging of a battery, and fig. 2 is a schematic flow diagram of another method for controlling charging and discharging of a battery according to the embodiment of the present application.
As shown in fig. 2, the method may include the steps of:
step 201, acquiring state information of a battery of the electric scooter under the condition that the electric quantity of the electric scooter is monitored to be lower than a threshold value and/or a charging and discharging instruction is received.
Specifically, reference may be made to the related description in the previous embodiment, and the principle is the same, which is not described again in this embodiment.
In this embodiment, a server is taken as an example for explanation. As shown in fig. 3, the cloud server obtains the state information of the battery of the electric scooter, and the state information is used for representing one or more combinations of the remaining capacity, the driving range, the battery temperature, the ambient temperature and the geographical location of the battery of the electric scooter.
In step 202, a control command is determined according to the state information and/or the historical usage record of the battery.
In this embodiment, according to different scenarios, based on the acquired data, a corresponding control instruction may be generated, where the control instruction includes a corresponding control parameter, which is described in detail below.
In an implementation manner of this embodiment, the cloud server obtains a historical usage record of the battery of the electric scooter, and determines the control instruction according to the historical usage record, which is described below with respect to different scenarios.
In a scenario of this embodiment, according to the historical usage record, if it is determined that the charging number of the battery is the first charging, it is determined that the charging mode in the control parameter of the control instruction is the constant current.
In another scenario of this embodiment, if it is determined that the number of times of charging the battery is greater than the threshold number of times or the total driving range is greater than the threshold range, the charging upper limit capacity in the control parameter of the control command is determined to be a set proportion of the rated capacity of the battery, and/or the discharging current in the control parameter of the control command is determined to be a first set proportion of the rated current according to the historical usage record.
For example, the service life of the battery may be longer, for example, 5 years or 10 years, wherein each charging of the battery is recorded, and the service life may be determined according to the record of the charging times or according to the driving mileage. Since the charging and discharging of the battery have an upper usage limit, the number of charging and discharging of the battery is usually 800-1000, and when the charging and discharging cycle limit is reached, overcharge is performed, which is likely to cause a safety accident, therefore, when it is determined that the number of charging of the battery is greater than the threshold number, or the total driving range is greater than the threshold range, the upper charging limit electric quantity in the control parameter of the control instruction is determined to be a set proportion of the rated electric quantity of the battery, for example, set to be 25% of the rated electric quantity of the battery, for example, the rated electric quantity is 20Ah, and set to be 5 Ah. Alternatively, the discharge current may be set to a first set proportion of the rated current, for example, 50%, to achieve discharge without a large current, improving the usage rate.
In another scenario of this embodiment, the remaining capacity before charging and the remaining capacity after charging in each usage record are queried according to the historical usage records, and if the remaining capacity before charging is greater than the first threshold and the number of usage records whose remaining capacity after charging is greater than the second threshold is greater than the number threshold, the upper limit charging capacity in the control parameter of the control instruction is determined to be the second set proportion of the rated capacity.
For example, the user is usually accustomed to use at a low usage rate, and the user usually starts charging when the remaining battery capacity is 80%, and stops charging when the remaining battery capacity increases to 95% after charging. The charging habit enables the battery to be fully charged, but the discharging amount is small when the battery is used, and then the battery is continuously charged. Therefore, when the number of times of occurrence of the charging condition in each usage record is queried to be an excess threshold number of times, for example, 20 times, according to the obtained historical usage record, the upper charging limit electric quantity in the control parameter of the control instruction is determined to be 85% of the rated electric quantity, so that safety protection of battery charging is realized through dynamic adjustment, and the service life of the battery is prolonged.
As another implementation manner, the cloud server may further determine a control instruction according to the acquired state information of the current battery, and the following description is provided for different scenarios.
In one scenario, the state information includes an ambient temperature, and the cloud server determines, according to the ambient temperature in the acquired state information, that the ambient temperature is less than a lower temperature limit, or greater than an upper temperature limit, that is, the ambient temperature is lower or higher, and the ambient temperature is relatively severe, and then determines that the initial discharge current in the control parameter of the control instruction is a third set proportion of the rated current, for example, 50%.
In the use process of the battery, for example, when the battery starts to discharge, if the external environment temperature is low or high, in this embodiment, the environment temperature is low, and if the environment temperature is lower than-10 degrees or 20 degrees, at a low temperature, if the initial discharge current is large, the battery is easily damaged by high-power discharge, so that the initial discharge current needs to be limited to reduce the loss of the battery, the limitation of the discharge current by determining the environment temperature is realized, the safety protection of the battery discharge is realized, and the service life and the service cycle of the battery are increased.
In one implementation of the present application, at the initial stage of the battery starting to discharge, the external temperature is low, the initial discharge current needs to be reduced, and as the battery temperature gradually increases along with the discharge, the discharge current may be gradually increased, specifically, in the case that the battery temperature is adjusted to be within the set temperature interval, the discharge current in the control parameter of the control command is adjusted, so that the discharge current gradually increases until the rated current is reached, so as to improve the discharge efficiency.
As another implementation manner, the cloud server determines the control instruction according to the acquired current state information of the battery and the historical usage record of the battery.
For example, in one scenario, according to the acquired state information of the battery, it is determined that the current ambient temperature is less than the lower temperature limit, and meanwhile, the acquired historical usage record of the battery indicates that the number of times of charging the battery is greater than the threshold number of times, then it is determined that the upper charging limit electric quantity in the control parameters of the control instruction is a set proportion of the rated electric quantity of the battery, and the discharging electric quantity is controlled to be a fourth set proportion of the rated current, where the fourth set proportion is less than the first set proportion and less than the third set proportion.
It should be understood that, in this scenario, the battery life cycle is about to end while in a low-temperature environment, and therefore, the set upper charging limit capacity may be smaller than the set ratio.
It should be noted that, for other scenes according to the state information and the historical usage record of the battery, description is not repeated in this embodiment, and in various scenes, charging and discharging of the battery are protected by dynamic adjustment based on the acquired data, so as to increase the service life.
And step 203, controlling the electric scooter to charge or discharge the battery according to the control instruction.
And then, controlling the electric scooter to charge or discharge the battery according to the control instruction determined by the data acquired by the cloud server, so as to dynamically adjust the charging or discharging parameters through the acquired data, so as to perform safety protection on the charging and discharging of the battery, and improve the service life of the battery.
And step 204, inquiring weather and building information according to the geographic position in the state information. And step 205, controlling the electric scooter to stop executing the control command when the weather meets the set weather condition and the building information indicates the weather, or controlling the electric scooter to stop executing the control command after delaying the set time length, and/or controlling the electric scooter to stop executing the control command in response to the remote control operation of the user, or controlling the electric scooter to stop executing the control command after delaying the set time length.
In this embodiment, the positioning device is arranged on the electric scooter, the geographical position of the electric scooter can be determined according to the positioning device, whether the electric scooter is in an open air environment or not and a corresponding weather condition are inquired and determined according to the geographical position of the electric scooter, and if the weather is rainy weather and the building indication is in the open air condition, the electric scooter is automatically controlled to stop executing the control command, or the electric scooter is controlled to stop executing the control command after a set time length is delayed; and/or, in response to the remote control operation of a user, controlling the electric scooter to stop executing the control command, or delaying the set time length and then controlling the electric scooter to stop executing the control command, so that the damage of a charging circuit caused by charging in rainy days is prevented, and the service life of the battery is prolonged.
It should be noted that, by delaying the set time period and controlling the electric scooter to stop executing the control command, the arc discharge effect caused by sudden stop of charging of the electric scooter during heavy current charging can be avoided, the damage to the rechargeable battery can be avoided, and the safety of battery charging can be improved.
And step 206, generating a use record of the current charging or discharging according to one or more combinations of the state information of the battery before the current charging, the state information after the charging, the state information before the discharging and the state information after the discharging and the control parameters carried in the control command adopted by the current charging or discharging.
Step 207, add the usage record to the historical usage record.
In this embodiment, a usage record of the current charging or discharging may be generated according to one or more combinations of the state information of the battery before the current charging, the state information after the charging, the state information before the discharging, and the state information after the discharging, and the control parameter carried in the control instruction adopted by the current charging or discharging, and stored in the historical usage record in the cloud, so as to update the historical data, so that when the charging or discharging is required next time, the dynamic adjustment of the charging or discharging may be performed according to the latest multiple historical records, so as to improve the service life and the service cycle of the battery.
In the method for controlling charging and discharging of the battery, under the condition that the electric quantity of the electric scooter is monitored to be lower than a threshold value and/or a charging and discharging instruction is received, state information of the battery of the electric scooter is obtained, the control instruction is determined according to the state information and/or the historical use record of the battery, and the electric scooter is controlled to charge or discharge the battery according to the control instruction.
In order to implement the above embodiments, the present application further provides a control device for charging and discharging a battery.
Fig. 4 is a schematic structural diagram of a control device for charging and discharging a battery according to an embodiment of the present disclosure.
As shown in fig. 4, the apparatus includes: an acquisition module 41, a determination module 42, and a control module 43.
The obtaining module 41 is configured to obtain state information of a battery of the electric scooter under the condition that the electric quantity of the electric scooter is monitored to be lower than a threshold value and/or a charging and discharging instruction is received; and the state information is used for representing one or more combinations of residual capacity, driving range, battery temperature, environment temperature and geographical position.
And a determining module 42, configured to determine the control command according to the state information and/or the historical usage record of the battery.
And the control module 43 is used for controlling the electric scooter to charge or discharge the battery according to the control instruction.
Further, in a possible implementation manner of the embodiment of the present application, the apparatus further includes:
the adding module is used for generating a use record of the current charging or discharging according to one or more combinations of the state information of the battery before the current charging, the state information after the charging, the state information before the discharging and the state information after the discharging and control parameters carried in a control command adopted by the current charging or discharging; adding the usage record to the historical usage record.
In a possible implementation manner of the embodiment of the present application, the determining module 42 is specifically configured to:
and according to the historical use record, if the charging times of the battery is determined to be the first charging, determining that the charging mode in the control parameters of the control instruction is constant current.
In a possible implementation manner of the embodiment of the present application, the determining module 42 is specifically configured to:
and according to the historical use record, if the charging times of the battery are determined to be greater than the threshold times or the total driving range is determined to be greater than the threshold range, determining that the upper charging limit electric quantity in the control parameters of the control command is the set proportion of the rated electric quantity of the battery, and/or determining that the discharging current in the control parameters of the control command is the first set proportion of the rated current.
In a possible implementation manner of the embodiment of the present application, the determining module 42 is specifically configured to:
according to the historical usage records, inquiring the residual electric quantity before charging and the residual electric quantity after charging in each usage record;
and if the residual capacity before charging is greater than a first threshold value and the number of the use records of which the residual capacity after charging is greater than a second threshold value is greater than a number threshold value, determining that the upper limit charging capacity in the control parameters of the control command is a second set proportion of the rated capacity.
In a possible implementation manner of the embodiment of the present application, the determining module 42 is specifically configured to:
and according to the state information, if the environment temperature is determined to be smaller than the lower temperature limit or larger than the upper temperature limit, determining that the initial discharge current in the control parameters of the control command is a third set proportion of the rated current.
In a possible implementation manner of the embodiment of the present application, the determining module 42 is further specifically configured to:
and under the condition that the temperature of the battery is adjusted to be within a set temperature interval, adjusting the discharge current in the control parameters of the control command to gradually increase the discharge current until the discharge current reaches the rated current.
In a possible implementation manner of the embodiment of the present application, the apparatus further includes:
the processing module is used for inquiring weather and building information according to the geographic position in the state information; controlling the electric vehicle to stop executing the control command under the condition that the weather meets set weather conditions and the building information indicates the open air, or controlling the electric vehicle to stop executing the control command after a set time is delayed;
and/or, responding to the remote control operation of a user, controlling the electric vehicle to stop executing the control command, or controlling the electric vehicle to stop executing the control command after delaying the set time length.
It should be noted that the foregoing explanation of the method embodiment is also applicable to the apparatus of this embodiment, and is not repeated herein.
In the control device for battery charging and discharging of the embodiment, under the condition that the electric quantity of the electric scooter is monitored to be lower than a threshold value and/or a charging and discharging instruction is received, state information of a battery of the electric scooter is acquired, the control instruction is determined according to the state information and/or a historical use record of the battery, and the electric scooter is controlled to charge or discharge the battery according to the control instruction.
In order to implement the foregoing embodiments, the present application provides a server, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the computer program, the server implements the control method according to the foregoing method embodiments.
In order to implement the above embodiments, the present application proposes a non-transitory computer-readable storage medium on which a computer program is stored, wherein when the instructions in the storage medium are executed by a processor, the control method according to the foregoing method embodiments is implemented.
In order to implement the foregoing embodiments, the present application provides a computer program product, which when executed by an instruction processor in the computer program product implements the control method according to the foregoing method embodiments.
FIG. 5 illustrates a block diagram of an exemplary computer device suitable for use in implementing embodiments of the present application. The computer device 12 shown in fig. 5 is only an example and should not bring any limitation to the function and scope of use of the embodiments of the present application.
As shown in FIG. 5, computer device 12 is in the form of a general purpose computing device. The components of computer device 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, and a bus 18 that couples various system components including the system memory 28 and the processing unit 16.
Bus 18 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. These architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MAC) bus, enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus, to name a few.
Computer device 12 typically includes a variety of computer system readable media. Such media may be any available media that is accessible by computer device 12 and includes both volatile and nonvolatile media, removable and non-removable media.
Memory 28 may include computer system readable media in the form of volatile Memory, such as Random Access Memory (RAM) 30 and/or cache Memory 32. The computer device 12 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 34 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 5 and commonly referred to as a "hard drive"). Although not shown in FIG. 5, a disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a Compact disk Read Only Memory (CD-ROM), a Digital versatile disk Read Only Memory (DVD-ROM), or other optical media) may be provided. In these cases, each drive may be connected to bus 18 by one or more data media interfaces. Memory 28 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the application.
A program/utility 40 having a set (at least one) of program modules 42 may be stored, for example, in memory 28, such program modules 42 including but not limited to an operating system, one or more application programs, other program modules, and program data, each of which or some combination of which may comprise an implementation of a network environment. Program modules 42 generally perform the functions and/or methodologies of the embodiments described herein.
Computer device 12 may also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), with one or more devices that enable a user to interact with computer device 12, and/or with any devices (e.g., network card, modem, etc.) that enable computer device 12 to communicate with one or more other computing devices. Such communication may be through an input/output (I/O) interface 22. Moreover, computer device 12 may also communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN) and/or a public Network such as the Internet via Network adapter 20. As shown, network adapter 20 communicates with the other modules of computer device 12 via bus 18. It should be understood that although not shown in the figures, other hardware and/or software modules may be used in conjunction with computer device 12, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
The processing unit 16 executes various functional applications and data processing, for example, implementing the methods mentioned in the foregoing embodiments, by running a program stored in the system memory 28.
In the description herein, reference to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the application. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In the description of the present application, "plurality" means at least two, e.g., two, three, etc., unless specifically limited otherwise.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing steps of a custom logic function or process, and alternate implementations are included within the scope of the preferred embodiment of the present application in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present application.
The logic and/or steps represented in the flowcharts or otherwise described herein, e.g., an ordered listing of executable instructions that can be considered to implement logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. For the purposes of this description, a "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection (electronic device) having one or more wires, a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). Further, the computer-readable medium could even be paper or another suitable medium upon which the program is printed, as the program can be electronically captured, via for instance optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner if necessary, and then stored in a computer memory.
It should be understood that portions of the present application may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. If implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are well known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, and when the program is executed, the program includes one or a combination of the steps of the method embodiments.
In addition, functional units in the embodiments of the present application may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium.
The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc. While embodiments of the present application have been shown and described above, it will be understood that the above embodiments are exemplary and should not be construed as limiting the present application and that changes, modifications, substitutions and alterations in the above embodiments may be made by those of ordinary skill in the art within the scope of the present application.