CN117725955A - Method for rapidly improving identification rate of two-dimension codes of charging pile - Google Patents
Method for rapidly improving identification rate of two-dimension codes of charging pile Download PDFInfo
- Publication number
- CN117725955A CN117725955A CN202311767560.5A CN202311767560A CN117725955A CN 117725955 A CN117725955 A CN 117725955A CN 202311767560 A CN202311767560 A CN 202311767560A CN 117725955 A CN117725955 A CN 117725955A
- Authority
- CN
- China
- Prior art keywords
- identification
- rule
- dimensional code
- charging pile
- aiming
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 18
- 230000001502 supplementing effect Effects 0.000 claims abstract description 6
- 230000007246 mechanism Effects 0.000 claims abstract description 3
- 238000012795 verification Methods 0.000 claims abstract description 3
- 239000013589 supplement Substances 0.000 claims description 4
- 230000009471 action Effects 0.000 description 3
- 210000001503 joint Anatomy 0.000 description 3
- 230000002776 aggregation Effects 0.000 description 2
- 238000004220 aggregation Methods 0.000 description 2
- 238000011161 development Methods 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 238000012360 testing method Methods 0.000 description 2
- 230000004075 alteration Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000013515 script Methods 0.000 description 1
- 230000000391 smoking effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Abstract
The invention discloses a method for identifying rate of two-dimension codes of a charging pile, which comprises js identification coding aiming at the existing two-dimension codes of the charging pile and a perfect mechanism aiming at js identification coding, wherein relevant developers firstly introduce the js coding into own service to generate an API; the API can be called for identification when code scanning is performed; carrying out validity verification on the two-dimensional code content, and directly returning a result if the two-dimensional code content is illegal; checking a black and bright list aiming at the two-dimensional code, and if the black and bright list directly returns a result; invoking js codes; recording a corresponding identification result, supplementing rules aiming at unrecognized data, and calculating statistical data such as identification rate; and automatically generating an analysis rule by the checking equipment library, calling js codes after the checking passes, recording a corresponding identification result, supplementing the rule aiming at unrecognized equipment library, and calculating statistical data such as identification rate. The invention relates to the technical field of electric pile equipment, in particular to a method for rapidly improving the identification rate of two-dimension codes of a charging pile.
Description
Technical Field
The invention relates to the technical field of charging pile equipment, in particular to a method for rapidly improving the identification rate of a two-dimension code of a charging pile.
Background
At present, the popularization of new energy electric vehicles leads to the rapid increase of the usage amount of charging piles, a plurality of charging pile manufacturers exist in the industry at present, and no unified charging pile equipment identification exists among the charging pile manufacturers, at present, the traditional aggregation mode needs to carry out regression test after one-to-one cooperation informing rule, and a cold start server is needed, under the general current condition, a platform needs to be in butt joint with the two-dimensional code analysis rule of the server when accessing the server, and the steps of configuration debugging, smoking, testing, online, regression and the like are carried out, so that the butt joint is completed, the period is long, the universality is low, and the example 1: the service provider A spends 2 days in butt joint, and then the 1000A service provider needs 200 days and continuous online service, so that the stability of the service cannot be ensured; example 2: the code scanning rule with universality cannot be reused, so that the code scanning recognition rate is low, and the mode is quite unreasonable from the time and cost consideration, and mainly has the following 3 problems: two problems: 1. the compatibility is weak, and the potentially available two-dimensional codes cannot be identified; 2. the timeliness of the support cannot be guaranteed, and the support can be compatible only after the support is cooperated with a charging pile manufacturer; 3. the service is unstable and a cold start server is required, possibly resulting in the unavailability of the service provided.
Therefore, how to quickly improve the recognition rate of the two-dimensional code becomes a problem to be solved.
Disclosure of Invention
Aiming at the situation, the invention provides a method for rapidly improving the identification rate of the two-dimension code of the charging pile in order to overcome the current technical defects.
The technical scheme adopted by the invention is as follows: the method for rapidly improving the identification rate of the two-dimension code of the charging pile comprises js identification coding aiming at the existing two-dimension code of the charging pile and improvement mechanism aiming at js identification coding, and related developers firstly introduce the js coding into own service to generate an API; the API can be called for identification when code scanning is performed; carrying out validity verification on the two-dimensional code content, and directly returning a result if the two-dimensional code content is illegal; checking a black and bright list aiming at the two-dimensional code, and if the black and bright list directly returns a result; invoking js codes; recording a corresponding identification result, supplementing rules aiming at unrecognized data, and calculating statistical data such as identification rate; the checking equipment library automatically generates analysis rules, calls js codes after the checking passes, records corresponding identification results, supplements the rules aiming at unrecognized equipment, and calculates statistical data such as identification rate; invoking js codes after the manual supplement rule is checked and passed, recording corresponding identification results, supplementing the rule for unidentified rule, and calculating statistical data such as identification rate; after identification, calling the electric pile service provider to verify the equipment state; and returning an identification result.
The method for rapidly improving the identification rate of the two-dimension code of the charging pile provided by the invention comprises the following steps:
(1) The two-dimension code of the charging pile enters an identification program;
(2) The identification program judges whether js coding is introduced;
(3) js code judges whether the two-dimensional code is legal or not;
(4) The illegal two-dimensional code is directly discarded and marked;
(5) The legal two-dimensional code continues to judge whether the code belongs to a blacklist (the blacklist is used for eliminating specific two-dimensional codes, so that the identification stability is improved);
(6) The two-dimensional code belongs to a blacklist and is directly discarded and marked;
(7) Entering a known identification rule, identifying a result and recording;
(8) According to the unidentified two-dimensional code, the analysis rule is produced by self-collision, and is checked manually, and after passing, the analysis rule is counted into the known identification rule, and the analysis rule does not pass the rule and does not enter the known identification rule, and is marked directly;
(9) Manually adding the rule obtained according to other information into the identification rule;
(10) Counting the information and calculating the recognition rate;
(11) Inquiring the electric pile equipment state of the corresponding service provider according to the identified result;
(12) And judging whether the equipment is available or not according to the equipment state returned by the service provider, and returning electric pile information and other results.
The beneficial effects obtained by the invention by adopting the structure are as follows: the method for rapidly improving the identification rate of the two-dimension code of the charging pile has the advantages that: this scheme has designed a quick integrated tool package to multiple class fills electric pile two-dimensional code sign, can realize following effect through js integrated tool package:
1. the rapid introduction is realized only by introducing js script, and development and aggregation are not needed, so that the development cost is reduced;
2. the compatibility is strong, most charging piles existing in the market are supported, and multiple languages (for example, java, python and the like) can be crossed by relying on js language characteristics;
3. the service is stable, seamless hot loading can be realized by relying on js light weight and even compiling characteristics, and a new two-dimensional code rule is supported.
Drawings
The accompanying drawings are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate the invention and together with the embodiments of the invention, serve to explain the invention. In the drawings:
FIG. 1 is a schematic diagram showing the implementation of the method for rapidly improving recognition rate according to the present invention,
FIG. 2 is a schematic diagram of steps in the practice of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described in the following in conjunction with the embodiments of the present invention, and it is obvious that the described embodiments are only some embodiments of the present invention, but not all embodiments; all other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
As shown in fig. 1 and 2, the technical scheme adopted by the invention is as follows: the method for rapidly improving the identification rate of the two-dimension code of the charging pile, provided by the scheme, comprises the following steps: the two-dimension code of the charging pile enters an identification program; the identification program judges whether js coding is introduced; js code judges whether the two-dimensional code is legal or not; the illegal two-dimensional code is directly discarded and marked; the legal two-dimensional code continues to judge whether the code belongs to a blacklist (the blacklist is used for eliminating specific two-dimensional codes, so that the identification stability is improved); the two-dimensional code belongs to a blacklist and is directly discarded and marked; entering a known identification rule, identifying a result and recording; according to the unidentified two-dimensional code, the analysis rule is produced by self-collision, and is checked manually, and after passing, the analysis rule is counted into the known identification rule, and the analysis rule does not pass the rule and does not enter the known identification rule, and is marked directly; manually adding the rule obtained according to other information into the identification rule; counting the information and calculating the recognition rate; inquiring the electric pile equipment state of the corresponding service provider according to the identified result; and judging whether the equipment is available or not according to the equipment state returned by the service provider, and returning electric pile information and other results.
It is noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus.
Although embodiments of the present invention have been shown and described, it will be understood by those skilled in the art that various changes, modifications, substitutions and alterations can be made therein without departing from the principles and spirit of the invention, the scope of which is defined in the appended claims and their equivalents.
Claims (2)
1. A method for rapidly improving the identification rate of a two-dimension code of a charging pile is characterized by comprising the following steps: the method comprises js identification coding aiming at the existing charging pile two-dimensional code and a js identification coding perfecting mechanism, wherein related developers firstly introduce the js coding into own service to generate an API; the API can be called for identification when code scanning is performed; carrying out validity verification on the two-dimensional code content, and directly returning a result if the two-dimensional code content is illegal; checking a black and bright list aiming at the two-dimensional code, and if the black and bright list directly returns a result; invoking js codes; recording a corresponding identification result, supplementing rules aiming at unrecognized data, and calculating statistical data such as identification rate; the checking equipment library automatically generates analysis rules, calls js codes after the checking passes, records corresponding identification results, supplements the rules aiming at unrecognized equipment, and calculates statistical data such as identification rate; invoking js codes after the manual supplement rule is checked and passed, recording corresponding identification results, supplementing the rule for unidentified rule, and calculating statistical data such as identification rate; after identification, calling the electric pile service provider to verify the equipment state; and returning an identification result.
2. The method for rapidly improving the identification rate of the two-dimension code of the charging pile according to claim 1 is characterized by comprising the following steps:
step one: the two-dimension code of the charging pile enters an identification program;
step two: the identification program judges whether js coding is introduced;
step three: js code judges whether the two-dimensional code is legal or not;
step four: the illegal two-dimensional code is directly discarded and marked;
step five: the legal two-dimensional code continues to judge whether the code belongs to a blacklist (the blacklist is used for eliminating specific two-dimensional codes, so that the identification stability is improved);
step six: the two-dimensional code belongs to a blacklist and is directly discarded and marked;
step seven: entering a known identification rule, identifying a result and recording;
step eight: according to the unidentified two-dimensional code, the analysis rule is produced by self-collision, and is checked manually, and after passing, the analysis rule is counted into the known identification rule, and the analysis rule does not pass the rule and does not enter the known identification rule, and is marked directly;
step nine: manually adding the rule obtained according to other information into the identification rule;
step ten: counting the information and calculating the recognition rate;
step eleven: inquiring the electric pile equipment state of the corresponding service provider according to the identified result;
step twelve: and judging whether the equipment is available or not according to the equipment state returned by the service provider, and returning electric pile information and other results.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311767560.5A CN117725955A (en) | 2023-12-21 | 2023-12-21 | Method for rapidly improving identification rate of two-dimension codes of charging pile |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311767560.5A CN117725955A (en) | 2023-12-21 | 2023-12-21 | Method for rapidly improving identification rate of two-dimension codes of charging pile |
Publications (1)
Publication Number | Publication Date |
---|---|
CN117725955A true CN117725955A (en) | 2024-03-19 |
Family
ID=90205029
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202311767560.5A Pending CN117725955A (en) | 2023-12-21 | 2023-12-21 | Method for rapidly improving identification rate of two-dimension codes of charging pile |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN117725955A (en) |
-
2023
- 2023-12-21 CN CN202311767560.5A patent/CN117725955A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109409538B (en) | Vehicle spare and accessory part management method and device and block link point equipment | |
US7512618B2 (en) | Automatic inspection tool | |
CN107578210B (en) | Automatic testing method and device for contract approval process | |
CN111209185B (en) | Keyword-based automated testing method and computer-readable storage medium | |
CN113010413B (en) | Automatic interface testing method and device | |
CN112306855A (en) | Interface automation test method, device, terminal and storage medium | |
CN107329889B (en) | Method for automatically testing C compiler | |
CN111209206A (en) | Automatic test method and system for software product | |
CN111367530A (en) | Code auditing method, terminal and server based on self-defined auditing rule | |
CN112370773A (en) | User integral value reconciliation test method and system | |
CN117725955A (en) | Method for rapidly improving identification rate of two-dimension codes of charging pile | |
CN117009231B (en) | Automatic generation method and device for high-reliability unit test based on conversational large language model | |
CN115794639B (en) | Visual test based on flow and visual simulation test system and method | |
CN111163428B (en) | Method and server for generating short message bill | |
CN116257223A (en) | Data isolation development method, device, equipment, readable storage medium and product | |
CN115357494A (en) | Automatic generation method and device of function coverage rate code | |
CN100501698C (en) | Method and system for automatic checking for man-machine command | |
CN114721943A (en) | Method and device for determining test range | |
CN109634865B (en) | Code transfer testing method and device and transfer testing terminal | |
CN110347589B (en) | Software unit test automatic detection method and system | |
CN113688031A (en) | Testing positioning method based on byte code enhancement technology | |
CN116415258A (en) | Vulnerability detection method, device, equipment, medium and program product | |
JP2002342129A (en) | Method for checking coding | |
CN116756028A (en) | Message interaction method, device, equipment and medium | |
CN117667708A (en) | Custom rule scanning method supporting configuration file |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |