Embodiment
Below in conjunction with accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Ground is described, it is clear that described embodiment is only a part of embodiment of the invention, rather than whole embodiments.Generally exist
The component of the embodiment of the present invention described and illustrated in accompanying drawing can be arranged and designed with a variety of configurations herein.Cause
This, the detailed description of the embodiments of the invention to providing in the accompanying drawings is not intended to limit claimed invention below
Scope, but it is merely representative of the selected embodiment of the present invention.Based on embodiments of the invention, those skilled in the art are not doing
The every other embodiment obtained on the premise of going out creative work, belongs to the scope of protection of the invention.
It should be noted that:Similar label and letter represents similar terms in following accompanying drawing, therefore, once a certain Xiang Yi
It is defined in individual accompanying drawing, then it further need not be defined and explained in subsequent accompanying drawing.Meanwhile, the present invention's
In description, term " first ", " second " etc. are only used for distinguishing description, and it is not intended that indicating or implying relative importance.
Referring to Fig. 1, providing the charging accounting system including accounting server 100 Yu charging pile 200 for the embodiment of the present invention
The schematic diagram of system.The accounting server 100 can be entered by network with one or more charging piles 200 (three are shown in figure)
Row communication connection, to enter row data communication or interaction.The accounting server 100 may be, but not limited to, the webserver,
Database server etc..The charging pile 200 can provide charging current for charging equipment, and by the ammeter in charging pile 200
Data variation be sent to the accounting server 100.In the present embodiment, the rated output power of each charging pile 200 can not
Together.
In the present embodiment, the charging pile 200 includes at least one charging gun.In one embodiment, the charging
Stake 200 is used to, when the communication connection of the accounting server 100 and charging pile 200 disconnects, stop as the charging pile 200
Charging gun exports charging current.In another embodiment, the charging pile 200 be used for when the accounting server 100 with
When the communication connection of charging pile 200 disconnects, obtain offline charge data according to the predetermined period and store;Work as accounting server
100 with the charging pile 200 sets up again communicate to connect when, the offline charge data of storage is sent to the accounting server
100, so that the accounting server 100 calculates the charging expense that the Offtime of charging pile 200 section charges for charging equipment.
As shown in Fig. 2 being the block diagram of the accounting server 100.The accounting server 100 includes chargometer
Take device 110, memory 102, processor 104 and mixed-media network modules mixed-media 106.It will appreciated by the skilled person that shown in Fig. 2
Structure be only signal, it does not cause to limit to the structure of accounting server 100.For example, accounting server 100 may also include
More either less components or with the configuration different from shown in Fig. 2 than shown in Fig. 2.
Charging accounting method that memory 102 can be used in storage software program and module, such as embodiment of the present invention and
Corresponding programmed instruction/the module of device, processor 104 is stored in software program and module in memory 102 by operation,
So as to perform various function application and data processing, that is, realize method for scheduling task.Memory 102 may include to deposit at random at a high speed
Reservoir, may also include nonvolatile memory, such as one or more magnetic storage device, flash memory or other are non-volatile
Solid-state memory.In some instances, memory 102 can further comprise the memory remotely located relative to processor 104,
These remote memories can pass through network connection to accounting server 100.The example of above-mentioned network includes but is not limited to interconnection
Net, intranet, LAN, mobile radio communication and combinations thereof.
Processor 104 is probably a kind of IC chip, the disposal ability with signal.Above-mentioned processor 104 can
To be general processor, including central processing unit (Central Processing Unit, abbreviation CPU), network processing unit
(Network Processor, abbreviation NP), digital signal processor (DSP), application specific integrated circuit (ASIC), field-programmable
Gate array (FPGA) or other PLDs, discrete gate or transistor logic, discrete hardware components etc., with
Realize or perform disclosed each method, step and the logic diagram in the embodiment of the present invention.General processor can be micro- place
Reason device can also be any conventional processor etc..
Mixed-media network modules mixed-media 106 is used to receiving and sending network signal.Above-mentioned network signal may include wireless signal or have
Line signal.In an example, above-mentioned network signal is cable network signal.Now, mixed-media network modules mixed-media 106 can accordingly include processing
The elements such as device, random access memory, converter, crystal oscillator.
Above-mentioned software program and module includes:Operating system 108 and charging accounting device 110.Wherein operating system
108 for example can be LINUX, UNIX, WINDOWS, and it may include various for management system task (such as memory management, storage
Equipment control, power management etc.) component software and/or driving, and can mutually be communicated with various hardware or component software so that
The running environment of other software component is provided.Wherein, the charging accounting device 110 operates in the base of the operating system 108
On plinth, the charge data for receiving the transmission of charging pile 200, and charging expense will be calculated according to the charge data.
Referring to Fig. 3, being the charging for being applied to the accounting server 100 shown in Fig. 2 that present pre-ferred embodiments are provided
The flow chart of charging method.The idiographic flow shown in Fig. 3 will be described in detail below.
Step S101, receives the online charge data for the current charging equipment that the charging pile is sent according to predetermined period.
In the present embodiment, the charging pile sends current charging equipment according to the default cycle to the accounting server
Online charge data.For example, sending once online charging number to the accounting server every the time such as 10 seconds, 5 seconds or 20 seconds
According to.
In the present embodiment, the online charge data can include:Ammeter data, current data (such as charging current) and electricity
Press data (such as charging voltage).
In the present embodiment, before step S101, the charging pile monitor its charging gun whether the charging with charging equipment
Interface is connected, after the charging gun is connected with the charging inlet of the charging equipment, and the charging pile takes to the charging again
Business device sends online charge data.In an example, when the charging gun is connected with the charging inlet of the charging equipment, institute
State the initial ammeter electricity that charging pile sends charging pile to the accounting server.
Step S102, in real time monitoring accounting server and the charging pile communication connection status.
Step S103, when the communication connection for monitoring accounting server and charging pile disconnects, starts default offline meter
Take the charging expense of current charging equipment described in workflow management.
In the present embodiment, the charging expense may include online charging expense and the expense that charges offline.
Wherein, the online charging expense can be calculated in the following manner.
In one embodiment, the accounting server is according to the charging gun and the charging inlet of the charging equipment
The ammeter electricity and the charging pile and the accounting server for connecting foregoing description charging gun disconnect preceding last time and sent out
The online charge data sent calculates the electricity for obtaining the charging consumption, and the electricity and charging regulation further according to the consumption are calculated
The online charging expense.For example, the online charging expense can be calculated according to the unit price of electricity and the electricity of consumption.It can manage
Solution, those skilled in the art can prestore the charging regulation in the accounting server according to demand, the present invention
Embodiment is not limited with the charging regulation.
In another embodiment, the accounting server is according to the charging of the charging gun and the charging equipment
Before the beginning ammeter electricity and the charging pile of the charging gun transmission are disconnected with the accounting server after mouth connection most
The online charge data once sent afterwards calculates the electricity for obtaining the charging consumption, electricity and charging further according to the consumption
Rule calculates the online charging expense.For example, calculating the online charging expense according to the unit price of electricity and the electricity of consumption.
According to above-mentioned steps, it can calculate when the charging pile and the accounting server are disconnected and disconnect communication
Charging expense before connection, it is to avoid because the charging pile disconnects with the accounting server and causes online charging accounting
It is abnormal.
In one embodiment, as shown in figure 4, the step S103 in the charging accounting method may also include step
S1031 and S1032.
Step S1031, when accounting server sets up communication connection again with the charging pile, receives the charging pile hair
The offline charge data sent.The offline charge data includes the when that accounting server and the charging pile that charging pile records disconnect
The charge data of the interior charging equipment.
In one embodiment, the charging pile is when with the accounting server off-line state, and the charging pile is pressed
Offline charge data is obtained according to predetermined period, and the offline charge data is stored.When accounting server fills with described
When electric stake sets up communication connection again, obtained in the time that the charging pile disconnects accounting server and charging pile from
Line charge data is sent to the accounting server.
Step S1032, obtains the charging and sets according to the online charge data and the offline charge data calculating
Standby charging expense.
In the present embodiment, the accounting server calculates according to the offline charge data and obtains offline charging expense, root
The online charging expense is obtained according to the online charge data.
In one embodiment, the accounting server exists according to the last time before being disconnected with the charging pile
Line charge data and the charging pile are set up the off-line data received after communication connection with the accounting server and calculated again
Obtain charging in off-line state the electricity of consumption, and electricity and charging regulation further according to consumption of being charged in off-line state calculate described
Offline charging expense.For example, calculating the offline charging expense according to the unit price of electricity and the electricity for consumption of being charged in off-line state.
In another embodiment, the accounting server is according to ammeter maximum in the offline charge data received
Electricity calculates the electricity for the consumption that obtains charging in off-line state with minimum ammeter electricity, is consumed further according to being charged in off-line state
Electricity and charging regulation calculate the offline charging expense.For example, according to the unit price of electricity and charging consumption in off-line state
Electricity calculates the offline charging expense.
, can also be by obtaining accounting server and the electricity in charging pile communication connection turn-off time in the present embodiment
Damage, then damaging calculating according to the offline charge data and the electricity obtains the offline charging expense.
In an example, in the state of the charging gun of the charging pile is not charged for any charging equipment, institute
Stating charging pile can be according to predetermined period to accounting server transmission ammeter data, for example, the charging pile can be with each
Minute sends an ammeter data to the accounting server, and rule are damaged according to the electricity that the data received calculate the charging pile
Then.It is stored in for example, the electricity that calculating is obtained can be damaged into rule in the accounting server.In an example, can be according to
Predetermined period recalculates the electricity and damages rule, for example, calculating electricity every month as previously described damages rule, and with new electricity
Damage rule and replace old electricity damage rule.It can be the number of degrees of kwh loss and the linear relationship of time that the electricity, which damages rule, for example,
The number of degrees of kwh loss per hour.
In another embodiment, as shown in figure 5, the step S103 in the charging accounting method may also include step
S1033 and S1034.
Step S1033, when accounting server sets up communication connection again with the charging pile, obtains the charging pile hair
The current ammeter electricity sent.
Step S1034, the ammeter electricity in the current ammeter electricity and the online charge data is counted
Take the offline charging expense during server disconnects with charging pile communication connection.
In the present embodiment, the accounting server can communicate according to the current ammeter electricity and with charging pile disconnection
Connection before last time send online charge data in ammeter electricity calculate obtains offline charge capacity, further according to it is described from
Line charge capacity and charging regulation calculate the offline charging expense.
In the present embodiment, the charging pile only can access new fill when being communication connection status with the accounting server
Electric equipment charges for it.It is therefore to be understood that the offline charging expense of above-mentioned calculating is the charging pile and the charging
The charging expense for the charging equipment that server is connected before disconnecting.
In one embodiment, after the accounting server and the charging pile are disconnected, the charging pile can be with
Stop output current, to stop as charging equipment charging.The expense that charged described in present embodiment is only included in line charging expense
With the charging expense for starting current charging equipment described in default offline charging workflow management includes being filled online according to described
Electric data calculate the charging expense.
Method in above-described embodiment, by the communication link for monitoring the charging pile and the accounting server in real time
State is connect, when monitoring that the charging pile is disconnected with the accounting server, offline measure is taken in time, by calculating
Online charging expense and offline charging expense can effectively calculate the actual cost of charging equipment charging, improve charge efficiency and
Accuracy rate.
In other embodiments, can also online being filled to described after line charge data for the charging pile transmission is being received
Electric data carry out abnormal judgement, if the online charge data is normal, and recycling ground performs step S101, receives the charging
The online charge data that stake is sent., can also be by the online charging number if the online charge data is normal in the present embodiment
According in write-in log system.If the online charge data is abnormal, can be sent to the charging pile interrupt charging instruction with
The charging of the charging pile is interrupted, and calculates charging expense, complete charge flow.In an example, the online charging number
Ammeter electricity growth ratio in it is identical with the growth ratio of the ammeter electricity in the online charge data received before or
It is close, then it can be determined that the online charge data is normal.In another example, if ammeter in the online charge data
The growth rate of electricity is more than the growth rate of the ammeter electricity in the online charge data sent before, or the online charging number
Ammeter electricity in does not change compared to the ammeter electricity in the preceding online charge data once sent, then can be determined that described
Online charge data is abnormal.If in the case of the online charge data exception, continuing to as charging equipment charging very likely
The user for causing charging equipment pays spends more amount of money, or charging pile operators to spend less than actual than actual
The amount of money.By above-mentioned mode it is possible to prevente effectively from being charging caused by charging equipment charging when online charge data is abnormal
Expense calculates mistake, so as to reduce the probability of the loss of charging equipment user or charging pile operator.In another example,
The online charge data that charging pile is sent every time is compared with normal data scope, it may be possible to the charging gun output of charging pile
Voltage data or current data exceed normal data scope, then it is assumed that charging produces abnormal, stops output current, and calculates and fill
The electricity charge are used, complete charge flow.
In other embodiments, current data and voltage data are also included in the online charge data.According to the electricity
Flow data and voltage data judge whether the charging pile charged state is normal.In the present embodiment, if the current data and electricity
Press data normal, the current data and voltage data can also be write in log system.If the current data and voltage
Data exception, then can send to the charging pile and interrupt charging instruction to interrupt the charging of the charging pile, and calculate charging
Expense, complete charge flow.For example, reporting time interval to calculate reason according to charging voltage data and current data and data
By upper charge capacity, if the ammeter electricity difference in the online charge data sent with the charging pile is excessive, and this is existing
As repeating lasting generation, then it is assumed that ammeter reading is abnormal, judge occur electric meter fault, stop charging.
The embodiment of the present invention also provides a kind of charging accounting device 110, and the modules in device in this implementation are used for
Each step in above method embodiment is performed, as shown in fig. 6, the charging accounting device in the present embodiment includes:Data connect
Receive module 1101, connection status monitoring modular 1102 and offline charging module 1103.
The data reception module 1101, for receiving the current charging equipment that the charging pile is sent according to predetermined period
Online charge data;
The connection status monitoring modular 1102, the communication connection for monitoring accounting server and the charging pile in real time
State;
The offline charging module 1103, for when monitor accounting server and charging pile communication connection disconnect when,
Start the charging expense of current charging equipment described in default offline charging workflow management.
In the present embodiment, as shown in fig. 7, the offline charging module 1103 may include:Off-line data receiving unit 11031
And expense computing unit 11032.
The off-line data receiving unit 11031, for setting up communication link again when accounting server and the charging pile
When connecing, the offline charge data that the charging pile is sent is received, the offline charge data includes the billing of services that charging pile is recorded
The charge data of the charging equipment in the time that device is disconnected with charging pile.
The expense computing unit 11032, based on according to the online charge data and the offline charge data
Calculate the charging expense for obtaining the charging equipment.
In the present embodiment, as shown in figure 8, the offline charging module 1103 can also include:Current electric quantity acquiring unit
11033 and off-line charges computing unit 11034.
The current electric quantity acquiring unit 11033, for setting up communication link again when accounting server and the charging pile
When connecing, the current ammeter electricity that the charging pile is sent is obtained.
The off-line charges computing unit 11034, for according to the current ammeter electricity and the online charging number
Ammeter electricity in obtains the offline charging expense during accounting server disconnects with charging pile communication connection.
In the present embodiment, the offline charging module 1103 is additionally operable to the accounting server and institute in detection preset time
State whether the communication between charging pile recovers, if not recovering, stop the charging accounting flow of the charging equipment, according to
The online charge data calculates the charging expense of the charging equipment.
In other embodiments, the charging accounting device 110 can also include:Data judge module 1104 and charging knot
Calculate module 1105.
The data judge module 1104, for judging whether the online charge data is normal, the online charging number
According to including current ammeter electricity, current data and voltage data.
It is described charging settlement module 1105, for when detect the online charge data it is abnormal when, to the charging
Stake, which is sent, interrupts charging instruction to interrupt the charging of the charging pile, and calculates the charging expense before interrupting.
Other details on the modules in said apparatus can be referred to further in foregoing embodiment of the method
Description, will not be repeated here.
Device in above-described embodiment, by the communication link for monitoring the charging pile and the accounting server in real time
State is connect, when monitoring that the charging pile is disconnected with the accounting server, offline measure is taken in time, by calculating
Online charging expense and offline charging expense can effectively calculate the actual cost of charging equipment charging, through the above way generation
For it is offline when need the mode that artificially handles, improve charge efficiency and accuracy rate.
In several embodiments provided herein, it should be understood that disclosed apparatus and method, it can also pass through
Other modes are realized.Device embodiment described above is only schematical, for example, flow chart and block diagram in accompanying drawing
Show according to the device of multiple embodiments of the present invention, the architectural framework in the cards of method and computer program product,
Function and operation.At this point, each square frame in flow chart or block diagram can represent the one of a module, program segment or code
Part a, part for the module, program segment or code is used to realize holding for defined logic function comprising one or more
Row instruction.It should also be noted that in some implementations as replacement, the function of being marked in square frame can also with different from
The order marked in accompanying drawing occurs.For example, two continuous square frames can essentially be performed substantially in parallel, they are sometimes
It can perform in the opposite order, this is depending on involved function.It is also noted that every in block diagram and/or flow chart
The combination of individual square frame and block diagram and/or the square frame in flow chart, can use the special base for performing defined function or action
Realize, or can be realized with the combination of specialized hardware and computer instruction in the system of hardware.
In addition, each functional module in each embodiment of the invention can integrate to form an independent portion
Point or modules individualism, can also two or more modules be integrated to form an independent part.
If the function is realized using in the form of software function module and is used as independent production marketing or in use, can be with
It is stored in a computer read/write memory medium.Understood based on such, technical scheme is substantially in other words
The part contributed to prior art or the part of the technical scheme can be embodied in the form of software product, the meter
Calculation machine software product is stored in a storage medium, including some instructions are to cause a computer equipment (can be individual
People's computer, server, or network equipment etc.) perform all or part of step of each of the invention embodiment methods described.
And foregoing storage medium includes:USB flash disk, mobile hard disk, read-only storage (ROM, Read-Only Memory), arbitrary access are deposited
Reservoir (RAM, Random Access Memory), magnetic disc or CD etc. are various can be with the medium of store program codes.Need
Illustrate, herein, such as first and second or the like relational terms be used merely to by an entity or operation with
Another entity or operation make a distinction, and not necessarily require or imply between these entities or operation there is any this reality
The relation or order on border.Moreover, term " comprising ", "comprising" or its any other variant are intended to the bag of nonexcludability
Contain, so that process, method, article or equipment including a series of key elements are not only including those key elements, but also including
Other key elements being not expressly set out, or also include for this process, method, article or the intrinsic key element of equipment.
In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including the key element
Process, method, article or equipment in also there is other identical element.
The preferred embodiments of the present invention are the foregoing is only, are not intended to limit the invention, for the skill of this area
For art personnel, the present invention can have various modifications and variations.Within the spirit and principles of the invention, that is made any repaiies
Change, equivalent substitution, improvement etc., should be included in the scope of the protection.It should be noted that:Similar label and letter exists
Similar terms is represented in following accompanying drawing, therefore, once being defined in a certain Xiang Yi accompanying drawing, is then not required in subsequent accompanying drawing
It is further defined and explained.
The foregoing is only a specific embodiment of the invention, but protection scope of the present invention is not limited thereto, any
Those familiar with the art the invention discloses technical scope in, change or replacement can be readily occurred in, should all be contained
Cover within protection scope of the present invention.Therefore, protection scope of the present invention described should be defined by scope of the claims.