Detect the method and system of charging pile
Technical field
The present invention relates to charging pile technical fields, more particularly, to the method and system of detection charging pile.
Background technique
Currently, usually to be carried out there are many duplicate operation, such as constantly during the project testing of charging pile
Different user enjoys the use-case of discount in test charging;Duplicate test charging flow is required when each version is online
It is whether complete;With being continuously increased for business scenario, charging scenarios also have and are constantly increasing.There are also many new business to be all
It is unfolded on the basis of charging.So testing progress certainly will be will affect by occurring exception in charging.
Abnormal conditions are checked by the way of checking journal file manually in the prior art, but this mode
The professional requirement for reading journal file to existing tester is very high, monitors in developer's hand, cannot open at any time makes
With what is shown in monitoring reports an error, it cannot be guaranteed that its authenticity.For appealing problem, there is presently no effective solution methods.
Summary of the invention
In view of this, the purpose of the present invention is to provide the method and system of detection charging pile, to reduce test and O&M
The difficulty and time cost and human cost of work, improve problem feedback speed and problem locks accuracy.
In a first aspect, the embodiment of the invention provides a kind of methods for detecting charging pile, wherein include:
The state of charging pile is detected, if the state of the charging pile is abnormality, obtains the exception
The fault code information of state;
The fault code information is analyzed, fault message is generated, and the fault message is recorded, obtains
Abnormal log document;
It is operated by input and obtains query condition information;
The abnormal log document is screened according to the query condition information, obtains query result information.
With reference to first aspect, the embodiment of the invention provides the first possible embodiments of first aspect, wherein institute
Stating fault code information includes non-charge fault code information, and the charging pile includes hardware module, software module and communication mould
Block, the state to charging pile detect, if the state of the charging pile is abnormality, obtain the abnormal shape
The fault code information of state includes:
The state of the hardware module, software module and communication module is detected, the non-charge fault generation is obtained
Code information.
With reference to first aspect, the embodiment of the invention provides second of possible embodiments of first aspect, wherein institute
Stating fault code information further includes connecting fault code information, and the state to charging pile detects, if the charging
The state of stake is abnormality, then obtains the fault code information of the abnormality further include:
The charging gun of the charging pile is detected, link information is obtained;
Verify whether the link information is connection normal information;
If it is not, then generating the connecting fault code information.
With reference to first aspect, the embodiment of the invention provides the third possible embodiments of first aspect, wherein institute
Stating fault code information further includes remaining sum fault code information, and the state to charging pile detects, if the charging
The state of stake is abnormality, then obtains the fault code information of the abnormality further include:
The account of starting charging corresponding with the charging pile is verified, balance information is obtained;
Judge whether the balance information is to meet charge volume demand;
If conditions are not met, then generating the remaining sum fault code information.
With reference to first aspect, the embodiment of the invention provides the 4th kind of possible embodiments of first aspect, wherein institute
Stating fault code information further includes power failure code information, and the state to charging pile detects, if the charging
The state of stake is abnormality, then obtains the fault code information of the abnormality further include:
The power supply of the charging pile is detected, power information is obtained;
The power information is analyzed, the power failure code information is obtained.
With reference to first aspect, the embodiment of the invention provides the 5th kind of possible embodiments of first aspect, wherein institute
Stating query result information includes error information and no record prompting message, it is described according to the query condition information to the exception
Log document is screened, and is obtained query result information and is included:
Judge in the abnormal log document with the presence or absence of the fault message for meeting the query condition information;
If it is present the fault message is carried out Screening Treatment, the error information is exported;
If it does not exist, then generating the no record prompting message.
Second aspect, the embodiment of the present invention also provide a kind of system for detecting charging pile, wherein include:
Detection unit is detected for the state to charging pile, if the state of the charging pile is abnormality,
Obtain the fault code information of the abnormality;
Recording unit is analyzed, for analyzing the fault code information, generates fault message, and by the failure
Information is recorded, and abnormal log document is obtained;
Input unit, for obtaining query condition information by input operation;
Query unit is obtained for carrying out information sifting to the abnormal log document according to the query condition information
Query result information.
In conjunction with second aspect, the embodiment of the invention provides the first possible embodiments of second aspect, wherein institute
Stating fault code information includes non-charge fault code information, and the detection unit includes:
The hardware module, software module and communication module of the charging pile are detected, the non-charge fault is obtained
Code information.
In conjunction with second aspect, the embodiment of the invention provides second of possible embodiments of second aspect, wherein institute
Stating fault code information further includes connecting fault code information, the detection unit further include:
The charging gun of the charging pile is detected, link information is obtained;
Verify whether the link information is connection normal information;
If it is not, then generating the connecting fault code information.
In conjunction with second aspect, the embodiment of the invention provides the third possible embodiments of second aspect, wherein institute
Stating query result information includes error information and no record prompting message, and the query unit includes:
Judge in the abnormal log document with the presence or absence of the fault message for meeting the query condition information;
If it is present the fault message is carried out Screening Treatment, the error information is exported;
If it does not exist, then generating the no record prompting message.
The embodiment of the present invention brings following the utility model has the advantages that the method and system provided by the invention for detecting charging pile, packet
It includes and the state of charging pile is detected, if the state of charging pile is abnormality, obtain the fault code of abnormality
Information analyzes fault code information, generates fault message, and fault message is recorded, and obtains abnormal log text
Shelves are operated by input and obtain query condition information, screened, looked into abnormal log document according to query condition information
Ask result information.The present invention can reduce the difficulty and time cost and human cost of test and maintenance work, and it is anti-to improve problem
It presents speed and problem locks accuracy.
Other features and advantages of the present invention will illustrate in the following description, also, partly become from specification
It obtains it is clear that understand through the implementation of the invention.The objectives and other advantages of the invention are in specification, claims
And specifically noted structure is achieved and obtained in attached drawing.
To enable the above objects, features and advantages of the present invention to be clearer and more comprehensible, preferred embodiment is cited below particularly, and cooperate
Appended attached drawing, is described in detail below.
Detailed description of the invention
It, below will be to specific in order to illustrate more clearly of the specific embodiment of the invention or technical solution in the prior art
Embodiment or attached drawing needed to be used in the description of the prior art be briefly described, it should be apparent that, it is described below
Attached drawing is some embodiments of the present invention, for those of ordinary skill in the art, before not making the creative labor
It puts, is also possible to obtain other drawings based on these drawings.
Fig. 1 is the method flow diagram for the detection charging pile that the embodiment of the present invention one provides;
Fig. 2 is the method flow diagram of detection charging pile exception provided by Embodiment 2 of the present invention;
Fig. 3 is the method flow diagram of detection charging pile exception provided by Embodiment 2 of the present invention;
Fig. 4 is the method flow diagram of detection charging pile exception provided by Embodiment 2 of the present invention;
Fig. 5 is that the charging pile that provides of the embodiment of the present invention three reports an error the method flow diagram of inquiry;
Fig. 6 is the system schematic for the detection charging pile that the embodiment of the present invention four provides.
Icon:
100- detection unit;200- analyzes recording unit;300- input unit;400- query unit.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with attached drawing to the present invention
Technical solution be clearly and completely described, it is clear that described embodiments are some of the embodiments of the present invention, rather than
Whole embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art are not making creative work premise
Under every other embodiment obtained, shall fall within the protection scope of the present invention.
Currently, usually to be carried out there are many duplicate operation, such as constantly during the project testing of charging pile
Different user enjoys the use-case of discount in test charging;Duplicate test charging flow is required when each version is online
It is whether complete;With being continuously increased for business scenario, charging scenarios also have and are constantly increasing.There are also many new business to be all
It is unfolded on the basis of charging.So testing progress certainly will be will affect by occurring exception in charging.Hand is used in the prior art
The dynamic mode for checking journal file checks abnormal conditions, but this mode reads log text to existing tester
The professional requirement of part is very high, monitors in developer's hand, cannot open and use at any time, what is shown in monitoring reports an error, cannot
Guarantee its authenticity.For appealing problem, there is presently no effective solution methods.
Based on this, the method and system of detection charging pile provided in an embodiment of the present invention can reduce test and O&M work
The difficulty and time cost and human cost of work, improve problem feedback speed and problem locks accuracy.
For convenient for understanding the present embodiment, first to detected disclosed in the embodiment of the present invention method of charging pile into
Row is discussed in detail.
Embodiment one:
Fig. 1 is the method flow diagram for the detection charging pile that the embodiment of the present invention one provides.
Referring to Fig.1, the method for detecting charging pile includes the following steps:
Step S110 detects the state of charging pile, if the state of charging pile is abnormality, obtains exception
The fault code information of state;
Specifically, charging pile is intelligent charging spot, inside has automatic checkout system, communication module, and each charging
Stake can all have unique mark.That is charging pile can detect the health status of itself automatically.When charging pile charging or it is non-
When failure in the state of charging, i.e. detection charging pile is in abnormality, and charging pile will be according to this according to abnormal shape
State obtains corresponding fault code information, and by fault code information reporting to Platform Server.Cause the abnormal shape of charging pile
The factor of state includes the failure of the hardware module under non-charged state, the failure in the failure and communication of software aspects, further includes
The many aspects such as connection, account balance, the power supply of the charging gun under charged state.
Step S120 analyzes fault code information, generates fault message, and fault message is recorded, obtains
To abnormal log document;
Specifically, Platform Server obtains and analyze the fault code information that charging pile reports, believed by fault code
The problem of breath analysis failure, generate fault message.Fault message is recorded in abnormal log document by Platform Server, is used for
The inspection in later period uses.
Step S130 is operated by input and is obtained query condition information;
Specifically, input operation carries out on input terminal, input terminal here can be mounted in one on computer
It is a to be adapted to operation maintenance personnel and the software of inquiry error information that tester uses.Charging pile number is inputted on software and is opened
The query condition informations such as dynamic charging time, and query condition information is sent to Platform Server.
Step S140 screens abnormal log document according to query condition information, obtains query result information.
Specifically, Platform Server scans for abnormal log document according to query condition information, check it is to have presence
Matched record exports query result information.It is recorded if there is matching, then exports and play genuine error information;If it does not,
No record prompting message is then generated to be prompted.
Embodiment two:
An exemplary embodiment of the present invention, fault code information include non-charge fault code information, charging pile packet
Hardware module, software module and communication module are included, in the step S110 of the method for detection charging pile, fault code information is obtained
Method is taken to include the following steps:
The state of hardware module, software module and communication module is detected, non-charge fault code information is obtained.
Specifically, when charging pile is under non-charged state, if there is the failure of hardware module, software side in charging pile
The failure or the failure in communication in face, charging pile will be relevant fault code information reportings to Platform Server.Platform
The problem of server gets the fault code information that charging pile reports, will be according to fault code information analysis failure.
An exemplary embodiment of the present invention, fault code information further include connecting fault code information, reference Fig. 2,
In the step S110 of the method for detection charging pile, the acquisition methods of fault code information further include following steps:
Step S210 detects the charging gun of charging pile, obtains link information;
Whether step S220, verifying link information are connection normal information;If so, thening follow the steps S231;If no
It is to then follow the steps S232;
Step S231 allows to charge;
Step S232 generates connecting fault code information.
Specifically, charging pile has the function of real-time report data during charging.When charging pile is giving electronic vapour
It when vehicle charges, can verify whether charging gun connects normally, allow to charge if connection is normal, otherwise be connected according to charging pile different
Normal reporting an error generates connecting fault code information, and connecting fault code information is reported to Platform Server.Platform Server
The acquisition exception information of charging pile is obtained according to connecting fault code information, and is recorded in abnormal log document.
An exemplary embodiment of the present invention, fault code information further include remaining sum fault code information, reference Fig. 3,
In the step S110 of the method for detection charging pile, the acquisition methods of fault code information further include following steps:
Step S310 verifies the account of starting charging corresponding with charging pile, obtains balance information;
Step S320 judges whether balance information is to meet charge volume demand;If it is satisfied, only carrying out step S331;Such as
Fruit is unsatisfactory for, and thens follow the steps S332;
Step S331 allows to charge;
Step S332 generates remaining sum fault code information.
Specifically, when charging pile charges to electric car, it can be with the presence of charging.At the beginning of charging
Need to verify starting charging account balance whether arrearage, if be zero.Do not allow to start if account balance deficiency and charge,
Electric stake at this time can also generate the abnormal remaining sum fault code information of charging and upload Platform Server.With the generation of charge volume,
It will stop charging when account balance deficiency, and submit remaining sum fault code information to Platform Server.If whole
In a charging process, balance information meets always charge volume demand, then allows to charge normal.Platform Server is according to remaining sum failure
Code information is analyzed to obtain matched fault message and is recorded in log.
An exemplary embodiment of the present invention, fault code information further include power failure code information, reference Fig. 4,
In the step S110 of the method for detection charging pile, the acquisition methods of fault code information further include following steps:
Step S410 detects the power supply of charging pile, obtains power information;
Step S420, analyzes power information, obtains power failure code information.
If charging gun is pulled out or the case where abnormity of power supply specifically, being detected the presence of during charging, than
Such as electric current is excessive, person is too small or unexpected power-off power information, this when, charging pile will be raw according to the exception of power information
Platform Server is uploaded at power failure code information, and by the power failure code information.Platform Server is according to power supply
Fault code information analysis obtains matched fault message and is recorded in log.
Embodiment three:
Fig. 5 is that the charging pile that provides of the embodiment of the present invention three reports an error the method flow diagram of inquiry.
Referring to Fig. 5, query result information includes error information and no record prompting message, is detecting the method for charging pile
In step S140, the acquisition methods of query result information specifically comprise the following steps:
Step S510 judges in abnormal log document with the presence or absence of the fault message for meeting query condition information;If deposited
Thening follow the steps S521;If it does not exist, then executing step S522;
Fault message is carried out Screening Treatment, exports error information by step S521;
Step S522 generates no record prompting message.
Example IV:
Fig. 6 is the system schematic for the detection charging pile that the embodiment of the present invention four provides.
Referring to Fig. 6, the system for detecting charging pile includes such as lower unit:
Detection unit 100 is detected for the state to charging pile, if the state of charging pile is abnormality,
Obtain the fault code information of abnormality;
Recording unit 200 is analyzed, for analyzing fault code information, generates fault message, and by fault message
It is recorded, obtains abnormal log document;
Input unit 300, for obtaining query condition information by input operation;
Query unit 400 obtains inquiry knot for carrying out information sifting to abnormal log document according to query condition information
Fruit information.
An exemplary embodiment of the present invention, fault code information include non-charge fault code information, detection unit
100 include:
The hardware module, software module and communication module of charging pile are detected, non-charge fault code information is obtained.
An exemplary embodiment of the present invention, fault code information further include connecting fault code information, detection unit
100 further include:
The charging gun of charging pile is detected, link information is obtained;
Whether verifying link information is connection normal information;
If it is not, then generating connecting fault code information.
An exemplary embodiment of the present invention, query result information include error information and no record prompting message, are looked into
Asking unit 400 includes:
Judge in abnormal log document with the presence or absence of the fault message for meeting query condition information;
If it is present fault message is carried out Screening Treatment, error information is exported;
If it does not exist, then generating no record prompting message.
The technical effect of the system of detection charging pile provided by the embodiment of the present invention, realization principle and generation and aforementioned
The embodiment of the method for detecting charging pile is identical, and to briefly describe, the system embodiment part for detecting charging pile does not refer to place, can
With reference to corresponding contents in the aforementioned embodiment of the method for detecting charging pile.
The method and system of detection charging pile provided by the invention, are detected including the state to charging pile, if filled
The state of electric stake is abnormality, then obtains the fault code information of abnormality, analyze fault code information, is generated
Fault message, and fault message is recorded, abnormal log document is obtained, is operated by input and obtains query condition information,
Abnormal log document is screened according to query condition information, obtains query result information.The present invention can reduce test and fortune
The difficulty and time cost and human cost of dimension work, improve problem feedback speed and problem locks accuracy.
In the description of the embodiment of the present invention unless specifically defined or limited otherwise, term " installation ", " connects " connected "
Connect " it shall be understood in a broad sense, for example, it may be being fixedly connected, it may be a detachable connection, or be integrally connected;It can be machine
Tool connection, is also possible to be electrically connected;It can be directly connected, two members can also be can be indirectly connected through an intermediary
Connection inside part.For the ordinary skill in the art, above-mentioned term can be understood in the present invention with concrete condition
Concrete meaning.
In the description of the present invention, it should be noted that term " first ", " second ", " third " are used for description purposes only,
It is not understood to indicate or imply relative importance.
The computer program product of the method for detection charging pile is carried out provided by the embodiment of the present invention, including stores place
The computer readable storage medium of the executable non-volatile program code of device is managed, the instruction that said program code includes can be used for
Previous methods method as described in the examples is executed, specific implementation can be found in embodiment of the method, and details are not described herein.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description,
The specific work process of device and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In several embodiments provided herein, it should be understood that disclosed systems, devices and methods, it can be with
It realizes by another way.The apparatus embodiments described above are merely exemplary, for example, the division of the unit,
Only a kind of logical function partition, there may be another division manner in actual implementation, in another example, multiple units or components can
To combine or be desirably integrated into another system, or some features can be ignored or not executed.Another point, it is shown or beg for
The mutual coupling, direct-coupling or communication connection of opinion can be through some communication interfaces, device or unit it is indirect
Coupling or communication connection can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme
's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit
It is that each unit physically exists alone, can also be integrated in one unit with two or more units.
It, can be with if the function is realized in the form of SFU software functional unit and when sold or used as an independent product
It is stored in the executable non-volatile computer-readable storage medium of a processor.Based on this understanding, of the invention
Technical solution substantially the part of the part that contributes to existing technology or the technical solution can be with software in other words
The form of product embodies, which is stored in a storage medium, including some instructions use so that
One computer equipment (can be personal computer, server or the network equipment etc.) executes each embodiment institute of the present invention
State all or part of the steps of method.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (ROM, Read-
Only Memory), random access memory (RAM, Random Access Memory), magnetic or disk etc. are various can be with
Store the medium of program code.
Finally, it should be noted that embodiment described above, only a specific embodiment of the invention, to illustrate the present invention
Technical solution, rather than its limitations, scope of protection of the present invention is not limited thereto, although with reference to the foregoing embodiments to this hair
It is bright to be described in detail, those skilled in the art should understand that: anyone skilled in the art
In the technical scope disclosed by the present invention, it can still modify to technical solution documented by previous embodiment or can be light
It is readily conceivable that variation or equivalent replacement of some of the technical features;And these modifications, variation or replacement, do not make
The essence of corresponding technical solution is detached from the spirit and scope of technical solution of the embodiment of the present invention, should all cover in protection of the invention
Within the scope of.Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.