Charging pile control method and device
Technical Field
The invention relates to the technical field of charging piles, in particular to a charging pile control method and device.
Background
Under the big background of global energy crisis and serious environmental crisis, the electric automobile is used as an energy-saving and environment-friendly green vehicle, the government of China is actively promoted and developed, and the charging/replacing station is used as an important matched infrastructure necessary for developing the electric automobile and has very important social benefits and economic benefits.
At present, the existing charge settlement modes of each large charging platform have two types: post-paid and pre-paid. The settlement mode has an unavoidable problem, namely the user arrearage problem. Although the prepaid mode can better solve the problem, there is still a problem that the user account has negative values due to overshoot. In the prior art, a communication strategy of a fixed time interval is carried out through an information interaction platform and an electric pile, the information interaction platform compares the balance of a user account or a pre-charging balance with the current charged use amount of a user at regular time, when the balance is less than or equal to the use amount, the reported balance is insufficient and charging is stopped, and the strategy can cause the overshoot condition of the user account, namely the balance of the user account is negative, and the possibility of bad account is generated.
Disclosure of Invention
In view of the above, the present invention provides a charging pile control method and device, so as to alleviate the technical problem that a negative value appears in a user account due to overshoot in the existing charging pile charging manner.
In a first aspect, an embodiment of the present invention provides a method for controlling a charging pile, including: acquiring the charging balance of the charging equipment at the current moment; under the condition that the charging balance is larger than the preset amount, controlling a charging process of charging the charging equipment through a charging platform; and under the condition that the charging balance is less than or equal to the preset amount, controlling a charging process of charging the charging equipment through a charging pile.
Further, the charging process of charging the charging equipment through charging pile control comprises the following steps: monitoring the charging electric quantity of the charging equipment in real time from a target moment, wherein the target moment is the moment when the charging pile receives control over the charging process of the charging equipment; comparing the charging electric quantity with a preset electric quantity, wherein the preset electric quantity is a charging quantity which can be purchased by a charging balance of the charging equipment; and under the condition that the charging electric quantity is greater than the preset electric quantity, stopping charging the charging equipment.
Further, the method further comprises: and under the condition that the charging electric quantity is smaller than or equal to the preset electric quantity through comparison, the charging pile actively controls the charging operation of the charging equipment.
Further, after stopping charging the charging device, the method further comprises: reporting order data to the charging platform, wherein the order data comprises: and starting from the target moment, the charging time, the charging electric quantity and the charging amount of the charging equipment.
Further, the controlling the charging process of the charging device through the charging platform comprises: and the charging platform sends a control instruction to the charging pile so that the charging pile performs charging operation on the charging equipment according to the control instruction.
Further, acquiring the charging balance of the charging device at the current moment includes: acquiring the charged amount of the charging equipment at the current moment; acquiring account balance of an account to which the charging equipment belongs; calculating the charging balance based on the account balance and the charged amount.
In a second aspect, an embodiment of the present invention further provides a control device for a charging pile, including: the acquisition unit is used for acquiring the charging balance of the charging equipment at the current moment; the first control unit is used for controlling a charging process of charging the charging equipment through the charging platform under the condition that the charging balance is larger than the preset money amount; and the second control unit is used for controlling the charging process of charging the charging equipment through the charging pile under the condition that the charging balance is less than or equal to the preset amount.
Further, the second control unit is configured to: monitoring the charging electric quantity of the charging equipment in real time from a target moment, wherein the target moment is the moment when the charging pile receives control over the charging process of the charging equipment; comparing the charging electric quantity with a preset electric quantity, wherein the preset electric quantity is a charging quantity which can be purchased by a charging balance of the charging equipment; and under the condition that the charging electric quantity is greater than the preset electric quantity, stopping charging the charging equipment.
Further, the second control unit is configured to: and under the condition that the charging electric quantity is smaller than or equal to the preset electric quantity through comparison, the charging pile actively controls the charging operation of the charging equipment.
Further, the apparatus further comprises: a reporting unit, configured to report order data to the charging platform after the second control unit controls the charging pile to stop charging the charging device, where the order data includes: and starting from the target moment, the charging time, the charging electric quantity and the charging amount of the charging equipment.
In the embodiment of the invention, firstly, the charging balance of the charging equipment at the current moment is obtained; then, under the condition that the charging balance is larger than the preset money amount, controlling the process of charging the charging equipment through the charging platform; and under the condition that the charging balance is less than or equal to the preset amount, controlling a charging process of charging the charging equipment through the charging pile. In the embodiment of the invention, when the charging balance is less than a certain amount, the corresponding charging strategy is issued to the charging pile so as to control the charging cost by the charging pile and control the charging stop time, thereby reducing the probability of negative number generation of the account, further relieving the technical problem that the negative value of the user account is still caused by overshoot in the conventional charging pile charging mode, and realizing the technical effect of stopping charging the charging equipment in time before the negative value of the account is generated.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
In order to make the aforementioned and other objects, features and advantages of the present invention comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a flowchart of a control method of a charging pile according to an embodiment of the present invention;
fig. 2 is a flowchart of a control method of an optional charging pile according to an embodiment of the present invention;
fig. 3 is a schematic diagram of a control apparatus of a charging pile according to an embodiment of the present invention;
fig. 4 is a schematic diagram of a control device of an optional charging pile according to an embodiment of the invention.
Detailed Description
To make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is apparent that the described embodiments are some, but not all embodiments of the present invention. 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 invention.
The first embodiment is as follows:
it should be noted that, although a logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in an order different from that shown or described herein.
Fig. 1 is a flowchart of a control method of a charging pile according to an embodiment of the present invention, as shown in fig. 1, the method includes the following steps:
step S102, acquiring the charging balance of the charging equipment at the current moment;
in the embodiment of the invention, the charging equipment can be an electric bicycle or an electric automobile; the charging balance is the balance in the account of the user to which the charging device belongs in the charging process, that is, the charging balance is dynamically changed, and the charging balance changes along with the change of the charging electric quantity.
Step S104, controlling a charging process of charging the charging equipment by the charging platform under the condition that the charging balance is larger than the preset amount;
and step S106, controlling a charging process of charging the charging equipment through the charging pile under the condition that the charging balance is less than or equal to the preset money.
At present, the charging and billing of the electric automobile adopt a real-time billing mode, and due to the fact that time difference exists between interaction of a charging pile and a charging platform in the mode of the Internet of things. Under common conditions, a charging platform is used for controlling calculation and deduction of expenses, and due to the existence of the time difference, the result of fee deduction failure can be caused, so that expense loss can be brought to a charging pile company, or a user account is deducted to be a negative value, and the using satisfaction degree of a user is reduced. Because charging equipment acquires data such as electric quantity, current, voltage and the like through the charging pile in the charging process, and the charging pile can realize storage and calculation of order electric quantity, charge and charging data, a reasonable electric quantity (namely, the charging quantity corresponding to the preset amount of money) can be analyzed at the charging platform end according to statistics of the overshoot electric quantity, and when the chargeable quantity of the residual charge (namely, the charging quantity corresponding to the charging balance) is smaller than or equal to the reasonable electric quantity, the charging control is handed to the charging pile for processing completion.
It should be noted that the processes described in the above steps S102 to S106 may be provided at the charging platform end.
In the embodiment of the invention, firstly, the charging balance of the charging equipment at the current moment is obtained; then, under the condition that the charging balance is larger than the preset money amount, controlling the process of charging the charging equipment through the charging platform; and under the condition that the charging balance is less than or equal to the preset amount, controlling a charging process of charging the charging equipment through the charging pile. In the embodiment of the invention, when the charging balance is less than a certain amount, the corresponding charging strategy is issued to the charging pile so as to control the charging cost by the charging pile and control the charging stop time, thereby reducing the probability of negative number generation of the account, further relieving the technical problem that the negative value of the user account is still caused by overshoot in the conventional charging pile charging mode, and realizing the technical effect of stopping charging the charging equipment in time before the negative value of the account is generated.
When a user charges the charging equipment through the charging pile, the charging balance of the charging equipment at the current moment is acquired in real time, and in an optional implementation mode, the acquiring of the charging balance of the charging equipment at the current moment comprises the following steps:
step S1021, the charged amount of the charging equipment at the current moment is obtained;
step S1022, acquiring an account balance of an account to which the charging device belongs;
in step S1023, the charging balance is calculated based on the account balance and the charged amount.
Specifically, the charging platform acquires the charged electric quantity of the charging equipment in real time, and then converts the charged electric quantity into charged money; next, acquiring account balance in an account of a user to which the charging equipment belongs, wherein the account balance is the residual amount in the account when the charging equipment starts charging operation; finally, the charging balance can be calculated by calculating the difference between the account balance and the charged amount.
After the charging balance is calculated, the charging balance can be compared with a preset amount, wherein the preset amount is a reasonable preset balance calculated in advance through big data analysis.
In the embodiment of the invention, the data before model modification is taken as a prototype, the model, the power, the overshoot electric quantity, the overshoot duration, the overshoot cost and other related data of the charging equipment are obtained, and the data are aggregated and grouped to obtain the optimal preset money of the equipment with the corresponding model.
If the charging balance is smaller than or equal to the preset amount, the charging process of charging the charging equipment can be controlled through the charging pile.
In one embodiment, the step S106 of controlling the charging process of charging the charging device through the charging pile includes the following steps:
step S1061, monitoring the charging electric quantity of the charging equipment in real time from a target moment, wherein the target moment is the moment when the charging pile receives control over the charging process of the charging equipment;
step S1062, comparing the charging electric quantity with a preset electric quantity, wherein the preset electric quantity is a charging quantity which can be purchased by a charging balance of the charging equipment;
in step S1063, when the comparison shows that the charging electric quantity is greater than the preset electric quantity, the charging of the charging device is stopped.
If the charging balance is larger than zero but smaller than or equal to the preset amount, the charging pile end controls the charging process of the charging equipment, at the moment, the charging pile and the charging platform can still perform normal information interaction, and the charging pile controls the starting of the charging stopping action.
Specifically, after receiving the instruction sent by the charging platform, the charging pile can control the charging process of the charging equipment based on the instruction, and at the moment, the charging pile monitors the charging electric quantity of the charging equipment in real time. Wherein, fill electric pile and mainly realize the control to the electric quantity of charging through charging parameters such as monitoring current and voltage. At this moment, the charging pile compares the charging electric quantity monitored in real time with the preset electric quantity, and if the charging electric quantity is larger than (i.e. exceeds) the preset electric quantity, the charging pile stops the charging operation of the charging equipment in time. If the charging electric quantity monitored by the charging pile in real time is smaller than or equal to (i.e. does not exceed) the preset electric quantity, the charging pile actively controls the charging operation of the charging equipment without sending corresponding information to the charging platform. Through the operation, the interaction time between the charging pile and the charging platform is saved, so that the charging operation of the charging equipment can be accurately stopped in time, and the account balance of the user is prevented from generating a negative value.
In the embodiment of the present invention, after the charging pile stops charging the charging device, the charging pile may also report order data to the charging platform, where the order data includes: starting from the target time, the charging amount and the charging balance of the charging equipment. If the situation that the charging pile cannot be reported offline occurs, the charging pile can store offline order data, and the offline order data can be reported after the charging pile is online.
In an alternative embodiment, the step S104, that is, the charging process for controlling the charging device to be charged by the charging platform, includes the following steps:
and the charging platform sends a control instruction to the charging pile so that the charging pile performs charging operation on the charging equipment according to the control instruction.
Under the condition, the charging platform controls the charging process of the charging equipment, and at the moment, normal information interaction and expense settlement can be carried out between the charging platform and the charging pile.
In summary, in the present invention, by adding analysis on the overshoot amounts of the dc and ac charging piles under the corresponding currents and voltages, the optimal minimum cost value (i.e. the preset amount) is obtained, and when the charging balance is smaller than the optimal minimum cost value, the corresponding policy is issued to the charging pile terminal, and the charging pile terminal controls the charging cost of the charging device and controls the charging stop time of the charging device, so as to reduce the probability of the negative number generated by the account.
To sum up, in order to intuitively understand the above process, the control method of the charging pile provided in each embodiment is described by taking the schematic diagram of the control method of the charging pile shown in fig. 2 as an example.
In the embodiment of the invention, a prepayment mode is firstly adopted, whether the charging balance of the current account of a user is larger than a preset amount is judged, when the charging balance is larger than the preset amount, an active control mode of a charging platform is adopted, the charging platform finishes charging according to the states of whether charging is finished (such as user stop, vehicle-mounted full charge and the like), and when the charging balance (namely the difference value between the user account and the charged use amount) in the charging process is smaller than or equal to the preset amount, the active control mode of a charging pile is adopted, whether charging is stopped or not is controlled by the charging pile in real time according to the charging electric quantity and the charging balance, and after the whole charging process is finished, the charging pile reports final order data of the charging.
As shown in fig. 2, the charging fee charging process includes the following steps:
starting the charging operation of the charging pile on the charging equipment; when charging is started, whether the charging balance of the user account is larger than zero or not is judged, if the charging balance is larger than zero and larger than a preset amount of money, the charging process is controlled by the charging platform, normal information interaction and expense settlement can be carried out between the charging platform and the charging pile, if the charging balance is larger than zero and smaller than or equal to the preset amount of money, the charging pile end controls the charging process of the charging equipment, the charging pile and the charging platform still carry out normal information interaction, and at the moment, the charging pile initiates a charging stop action.
In the charging process of controlling the terminal equipment through the charging pile, the charging platform informs the charging pile to start charging, at the moment, the charging pile starts an electric quantity comparison strategy, namely, the electric quantity to be charged is compared with the preset electric quantity, wherein the electric quantity to be charged is the charging quantity monitored in real time from the moment when the charging pile receives control over the charging process of the charging equipment, and the preset electric quantity is the charging quantity which can be purchased by the charging balance of the charging equipment. If the charging electric quantity is smaller than or equal to the preset electric quantity, namely, if the current charging electric quantity is judged not to exceed the preset electric quantity, the charging pile is informed to continue charging the charging equipment until the charging electric quantity is larger than the preset electric quantity, and the charging process is finished. After charging is completed, the charging pile can additionally report the unreported order data. If the electric pile is off-line and can not report, the electric pile can store off-line data, and the partial data can be reported after the electric pile is on-line. The specific implementation process is as above, and is not described herein again.
Example two:
the embodiment of the invention also provides a control device of the charging pile, which is mainly used for executing the control method of the charging pile provided by the embodiment of the invention.
Fig. 3 is a schematic diagram of a control device of a charging pile according to an embodiment of the present invention, and as shown in fig. 3, the control device of the charging pile mainly includes: an acquisition unit 31, a first control unit 32 and a second control unit 33, wherein:
an obtaining unit 31, configured to obtain a charging balance of the charging device at the current time;
a first control unit 32, configured to control a charging process of charging the charging device through the charging platform when the charging balance is greater than a preset amount of money;
and the second control unit 33 is configured to control a charging process of charging the charging device through the charging pile when the charging balance is less than or equal to the preset amount.
In the embodiment of the invention, firstly, the charging balance of the charging equipment at the current moment is obtained; then, under the condition that the charging balance is larger than the preset money amount, controlling the process of charging the charging equipment through the charging platform; and under the condition that the charging balance is less than or equal to the preset amount, controlling a charging process of charging the charging equipment through the charging pile. In the embodiment of the invention, when the charging balance is less than a certain amount, the corresponding charging strategy is issued to the charging pile so as to control the charging cost by the charging pile and control the charging stop time, thereby reducing the probability of negative number generation of the account, further relieving the technical problem that the negative value of the user account is still caused by overshoot in the conventional charging pile charging mode, and realizing the technical effect of stopping charging the charging equipment in time before the negative value of the account is generated.
Optionally, the second control unit is configured to: monitoring the charging electric quantity of the charging equipment in real time from a target moment, wherein the target moment is the moment when the charging pile receives control over the charging process of the charging equipment; comparing the charging electric quantity with a preset electric quantity, wherein the preset electric quantity is a charging quantity which can be purchased by a charging balance of the charging equipment; and under the condition that the compared charging electric quantity is larger than the preset electric quantity, stopping charging the charging equipment.
Optionally, the second control unit is configured to: and under the condition that the compared charging electric quantity is less than or equal to the preset electric quantity, the charging pile actively controls the charging operation of the charging equipment.
Optionally, as shown in fig. 4, the apparatus further includes: the reporting unit 41 is configured to report order data to the charging platform after the second control unit controls the charging pile to stop charging the charging device, where the order data includes: starting from the target time, the charging amount and the charging balance of the charging equipment.
Optionally, the second control unit is configured to: and the charging platform sends a control instruction to the charging pile so that the charging pile performs charging operation on the charging equipment according to the control instruction.
Optionally, the obtaining unit is configured to: acquiring the charged balance of the charging equipment at the current moment; acquiring account balance of an account to which the charging equipment belongs; a charging balance is calculated based on the account balance and the charged balance.
In addition, in the description of the embodiments of the present invention, unless otherwise explicitly specified or limited, the terms "mounted," "connected," and "connected" are to be construed broadly, e.g., as meaning either a fixed connection, a removable connection, or an integral connection; can be mechanically or electrically connected; they may be connected directly or indirectly through intervening media, or they may be interconnected between two elements. The specific meanings of the above terms in the present invention can be understood in specific cases to those skilled in the art.
In the description of the present invention, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc., indicate orientations or positional relationships based on the orientations or positional relationships shown in the drawings, and are only for convenience of description and simplicity of description, but do not indicate or imply that the device or element being referred to must have a particular orientation, be constructed and operated in a particular orientation, and thus, should not be construed as limiting the present invention. Furthermore, the terms "first," "second," and "third" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance.
The computer program product of the charging pile control method and device provided by the embodiments of the present invention includes a computer-readable storage medium storing a nonvolatile program code executable by a processor, where instructions included in the program code may be used to execute the method described in the foregoing method embodiments, and specific implementation may refer to the method embodiments, and will not be described herein again.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one logical division, and there may be other divisions when actually implemented, and for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of devices or units through some communication interfaces, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a non-volatile computer-readable storage medium executable by a processor. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
Finally, it should be noted that: the above-mentioned embodiments are only specific embodiments of the present invention, which are used for illustrating the technical solutions of the present invention and not for limiting the same, and the protection scope of the present invention is not limited thereto, although the present invention is described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: any person skilled in the art can modify or easily conceive the technical solutions described in the foregoing embodiments or equivalent substitutes for some technical features within the technical scope of the present disclosure; such modifications, changes or substitutions do not depart from the spirit and scope of the embodiments of the present invention, and they should be construed as being included therein. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.