CN112329488B - Two-dimensional code identification method and device and new energy vehicle charging and discharging method based on two-dimensional code identification method and device - Google Patents
Two-dimensional code identification method and device and new energy vehicle charging and discharging method based on two-dimensional code identification method and device Download PDFInfo
- Publication number
- CN112329488B CN112329488B CN202011007584.7A CN202011007584A CN112329488B CN 112329488 B CN112329488 B CN 112329488B CN 202011007584 A CN202011007584 A CN 202011007584A CN 112329488 B CN112329488 B CN 112329488B
- Authority
- CN
- China
- Prior art keywords
- dimensional code
- charging
- discharging
- equipment
- new energy
- 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.)
- Active
Links
- 238000007599 discharging Methods 0.000 title claims abstract description 64
- 238000000034 method Methods 0.000 title claims abstract description 41
- 230000002776 aggregation Effects 0.000 claims description 2
- 238000004220 aggregation Methods 0.000 claims description 2
- 238000004364 calculation method Methods 0.000 abstract description 6
- 238000010586 diagram Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K7/00—Methods or arrangements for sensing record carriers, e.g. for reading patterns
- G06K7/10—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
- G06K7/10544—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation by scanning of the records by radiation in the optical part of the electromagnetic spectrum
- G06K7/10821—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation by scanning of the records by radiation in the optical part of the electromagnetic spectrum further details of bar or optical code scanning devices
- G06K7/10861—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation by scanning of the records by radiation in the optical part of the electromagnetic spectrum further details of bar or optical code scanning devices sensing of data fields affixed to objects or articles, e.g. coded labels
-
- G—PHYSICS
- G07—CHECKING-DEVICES
- G07F—COIN-FREED OR LIKE APPARATUS
- G07F15/00—Coin-freed apparatus with meter-controlled dispensing of liquid, gas or electricity
- G07F15/003—Coin-freed apparatus with meter-controlled dispensing of liquid, gas or electricity for electricity
- G07F15/005—Coin-freed apparatus with meter-controlled dispensing of liquid, gas or electricity for electricity dispensed for the electrical charging of vehicles
Abstract
The invention relates to a two-dimensional code identification method and device and a new energy vehicle charging and discharging method based on the two-dimensional code identification method and device. The two-dimensional code identification method comprises the following steps: acquiring position information of a user and two-dimensional code content obtained by code scanning; calculating to obtain a unique value corresponding to the content of the two-dimensional code; and checking whether the cache information contains the relevant information of the charge and discharge equipment corresponding to the unique value, and analyzing the two-dimensional code content by using a specific two-dimensional code analysis rule and other two-dimensional code analysis rules if the cache information does not contain the relevant information of the charge and discharge equipment, so as to obtain the relevant information of the charge and discharge equipment and store the relevant information. The two-dimensional code recognition system for realizing the two-dimensional code recognition method comprises a client and a server which are communicated. The new energy vehicle charging and discharging method comprises the following steps: obtaining related information of the charging and discharging equipment by using the two-dimensional code identification method; and communicating with a corresponding third party charging and discharging platform to realize authentication so as to start the charging and discharging equipment. The invention can reduce the calculation force required by repeated analysis rules and the identification time of the two-dimensional code, and realize the quick start of the charge and discharge equipment.
Description
Technical Field
The invention belongs to the technical field of charging and discharging of new energy vehicles, and particularly relates to a two-dimensional code identification method and device required for starting charging and discharging equipment, and a new energy vehicle charging and discharging method based on the two-dimensional code identification method and device.
Background
With the popularization of new energy automobiles, the country builds great support for charge and discharge equipment, and charge and discharge equipment operators' platforms in the market are more and more. At present, the starting mode of the charging and discharging equipment is mainly started in a two-dimensional code mode. However, when two-dimensional codes are identified, the two-dimensional codes are generally analyzed according to a polling rule of the two-dimensional codes, the algorithm is not good, the problem of wasting calculation power is likely to exist, if the number of the two-dimensional codes is large, the identification time is long, and the required repeated calculation power is increased.
Disclosure of Invention
The invention aims to provide a two-dimensional code identification method capable of reducing identification time and required calculation force.
In order to achieve the above purpose, the invention adopts the following technical scheme:
the two-dimensional code identification method is used for identifying the two-dimensional code corresponding to the charging and discharging equipment of the new energy automobile to obtain the related information of the charging and discharging equipment, and comprises the following steps:
step 1: acquiring position information of a user and two-dimensional code content obtained by scanning a two-dimensional code corresponding to new energy automobile charging and discharging equipment by the user, and then executing the step 2;
step 2: calculating the two-dimensional code content by using a hash algorithm to obtain a unique value corresponding to the two-dimensional code content, and then executing the step 3;
step 3: checking whether the cache information contains the relevant information of the charging and discharging equipment corresponding to the unique value corresponding to the two-dimensional code content, if so, directly obtaining the relevant information of the charging and discharging equipment from the cache information and executing the step 6, and if not, executing the step 4;
step 4: searching an operator list of all charge and discharge devices in the range of n kilometers around the user from a database by using the position information of the user, wherein n is more than 0, obtaining a corresponding two-dimensional code analysis rule through the operator list as a specific two-dimensional code analysis rule, analyzing the two-dimensional code content by using the specific two-dimensional code analysis rule, obtaining relevant information of the charge and discharge devices from an analysis result if analysis is successful, executing step 6, and executing step 5 if analysis fails;
step 5: performing traversal analysis on the two-dimensional code content by using two-dimensional code analysis rules except the specific two-dimensional code analysis rules, obtaining relevant information of the charge and discharge equipment from analysis results if analysis is successful, and executing step 6, and not obtaining relevant information of the charge and discharge equipment if analysis fails;
step 6: and storing the unique value corresponding to the two-dimensional code content and the related information of the charging and discharging equipment as the cache information.
The related information of the charging and discharging equipment comprises the operator and equipment identity information thereof.
The invention also provides a two-dimensional code recognition system for realizing the two-dimensional code recognition method, which adopts the scheme that:
the two-dimensional code identification system is used for identifying the two-dimensional code corresponding to the charging and discharging equipment of the new energy automobile to obtain the related information of the charging and discharging equipment, and comprises a client for executing the step 1, and a server which is communicated with the client and is used for executing the steps 2 to 6.
The server is arranged in the aggregation charging and discharging platform.
The invention also provides a new energy vehicle charging and discharging method based on the two-dimensional code identification method and the system, and the new energy vehicle charging and discharging method comprises the following steps:
step one: identifying two-dimensional codes corresponding to the charging and discharging equipment of the new energy automobile by using the two-dimensional code identification method to obtain related information of the charging and discharging equipment;
step two: and carrying out communication with a corresponding third party charging and discharging platform based on the related information of the charging and discharging equipment to realize authentication, returning an authentication result, and if the authentication is passed, charging and discharging the new energy vehicle by using the charging and discharging equipment.
Due to the application of the technical scheme, compared with the prior art, the invention has the following advantages: the two-dimensional code identification method and the system can reduce the calculation force required by repeated analysis rules, can reduce the identification time of the two-dimensional code, and can realize the quick start of the charging and discharging equipment by using the new energy vehicle charging and discharging method.
Drawings
FIG. 1 is a flow chart of a two-dimensional code recognition method of the present invention.
Fig. 2 is a schematic diagram of a two-dimensional code recognition system according to the present invention.
Fig. 3 is a flowchart of the new energy vehicle charging and discharging method of the present invention.
Detailed Description
The invention will be further described with reference to examples of embodiments shown in the drawings.
Embodiment one: before using the charging and discharging equipment, a user of the new energy vehicle can use the charging and discharging equipment after the code scanning is performed on the corresponding two-dimensional code added by the charging and discharging equipment. At this time, the following two-dimensional code identification method as shown in fig. 1 is adopted to identify the two-dimensional code corresponding to the charging and discharging equipment of the new energy automobile to obtain the related information (including the operator id and equipment identity information equipment id) of the charging and discharging equipment:
a two-dimensional code identification method comprises the following steps:
step 1: acquiring the position information Location of a user and two-dimension code content QRCode obtained by scanning the two-dimension code corresponding to the charging and discharging equipment of the new energy automobile by the user, and then executing the step 2;
step 2: calculating the QRCode of the two-dimensional code content by utilizing a hash algorithm to obtain a unique value HashKey corresponding to the QRCode of the two-dimensional code content, and then executing the step 3;
step 3: checking whether the cache information contains the relevant information of the charge and discharge equipment corresponding to the unique value HashKey corresponding to the two-dimensional code content QRCode, if so (namely, the cache information contains the relevant information of the charge and discharge equipment corresponding to the unique value HashKey corresponding to the two-dimensional code content QRCode), directly obtaining the relevant information of the charge and discharge equipment from the cache information and executing the step 6, and if not (namely, the cache information does not contain the relevant information of the charge and discharge equipment corresponding to the unique value HashKey corresponding to the two-dimensional code content QRCode), executing the step 4;
step 4: searching an operator list of all charge and discharge devices in the range of n (n is more than 0, for example, n=2) kilometers around the user from a database by using the position information Location of the user, obtaining a corresponding two-dimensional code analysis rule through the operator list as a specific two-dimensional code analysis rule, analyzing the two-dimensional code content QRCode by using the specific two-dimensional code analysis rule, obtaining relevant information of the charge and discharge devices from an analysis result if the analysis is successful, executing step 6, and executing step 5 if the analysis is failed;
step 5: traversing and analyzing the QRCode of the two-dimensional code content by utilizing other two-dimensional code analysis rules except the specific two-dimensional code analysis rule, if the analysis is successful, obtaining the related information of the charge and discharge equipment from the analysis result, executing the step 6, and if the analysis fails, not obtaining the related information of the charge and discharge equipment, and prompting that the equipment information does not exist;
step 6: and storing the unique value HashKey corresponding to the two-dimensional code content QRCode and the related information (including the operator Id and the equipment identity information EquipmentId) of the charging and discharging equipment as cache information.
The two-dimensional code recognition system for realizing the two-dimensional code recognition method is shown in fig. 2, and comprises a client (APP) and a server which communicate through an HTTP protocol. The client is used for executing the step 1, and the server is used for executing the steps 2 to 6. The server may be disposed in an aggregate charge-discharge platform.
Based on the two-dimensional code identification method and the system, the new energy vehicle can realize charge and discharge by using charge and discharge equipment through the following charge and discharge method. As shown in fig. 3, the charging and discharging method of the new energy vehicle comprises the following steps:
step one: identifying two-dimension codes corresponding to the charging and discharging equipment of the new energy automobile by using the two-dimension code identification method to obtain related information of the charging and discharging equipment;
step two: and (3) carrying out communication with a corresponding third party charging and discharging platform based on the related information of the charging and discharging equipment to realize authentication, returning an authentication result, and if the authentication is passed, charging and discharging the new energy vehicle by using the charging and discharging equipment.
According to the invention, the calculation force required by repeated analysis rules is reduced by utilizing the uniqueness of the hash, and the range of the two-dimensional code analysis rules is further narrowed by utilizing the position information of the user, so that the time required by two-dimensional code identification can be reduced to a certain extent, and the charge and discharge equipment can be started rapidly.
The above embodiments are provided to illustrate the technical concept and features of the present invention and are intended to enable those skilled in the art to understand the content of the present invention and implement the same, and are not intended to limit the scope of the present invention. All equivalent changes or modifications made in accordance with the spirit of the present invention should be construed to be included in the scope of the present invention.
Claims (5)
1. The two-dimensional code identification method is used for identifying the two-dimensional code corresponding to the charging and discharging equipment of the new energy automobile to obtain the related information of the charging and discharging equipment, and is characterized in that: the two-dimensional code identification method comprises the following steps:
step 1: acquiring position information of a user and two-dimensional code content obtained by scanning a two-dimensional code corresponding to new energy automobile charging and discharging equipment by the user, and then executing the step 2;
step 2: calculating the two-dimensional code content by using a hash algorithm to obtain a unique value corresponding to the two-dimensional code content, and then executing the step 3;
step 3: checking whether the cache information contains the relevant information of the charging and discharging equipment corresponding to the unique value corresponding to the two-dimensional code content, if so, directly obtaining the relevant information of the charging and discharging equipment from the cache information and executing the step 6, and if not, executing the step 4;
step 4: searching an operator list of all charge and discharge devices in the range of n kilometers around the user from a database by using the position information of the user, wherein n is more than 0, obtaining a corresponding two-dimensional code analysis rule through the operator list as a specific two-dimensional code analysis rule, analyzing the two-dimensional code content by using the specific two-dimensional code analysis rule, obtaining relevant information of the charge and discharge devices from an analysis result if analysis is successful, executing step 6, and executing step 5 if analysis fails;
step 5: performing traversal analysis on the two-dimensional code content by using two-dimensional code analysis rules except the specific two-dimensional code analysis rules, obtaining relevant information of the charge and discharge equipment from analysis results if analysis is successful, and executing step 6, and not obtaining relevant information of the charge and discharge equipment if analysis fails;
step 6: and storing the unique value corresponding to the two-dimensional code content and the related information of the charging and discharging equipment as the cache information.
2. The two-dimensional code recognition method according to claim 1, wherein: the related information of the charging and discharging equipment comprises the operator and equipment identity information thereof.
3. A two-dimensional code recognition system is characterized in that: the two-dimensional code recognition system recognizes the two-dimensional code corresponding to the charging and discharging equipment of the new energy automobile by using the two-dimensional code recognition method as set forth in claim 1 or 2 to obtain the related information of the charging and discharging equipment, wherein the two-dimensional code recognition system comprises a client for executing the step 1, and a server which is communicated with the client and is used for executing the steps 2 to 6.
4. The two-dimensional code recognition system of claim 3, wherein: the server is arranged in the aggregation charging and discharging platform.
5. A new energy vehicle charging and discharging method is characterized in that: the new energy vehicle charging and discharging method comprises the following steps:
step one: identifying a two-dimensional code corresponding to a new energy automobile charging and discharging device by using the two-dimensional code identification method as set forth in claim 1 or 2 to obtain related information of the charging and discharging device;
step two: and carrying out communication with a corresponding third party charging and discharging platform based on the related information of the charging and discharging equipment to realize authentication, returning an authentication result, and if the authentication is passed, charging and discharging the new energy vehicle by using the charging and discharging equipment.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011007584.7A CN112329488B (en) | 2020-09-23 | 2020-09-23 | Two-dimensional code identification method and device and new energy vehicle charging and discharging method based on two-dimensional code identification method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011007584.7A CN112329488B (en) | 2020-09-23 | 2020-09-23 | Two-dimensional code identification method and device and new energy vehicle charging and discharging method based on two-dimensional code identification method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112329488A CN112329488A (en) | 2021-02-05 |
CN112329488B true CN112329488B (en) | 2023-12-15 |
Family
ID=74303470
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011007584.7A Active CN112329488B (en) | 2020-09-23 | 2020-09-23 | Two-dimensional code identification method and device and new energy vehicle charging and discharging method based on two-dimensional code identification method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112329488B (en) |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106412041A (en) * | 2016-09-20 | 2017-02-15 | 徐蔚 | System for connecting mobile terminal with service providing equipment and service providing method |
CN108099621A (en) * | 2016-11-25 | 2018-06-01 | 法乐第(北京)网络科技有限公司 | A kind of automatic recharging method of electric vehicle, equipment and system |
CN108182759A (en) * | 2017-12-16 | 2018-06-19 | 深圳供电局有限公司 | It is a kind of to pay complete self-service charging client, server and method without card |
CN108648290A (en) * | 2018-05-17 | 2018-10-12 | 深圳市华睿智兴信息科技有限公司 | A kind of parking management method and system |
CN110009067A (en) * | 2018-01-04 | 2019-07-12 | 青岛海尔洗衣机有限公司 | A kind of article information management system and its control method |
CN110406414A (en) * | 2019-07-30 | 2019-11-05 | 广州小鹏汽车科技有限公司 | Vehicular charging method, mobile terminal and server based on household charging pile |
CN110428556A (en) * | 2019-07-26 | 2019-11-08 | 深圳市脸谱科技有限公司 | A kind of system and method that automatic vending is integrated with electricity is changed |
CN111055714A (en) * | 2018-10-17 | 2020-04-24 | 郑州宇通客车股份有限公司 | New energy vehicle charging positioning method and new energy vehicle |
CN111169317A (en) * | 2018-11-13 | 2020-05-19 | 国网电动汽车服务有限公司 | Code scanning payment self-service charging system and control method |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR101871272B1 (en) * | 2015-08-28 | 2018-06-27 | 엘지전자 주식회사 | Charging control apparatus and control method for the same |
-
2020
- 2020-09-23 CN CN202011007584.7A patent/CN112329488B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106412041A (en) * | 2016-09-20 | 2017-02-15 | 徐蔚 | System for connecting mobile terminal with service providing equipment and service providing method |
CN108099621A (en) * | 2016-11-25 | 2018-06-01 | 法乐第(北京)网络科技有限公司 | A kind of automatic recharging method of electric vehicle, equipment and system |
CN108182759A (en) * | 2017-12-16 | 2018-06-19 | 深圳供电局有限公司 | It is a kind of to pay complete self-service charging client, server and method without card |
CN110009067A (en) * | 2018-01-04 | 2019-07-12 | 青岛海尔洗衣机有限公司 | A kind of article information management system and its control method |
CN108648290A (en) * | 2018-05-17 | 2018-10-12 | 深圳市华睿智兴信息科技有限公司 | A kind of parking management method and system |
CN111055714A (en) * | 2018-10-17 | 2020-04-24 | 郑州宇通客车股份有限公司 | New energy vehicle charging positioning method and new energy vehicle |
CN111169317A (en) * | 2018-11-13 | 2020-05-19 | 国网电动汽车服务有限公司 | Code scanning payment self-service charging system and control method |
CN110428556A (en) * | 2019-07-26 | 2019-11-08 | 深圳市脸谱科技有限公司 | A kind of system and method that automatic vending is integrated with electricity is changed |
CN110406414A (en) * | 2019-07-30 | 2019-11-05 | 广州小鹏汽车科技有限公司 | Vehicular charging method, mobile terminal and server based on household charging pile |
Also Published As
Publication number | Publication date |
---|---|
CN112329488A (en) | 2021-02-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106651363B (en) | Hardware wallet and holder identity verification method thereof | |
CN104581727A (en) | Equipment connecting method and device and AP (access point) end electronic equipment | |
CN105207996A (en) | Account merging method and apparatus | |
CN103680189A (en) | Vehicle collection reservation method on basis of two-dimensional codes of mobile terminals | |
CN107105415B (en) | System and method for vehicle-mounted equipment user registration and equipment binding | |
CN112533150A (en) | Bluetooth positioning vehicle searching method, device, equipment and storage medium | |
CN108284805B (en) | A kind of car-mounted terminal abnormal login processing method, server, car-mounted terminal | |
CN111046368B (en) | Face recognition-based intelligent automobile cloud platform login method | |
CN110246053B (en) | Carrier binding changing method of power supply device and server thereof | |
CN112329488B (en) | Two-dimensional code identification method and device and new energy vehicle charging and discharging method based on two-dimensional code identification method and device | |
CN109284590B (en) | Method, equipment, storage medium and device for access behavior security protection | |
CN108898870B (en) | Voice vehicle taking method and terminal for mechanical garage, management cloud platform and storage medium | |
CN108376179A (en) | vehicle information inquiry method, system and storage medium | |
CN112118189B (en) | Flow sampling method, computer equipment and computer readable storage medium | |
US20220134898A1 (en) | Method and arrangement for protecting a charging station against improper use | |
CN111787125A (en) | Information interaction system and method | |
CN113112626B (en) | Highway toll information acquisition system | |
CN113472544B (en) | Digital identity verification method and device, computer equipment and storage medium | |
CN111159509B (en) | Data processing method and related product | |
CN112184249B (en) | User signing method, device, equipment and storage medium | |
CN107662506A (en) | A kind of method and apparatus of intelligent monitoring wireless charging | |
CN114268445A (en) | Authentication method, device and system for cloud mobile phone application, authentication module and terminal | |
CN102984674A (en) | Mobile terminal and access system and method | |
CN111510917B (en) | Network access method and device for virtual USIM | |
CN114980095B (en) | Data access method and data access device |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |